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