annotate lisp/w3/w3-cus.el @ 116:9f59509498e1 r20-1b10

Import from CVS: tag r20-1b10
author cvs
date Mon, 13 Aug 2007 09:23:06 +0200
parents 8619ce7e4c50
children 6608ceec7cf8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
32
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
1 ;;; w3-cus.el --- Customization support for Emacs-W3
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
2 ;; Author: wmperry
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3 ;; Created: 1997/03/24 06:35:57
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
4 ;; Version: 1.7
32
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
5 ;; Keywords: comm, help, hypermedia
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
6
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
7 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
8 ;;; Copyright (c) 1993 - 1996 by William M. Perry (wmperry@cs.indiana.edu)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
9 ;;; Copyright (c) 1996, 1997 Free Software Foundation, Inc.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
10 ;;;
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
11 ;;; This file is part of GNU Emacs.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
12 ;;;
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
13 ;;; GNU Emacs is free software; you can redistribute it and/or modify
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
14 ;;; it under the terms of the GNU General Public License as published by
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
15 ;;; the Free Software Foundation; either version 2, or (at your option)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
16 ;;; any later version.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
17 ;;;
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
18 ;;; GNU Emacs is distributed in the hope that it will be useful,
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
19 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
20 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
21 ;;; GNU General Public License for more details.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
22 ;;;
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
23 ;;; You should have received a copy of the GNU General Public License
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
24 ;;; along with GNU Emacs; see the file COPYING. If not, write to the
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
25 ;;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
26 ;;; Boston, MA 02111-1307, USA.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
27 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
28 (eval-and-compile
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
29 (condition-case ()
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
30 (require 'custom)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
31 (error nil))
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
32 (if (and (featurep 'custom) (fboundp 'custom-declare-variable))
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
33 nil ;; We've got what we needed
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
34 ;; We have the old custom-library, hack around it!
114
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
35 (defmacro defgroup (&rest args)
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
36 nil)
32
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
37 (defmacro defcustom (var value doc &rest args)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
38 (` (defvar (, var) (, value) (, doc))))))
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
39
114
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
40 (defgroup w3 nil
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
41 "Emacs-W3 - the web browser of choice."
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
42 :group 'hypermedia)
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
43
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
44 (defgroup w3-files nil
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
45 "Emacs-W3 configuration files."
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
46 :group 'w3)
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
47
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
48 (defgroup w3-images nil
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
49 "Controlling image handling."
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
50 :group 'w3)
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
51
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
52 (defgroup w3-printing nil
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
53 "Various options for hardcopy from web pages."
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
54 :group 'w3)
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
55
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
56 (defgroup w3-menus nil
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
57 "The look of menus in Emacs-W3"
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
58 :group 'w3)
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
59
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
60 (defgroup w3-parsing nil
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
61 "Options relating to HTML parsing"
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
62 :group 'w3)
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
63
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
64 (defgroup w3-display nil
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
65 "Variables relating to how web pages are displayed."
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
66 :group 'w3)
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
67
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
68 (defgroup w3-hooks nil
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
69 "Hooks relating to Emacs-W3."
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
70 :group 'w3)
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
71
32
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
72 ;;; File related variables
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
73 (defcustom w3-configuration-directory "~/.w3/"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
74 "*Directory where Emacs-w3 can find its configuration files"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
75 :group 'w3-files
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
76 :type 'directory)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
77
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
78 (defcustom w3-default-configuration-file nil
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
79 "*Where per-user customizations of w3 are kept."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
80 :group 'w3-files
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
81 :type 'file)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
82
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
83 (defcustom w3-default-homepage nil
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
84 "*The url to open at startup. It can be any valid URL.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
85 This will default to the environment variable WWW_HOME if you do not
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
86 set it in your .emacs file. If WWW_HOME is undefined, then it will
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
87 default to the hypertext documentation for W3 at Indiana University."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
88 :group 'w3-files
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
89 :type 'string)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
90
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
91 (defcustom w3-default-stylesheet nil
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
92 "*The filename of the users default stylesheet."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
93 :group 'w3-files
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
94 :type 'file)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
95
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
96 (defcustom w3-hotlist-file nil
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
97 "*Hotlist filename.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
98 This should be the name of a file that is stored in either
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
99 NCSA's Mosaic/X or Netscape/X format. It is used to keep a listing
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
100 of commonly accessed URL's without having to go through 20 levels of
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
101 menus to get to them."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
102 :group 'w3-files
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
103 :type 'file)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
104
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
105 (defcustom w3-documentation-root "http://www.cs.indiana.edu/elisp/w3/"
32
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
106 "*Where the w3 documentation lives. This MUST end in a slash."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
107 :group 'w3-files
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
108 :type 'string)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
109
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
110 (defcustom w3-temporary-directory (or (getenv "TMPDIR") "/tmp")
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
111 "*Where temporary files go."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
112 :group 'w3-files
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
113 :type 'directory)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
114
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
115 ;;; Display related variables
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
116 (defcustom w3-display-frames nil
114
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
117 "*Fetch frames - can be:
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
118 nil no frame display whatsoever
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
119 'as-links display frame hyperlinks, but do not fetch them
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
120 'ask display frame hyperlinks and ask whether to fetch them
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
121 t display frame hyperlinks and fetch them."
32
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
122 :group 'w3-display
114
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
123 :type '(choice (const :tag "Do not display frames" :value nil)
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
124 (const :tag "Show hyperlinks" :value as-links)
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
125 (const :tag "Show hyperlinks, ask whether to retrieve them" :value ask)
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 32
diff changeset
126 (const :tag "Automatically retrieve frames" :value t)))
32
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
127
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
128 (defcustom w3-bullets
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
129 '((disc . ?*)
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
130 (circle . ?o)
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
131 (square . ?#)
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
132 (none . ? )
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
133 )
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
134 "*An assoc list of unordered list types mapping to characters to use
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
135 as the bullet character."
32
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
136 :group 'w3-display
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
137 :type 'list)
32
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
138
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
139 (defcustom w3-echo-link '(title url text name)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
140 "*Whether to display the URL of a link when tabbing through links.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
141 Value is a list of one or more of the following symbols:
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
142
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
143 url == url of the target
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
144 text == text of the link
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
145 title == title attribute of the link
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
146 name == name or id attribute of the link
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
147
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
148 If none of the information is available, nothing will be shown for the link
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
149 in menus, etc."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
150 :group 'w3-display
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
151 :type '(set (const :tag "URL" :value url)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
152 (const :tag "Link Text" :value text)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
153 (const :tag "Title of the link as defined in the HTML tag"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
154 :value title)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
155 (const :tag "Name of the link as defined in the HTML tag"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
156 :value name)))
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
157
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
158 (defcustom w3-horizontal-rule-char nil
32
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
159 "*The character to use to create a horizontal rule.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
160 Must be the character's code, not a string. This character is
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
161 replicated across the screen to create a division.
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
162 If nil W3 will use a terminal graphic character if possible."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
163 :group 'w3-display
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
164 :type '(choice (const :tag "Best possible" :value nil)
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
165 (character)))
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
166
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
167 ;;; these three variables control how w3-setup-terminal-chars works
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
168 (defcustom w3-use-terminal-characters t
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
169 "*Use terminal graphics characters for drawing tables and rules if available"
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
170 :group 'w3-display
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
171 :type 'boolean)
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
172
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
173 (defcustom w3-use-terminal-characters-on-tty nil
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
174 "*Use terminal graphics characters for tables and rules even on a tty.
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
175 This triggers display bugs on both FSF Emacs and XEmacs.
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
176 (Though it's usually tolerable at least on FSF Emacs.)"
32
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
177 :group 'w3-display
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
178 :type 'boolean)
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
179
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
180 (defcustom w3-use-terminal-glyphs t
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
181 "*Use glyphs if possible rather than properties for terminal graphics characters
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
182
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
183 Glyphs are probably more efficient but don't work with the most recent versions
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
184 of XEmacs and there are some cute tricks we can play with text-properties that
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
185 glyphs won't let us do. It may be possible someday to make XEmacs automagically
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
186 translate the characters back to ascii characters when pasted into another
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
187 buffer. (On the other hand, right now w3-excise-terminal-characters doesn't
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
188 work at all if we're using text-properties)."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
189 :group 'w3-display
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
190 :type '(choice (const :tag "Use Glyphs" :value t)
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
191 (const :tag "Use Text Properties" :value nil)))
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
192
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
193 (defcustom w3-do-incremental-display nil
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
194 "*Whether to do incremental display of pages or not."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
195 :group 'w3-display
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
196 :type 'boolean)
32
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
197
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
198 (defcustom w3-defined-link-types
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
199 ;; This is the HTML3.0 list (downcased) plus "made".
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
200 '("previous" "next" "up" "down" "home" "toc" "index" "glossary"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
201 "copyright" "bookmark" "help" "made")
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
202 "A list of the (lower-case) names which have special significance
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
203 as the values of REL or REV attributes of <link> elements. They will
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
204 be presented on the toolbar or the links menu, for instance."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
205 :group 'w3-display
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
206 :type '(repeat string))
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
207
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
208 ;;; Parsing related variables
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
209 (defcustom w3-debug-html nil
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
210 "*Whether to gripe about bad HTML or not."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
211 :group 'w3-parsing
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
212 :type '(choice (const :tag "HTML Errors" :value t)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
213 (const :tag "Errors and stylistic issues" :value style)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
214 (const :tag "None" :value nil)))
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
215
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
216 (defcustom w3-debug-buffer "*HTML Debug*"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
217 "*Name of buffer to store debugging information in."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
218 :group 'w3-parsing
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
219 :type 'string)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
220
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
221 ;;; Image related variables
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
222 (defcustom w3-auto-image-alt t
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
223 "*Whether emacs-w3 should create an alt attribute for an image that
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
224 is missing it.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
225 If nil, emacs-w3 will not automatically create an ALT attribute.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
226 If t, the alt attribute will be [IMAGE(nameofimage)]
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
227 If a string, it should be a string suitable for running through format,
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
228 with only one %s, which will be replaced with just the filename of the
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
229 graphic that is not loaded."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
230 :group 'w3-images
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
231 :type '(choice (const :tag "None" :value nil)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
232 (const :tag "Default" :value t)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
233 string))
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
234
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
235 (defcustom w3-icon-directory "http://cs.indiana.edu/elisp/w3/icons/"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
236 "*Where to find standard icons. Must end in a /!"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
237 :group 'w3-images
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
238 :type 'string)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
239
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
240 (defcustom w3-icon-format 'gif
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
241 "*Image format the default icons are expected to be in.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
242 This is a symbol, string or nil, specifing what file extension to use.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
243 If nil, then no file extension is used."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
244 :group 'w3-images
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
245 :type '(choice (const :tag "GIF Image" :value gif)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
246 (const :tag "XPM Image" :value xpm)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
247 (const :tag "XBM Image" :value xbm)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
248 (const :tag "Let the server decide" :value nil)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
249 (string :tag "Other")))
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
250
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
251 (defcustom w3-delay-image-loads nil
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
252 "*Whether to delay image loading, or automatically retrieve them."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
253 :group 'w3-images
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
254 :type 'boolean)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
255
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
256 (defcustom w3-image-mappings
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
257 '(
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
258 ("image/x-xbitmap" . xbm)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
259 ("image/xbitmap" . xbm)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
260 ("image/xbm" . xbm)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
261 ("image/jpeg" . jpeg)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
262 ("image/gif" . gif)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
263 ("image/png" . png)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
264 ("image/x-fax" . g3fax)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
265 ("image/x-raster" . rast)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
266 ("image/windowdump" . xwd)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
267 ("image/x-icon" . icon)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
268 ("image/portable-graymap" . pgm)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
269 ("image/portable-pixmap" . ppm)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
270 ("image/x-pixmap" . xpm)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
271 ("image/x-xpixmap" . xpm)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
272 ("image/pict" . pict)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
273 ("image/x-rgb" . sgi)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
274 ("image/x-sgi" . sgi)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
275 ("image/x-macpaint" . macpt)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
276 ("image/x-targa" . tga)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
277 ("image/tiff" . tiff)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
278 )
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
279 "*How to map MIME types to image types for the `image' package.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
280 Each entry is a cons cell of MIME types and image-type symbols."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
281 :group 'w3-images
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
282 :type '(repeat cons))
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
283
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
284 ;;; Printing variables
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
285 (defcustom w3-latex-docstyle "{article}"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
286 "*The documentstyle to use when printing or mailing files as LaTeX.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
287 Good defaults are: {article}, [psfig,twocolumn]{article}, etc."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
288 :group 'w3-printing
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
289 :type 'string)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
290
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
291 (defcustom w3-latex-print-links nil
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
292 "*If non-nil, prints the URLs of hypertext links as endnotes at the end of
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
293 the document. If `footnote', prints the URL's as footnotes on a page."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
294 :group 'w3-printing
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
295 :type '(choice (const :tag "As endnotes" :value t)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
296 (const :tag "As footnotes" :value footnote)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
297 (const :tag "Do not print" :value nil)))
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
298
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
299 (defcustom w3-latex-use-latex2e nil
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
300 "*If non-nil, configures LaTeX parser to use LaTeX2e syntax. A `nil'
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
301 value indicates that LaTeX 2.0.9 compatibility will be used instead."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
302 :group 'w3-printing
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
303 :type 'boolean)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
304
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
305 (defcustom w3-latex-packages nil
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
306 "*List of LaTeX packages to include when converting HTML to LaTeX.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
307 Currently this is only used if `w3-latex-use-latex2e' is non-nil."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
308 :group 'w3-printing
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
309 :type '(repeat string))
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
310
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
311 (defcustom w3-latex-use-maketitle nil
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
312 "*Non-nil makes the LaTeX parser use real LaTeX title pages."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
313 :group 'w3-printing
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
314 :type 'boolean)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
315
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
316 ;;; Menus
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
317 (defcustom w3-max-menu-length 35
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
318 "*The maximum length of a pulldown menu before it will be split into
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
319 smaller chunks, with the first part as a submenu, followed by the rest
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
320 of the menu."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
321 :group 'w3-menus
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
322 :type 'integer)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
323
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
324 (defcustom w3-max-menu-width 40
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
325 "*The maximum width of a pulldown menu choice."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
326 :group 'w3-menus
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
327 :type 'integer)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
328
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
329 ;;; Advanced stuff
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
330 (defcustom w3-modeline-format
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
331 '(" " ("W3"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
332 (w3-netscape-emulation-minor-mode
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
333 " (NS)")
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
334 (w3-lynx-emulation-minor-mode
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
335 " (Lynx)")
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
336 ": "
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
337 (40 (-40 "%b"))
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
338 " "
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
339 (w3-current-isindex "[Searchable] ")
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
340 "%p" " " global-mode-string))
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
341 "*The modeline format string when in w3 mode"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
342 :group 'w3-advanced
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
343 :type 'list)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
344
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
345 (defcustom w3-netscape-compatible-comments t
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
346 "*Whether to honor netscape-style <! > comments.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
347 Ye gods I wish I could turn this off by default."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
348 :group 'w3-parsing
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
349 :type 'boolean)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
350
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
351 (defcustom w3-notify 'semibully
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
352 "*Selects the behavior when w3 page is ready.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
353 This variable may have one of the following values:
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
354
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
355 newframe -- put the w3 page in its own frame
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
356 bully -- make the w3 page the current buffer and only window
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
357 semibully -- make the w3 page the current buffer in the same window
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
358 aggressive -- make the w3 page the current buffer in the other window
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
359 friendly -- display w3page in other window but don't make current
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
360 polite -- don't display w3 page, but prints message when ready (beeps)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
361 quiet -- like `polite', but don't beep
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
362 meek -- make no indication that page is ready
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
363
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
364 Any other value of `w3-notify' is equivalent to `meek'."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
365 :group 'w3-display
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
366 :type '(choice (const :tag "Display in a new frame"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
367 :value newframe)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
368 (const :tag "Display in the current window, select buffer, and kill other windows"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
369 :value bully)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
370 (const :tag "Display in the current window, select buffer"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
371 :value semibully)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
372 (const :tag "Display in another window, select buffer"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
373 :value aggressive)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
374 (const :tag "Display in another window, but do not select it"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
375 :value friendly)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
376 (const :tag "Do not display page, but show a message and beep"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
377 :value polite)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
378 (const :tag "Do not display page, but show a message (no beep)"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
379 :value quiet)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
380 (const :tag "Do not indicate that the page has been retrieved"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
381 :value meek)))
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
382
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
383 (defcustom w3-popup-menu-on-mouse-3 t
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
384 "*Non-nil value means W3 should provide context-sensitive menus on mouse-3.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
385 A nil value means W3 should not change the binding of mouse-3."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
386 :group 'w3-display
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
387 :type 'boolean)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
388
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
389 (defcustom w3-print-command "lpr -h -d"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
390 "*Print command for dvi files.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
391 This is usually 'lpr -h -d' to send it to a postscript printer, but you can set
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
392 it up so that it is any command that takes a dvi file as its last argument."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
393 :group 'w3-printing
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
394 :type 'string)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
395
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
396 (defcustom w3-reuse-buffers 'yes
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
397 "What to do when following a link will re-fetch a document that has
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
398 already been fetched into a W3 buffer. Possible values are: nil,
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
399 'yes, and 'no. Nil means ask the user if we should reuse the buffer.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
400 A value of 'yes means assume the user wants us to reuse the buffer.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
401 A value of 'no means assume the user wants us to re-fetch the document.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
402
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
403 This will also accept:
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
404 'no ==> always reload
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
405 'yes ==> always reuse
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
406 'ask ==> always ask"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
407 :group 'w3-display
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
408 :type '(choice (const :tag "Always reload" :value no)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
409 (const :tag "Always reuse" :value yes)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
410 (const :tag "Always ask" :value ask)))
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
411
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
412 (defcustom w3-right-margin 2
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
413 "*Default right margin for Emacs-W3 buffers.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
414 This amount is subtracted from (window-width) for each new WWW buffer
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
415 and used as the new fill-column."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
416 :group 'w3-display
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
417 :type 'integer)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
418
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
419 (defcustom w3-maximum-line-length nil
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
420 "*Maximum length of a line.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
421 If nil, then lines can extend all the way to the window margin."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
422 :group 'w3-display
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
423 :type 'integer)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
424
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
425 (defcustom w3-track-mouse t
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
426 "*Whether to track the mouse and message the url under the mouse."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
427 :group 'w3-display
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
428 :type 'boolean)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
429
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
430 (defcustom w3-honor-stylesheets t
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
431 "*Whether to let a document specify a CSS stylesheet."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
432 :group 'w3-display
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
433 :type 'boolean)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
434
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
435 (defcustom w3-user-colors-take-precedence nil
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
436 "*Whether to let a document define certain colors about itself.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
437 Like foreground and background colors and pixmaps, color of links and
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
438 visited links, etc."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
439 :group 'w3-display
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
440 :type 'boolean)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
441
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
442 ;;; Hook Variables
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
443 (defcustom w3-load-hook nil
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
444 "*Hooks to be run after loading w3."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
445 :group 'w3-hooks
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
446 :type 'hook)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
447
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
448 (defcustom w3-mode-hook nil
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
449 "*Hooks to be run after entering w3-mode."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
450 :group 'w3-hooks
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
451 :type 'hook)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
452
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
453 (defcustom w3-source-file-hook nil
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
454 "*Hooks to be run after getting document source."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
455 :group 'w3-hooks
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
456 :type 'hook)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
457
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
458 (provide 'w3-cus)