[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
3.1 Emulation | Emacs/W3 can emulate the keybindings and other behaviours of other browsers. | |
3.5 Hotlist Handling | A hotlist is an easy way to keep track of interesting Web pages without having to remember the exact path to get there. | |
3.6 History | Keeping a history of documents visited in one Emacs sessions allows the use of | |
'forward' and 'back' buttons easily. | ||
---|---|---|
3.7 Global History | Keeping a history of all the places ever visited on the web. |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Emacs/W3 can emulate the keybindings of lynx and netscape, but only one
at a time. If you want emulation permanantly turned on, then you should
add turn-on-lynx-emulation
or turn-on-netscape-emulation
to w3-mode-hook
.
3.2 Lynx emulation | Emulate lynx. | |
3.3 Netscape emulation | Emulate netscape. | |
3.4 Masquerading | Emacs/W3 can masquerade as another browser. |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
turn-on-lynx-emulation
turns on lynx emulation and turns off
netscape emulation. lynx emulation is handled by the
w3-lynx-emulation-minor-mode
minor mode. For more information
about lynx style hotlists, See section 3.5 Hotlist Handling.
:: work :: Document lynx emulation
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
turn-on-netscape-emulation
turns on netscape emulation and turns
off lynx emulation. netscape emulation is handled by the
w3-netscape-emulation-minor-mode
minor mode. For more
information about netscape style hotlists, See section 3.5 Hotlist Handling.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
turn-on-browser-masquerade-mode
,
turn-off-browser-masquerade-mode
and
w3-browser-masquerade-mode
. The purpose of the first two
is clear, w3-browser-masquerade-mode
takes an optional
argument which toggles the mode if it's nil
, turns off the mode
if it's 0 and turns the mode on otherwise.
If you'd prefer to masquerade as another browser, then you should call
w3-masquerade-stub
with three arguments: arg, app and
version. arg has the same function as for
w3-browser-masquerade-mode
, app is the name of the
browser to masquerade as and version is the version.
Why would you want to masquerade as another browser when you could be advertising Emacs/W3? Well, some servers will only let certain browsers connect with them. This is cleary evil. Also some servers may alter what they present depending on the browser, this is probably a Good Thing but they might not know about Emacs/W3. Also one could argue that demanding the USER_AGENT field is a breach of privacy, Emacs/W3 doesn't have to send it (see section 7. Security), but the server doesn't have to let you connect either.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Emacs/W3 supports two types of hotlist, mosaic hotlists and HTML as used by lynx and netscape (which both call hotlists bookmarks). Unfortunately, not all hotlist operations are supported for HTML files at the moment.
In order to avoid having to traverse many documents to get to the same
document over and over, Emacs/W3 supports a "hotlist" like Mosaic. This is
a file that contains URLs and aliases. Hotlists allow quick access to any
document in the Web, providing it has been visited and added to the hotlist.
The variable w3-hotlist-file
determines where this information
is saved. The structure of the file is compatible with Mosaic's
hotlist file, so this defaults to `~/.mosaic-hotlist-default'.
Hotlist commands are:
w3-hotlist-file
. If
this is given a prefix-argument (via C-u), the title is prompted
for instead of automatically defaulting to the document title.
w3-hotlist-file
are
updated.
w3-hotlist-file
.
w3-hotlist-file
.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Almost all web browsers keep track of the URLs followed from a page, so that it can provide forward and back buttons to keep a path of URLs that can be traversed easily.
If url-keep-history
is non-nil
, then Emacs/W3 keeps track
of all the URLs visited in an Emacs session. If t
then
Emacs/W3 will save the history list at the end of each session to the
url-global-history-file
file. The history list is simply a list
of all the URLs visited in the session.
To view a listing of the history for this session of Emacs/W3, use
M-x w3-show-history-list
(Hv) from any buffer, and Emacs/W3
generates an HTML document showing every URL visited since
Emacs started (or cleared the history list), and then format it. Any of
the links can be chosen and followed to the original document. To clear
the history list, choose 'Clear History' from the 'Options' menu.
Another twist on the history list mechanism is the fact that all
Emacs/W3 buffers remember what URL, buffer, and buffer position of the
last document, and also keeps track of the next location jumped to
from that buffer. This means that the user can go forwards and
backwards very easily along the path taken to reach a particular
document. To go forward, use the function w3-forward-in-history
(F),
to go backward, use the function w3-backward-in-history
(B). To view the entire history, use w3-show-history-list
(Hv).
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Most web browsers also support the idea of a "history" of URLs the user has visited, and it displays them in a different style than normal URLs. Emacs/W3 will read and write history files generated by Emacs/W3, Mosaic v1 and v2 or netscape. Emacs/W3 looks at the file contents to determine the type of history.
If the variable url-keep-history
is t
, then Emacs/W3 keeps
a list of all the URLs visited in a session. The file is
automatically written to disk every
url-global-history-save-interval
seconds and when exiting emacs.
The list is added to those already in the file specified by
url-global-history-file
, which defaults to `~/mosaic.hst'
for MS operating systems, `~/mosaic.global-history' for VMS and
`~/.w3/history' for everything else.
If any URL in the list is found in the file, it is not saved, but new ones are added at the end of the file.
The function that saves the global history list is smart enough to notice what style of history list is being used (Netscape, Emacs/W3, or XMosaic), and writes out the new additions appropriately.
One of the nice things about keeping a global history files is that Emacs/W3 can use it as a completion table. When doing M-x w3-fetch, pressing the tab or space key will show all completions for a partial URL. This is very useful, especially for very long URLs that are not in a hotlist, or for seeing all the pages from a particular web site before choosing which to retrieve.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Emacs/W3 has many variable for you to fiddle with to get the display just right.
w3-display-frames
w3-display-frames
. It can be
nil
as-nil
ask
as-nil
, but Emacs/W3 will ask if you want to
retrieve the frames.
t
w3-bullets
w3-bullets
. It is a association list,
mapping list types to characters. By default it is ((disc . ?*)
(circle . ?o) (square . ?#) (none . ? ))
.
w3-echo-link
w3-echo-link
variable. It is a list and may contain
the following symbols,
url
text
title
name
The default is (title url text name)
.
w3-horizontal-rule-char
w3-horizontal-rule-char
. If it is a character
(not a string) then Emacs/W3 will replicate that character across
the screen, if it is nil
then Emacs/W3 will use a terminal
graphics character if possible. It is nil by default
.
w3-use-terminal-characters
w3-use-terminal-characters
it non-nil
(the
default) then Emacs/W3 will use terminal graphics characters if they are
available.
w3-use-terminal-characters-on-tty
w3-use-terminal-characters-on-tty
controls whether to use
terminal graphics characters on ttys, it is nil
by default.
w3-use-terminal-glyphs
t
by default.
w3-defined-link-types
w3-defined-link-types
is a list of names that have special
significance as the values of `REL' or `REV' attributes of
<link> elements. All members should be in lowercase.
w3-auto-image-alt
alt
tags to
their images, but Emacs/W3 can create alt
tags on the fly for
images that do not have them. To control this you can set
w3-auto-image-alt
to one of the following:
nil
alt
tags
%s
, for example "[IMAGE(%s)]"
w3-default-image-alt-func
being the function.
w3-min-img-size, w3-default-image-alt-func, w3-dummy-img-alt-repl
w3-default-image-alt-func
returns w3-dummy-img-alt-repl
(`*' by default) if the image's height and width are both less than
w3-min-img-size
pixels (15 by default) and if the filename
matches the w3-dummy-img-re
regular expression. Otherwise,
w3-default-image-alt-func
returns the filename enclosed in a
`[]' pair.
w3-icon-format
w3-icon-format
. This is gif
by default, but could be
xpm
, xbm
or any other format for that matter. It is added
as a file extension to the icon name, but the variable's value must be a
symbol. If nil
, then the server decides.
w3-delay-image-loads
w3-delay-image-loads
. By default
this is t
if you compiled XEmacs with support for gifs, jpegs,
pngs or imagick and nil
otherwise.
w3-image-mappings
w3-image-mappings
controls the mapping of MIME types to
image types for the `image' package. Each entry is a cons cell of
a MIME type string and an image-type symbol.
w3-max-menu-length
w3-max-menu-length
.
w3-max-menu-width
w3-right-margin
w3-right-margin
. This
is subtracted from (window-width)
for each Emacs/W3 buffer and
used as the fill-column. It is 2 by default.
w3-maximum-line-length
nil
(the default) then lines
can extend to the window margin.
w3-modeline-format
w3-honor-stylesheets
nil
(the default) then Emacs/W3 will let a
document specify a CSS stylesheet.
w3-user-colors-take-precedence
w3-user-colors-take-precedence
it non-nil
. The default is nil
.
w3-user-fonts-take-precedence
nil
.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
nil
then document retrievals over HTTP will
be down in the background.
url-default-callback
by default but can be any function taking
one argument. The argument specifies the file that has been retrieved.
If there is no buffer associated with the file, then
url-default-callback
just puts a message in the minibuffer saying
that the retrieval is complete, otherwise the action depends on the
buffer.
w3-do-incremental-display
is t
. It is nil
by default.
w3-notify
variable. It
may take the following values:
newframe
bully
semibully
aggressive
friendly
polite
quiet
polite
, but don't beep.
meek
[ << ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |