annotate lisp/w3/w3-vars.el @ 98:0d2f883870bc r20-1b1

Import from CVS: tag r20-1b1
author cvs
date Mon, 13 Aug 2007 09:13:56 +0200
parents 821dec489c24
children 4be1180a9e89
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 ;;; w3-vars.el,v --- All variable definitions for emacs-w3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 ;; Author: wmperry
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
3 ;; Created: 1997/02/14 17:57:21
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
4 ;; Version: 1.89
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 ;; Keywords: comm, help, hypermedia
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
8 ;;; Copyright (c) 1993 - 1996 by William M. Perry (wmperry@cs.indiana.edu)
82
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
9 ;;; Copyright (c) 1996, 1997 Free Software Foundation, Inc.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 ;;;
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
11 ;;; This file is part of GNU Emacs.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 ;;; GNU Emacs is free software; you can redistribute it and/or modify
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 ;;; it under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 ;;; the Free Software Foundation; either version 2, or (at your option)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 ;;; any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 ;;; GNU Emacs is distributed in the hope that it will be useful,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 ;;; GNU General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 ;;; You should have received a copy of the GNU General Public License
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
24 ;;; along with GNU Emacs; see the file COPYING. If not, write to the
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
25 ;;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
26 ;;; Boston, MA 02111-1307, USA.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 ;;; Variable definitions for w3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 (defconst w3-version-number
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
33 (let ((x "p3.0.59"))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 (if (string-match "State:[ \t\n]+.\\([^ \t\n]+\\)" x)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 (setq x (substring x (match-beginning 1) (match-end 1)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 (setq x (substring x 1)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 (mapconcat
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 (function (lambda (x) (if (= x ?-) "." (char-to-string x)))) x ""))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 "Version # of w3-mode.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
41 (defconst w3-version-date (let ((x "1997/02/14 17:57:21"))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 (if (string-match "Date: \\([^ \t\n]+\\)" x)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 (substring x (match-beginning 1) (match-end 1))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 x))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 "Date this version of w3-mode was released.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 (defconst w3-version
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 (format "WWW %s %s" w3-version-number w3-version-date)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 "More descriptive version of w3-version-number.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 ;;; General configuration variables
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
54 (defvar w3-auto-image-alt t
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
55 "*Whether emacs-w3 should create an alt attribute for an image that
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
56 is missing it.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
57 If nil, emacs-w3 will not automatically create an ALT attribute.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
58 If t, the alt attribute will be [IMAGE(nameofimage)]
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
59 If a string, it should be a string suitable for running through format,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
60 with only one %s, which will be replaced with just the filename of the
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
61 graphic that is not loaded.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
62
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
63 (defvar w3-configuration-directory "~/.w3/"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
64 "*Where emacs-w3 can find its configuration files")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
65
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
66 (defvar w3-debug-html nil "*Whether to gripe about bad HTML or not.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
67
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
68 (defvar w3-debug-buffer "*HTML Debug*"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
69 "*Name of buffer to store debugging information in.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
71 (defvar w3-default-configuration-file nil
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
72 "*Where per-user customizations of w3 are kept.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
73
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
74 (defvar w3-default-homepage nil
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
75 "*The url to open at startup. It can be any valid URL.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
76 This will default to the environment variable WWW_HOME if you do not
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
77 set it in your .emacs file. If WWW_HOME is undefined, then it will
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
78 default to the hypertext documentation for W3 at Indiana University.")
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
79
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
80 (defvar w3-default-stylesheet nil
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
81 "*The filename of the users default stylesheet.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
82
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
83 (defvar w3-do-incremental-display nil
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
84 "*Whether to do incremental display of pages or not.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
85
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 (defvar w3-dump-to-disk nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 "*If non-nil, all W3 pages loaded will be dumped to disk.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88
82
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
89 (defvar w3-echo-link '(title url text name)
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
90 "*Whether to display the URL of a link when tabbing through links.
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
91 Value is a list of one or more of the following symbols:
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
92
82
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
93 url == url of the target
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
94 text == text of the link
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
95 title == title attribute of the link
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
96 name == name or id attribute of the link
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
97
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
98 If none of the information is available, nothing will be shown for the link
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
99 in menus, etc.")
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
100
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
101 (defvar w3-horizontal-rule-char ?-
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
102 "*The character to use to create a horizontal rule.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
103 Must be the character's code, not a string. This character is
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
104 replicated across the screen to create a division.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
105
82
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
106 (defvar w3-fetch-with-default t
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
107 "*Whether `w3-fetch' should determine a good starting URL as a default.")
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
108
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
109 (defvar w3-hotlist-file nil
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
110 "*Hotlist filename.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
111 This should be the name of a file that is stored in either
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
112 NCSA's Mosaic/X or Netscape/X format. It is used to keep a listing
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
113 of commonly accessed URL's without having to go through 20 levels of
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
114 menus to get to them.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
115
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
116 (defvar w3-icon-directory "http://cs.indiana.edu/elisp/w3/icons/"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
117 "*Where to find standard icons. Must end in a /!")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
118
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
119 (defvar w3-icon-format 'xbm
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
120 "*What file extension icons end in. This is a symbol, string, or nil.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
121 If nil, then no file extension is used.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
122
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
123 (defvar w3-indent-level 4
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
124 "*Default # of spaces to indent instead of using TABs. This is
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
125 necessary to preserve tabs in PRE segments yet still get smaller
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
126 indentation for lists, etc.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
127
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
128 (defvar w3-keep-old-buffers t
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
129 "*Whether to keep old buffers around when following links.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
130
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
131 (defvar w3-latex-docstyle "{article}"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
132 "*The documentstyle to use when printing/mailing converted HTML
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
133 files in LaTeX. Good defaults are:
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
134 {article}, [psfig,twocolumn]{article}, etc.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
135
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
136 (defvar w3-mail-command 'mail
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
137 "*This function will be called whenever w3 needs to send mail. It should
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
138 enter a mail-mode-like buffer in the current window.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
139 The commands `mail-to' and `mail-subject' should still work in this
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
140 buffer, and it should use mail-header-separator if possible.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
141
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
142 (defvar w3-max-menu-length 35
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
143 "*The maximum length of a pulldown menu before it will be split into
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
144 smaller chunks, with the first part as a submenu, followed by the rest
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
145 of the menu.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
146
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
147 (defvar w3-max-menu-width 40 "*The maximum width of a pulldown menu choice.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
148
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
149 (defvar w3-modeline-format
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
150 '(" " ("W3"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
151 (w3-netscape-emulation-minor-mode
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
152 " (NS)")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
153 (w3-lynx-emulation-minor-mode
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
154 " (Lynx)")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
155 ": "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
156 (40 (-40 "%b"))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
157 " "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
158 (w3-current-isindex "[Searchable] ")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
159 "%p" " " global-mode-string))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
160 "*The modeline format string when in w3 mode")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
161
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
162 (defvar w3-mule-attribute 'underline
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
163 "*How to highlight items in Mule (Multi-Linugual Emacs).")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
164
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
165 (defvar w3-netscape-configuration-file nil
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
166 "*A Netscape-for-X style configuration file. This file will only be read if
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
167 and only if `w3-use-netscape-configuration-file' is non-nil.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
168
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
169 (defvar w3-netscape-compatible-comments t
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
170 "*Whether to honor netscape-style <! > comments.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
171 Ye gods I wish I could turn this off by default.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
172
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
173 (defvar w3-notify 'semibully
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
174 "*Selects the behavior when w3 page is ready.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
175 This variable may have one of the following values:
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
176
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
177 newframe -- put the w3 page in its own frame
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
178 bully -- make the w3 page the current buffer and only window
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
179 semibully -- make the w3 page the current buffer in the same window
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
180 aggressive -- make the w3 page the current buffer in the other window
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
181 friendly -- display w3page in other window but don't make current
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
182 polite -- don't display w3 page, but prints message when ready (beeps)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
183 quiet -- like `polite', but don't beep
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
184 meek -- make no indication that page is ready
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
185
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
186 Any other value of `w3-notify' is equivalent to `meek'.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
187
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
188 (defvar w3-popup-menu-on-mouse-3 t
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
189 "*Non-nil value means W3 should provide context-sensitive menus on mouse-3.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
190 A nil value means W3 should not change the binding of mouse-3.")
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
191
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
192 (defvar w3-print-command "lpr -h -d"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
193 "*Print command for dvi files.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
194 This is usually lpr -h -d to send it to a postscript printer, but you can set
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
195 it up so that it is any command that takes a dvi file as its last argument.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
196
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
197 (defvar w3-reuse-buffers 'reuse
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
198 "What to do when following a link will re-fetch a document that has
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
199 already been fetched into a W3 buffer. Possible values are: nil,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
200 'yes, and 'no. Nil means ask the user if we should reuse the buffer.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
201 A value of 'yes means assume the user wants us to reuse the buffer.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
202 A value of 'no means assume the user wants us to re-fetch the document.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
203
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
204 This will also accept:
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
205 'no 'never 'reload ==> always reload
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
206 'yes 'reuse 'always ==> always reuse
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
207 'ask nil ==> always ask")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
208
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
209 (defvar w3-right-margin 2
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
210 "*Amount of space to leave on right margin of WWW buffers.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
211 This amount is subtracted from (window-width) for each new WWW buffer
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
212 and used as the new fill-column.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
213
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
214 (defvar w3-maximum-line-length nil
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
215 "*Maximum length of a line. If nil, then lines can extend all the way to
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
216 the window margin.")
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
217
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
218 (defvar w3-temporary-directory "/tmp" "*Where temporary files go.")
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
219
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220 (defvar w3-track-last-buffer nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
221 "*Whether to track the last w3 buffer to automatically switch to with
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222 M-x w3.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
224 (defvar w3-track-mouse t
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
225 "*Whether to track the mouse and message the url under the mouse.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
226
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
227 (defvar w3-use-netscape-configuration-file nil
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
228 "*Whether to use a netscape configuration file to determine things like
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
229 home pages, link colors, etc. If non-nil, then `w3-netscape-configuration-file'
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
230 is read in at startup.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
231
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
232 (defvar w3-honor-stylesheets t
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
233 "*Whether to let a document specify a CSS stylesheet.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
234
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
235 (defvar w3-user-colors-take-precedence nil
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
236 "*Whether to let a document define certain colors about itself.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
237 Like foreground and background colors and pixmaps, color of links and
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
238 visited links, etc.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
239
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 (defvar w3-gc-cons-threshold-multiplier 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241 "Amount to temporarily multiply gc-cons-threshold by when parsing HTML.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242 Setting this to a number greater than 1 will result in less frequent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243 garbage collections when parsing an HTML document, which may often speed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244 up handling of a large document with many elements. The disadvantage is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245 that it allows Emacs's total memory usage to grow larger, which may result
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246 in later garbage collections taking more time.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
247
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
249 ;;; Hook Variables
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
250 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
251 (defvar w3-load-hook nil "*Hooks to be run after loading w3.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
252 (defvar w3-mode-hook nil "*Hooks to be run after entering w3-mode.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
253 (defvar w3-file-prepare-hook nil
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
254 "*Hooks to be run before preparing a buffer.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
255 (defvar w3-file-done-hook nil "*Hooks to be run after preparing a buffer.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
256 (defvar w3-source-file-hook nil
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
257 "*Hooks to be run after getting document source.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
258
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
259 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
260 ;;; Figure out what flavor of emacs we are running
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
261 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262 (defvar w3-running-xemacs (string-match "XEmacs\\|Lucid" emacs-version)
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
263 "*In XEmacs?.")
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
264
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
265 (defvar w3-running-FSF19 (and (string-match "^19" emacs-version)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
266 (not w3-running-xemacs))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
267 "*In FSF v19 emacs?")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
268
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
269 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
270 ;;; Graphics parsing stuff
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
271 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
272 (defvar w3-graphics-list nil
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
273 "*List of graphics already read in.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
274
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
275 (defvar w3-delay-image-loads nil
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
276 "*Delay loading images for w3 or not?")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
277
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
278 (defvar w3-delayed-images nil
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
279 "*A buffer-local variable holding positions and urls of images within
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
280 the buffer.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
281
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
282 (defvar w3-image-mappings
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
283 '(
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
284 ("image/x-xbitmap" . xbm)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
285 ("image/xbitmap" . xbm)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
286 ("image/xbm" . xbm)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
287 ("image/jpeg" . jpeg)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
288 ("image/gif" . gif)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
289 ("image/png" . png)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
290 ("image/x-fax" . g3fax)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
291 ("image/x-raster" . rast)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
292 ("image/windowdump" . xwd)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
293 ("image/x-icon" . icon)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
294 ("image/portable-graymap" . pgm)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
295 ("image/portable-pixmap" . ppm)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
296 ("image/x-pixmap" . xpm)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
297 ("image/x-xpixmap" . xpm)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
298 ("image/pict" . pict)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
299 ("image/x-rgb" . sgi)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
300 ("image/x-sgi" . sgi)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
301 ("image/x-macpaint" . macpt)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
302 ("image/x-targa" . tga)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
303 ("image/tiff" . tiff)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
304 ) "*How to map MIME types to image types for the `image' package.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
305
32
e04119814345 Import from CVS: tag r19-15b99
cvs
parents: 30
diff changeset
306 ;; Store the database of HTML general entities.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
307 (defvar w3-html-entities
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
308 '(
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
309 (excl . 33)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
310 (quot . 34)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
311 (num . 35)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
312 (dollar . 36)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
313 (percent . 37)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
314 (amp . 38)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
315 (rsquo . 39)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
316 (apos . 39)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
317 (lpar . 40)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
318 (rpar . 41)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
319 (times . 42)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
320 (ast . 42)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
321 (plus . 43)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
322 (comma . 44)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
323 (period . 46)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
324 (colon . 58)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
325 (semi . 59)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
326 (lt . 60)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
327 (equals . 61)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
328 (gt . 62)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
329 (quest . 63)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
330 (commat . 64)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
331 (lsqb . 91)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
332 (rsqb . 93)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
333 (uarr . 94)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
334 (lowbar . 95)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
335 (lsquo . 96)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
336 (lcub . 123)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
337 (verbar . 124)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
338 (rcub . 125)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
339 (tilde . 126)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
340 (nbsp . 160)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
341 (iexcl . 161)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
342 (cent . 162)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
343 (pound . 163)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
344 (curren . 164)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
345 (yen . 165)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
346 (brvbar . 166)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
347 (sect . 167)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
348 (uml . 168)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
349 (copy . 169)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
350 (ordf . 170)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
351 (laquo . 171)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
352 (not . 172)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
353 (shy . 173)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
354 (reg . 174)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
355 (macr . 175)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
356 (deg . 176)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
357 (plusmn . 177)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
358 (sup2 . 178)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
359 (sup3 . 179)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
360 (acute . 180)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
361 (micro . 181)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
362 (para . 182)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
363 (middot . 183)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
364 (cedil . 184)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
365 (sup1 . 185)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
366 (ordm . 186)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
367 (raquo . 187)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
368 (frac14 . 188)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
369 (frac12 . 189)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
370 (frac34 . 190)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
371 (iquest . 191)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
372 (Agrave . 192)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
373 (Aacute . 193)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
374 (Acirc . 194)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
375 (Atilde . 195)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
376 (Auml . 196)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
377 (Aring . 197)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
378 (AElig . 198)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
379 (Ccedil . 199)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
380 (Egrave . 200)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
381 (Eacute . 201)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
382 (Ecirc . 202)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
383 (Euml . 203)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
384 (Igrave . 204)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
385 (Iacute . 205)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
386 (Icirc . 206)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
387 (Iuml . 207)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
388 (ETH . 208)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
389 (Ntilde . 209)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
390 (Ograve . 210)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
391 (Oacute . 211)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
392 (Ocirc . 212)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
393 (Otilde . 213)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
394 (Ouml . 214)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
395 (times . 215)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
396 (Oslash . 216)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
397 (Ugrave . 217)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
398 (Uacute . 218)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
399 (Ucirc . 219)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
400 (Uuml . 220)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
401 (Yacute . 221)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
402 (THORN . 222)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
403 (szlig . 223)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
404 (agrave . 224)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
405 (aacute . 225)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
406 (acirc . 226)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
407 (atilde . 227)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
408 (auml . 228)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
409 (aring . 229)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
410 (aelig . 230)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
411 (ccedil . 231)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
412 (egrave . 232)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
413 (eacute . 233)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
414 (ecirc . 234)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
415 (euml . 235)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
416 (igrave . 236)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
417 (iacute . 237)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
418 (icirc . 238)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
419 (iuml . 239)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
420 (eth . 240)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
421 (ntilde . 241)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
422 (ograve . 242)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
423 (oacute . 243)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
424 (ocirc . 244)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
425 (otilde . 245)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
426 (ouml . 246)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
427 (divide . 247)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
428 (oslash . 248)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
429 (ugrave . 249)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
430 (uacute . 250)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
431 (ucirc . 251)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
432 (uuml . 252)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
433 (yacute . 253)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
434 (thorn . 254)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
435 (yuml . 255)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
436
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
437 ;; Special handling of these
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
438 (frac56 . "5/6")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
439 (frac16 . "1/6")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
440 (frac45 . "4/5")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
441 (frac35 . "3/5")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
442 (frac25 . "2/5")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
443 (frac15 . "1/5")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
444 (frac23 . "2/3")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
445 (frac13 . "1/3")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
446 (frac78 . "7/8")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
447 (frac58 . "5/8")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
448 (frac38 . "3/8")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
449 (frac18 . "1/8")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
450
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
451 ;; The following 5 entities are not mentioned in the HTML 2.0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
452 ;; standard, nor in any other HTML proposed standard of which I
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
453 ;; am aware. I am not even sure they are ISO entity names. ***
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
454 ;; Hence, some arrangement should be made to give a bad HTML
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
455 ;; message when they are seen.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
456 (ndash . 45)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
457 (mdash . 45)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
458 (emsp . 32)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
459 (ensp . 32)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
460 (sim . 126)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
461 (le . "<=")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
462 (agr . "alpha")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
463 (rdquo . "''")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
464 (ldquo . "``")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
465 (trade . "(TM)")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
466 ;; To be done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
467 ;; (shy . ????) ; soft hyphen
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
468 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
469 "*An assoc list of entity names and how to actually display them.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
470
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
471 (defvar w3-graphic-entities
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
472 '(
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
473 (archive "archive" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
474 (audio "audio" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
475 (binary.document "binary.document" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
476 (binhex.document "binhex.document" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
477 (calculator "calculator" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
478 (caution "caution" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
479 (cd.i "cd.i" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
480 (cd.rom "cd.rom" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
481 (clock "clock" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
482 (compressed.document "compressed.document" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
483 (disk.drive "disk.drive" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
484 (diskette "diskette" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
485 (document "document" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
486 (fax "fax" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
487 (filing.cabinet "filing.cabinet" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
488 (film "film" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
489 (fixed.disk "fixed.disk" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
490 (folder "folder" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
491 (form "form" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
492 (ftp "ftp" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
493 (glossary "glossary" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
494 (gopher "gopher" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
495 (home "home" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
496 (html "html" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
497 (image "image" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
498 (index "index" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
499 (keyboard "keyboard" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
500 (mail "mail" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
501 (mail.in "mail.in" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
502 (mail.out "mail.out" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
503 (map "map" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
504 (mouse "mouse" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
505 (new "new" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
506 (next "next" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
507 (notebook "notebook" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
508 (parent "parent" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
509 (play.fast.forward "play.fast.forward" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
510 (play.fast.reverse "play.fast.reverse" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
511 (play.pause "play.pause" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
512 (play.start "play.start" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
513 (play.stop "play.stop" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
514 (previous "previous" )
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
515 (prince "prince" "the artist formerly known as prince")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
516 (princesymbol "prince" "the artist formerly known as prince")
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
517 (printer "printer" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
518 (sadsmiley "sadsmiley" ":(")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
519 (smiley "smiley" ":)")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
520 (stop "stop" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
521 (summary "summary" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
522 (telephone "telephone" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
523 (telnet "telnet" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
524 (text.document "text.document" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
525 (tn3270 "tn3270" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
526 (toc "toc" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
527 (trash "trash" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
528 (unknown.document "unknown.document" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
529 (uuencoded.document "uuencoded.document" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
530 (work "work" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
531 (www "www" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
532 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
533 "List of graphical entity names and the tail end of a URL for them.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
534 If there is a 3rd item in the list, it is the alternative text to use
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
535 for the image.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
536
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
537 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
538 ;;; Menu definitions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
539 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
540 (defvar w3-popup-menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
541 '("Emacs-W3 Commands"
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
542 ["Back" w3-history-backward (car (w3-history-find-url-internal (url-view-url t)))]
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
543 ["Forward" w3-history-forward (cdr (w3-history-find-url-internal (url-view-url t)))]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
544 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
545 "The shorter popup menu.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
546
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
547 (defvar w3-graphlink-menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
548 '(("Open this Image (%s)" . w3-fetch)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
549 ("Save this Image As..." . w3-download-url)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
550 ("Copy this Image Location" . w3-save-url)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
551 ("Information on this Image". w3-popup-image-info))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
552 "An assoc list of function names and labels. These will be displayed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
553 in a popup menu when the mouse is pressed on a hyperlink. Format is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
554 ( (label . function)), function is called with one argument, the URL of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
555 the link. Each label can have exactly one `%s' that will be replaced by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
556 the URL of the link.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
557
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
558 (defvar w3-hyperlink-menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
559 '(("Open this Link (%s)" . w3-fetch)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
560 ("Add Bookmark for this Link" . w3-hotlist-add-document)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
561 ("New Window with this Link" . w3-fetch-other-frame)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
562 ("Save Link As..." . w3-download-url)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
563 ("Copy this Link Location to Clipboard" . w3-save-url)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
564 ("Information on this Link" . w3-popup-info))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
565 "An assoc list of function names and labels. These will be displayed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
566 in a popup menu when the mouse is pressed on a hyperlink. Format is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
567 ( (label . function)), function is called with one argument, the URL of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
568 the link. Each label can have exactly one `%s' that will be replaced by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
569 the URL of the link.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
570
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
571 (defvar w3-documentation-root "http://www.cs.indiana.edu/elisp/w3/docs/"
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
572 "*Where the w3 documentation lives. This MUST end in a slash.")
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
573
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
574 (defvar w3-defined-link-types
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
575 ;; This is the HTML3.0 list (downcased) plus "made".
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
576 '("previous" "next" "up" "down" "home" "toc" "index" "glossary"
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
577 "copyright" "bookmark" "help" "made")
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
578 "A list of the (lower-case) names which have special significance
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
579 as the values of REL or REV attributes of <link> elements. They will
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
580 be presented on the toolbar or the links menu, for instance.")
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
581
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
582 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
583 ;;; Variables internal to W3, you should not change any of these
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
584 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
585 (defvar w3-form-radio-elements nil "Internal variable - do not touch!")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
586 (defvar w3-form-elements nil "Internal variable - do not touch!")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
587
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
588 (defvar w3-user-stylesheet nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
589 "The global stylesheet for this user.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
590
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
591 (defvar w3-current-stylesheet nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
592 "The stylesheet for this document.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
593
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
594 (defvar w3-base-alist nil
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
595 "An assoc list of named BASE tags in the current document.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
596
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
597 (defvar w3-blinking-buffs nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
598 "A list of buffers with blinking text in them.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
599 This is used to optimize when we change a face so the entire display
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
600 doesn't flash every second, whether we've run into a buffer that is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
601 displaying blinking text or not.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
602
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
603 (defvar w3-last-fill-pos nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
604 "An internal variable for the new display engine that specifies the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
605 last character position that was correctly filled.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
606
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
607 (defvar w3-last-tag nil
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
608 "An internal variable for the new display engine that specifies the
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
609 last tag processed.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
610
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
611 (defvar w3-active-faces nil "The list of active faces.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
612 (defvar w3-active-voices nil "The list of active voices.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
613
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
614 (defvar w3-netscape-variable-mappings
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
615 '(("PRINT_COLOR" . ps-print-color-p)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
616 ("SOCKS_HOST" . url-socks-host)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
617 ("ORGANIZATION" . url-user-organization)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
618 ("EMAIL_ADDRESS" . url-personal-mail-address)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
619 ("REAL_NAME" . url-user-real-name)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
620 ("NEWSGROUP_DESCRIPTIONS" . url-show-newsgroup-descriptions)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
621 ("NNTPSERVER" . url-news-server)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
622 ("AUTOLOAD_IMAGES" . w3-delay-image-loads)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
623 ("HOME_DOCUMENT" . w3-default-homepage)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
624 ("UNDERLINE_LINKS" . w3-underline-links)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
625 ("TMPDIR" . url-temporary-directory))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
626 "A mapping from netscape configuration file options to w3 variables.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
627
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
628 (defvar w3-acceptable-protocols-alist
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
629 '(("Gopher" . "gopher")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
630 ("TN3270 (IBM Mainframe emulation)" . "tn3270")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
631 ("Interactive Telnet Session" . "telnet")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
632 ("Local file or file over ftp" . "file")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
633 ("File on an http server" . "http")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
634 ("Usenet newsgroup/article" . "news")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
635 ("Mail session" . "mailto"))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
636 "An assoc list of descriptive labels and the corresponding URL stub.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
637
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
638 (defconst w3-bug-address "wmperry@cs.indiana.edu"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
639 "Address of current maintainer, where to send bug reports.")
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
640 (defvar w3-continuation '(url-uncompress url-clean-text)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
641 "List of functions to call to process a document completely.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
642 (defvar w3-current-isindex nil "Is the current document a searchable index?")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
643 (defvar w3-current-last-buffer nil "Last W3 buffer seen before this one.")
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
644 (defvar w3-current-links nil "An assoc list of <link> tags for this doc.")
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
645 (defvar w3-current-metainfo nil "An assoc list of <meta> tags for this doc.")
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
646 (defvar w3-current-source nil "Source of current document.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
647 (defvar w3-current-parse nil "Parsed version of current document.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
648 (defconst w3-default-continuation '(url-uncompress url-clean-text)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
649 "Default action to start with - cleans text and uncompresses if necessary.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
650 (defvar w3-find-this-link nil "Link to go to within a document.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
651 (defvar w3-hidden-forms nil "List of hidden form areas and their info.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
652 (defvar w3-hotlist nil "Default hotlist.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
653 (defvar w3-icon-path-cache nil "Cache of where we found icons for entities.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
654 (defvar w3-last-buffer nil "The last W3 buffer visited.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
655 (defvar w3-print-next nil "Should we latex & print the next doc?")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
656 (defvar w3-roman-characters "ivxLCDMVX" "Roman numerals.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
657 (defvar w3-setup-done nil "Have we been through setup code yet?")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
658 (defvar w3-source nil "Should we source the next document or not?")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
659
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
660 (defvar w3-strict-width nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
661 "*This variable will control how wide emacs thinks the current window is.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
662 This is useful when working in batch mode, and (window-width) returns the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
663 wrong value. If the value is nil, it will use the value (window-width)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
664 returns.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
665
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
666 (defvar w3-submit-button nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
667 "A widget object specifying what button was pressed to submit a form.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
668
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
669 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
670 ;;; buffer-local variables to keep around when going into w3-mode
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
671 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
672 (defvar w3-id-positions nil "Internal use only.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
673 (defvar w3-imagemaps nil "Internal use only.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
674
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
675 (defvar w3-persistent-variables
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
676 '(
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
677 ;; So we can show the URL in the list-buffers listing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
678 list-buffers-directory
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
679 ;; So widgets don't get lost
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
680 widget-field-new
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
681 w3-form-radio-elements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
682 w3-form-elements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
683 url-current-callback-func
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
684 url-current-content-length
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
685 url-current-file
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
686 url-current-mime-encoding
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
687 url-current-mime-headers
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
688 url-current-mime-type
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
689 url-current-mime-viewer
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
690 url-current-port
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
691 url-current-referer
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
692 url-current-server
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
693 url-current-type
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
694 url-current-user
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
695 w3-current-parse
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
696 w3-current-isindex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
697 w3-current-last-buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
698 w3-current-links
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
699 w3-current-metainfo
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
700 w3-current-source
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
701 w3-delayed-images
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
702 w3-hidden-forms
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
703 w3-current-stylesheet
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
704 w3-form-labels
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
705 w3-id-positions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
706 w3-imagemaps
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
707 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
708 "A list of variables that should be preserved when entering w3-mode.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
709
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
710 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
711 ;;; Emulation stuff
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
712 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
713 (defvar w3-netscape-emulation-minor-mode nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
714 "Whether we are in the netscape emulation minor mode.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
715 (defvar w3-netscape-emulation-minor-mode-map (make-sparse-keymap)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
716 "Keymap for netscape emulation.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
717 (defvar w3-lynx-emulation-minor-mode nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
718 "Whether we are in the lynx emulation minor mode.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
719 (defvar w3-lynx-emulation-minor-mode-map (make-sparse-keymap)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
720 "Keymap for lynx emulation.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
721 (defvar w3-last-search-item nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
722
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
723 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
724 ;;; Startup items
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
725 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
726 (defvar w3-form-labels nil "")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
727 (mapcar (function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
728 (lambda (var)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
729 (if (boundp var)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
730 (make-variable-buffer-local var)))) w3-persistent-variables)
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
731
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
732 (make-variable-buffer-local 'w3-base-alist)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
733 (make-variable-buffer-local 'w3-last-tag)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
734 (make-variable-buffer-local 'w3-last-fill-pos)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
735 (make-variable-buffer-local 'w3-active-faces)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
736 (make-variable-buffer-local 'w3-netscape-emulation-minor-mode)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
737 (make-variable-buffer-local 'w3-lynx-emulation-minor-mode)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
738 (make-variable-buffer-local 'w3-last-search-item)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
739
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
740
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
741 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
742 ;;; Keymap definitions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
743 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
744 (defvar w3-mode-map (make-keymap) "Keymap to use in w3-mode.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
745 (suppress-keymap w3-mode-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
746
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
747 (define-key w3-mode-map "h" (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
748 (define-key w3-mode-map "H" (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
749 (define-key w3-mode-map "a" (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
750
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
751 (define-key w3-mode-map "ha" 'w3-hotlist-apropos)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
752 (define-key w3-mode-map "hd" 'w3-hotlist-delete)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
753 (define-key w3-mode-map "hi" 'w3-hotlist-add-document)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
754 (define-key w3-mode-map "hv" 'w3-show-hotlist)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
755 (define-key w3-mode-map "hr" 'w3-hotlist-rename-entry)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
756 (define-key w3-mode-map "hu" 'w3-use-hotlist)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
757 (define-key w3-mode-map "hA" 'w3-hotlist-append)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
758 (define-key w3-mode-map "hI" 'w3-hotlist-add-document-at-point)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
759 (define-key w3-mode-map "hR" 'w3-hotlist-refresh)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
760
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
761 (define-key w3-mode-map "HF" 'w3-history-forward)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
762 (define-key w3-mode-map "HB" 'w3-history-backward)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
763 (define-key w3-mode-map "Hv" 'w3-show-history-list)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
764
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
765 (define-key w3-mode-map " " 'w3-scroll-up)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
766 (define-key w3-mode-map "<" 'beginning-of-buffer)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
767 (define-key w3-mode-map ">" 'end-of-buffer)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
768 (define-key w3-mode-map "?" 'w3-help)
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
769 (define-key w3-mode-map "B" 'w3-history-backward)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
770 (define-key w3-mode-map "F" 'w3-history-forward)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
771 (define-key w3-mode-map "G" 'w3-show-graphics)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
772 (define-key w3-mode-map "I" 'w3-popup-info)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
773 (define-key w3-mode-map "K" 'w3-save-this-url)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
774 (define-key w3-mode-map "P" 'w3-print-url-under-point)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
775 (define-key w3-mode-map "Q" 'w3-leave-buffer)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
776 (define-key w3-mode-map "R" 'w3-refresh-buffer)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
777 (define-key w3-mode-map "S" 'w3-source-document-at-point)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
778 (define-key w3-mode-map "U" 'w3-use-links)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
779 (define-key w3-mode-map "V" 'w3-view-this-url)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
780 (define-key w3-mode-map "\C-?" 'scroll-down)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
781 (define-key w3-mode-map "\C-c\C-b" 'w3-show-history-list)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
782 (define-key w3-mode-map "\C-c\C-v" 'w3-version)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
783 (define-key w3-mode-map "\C-o" 'w3-fetch)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
784 (define-key w3-mode-map "\M-M" 'w3-mail-document-under-point)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
785 (define-key w3-mode-map "\M-m" 'w3-mail-current-document)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
786 (define-key w3-mode-map "\M-s" 'w3-search)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
787 (define-key w3-mode-map "\M-\r" 'w3-follow-inlined-image)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
788 (define-key w3-mode-map "\r" 'w3-widget-button-press)
82
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
789 (define-key w3-mode-map "\n" 'w3-widget-button-press)
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
790 (define-key w3-mode-map "b" 'w3-widget-backward)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
791 (define-key w3-mode-map "c" 'w3-mail-document-author)
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
792 (define-key w3-mode-map "f" 'w3-widget-forward)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
793 (define-key w3-mode-map "g" 'w3-reload-document)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
794 (define-key w3-mode-map "i" 'w3-document-information)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
795 (define-key w3-mode-map "k" 'w3-save-url)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
796 (define-key w3-mode-map "l" 'w3-goto-last-buffer)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
797 (define-key w3-mode-map "m" 'w3-complete-link)
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
798 (define-key w3-mode-map "n" 'w3-widget-forward)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
799 (define-key w3-mode-map "o" 'w3-open-local)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
800 (define-key w3-mode-map "p" 'w3-print-this-url)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
801 (define-key w3-mode-map "q" 'w3-quit)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
802 (define-key w3-mode-map "r" 'w3-reload-document)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
803 (define-key w3-mode-map "s" 'w3-source-document)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
804 (define-key w3-mode-map "u" 'w3-leave-buffer)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
805 (define-key w3-mode-map "v" 'url-view-url)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
806 (define-key w3-mode-map "w" 'w3-submit-bug)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
807
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
808 ;; Emulate some netscape stuff by default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
809 (define-key w3-mode-map [(control alt t)] 'url-list-processes)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
810 (define-key w3-mode-map [(control meta t)] 'url-list-processes)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
811
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
812 ;; Widget navigation
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
813 (define-key w3-mode-map [tab] 'w3-widget-forward)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
814 (define-key w3-mode-map "\M-\t" 'w3-widget-backward)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
815 (define-key w3-mode-map [backtab] 'w3-widget-backward)
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
816 (define-key w3-mode-map [(shift tab)] 'w3-widget-backward)
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 88
diff changeset
817 (define-key w3-mode-map [(meta tab)] 'w3-widget-backward)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
818
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
819 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
820 ;;; Keyword definitions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
821 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
822 (require 'w3-keyword)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
823 (provide 'w3-vars)