annotate lisp/w3/w3-cus.el @ 165:5a88923fcbfe r20-3b9

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