annotate lisp/w3/w3-vars.el @ 0:376386a54a3c r19-14

Import from CVS: tag r19-14
author cvs
date Mon, 13 Aug 2007 08:45:50 +0200
parents
children ac2d302a0011
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 ;; Created: 1996/06/06 14:20:01
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 ;; Version: 1.219
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 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 ;;; Copyright (c) 1993, 1994, 1995 by William M. Perry (wmperry@spry.com)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 ;;; This file is not part of GNU Emacs, but the same permissions apply.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ;;; GNU Emacs is free software; you can redistribute it and/or modify
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 ;;; it under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 ;;; the Free Software Foundation; either version 2, or (at your option)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 ;;; any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 ;;; GNU Emacs is distributed in the hope that it will be useful,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 ;;; GNU General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 ;;; You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 ;;; along with GNU Emacs; see the file COPYING. If not, write to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 ;;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 ;;; Variable definitions for w3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 (defconst w3-version-number
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 (let ((x "p2-3-67"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 (if (string-match "State:[ \t\n]+.\\([^ \t\n]+\\)" x)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 (setq x (substring x (match-beginning 1) (match-end 1)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 (setq x (substring x 1)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 (mapconcat
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 (function (lambda (x) (if (= x ?-) "." (char-to-string x)))) x ""))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 "Version # of w3-mode.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 (defconst w3-version-date (let ((x "1996/06/06 14:20:01"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 (if (string-match "Date: \\([^ \t\n]+\\)" x)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 (substring x (match-beginning 1) (match-end 1))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 x))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 "Date this version of w3-mode was released.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 (defconst w3-version
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 (format "WWW %s %s" w3-version-number w3-version-date)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 "More descriptive version of w3-version-number.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 ;;; General configuration variables
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 (defvar w3-annotation-mode 'html-mode
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 "*A symbol specifying the major mode to enter when doing annotations.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 (defvar w3-annotation-position 'bottom
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 "*A symbol specifying where personal annotations should appear in a buffer.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 Can be one of the symbols 'top or 'bottom. If the symbol is eq to 'top, then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 the annotations will appear at the top of the buffer. If 'bottom, will appear
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 at the end of the buffer.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 (defvar w3-auto-image-alt t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 "*Whether emacs-w3 should create an alt attribute for an image that
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 is missing it.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 If nil, emacs-w3 will not automatically create an ALT attribute.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 If t, the alt attribute will be [IMAGE(nameofimage)]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 If a string, it should be a string suitable for running through format,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 with only one %s, which will be replaced with just the filename of the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 graphic that is not loaded.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 (defvar w3-configuration-directory "~/.w3/"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 "*Where emacs-w3 can find its configuration files")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 (defvar w3-debug-html nil "*Whether to gripe about bad HTML or not.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 (defvar w3-debug-buffer "*HTML Debug*"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 "*Name of buffer to store debugging information in.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 (defvar w3-default-configuration-file nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 "*Where per-user customizations of w3 are kept.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 (defvar w3-default-action 'w3-prepare-buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 "*A lisp symbol specifying what action to take for files with
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 extensions that are not mapped to a MIME type in `mm-mime-extensions'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 This is useful in case you ever run across files with weird extensions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 \(.foo, .README, .READMEFIRST, etc). This should not be required
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 anymore.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 Possible values: any lisp symbol. Should be a function that takes no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 arguments. The return value does not matter, it is ignored. Some examples
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 are:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 Action Value
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 ----------------------------------------------
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 Parse as HTML 'w3-prepare-buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 View as text 'indented-text-mode")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 (defvar w3-default-homepage nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 "*The url to open at startup. It can be any valid URL. This will
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 default to the environment variable WWW_HOME if you do not set it in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 your .emacs file. If WWW_HOME is undefined, then it will default to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 the hypertext documentation for W3 at Indiana University.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 (defvar w3-default-stylesheet nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 "*The filename of the users default stylesheet.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 (defvar w3-do-blinking nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 "*Whether emacs-w3 should display blinking text.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 (defvar w3-do-incremental-display nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 "*Whether to do incremental display of pages or not.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 (defvar w3-documents-menu-file nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 "*Where the Mosaic documents-menu file is located. This is a file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 that has extra menus for the 'Navigate' menu. This should be in the same
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 format as the Mosaic extra documents.menu.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 (defvar w3-dump-to-disk nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 "*If non-nil, all W3 pages loaded will be dumped to disk.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 (defvar w3-echo-link 'url
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 "Whether to display the URL of a link when tabbing through links.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 Possible values are:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 url == show the url of the target in the minibuffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 text == show the text of the link in the minibuffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 nil == show nothing")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 (defvar w3-horizontal-rule-char ?-
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 "*The character to use to create a horizontal rule.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 Must be the character's code, not a string. This character is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 replicated across the screen to create a division.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 (defvar w3-hotlist-file nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 "*Hotlist filename.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 This should be the name of a file that is stored in either
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 NCSA's Mosaic/X or Netscape/X format. It is used to keep a listing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 of commonly accessed URL's without having to go through 20 levels of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 menus to get to them.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 (defvar w3-html2latex-args "-s -"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 "*Args to pass `w3-html2latex-prog'. This should send the LaTeX source
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 to standard output.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 (defvar w3-html2latex-prog "html2latex"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 "*Program to convert html to latex.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 (defvar w3-icon-directory "http://cs.indiana.edu/elisp/w3/icons/"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 "*Where to find standard icons. Must end in a /!")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 (defvar w3-icon-format 'xbm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 "*What file extension icons end in. This is a symbol, string, or nil.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 If nil, then no file extension is used.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 (defvar w3-indent-level 4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 "*Default # of spaces to indent instead of using TABs. This is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 necessary to preserve tabs in PRE segments yet still get smaller
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 indentation for lists, etc.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 (defvar w3-keep-old-buffers t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 "*Whether to keep old buffers around when following links.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 (defvar w3-latex-docstyle "{article}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 "*The documentstyle to use when printing/mailing converted HTML
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 files in LaTeX. Good defaults are:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 {article}, [psfig,twocolumn]{article}, etc.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 (defvar w3-link-info-display-function nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 "*A function to call to get extra information about a link and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 include it in a buffer. Will be placed after the link and any other
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 delimiters.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 (defvar w3-mail-command 'mail
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 "*This function will be called whenever w3 needs to send mail. It should
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 enter a mail-mode-like buffer in the current window.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 `w3-mail-other-window-command' will be used if w3-mutable-windows is t.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 The commands `mail-to' and `mail-subject' should still work in this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 buffer, and it should use mail-header-separator if possible.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 (defvar w3-mail-other-window-command 'mail-other-window
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 "*This function will be called whenever w3 needs to send mail in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 another window. It should enter a mail-mode-like buffer in a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 different window. The commands `mail-to' and `mail-subject' should still
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 work in this buffer, and it should use mail-header-separator if
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184 possible.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 (defvar w3-max-inlined-image-size nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 "*The maximum byte size of a file to transfer as an inlined image.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 If an image is being retrieved and exceeds this size, then it will be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 cancelled. This works best on HTTP/1.0 servers that send a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 Content-length header, otherwise the image is retrieved up until the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 max number of bytes is retrieved, then killed.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 (defvar w3-max-menu-length 35
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 "*The maximum length of a pulldown menu before it will be split into
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 smaller chunks, with the first part as a submenu, followed by the rest
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196 of the menu.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 (defvar w3-max-menu-width 40 "*The maximum width of a pulldown menu choice.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 (defvar w3-modeline-format
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 '(" " ("W3"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 (w3-netscape-emulation-minor-mode
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 " (NS)")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 (w3-lynx-emulation-minor-mode
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205 " (Lynx)")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 ": "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207 (40 (-40 "%b"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 " "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 (w3-current-isindex "[Searchable] ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 "%p" " " global-mode-string))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211 "*The modeline format string when in w3 mode")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213 (defvar w3-mule-attribute 'underline
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 "*How to highlight items in Mule (Multi-Linugual Emacs).")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 (defvar w3-mutable-windows nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 "*Controls how new WWW documents are displayed. If this is set to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218 non-nil and pop-up-windows is non-nil, then new buffers will be shown
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219 in another window. If either is nil, then it will replace the document
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220 in the current window.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
221
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222 (defvar w3-netscape-configuration-file nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223 "*A Netscape-for-X style configuration file. This file will only be read if
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
224 and only if `w3-use-netscape-configuration-file' is non-nil.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226 (defvar w3-netscape-compatible-comments t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 "*Whether to honor netscape-style <! > comments.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228 Ye gods I wish I could turn this off by default.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 (defvar w3-notify 'semibully
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231 "*Selects the behavior when w3 page is ready.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232 This variable may have one of the following values:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 newframe -- put the w3 page in its own frame
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 bully -- make the w3 page the current buffer and only window
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 semibully -- make the w3 page the current buffer in the same window
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237 aggressive -- make the w3 page the current buffer in the other window
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 friendly -- display w3page in other window but don't make current
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239 polite -- don't display w3 page, but prints message when ready (beeps)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 quiet -- like `polite', but don't beep
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241 meek -- make no indication that page is ready
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243 Any other value of `w3-notify' is equivalent to `meek'.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245 (defvar w3-personal-annotation-directory nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246 "*Directory where w3 looks for personal annotations.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
247 This is a directory that should hold the personal annotations stored in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 a Mosaic-compatible format.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250 (defvar w3-ppmtoxbm-command "ppmtopgm | pgmtopbm | pbmtoxbm"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251 "*The command used to convert from the portable-pixmap graphics format
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
252 to an x bitmap. This will only ever be used if XEmacs doesn't have support
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253 for XPM.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255 (defvar w3-ppmtoxpm-command "ppmtoxpm"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256 "*The command used to convert from the portable-pixmap graphics format
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257 to XPM. The XPM _MUST_ be in version 3 format.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
258
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259 (defvar w3-print-command "lpr -h -d"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
260 "*Print command for dvi files.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
261 This is usually lpr -h -d to send it to a postscript printer, but you can set
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262 it up so that it is any command that takes a dvi file as its last argument.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
263
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
264 (defvar w3-reuse-buffers 'reuse
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
265 "What to do when following a link will re-fetch a document that has
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
266 already been fetched into a W3 buffer. Possible values are: nil,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
267 'yes, and 'no. Nil means ask the user if we should reuse the buffer.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
268 A value of 'yes means assume the user wants us to reuse the buffer.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
269 A value of 'no means assume the user wants us to re-fetch the document.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
270
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
271 This will also accept:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
272 'no 'never 'reload ==> always reload
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
273 'yes 'reuse 'always ==> always reuse
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
274 'ask nil ==> always ask")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
275
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
276 (defvar w3-right-border 2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
277 "*Amount of space to leave on right margin of WWW buffers.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
278 This amount is subtracted from (window-width) for each new WWW buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
279 and used as the new fill-column.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
280
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
281 (defvar w3-maximum-line-length nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
282 "*Maximum length of a line. If nil, then lines can extend all the way to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
283 the window margin. If a number, the smaller of this and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
284 (- (window-width) w3-right-border) is used.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
285
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
286 (defvar w3-right-justify-address t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
287 "*Whether to make address fields right justified, like Arena.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
288
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
289 (defvar w3-show-headers nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
290 "*This is a list of regexps that match HTTP/1.0 headers to show at
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
291 the end of a buffer. All the headers being matched against will be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
292 in lowercase. All matching headers will be inserted at the end of the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
293 buffer in a <UL> list.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
294
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
295 (defvar w3-show-status t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
296 "*Whether to show a running total of bytes transferred. Can cause a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
297 large hit if using a remote X display over a slow link, or a terminal
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
298 with a slow modem.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
299
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
300 (defvar w3-starting-documents
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
301 '(("Internet Starting Points" "http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/StartingPoints/NetworkStartingPoints.html")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
302 ("Internet Resources Meta-index" "http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/MetaIndex.html")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
303 ("NCSA's What's New" "http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/Docs/whats-new.html"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
304 "*An assoc list of titles and URLs for quick access. These are just
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
305 defaults so that new users have somewhere to go.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
306
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
307 (defvar w3-temporary-directory "/tmp" "*Where temporary files go.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
308
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
309 (defvar w3-track-last-buffer nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
310 "*Whether to track the last w3 buffer to automatically switch to with
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
311 M-x w3.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
312
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
313 (defvar w3-track-mouse t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
314 "*Whether to track the mouse and message the url under the mouse.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
315
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
316 (defvar w3-use-forms-index t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
317 "*Non-nil means translate <ISINDEX> tags into a hypertext form.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
318 A single text entry box will be drawn where the ISINDEX tag appears.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
319 If t, the isindex handling will be the same as Mosaic for X.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
320
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
321 (defvar w3-use-html2latex nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
322 "*This controls how HTML is converted into LaTeX for printing or mailing.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
323 If nil, the w3-convert-html-to-latex function is used instead of the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
324 html2latex in a subprocess. The lisp function gives slightly better
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
325 formatting in my biased opinion.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
326
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
327 (defvar w3-use-netscape-configuration-file nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
328 "*Whether to use a netscape configuration file to determine things like
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
329 home pages, link colors, etc. If non-nil, then `w3-netscape-configuration-file'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
330 is read in at startup.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
331
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
332 (defvar w3-honor-stylesheets t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
333 "*Whether to let a document specify a CSS stylesheet.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
334
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
335 (defvar w3-user-colors-take-precedence nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
336 "*Whether to let a document define certain colors about itself.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
337 Like foreground and background colors and pixmaps, color of links and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
338 visited links, etc.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
339
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
340 (defvar w3-gc-cons-threshold-multiplier 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
341 "Amount to temporarily multiply gc-cons-threshold by when parsing HTML.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
342 Setting this to a number greater than 1 will result in less frequent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
343 garbage collections when parsing an HTML document, which may often speed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
344 up handling of a large document with many elements. The disadvantage is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
345 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
346 in later garbage collections taking more time.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
347
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
348 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
349 ;;; Hook Variables
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
350 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
351 (defvar w3-load-hook nil "*Hooks to be run after loading w3.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
352 (defvar w3-mode-hook nil "*Hooks to be run after entering w3-mode.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
353 (defvar w3-file-prepare-hook nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
354 "*Hooks to be run before preparing a buffer.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
355 (defvar w3-file-done-hook nil "*Hooks to be run after preparing a buffer.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
356 (defvar w3-source-file-hook nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
357 "*Hooks to be run after getting document source.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
358
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
359 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
360 ;;; Figure out what flavor of emacs we are running
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
361 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
362 (defvar w3-running-xemacs (string-match "XEmacs\\|Lucid" emacs-version)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
363 "*In XEmacs or Lucid Emacs?.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
364
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
365 (defvar w3-running-FSF19 (and (string-match "^19" emacs-version)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
366 (not w3-running-xemacs))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
367 "*In FSF v19 emacs?")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
368
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
369 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
370 ;;; Link delimiting
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
371 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
372 (defvar w3-delimit-emphasis 'guess
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
373 "*Whether to use characters at the start and end of each bold/italic
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
374 region. Obsolete variable (almost) - all this should be specified by the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
375 default stylesheet.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
376
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
377 (defvar w3-link-start-delimiter '("[[" . "{{")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
378 "*Put this at front of link if w3-delimit-links is t.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
379
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
380 (defvar w3-link-end-delimiter '("]]" . "}}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
381 "*Put this at end of link if w3-delimit-links is t.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
382
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
383 (defvar w3-delimit-links 'guess
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
384 "*Put brackets around links? If this variable is eq to 'linkname, then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
385 it will put the link # in brackets after the link text. If it is nil, then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
386 it will not put anything. If it is non-nil and not eq to 'linkname, then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
387 it will put [[ & ]] around the entire text of the link. Is initially set
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
388 to be t iff in normal emacs. Nil if in XEmacs or lucid emacs, since links
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
389 should be in different colors/fonts.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
390
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
391 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
392 ;;; embedded document variables
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
393 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
394 (defvar w3-mpeg-size 150 "*The height and width of an mpeg window.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
395 (defvar w3-mpeg-args '("-loop") "*Arguments to mpeg_play.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
396 (defvar w3-mpeg-program "mpeg_play" "*The mpeg_play executable.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
397 (defvar w3-delayed-movies nil "A list of mpeg movies for this buffer.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
398
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
399 (defvar w3-embedded-data-converters
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
400 '(("application/eqn" . w3-embed-eqn)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
401 ("application/postscript" . w3-embed-postscript)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
402 ("text/plain". w3-embed-text)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
403 ("text/html" . w3-embed-text)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
404 ("image/.*" . w3-embed-image))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
405 "An assoc list of regular expressions to match against MIME content-types
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
406 for embedded data in HTML documents. The cdr is a function to be passed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
407 to 'funcall', with the embedded data and content-type as the sole arguments
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
408 passed to the function.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
409
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
410 (if w3-running-xemacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
411 (progn
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
412 (condition-case ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
413 (require 'annotations)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
414 (error nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
415 (setq w3-embedded-data-converters
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
416 (cons (cons "video/mpeg" 'w3-embed-mpeg)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
417 w3-embedded-data-converters))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
418
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
419 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
420 ;;; Graphics parsing stuff
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
421 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
422 (defvar w3-graphics-always-show-entities t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
423 "*Set to t to always show graphic entities, regardless of the value of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
424 w3-delay-image-loads. Useful if you keep the entities locally and aren't
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
425 worried about the transfer time on something that small.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
426
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
427 (defvar w3-graphics-list nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
428 "*List of graphics already read in.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
429
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
430 (defvar w3-delay-image-loads nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
431 "*Delay loading images for w3 or not?")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
432
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
433 (defvar w3-delayed-images nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
434 "*A buffer-local variable holding positions and urls of images within
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
435 the buffer.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
436
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
437 (defvar w3-delay-mpeg-loads t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
438 "*Whether to delay loading mpegs or not.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
439
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
440 (defvar w3-image-mappings
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
441 '(
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
442 ("image/x-xbitmap" . xbm)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
443 ("image/xbitmap" . xbm)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
444 ("image/xbm" . xbm)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
445 ("image/jpeg" . jpeg)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
446 ("image/gif" . gif)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
447 ("image/png" . png)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
448 ("image/x-fax" . g3fax)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
449 ("image/x-raster" . rast)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
450 ("image/windowdump" . xwd)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
451 ("image/x-icon" . icon)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
452 ("image/portable-graymap" . pgm)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
453 ("image/portable-pixmap" . ppm)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
454 ("image/x-pixmap" . xpm)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
455 ("image/x-xpixmap" . xpm)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
456 ("image/pict" . pict)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
457 ("image/x-rgb" . sgi)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
458 ("image/x-sgi" . sgi)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
459 ("image/x-macpaint" . macpt)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
460 ("image/x-targa" . tga)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
461 ("image/tiff" . tiff)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
462 ) "*How to map MIME types to image types for the `image' package.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
463
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
464 (defvar w3-color-use-reducing 'guess
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
465 "*Whether to use ppmquant/ppmdither to do color reducing for inlined images.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
466 If you are using a 24bit display, you should set this to nil.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
467
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
468 (defvar w3-color-max-red 4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
469 "*Max # of red cells to allocate for inlined images.")
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-color-max-green 4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
472 "*Max # of green cells to allocate for inlined images.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
473
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
474 (defvar w3-color-max-blue 4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
475 "*Max # of blue cells to allocate for inlined images.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
476
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
477 (defvar w3-color-filter 'ppmdither
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
478 "*How to do color reducing on inlined images.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
479 This should be a symbol, either ppmdither or ppmquant.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
480 This variable only has any meaning if w3-color-use-reducing is non-nil.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
481 Possible values are:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
482
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
483 ppmquant :== Use the ppmquant program to reduce colors. The product
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
484 of w3-color-max-[red|green|blue] is used as the maximum
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
485 number of colors.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
486 ppmdither :== Use the ppmdither program to reduce colors.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
487
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
488 any string :== Use this string as the filter. No interpretation of it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
489 is done at all. Example is:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
490 ppmquant -fs -map ~/pixmaps/colormap.ppm")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
491
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
492 (defvar w3-ppmdither-is-buggy t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
493 "*The ppmdither which comes with pbmplus/netpbm releases through
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
494 1mar1994 at least ignores the 'maxval' in its input. This can cause
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
495 trouble viewing black-and-white gifs. If this variable is set, a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
496 (harmless) 'pnmdepth 255' step is inserted to work around this bug.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
497 You can test your ppmdither by doing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
498 ppmmake white 100 100 | pnmdepth 1 | ppmdither | pnmdepth 255 | ppmhist
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
499 If the output has a single line like this:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
500 255 255 255 255 10000
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
501 then it's safe to set this variable to nil.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
502
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
503 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
504 ;;; How to look up styles
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
505 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
506 (defvar w3-style-tags-assoc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
507 '(
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
508 (b . ("*" . "*"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
509 (address . ("*" . "*"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
510 (byline . ("_" . "_"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
511 (cite . ("_" . "_"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
512 (cmd . ("*" . "*"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
513 (dfn . ("*" . "*"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
514 (em . ("~" . "~"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
515 (i . ("~" . "~"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
516 (q . ("\"" . "\""))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
517 (removed . ("" . ""))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
518 (s . ("" . ""))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
519 (strong . ("*" . "*"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
520 (sub . ("" . ""))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
521 (sup . ("" . ""))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
522 (u . ("_" . "_"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
523 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
524 "*An assoc list of emphasis tags and their corresponding
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
525 begin and end characters.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
526
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
527 (defvar w3-header-chars-assoc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
528 '(
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
529 (h1 . (?* ?* w3-upcase-region))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
530 (h2 . (?* ?* w3-upcase-region))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
531 (h3 . (?- ?- w3-upcase-region))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
532 (h4 . (nil ?= nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
533 (h5 . (nil ?= nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
534 (h6 . (nil ?: nil)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
535 "*An assoc list of header tags and a list of formatting instructions.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
536 This list consists of 3 items - the first item is no longer used. The
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
537 second item is the character to insert after the header. A <BR> is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
538 inserted before and after this string. And the third is a function to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
539 call on the region between the start and end of the header. This will
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
540 be called with 2 arguments, the buffer positions of the start and end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
541 of the headers.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
542
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
543 ;; Store the database of HTML general entities.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
544 (defvar w3-html-entities
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
545 '(
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
546 (excl . 33)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
547 (quot . 34)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
548 (num . 35)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
549 (dollar . 36)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
550 (percent . 37)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
551 (amp . 38)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
552 (rsquo . 39)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
553 (apos . 39)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
554 (lpar . 40)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
555 (rpar . 41)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
556 (times . 42)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
557 (ast . 42)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
558 (plus . 43)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
559 (comma . 44)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
560 (period . 46)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
561 (colon . 58)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
562 (semi . 59)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
563 (lt . 60)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
564 (equals . 61)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
565 (gt . 62)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
566 (quest . 63)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
567 (commat . 64)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
568 (lsqb . 91)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
569 (rsqb . 93)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
570 (uarr . 94)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
571 (lowbar . 95)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
572 (lsquo . 96)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
573 (lcub . 123)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
574 (verbar . 124)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
575 (rcub . 125)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
576 (tilde . 126)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
577 (nbsp . 160)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
578 (iexcl . 161)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
579 (cent . 162)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
580 (pound . 163)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
581 (curren . 164)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
582 (yen . 165)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
583 (brvbar . 166)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
584 (sect . 167)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
585 (uml . 168)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
586 (copy . 169)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
587 (ordf . 170)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
588 (laquo . 171)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
589 (not . 172)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
590 (shy . 173)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
591 (reg . 174)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
592 (macr . 175)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
593 (deg . 176)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
594 (plusmn . 177)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
595 (sup2 . 178)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
596 (sup3 . 179)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
597 (acute . 180)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
598 (micro . 181)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
599 (para . 182)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
600 (middot . 183)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
601 (cedil . 184)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
602 (sup1 . 185)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
603 (ordm . 186)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
604 (raquo . 187)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
605 (frac14 . 188)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
606 (frac12 . 189)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
607 (frac34 . 190)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
608 (iquest . 191)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
609 (Agrave . 192)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
610 (Aacute . 193)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
611 (Acirc . 194)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
612 (Atilde . 195)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
613 (Auml . 196)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
614 (Aring . 197)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
615 (AElig . 198)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
616 (Ccedil . 199)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
617 (Egrave . 200)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
618 (Eacute . 201)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
619 (Ecirc . 202)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
620 (Euml . 203)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
621 (Igrave . 204)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
622 (Iacute . 205)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
623 (Icirc . 206)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
624 (Iuml . 207)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
625 (ETH . 208)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
626 (Ntilde . 209)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
627 (Ograve . 210)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
628 (Oacute . 211)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
629 (Ocirc . 212)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
630 (Otilde . 213)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
631 (Ouml . 214)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
632 (times . 215)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
633 (Oslash . 216)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
634 (Ugrave . 217)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
635 (Uacute . 218)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
636 (Ucirc . 219)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
637 (Uuml . 220)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
638 (Yacute . 221)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
639 (THORN . 222)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
640 (szlig . 223)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
641 (agrave . 224)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
642 (aacute . 225)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
643 (acirc . 226)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
644 (atilde . 227)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
645 (auml . 228)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
646 (aring . 229)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
647 (aelig . 230)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
648 (ccedil . 231)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
649 (egrave . 232)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
650 (eacute . 233)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
651 (ecirc . 234)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
652 (euml . 235)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
653 (igrave . 236)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
654 (iacute . 237)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
655 (icirc . 238)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
656 (iuml . 239)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
657 (eth . 240)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
658 (ntilde . 241)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
659 (ograve . 242)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
660 (oacute . 243)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
661 (ocirc . 244)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
662 (otilde . 245)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
663 (ouml . 246)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
664 (divide . 247)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
665 (oslash . 248)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
666 (ugrave . 249)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
667 (uacute . 250)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
668 (ucirc . 251)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
669 (uuml . 252)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
670 (yacute . 253)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
671 (thorn . 254)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
672 (yuml . 255)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
673
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
674 ;; Special handling of these
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
675 (frac56 . "5/6")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
676 (frac16 . "1/6")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
677 (frac45 . "4/5")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
678 (frac35 . "3/5")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
679 (frac25 . "2/5")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
680 (frac15 . "1/5")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
681 (frac23 . "2/3")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
682 (frac13 . "1/3")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
683 (frac78 . "7/8")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
684 (frac58 . "5/8")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
685 (frac38 . "3/8")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
686 (frac18 . "1/8")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
687
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
688 ;; The following 5 entities are not mentioned in the HTML 2.0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
689 ;; standard, nor in any other HTML proposed standard of which I
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
690 ;; am aware. I am not even sure they are ISO entity names. ***
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
691 ;; Hence, some arrangement should be made to give a bad HTML
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
692 ;; message when they are seen.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
693 (ndash . 45)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
694 (mdash . 45)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
695 (emsp . 32)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
696 (ensp . 32)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
697 (sim . 126)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
698 (le . "<=")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
699 (agr . "alpha")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
700 (rdquo . "''")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
701 (ldquo . "``")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
702 (trade . "(TM)")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
703 ;; To be done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
704 ;; (shy . ????) ; soft hyphen
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
705 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
706 "*An assoc list of entity names and how to actually display them.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
707
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
708 (defvar w3-graphic-entities
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
709 '(
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
710 (archive "archive" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
711 (audio "audio" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
712 (binary.document "binary.document" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
713 (binhex.document "binhex.document" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
714 (calculator "calculator" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
715 (caution "caution" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
716 (cd.i "cd.i" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
717 (cd.rom "cd.rom" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
718 (clock "clock" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
719 (compressed.document "compressed.document" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
720 (disk.drive "disk.drive" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
721 (diskette "diskette" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
722 (document "document" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
723 (fax "fax" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
724 (filing.cabinet "filing.cabinet" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
725 (film "film" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
726 (fixed.disk "fixed.disk" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
727 (folder "folder" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
728 (form "form" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
729 (ftp "ftp" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
730 (glossary "glossary" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
731 (gopher "gopher" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
732 (home "home" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
733 (html "html" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
734 (image "image" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
735 (index "index" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
736 (keyboard "keyboard" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
737 (mail "mail" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
738 (mail.in "mail.in" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
739 (mail.out "mail.out" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
740 (map "map" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
741 (mouse "mouse" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
742 (new "new" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
743 (next "next" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
744 (notebook "notebook" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
745 (parent "parent" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
746 (play.fast.forward "play.fast.forward" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
747 (play.fast.reverse "play.fast.reverse" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
748 (play.pause "play.pause" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
749 (play.start "play.start" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
750 (play.stop "play.stop" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
751 (previous "previous" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
752 (printer "printer" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
753 (sadsmiley "sadsmiley" ":(")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
754 (smiley "smiley" ":)")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
755 (stop "stop" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
756 (summary "summary" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
757 (telephone "telephone" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
758 (telnet "telnet" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
759 (text.document "text.document" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
760 (tn3270 "tn3270" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
761 (toc "toc" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
762 (trash "trash" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
763 (unknown.document "unknown.document" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
764 (uuencoded.document "uuencoded.document" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
765 (work "work" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
766 (www "www" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
767 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
768 "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
769 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
770 for the image.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
771
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
772 (defvar w3-list-chars-assoc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
773 '(
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
774 (ul . ("o" "*" "+" ">"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
775 (ol . ("." ")" "]" ":"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
776 (dl . ("o" "*" "+" ">")))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
777 "An assoc list of characters to put at the front of list items. It is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
778 keyed on the type of list, followed by a list of items. Each item should
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
779 be placed in the nth position of the list, where n is the nesting level it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
780 should be used for. n starts at 1.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
781
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
782 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
783 ;;; Menu definitions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
784 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
785 (defvar w3-navigate-menu nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
786 (defvar w3-popup-menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
787 '("Emacs-W3 Commands"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
788 ["Back" w3-backward-in-history t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
789 ["Forward" w3-forward-in-history t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
790 "---"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
791 ["Add annotation" w3-annotation-add t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
792 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
793 "The shorter popup menu.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
794
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
795 (defvar w3-documentation-root "http://www.cs.indiana.edu/elisp/w3/docs/"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
796 "*Where the w3 documentation lives. This MUST end in a slash.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
797
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
798 (defvar w3-graphlink-menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
799 '(("Open this Image (%s)" . w3-fetch)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
800 ("Save this Image As..." . w3-download-url)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
801 ("Copy this Image Location" . w3-save-url)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
802 ("Information on this Image". w3-popup-image-info))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
803 "An assoc list of function names and labels. These will be displayed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
804 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
805 ( (label . function)), function is called with one argument, the URL of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
806 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
807 the URL of the link.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
808
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
809 (defvar w3-hyperlink-menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
810 '(("Open this Link (%s)" . w3-fetch)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
811 ("Add Bookmark for this Link" . w3-hotlist-add-document)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
812 ("New Window with this Link" . w3-fetch-other-frame)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
813 ("Save Link As..." . w3-download-url)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
814 ("Copy this Link Location to Clipboard" . w3-save-url)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
815 ("Information on this Link" . w3-popup-info))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
816 "An assoc list of function names and labels. These will be displayed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
817 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
818 ( (label . function)), function is called with one argument, the URL of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
819 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
820 the URL of the link.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
821
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
822 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
823 ;;; Variables internal to W3, you should not change any of these
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
824 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
825 (defvar w3-form-radio-elements nil "Internal variable - do not touch!")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
826 (defvar w3-form-elements nil "Internal variable - do not touch!")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
827
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
828 (defvar w3-invisible-href-list nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
829 "A list of 'invisible' graphic links in the current buffer.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
830
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
831 (defconst w3-state-locator-variable
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
832 '(
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
833 :align
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
834 :background
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
835 :center
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
836 :depth
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
837 :figalt
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
838 :figdata
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
839 :fillcol
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
840 :form
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
841 :formnum
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
842 :header-start
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
843 :href
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
844 :link-args
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
845 :image
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
846 :lists
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
847 :map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
848 :mpeg
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
849 :name
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
850 :needspace
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
851 :next-break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
852 :nofill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
853 :nowrap
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
854 :optarg
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
855 :options
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
856 :pre-start
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
857 :select
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
858 :secret
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
859 :table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
860 :text-mangler
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
861 :title
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
862 :link-title
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
863 :w3-graphic
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
864 :zone
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
865 :label-text
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
866 :seen-this-url
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
867 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
868 "A list of all the various state kept in the drawing engine.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
869 This is used by the `w3-get-state' and `w3-put-state' macros.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
870
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
871 (defvar w3-state-vector
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
872 (make-vector (1+ (length w3-state-locator-variable)) nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
873 "Various state shit kept by emacs-w3.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
874
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
875 (defvar w3-user-stylesheet nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
876 "The global stylesheet for this user.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
877
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
878 (defvar w3-current-stylesheet nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
879 "The stylesheet for this document.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
880
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
881 (defvar w3-base-alist nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
882 "An assoc list of named BASE tags in the current document.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
883
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
884 (defvar w3-blinking-buffs nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
885 "A list of buffers with blinking text in them.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
886 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
887 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
888 displaying blinking text or not.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
889
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
890 (defvar w3-last-fill-pos nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
891 "An internal variable for the new display engine that specifies the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
892 last character position that was correctly filled.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
893
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
894 (defvar w3-last-tag nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
895 "An internal variable for the new display engine that specifies the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
896 last tag processed.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
897
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
898 (defvar w3-table-info nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
899 "An internal variable for the new display engine for keeping table data
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
900 during the pre-pass parsing.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
901
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
902 (defvar w3-current-formatter nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
903 "Current formatter function.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
904
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
905 (defvar w3-draw-buffer nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
906 "Where we are currently drawing into. This _must_ be a buffer object
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
907 when it is referenced.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
908
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
909 (defvar w3-active-faces nil "The list of active faces.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
910 (defvar w3-active-voices nil "The list of active voices.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
911
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
912 (defvar w3-netscape-variable-mappings
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
913 '(("PRINT_COLOR" . ps-print-color-p)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
914 ("DITHER_IMAGES" . w3-color-use-reducing)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
915 ("SOCKS_HOST" . url-socks-host)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
916 ("ORGANIZATION" . url-user-organization)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
917 ("EMAIL_ADDRESS" . url-personal-mail-address)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
918 ("REAL_NAME" . url-user-real-name)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
919 ("NEWSGROUP_DESCRIPTIONS" . url-show-newsgroup-descriptions)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
920 ("NNTPSERVER" . url-news-server)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
921 ("AUTOLOAD_IMAGES" . w3-delay-image-loads)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
922 ("HOME_DOCUMENT" . w3-default-homepage)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
923 ("UNDERLINE_LINKS" . w3-underline-links)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
924 ("TMPDIR" . url-temporary-directory))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
925 "A mapping from netscape configuration file options to w3 variables.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
926
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
927 (defvar w3-acceptable-protocols-alist
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
928 '(("Gopher" . "gopher")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
929 ("TN3270 (IBM Mainframe emulation)" . "tn3270")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
930 ("Interactive Telnet Session" . "telnet")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
931 ("Local file or file over ftp" . "file")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
932 ("File on an http server" . "http")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
933 ("Usenet newsgroup/article" . "news")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
934 ("Mail session" . "mailto"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
935 "An assoc list of descriptive labels and the corresponding URL stub.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
936
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
937 (defvar w3-annotation-marker "<ncsa-annotation-format-1>")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
938 (defvar w3-annotation-minor-mode nil "Whether we are in the minor mode.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
939 (defconst w3-bug-address "wmperry@spry.com" "Address of current maintainer.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
940 (defvar w3-continuation '(url-uncompress url-clean-text)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
941 "List of functions to call to process a document completely.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
942 (defvar w3-current-annotation nil "URL of document we are annotating...")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
943 (defvar w3-current-isindex nil "Is the current document a searchable index?")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
944 (defvar w3-current-last-buffer nil "Last W3 buffer seen before this one.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
945 (defvar w3-current-links nil "An assoc list of <LINK> tags for this doc.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
946 (defvar w3-current-source nil "Source of current document.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
947 (defvar w3-current-parse nil "Parsed version of current document.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
948 (defconst w3-default-continuation '(url-uncompress url-clean-text)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
949 "Default action to start with - cleans text and uncompresses if necessary.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
950 (defvar w3-editing-annotation nil "Are we editing an annotation or not?")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
951 (defvar w3-find-this-link nil "Link to go to within a document.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
952 (defvar w3-hidden-forms nil "List of hidden form areas and their info.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
953 (defvar w3-hotlist nil "Default hotlist.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
954 (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
955 (defvar w3-last-buffer nil "The last W3 buffer visited.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
956 (defvar w3-personal-annotations nil "Assoc list of personal annotations.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
957 (defvar w3-print-next nil "Should we latex & print the next doc?")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
958 (defvar w3-roman-characters "ivxLCDMVX" "Roman numerals.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
959 (defvar w3-setup-done nil "Have we been through setup code yet?")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
960 (defvar w3-source nil "Should we source the next document or not?")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
961
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
962 (defvar w3-strict-width nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
963 "*This variable will control how wide emacs thinks the current window is.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
964 This is useful when working in batch mode, and (window-width) returns the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
965 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
966 returns.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
967
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
968 (defvar w3-submit-button nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
969 "A widget object specifying what button was pressed to submit a form.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
970
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
971 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
972 ;;; buffer-local variables to keep around when going into w3-mode
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
973 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
974 (defvar w3-e19-hotlist-menu nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
975 "A menu for hotlists.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
976
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
977 (defvar w3-e19-links-menu nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
978 "A buffer-local menu for links.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
979
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
980 (defvar w3-id-positions nil "Internal use only.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
981 (defvar w3-imagemaps nil "Internal use only.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
982
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
983 (defvar w3-persistent-variables
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
984 '(
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
985 ;; So we can show the URL in the list-buffers listing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
986 list-buffers-directory
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
987 ;; So widgets don't get lost
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
988 widget-field-new
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
989 w3-form-radio-elements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
990 w3-form-elements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
991 url-current-callback-func
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
992 url-current-content-length
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
993 url-current-file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
994 url-current-mime-encoding
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
995 url-current-mime-headers
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
996 url-current-mime-type
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
997 url-current-mime-viewer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
998 url-current-port
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
999 url-current-referer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1000 url-current-server
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1001 url-current-type
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1002 url-current-user
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1003 w3-e19-links-menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1004 w3-current-parse
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1005 w3-current-annotation
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1006 w3-current-isindex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1007 w3-current-last-buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1008 w3-current-links
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1009 w3-current-source
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1010 w3-delayed-images
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1011 w3-delayed-movies
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1012 w3-hidden-forms
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1013 w3-invisible-href-list
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1014 w3-state-vector
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1015 w3-current-stylesheet
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1016 w3-form-labels
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1017 w3-id-positions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1018 w3-imagemaps
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1019 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1020 "A list of variables that should be preserved when entering w3-mode.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1021
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1022 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1023 ;;; Syntax stuff
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1024 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1025 (defvar w3-parse-args-syntax-table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1026 (copy-syntax-table emacs-lisp-mode-syntax-table)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1027 "A syntax table for parsing sgml attributes.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1028
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1029 (modify-syntax-entry ?' "\"" w3-parse-args-syntax-table)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1030 (modify-syntax-entry ?` "\"" w3-parse-args-syntax-table)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1031 (modify-syntax-entry ?< "(>" w3-parse-args-syntax-table)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1032 (modify-syntax-entry ?> ")<" w3-parse-args-syntax-table)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1033
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1034 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1035 ;;; Emulation stuff
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1036 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1037 (defvar w3-netscape-emulation-minor-mode nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1038 "Whether we are in the netscape emulation minor mode.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1039 (defvar w3-netscape-emulation-minor-mode-map (make-sparse-keymap)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1040 "Keymap for netscape emulation.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1041 (defvar w3-lynx-emulation-minor-mode nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1042 "Whether we are in the lynx emulation minor mode.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1043 (defvar w3-lynx-emulation-minor-mode-map (make-sparse-keymap)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1044 "Keymap for lynx emulation.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1045 (defvar w3-last-search-item nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1046
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1047 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1048 ;;; Startup items
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1049 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1050 (defvar w3-form-labels nil "")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1051 (mapcar (function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1052 (lambda (var)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1053 (if (boundp var)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1054 (make-variable-buffer-local var)))) w3-persistent-variables)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1055 (make-variable-buffer-local 'w3-state-vector)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1056 (make-variable-buffer-local 'w3-current-stylesheet)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1057 (make-variable-buffer-local 'w3-base-alist)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1058 (make-variable-buffer-local 'w3-annotation-minor-mode)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1059 (make-variable-buffer-local 'w3-last-tag)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1060 (make-variable-buffer-local 'w3-last-fill-pos)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1061 (make-variable-buffer-local 'w3-table-info)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1062 (make-variable-buffer-local 'w3-draw-buffer)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1063 (make-variable-buffer-local 'w3-current-formatter)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1064 (make-variable-buffer-local 'w3-active-faces)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1065 (make-variable-buffer-local 'w3-default-style)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1066 (make-variable-buffer-local 'w3-netscape-emulation-minor-mode)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1067 (make-variable-buffer-local 'w3-lynx-emulation-minor-mode)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1068 (make-variable-buffer-local 'w3-last-search-item)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1069
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1070
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1071 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1072 ;;; Keymap definitions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1073 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1074 (defvar w3-mode-map (make-keymap) "Keymap to use in w3-mode.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1075 (defvar w3-annotation-minor-mode-map (make-keymap) "Keymap for annotation.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1076
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1077 (suppress-keymap w3-mode-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1078
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1079 (define-key w3-mode-map "h" (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1080 (define-key w3-mode-map "H" (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1081 (define-key w3-mode-map "a" (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1082
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1083 (define-key w3-mode-map "ha" 'w3-hotlist-apropos)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1084 (define-key w3-mode-map "hd" 'w3-hotlist-delete)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1085 (define-key w3-mode-map "hi" 'w3-hotlist-add-document)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1086 (define-key w3-mode-map "hv" 'w3-show-hotlist)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1087 (define-key w3-mode-map "hr" 'w3-hotlist-rename-entry)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1088 (define-key w3-mode-map "hu" 'w3-use-hotlist)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1089 (define-key w3-mode-map "hA" 'w3-hotlist-append)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1090 (define-key w3-mode-map "hI" 'w3-hotlist-add-document-at-point)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1091 (define-key w3-mode-map "hR" 'w3-hotlist-refresh)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1092
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1093 (define-key w3-mode-map "ai" 'w3-annotation-add)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1094 (define-key w3-mode-map "ad" 'w3-delete-personal-annotation)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1095 (define-key w3-mode-map "ae" 'w3-annotation-edit)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1096
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1097 (define-key w3-mode-map "HF" 'w3-forward-in-history)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1098 (define-key w3-mode-map "HB" 'w3-backward-in-history)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1099 (define-key w3-mode-map "Hv" 'w3-show-history-list)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1100
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1101 (define-key w3-mode-map " " 'w3-scroll-up)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1102 (define-key w3-mode-map "<" 'beginning-of-buffer)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1103 (define-key w3-mode-map ">" 'end-of-buffer)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1104 (define-key w3-mode-map "?" 'w3-help)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1105 (define-key w3-mode-map "B" 'w3-backward-in-history)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1106 (define-key w3-mode-map "F" 'w3-forward-in-history)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1107 (define-key w3-mode-map "G" 'w3-show-graphics)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1108 (define-key w3-mode-map "I" 'w3-popup-info)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1109 (define-key w3-mode-map "K" 'w3-save-this-url)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1110 (define-key w3-mode-map "P" 'w3-print-url-under-point)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1111 (define-key w3-mode-map "Q" 'w3-leave-buffer)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1112 (define-key w3-mode-map "R" 'w3-refresh-buffer)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1113 (define-key w3-mode-map "S" 'w3-source-document-at-point)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1114 (define-key w3-mode-map "U" 'w3-use-links)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1115 (define-key w3-mode-map "V" 'w3-view-this-url)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1116 (define-key w3-mode-map "\C-?" 'scroll-down)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1117 (define-key w3-mode-map "\C-c\C-b" 'w3-show-history-list)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1118 (define-key w3-mode-map "\C-c\C-v" 'w3-version)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1119 (define-key w3-mode-map "\C-o" 'w3-fetch)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1120 (define-key w3-mode-map "\M-M" 'w3-mail-document-under-point)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1121 (define-key w3-mode-map "\M-\C-i" 'w3-insert-this-url)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1122 (define-key w3-mode-map "\M-m" 'w3-mail-current-document)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1123 (define-key w3-mode-map "\M-s" 'w3-search)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1124 (define-key w3-mode-map "\M-\r" 'w3-follow-inlined-image)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1125 (define-key w3-mode-map "\r" 'w3-widget-button-press)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1126 (define-key w3-mode-map "b" 'widget-backward)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1127 (define-key w3-mode-map "c" 'w3-mail-document-author)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1128 (define-key w3-mode-map "f" 'widget-forward)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1129 (define-key w3-mode-map "g" 'w3-reload-document)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1130 (define-key w3-mode-map "i" 'w3-document-information)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1131 (define-key w3-mode-map "k" 'w3-save-url)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1132 (define-key w3-mode-map "l" 'w3-goto-last-buffer)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1133 (define-key w3-mode-map "m" 'w3-complete-link)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1134 (define-key w3-mode-map "n" 'widget-forward)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1135 (define-key w3-mode-map "o" 'w3-open-local)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1136 (define-key w3-mode-map "p" 'w3-print-this-url)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1137 (define-key w3-mode-map "q" 'w3-quit)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1138 (define-key w3-mode-map "r" 'w3-reload-document)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1139 (define-key w3-mode-map "s" 'w3-source-document)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1140 (define-key w3-mode-map "u" 'w3-leave-buffer)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1141 (define-key w3-mode-map "v" 'url-view-url)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1142 (define-key w3-mode-map "w" 'w3-submit-bug)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1143
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1144 ;; Emulate some netscape stuff by default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1145 (define-key w3-mode-map [(control alt t)] 'url-list-processes)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1146 (define-key w3-mode-map [(control meta t)] 'url-list-processes)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1147
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1148 ;; Widget navigation
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1149 (define-key w3-mode-map "\t" 'widget-forward)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1150 (define-key w3-mode-map [(shift tab)] 'widget-backward)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1151
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1152 (define-key w3-annotation-minor-mode-map "\C-c\C-c"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1153 'w3-personal-annotation-finish)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1154
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1155 ;;; This is so we can use a consistent method of checking for mule support
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1156 ;;; Emacs-based mule uses (boundp 'MULE), but XEmacs-based mule uses
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1157 ;;; (featurep 'mule) - I choose to use the latter.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1158
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1159 (if (boundp 'MULE)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1160 (provide 'mule))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1161 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1162 ;;; Keyword definitions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1163 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1164 (require 'w3-keyword)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1165 (provide 'w3-vars)