annotate lisp/w3/w3-cus.el @ 38:1a767b41a199 r19-15b102

Import from CVS: tag r19-15b102
author cvs
date Mon, 13 Aug 2007 08:54:01 +0200
parents c53a95d3c46d
children 8d2a9b52c682
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
38
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 36
diff changeset
3 ;; Created: 1997/03/18 20:30:34
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 36
diff changeset
4 ;; Version: 1.5
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!
36
c53a95d3c46d Import from CVS: tag r19-15b101
cvs
parents: 32
diff changeset
35 (defmacro defgroup (&rest args)
c53a95d3c46d Import from CVS: tag r19-15b101
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
36
c53a95d3c46d Import from CVS: tag r19-15b101
cvs
parents: 32
diff changeset
40 (defgroup w3 nil
c53a95d3c46d Import from CVS: tag r19-15b101
cvs
parents: 32
diff changeset
41 "Emacs-W3 - the web browser of choice."
c53a95d3c46d Import from CVS: tag r19-15b101
cvs
parents: 32
diff changeset
42 :group 'hypermedia)
c53a95d3c46d Import from CVS: tag r19-15b101
cvs
parents: 32
diff changeset
43
c53a95d3c46d Import from CVS: tag r19-15b101
cvs
parents: 32
diff changeset
44 (defgroup w3-files nil
c53a95d3c46d Import from CVS: tag r19-15b101
cvs
parents: 32
diff changeset
45 "Emacs-W3 configuration files."
c53a95d3c46d Import from CVS: tag r19-15b101
cvs
parents: 32
diff changeset
46 :group 'w3)
c53a95d3c46d Import from CVS: tag r19-15b101
cvs
parents: 32
diff changeset
47
c53a95d3c46d Import from CVS: tag r19-15b101
cvs
parents: 32
diff changeset
48 (defgroup w3-images nil
c53a95d3c46d Import from CVS: tag r19-15b101
cvs
parents: 32
diff changeset
49 "Controlling image handling."
c53a95d3c46d Import from CVS: tag r19-15b101
cvs
parents: 32
diff changeset
50 :group 'w3)
c53a95d3c46d Import from CVS: tag r19-15b101
cvs
parents: 32
diff changeset
51
c53a95d3c46d Import from CVS: tag r19-15b101
cvs
parents: 32
diff changeset
52 (defgroup w3-printing nil
c53a95d3c46d Import from CVS: tag r19-15b101
cvs
parents: 32
diff changeset
53 "Various options for hardcopy from web pages."
c53a95d3c46d Import from CVS: tag r19-15b101
cvs
parents: 32
diff changeset
54 :group 'w3)
c53a95d3c46d Import from CVS: tag r19-15b101
cvs
parents: 32
diff changeset
55
c53a95d3c46d Import from CVS: tag r19-15b101
cvs
parents: 32
diff changeset
56 (defgroup w3-menus nil
c53a95d3c46d Import from CVS: tag r19-15b101
cvs
parents: 32
diff changeset
57 "The look of menus in Emacs-W3"
c53a95d3c46d Import from CVS: tag r19-15b101
cvs
parents: 32
diff changeset
58 :group 'w3)
c53a95d3c46d Import from CVS: tag r19-15b101
cvs
parents: 32
diff changeset
59
c53a95d3c46d Import from CVS: tag r19-15b101
cvs
parents: 32
diff changeset
60 (defgroup w3-parsing nil
c53a95d3c46d Import from CVS: tag r19-15b101
cvs
parents: 32
diff changeset
61 "Options relating to HTML parsing"
c53a95d3c46d Import from CVS: tag r19-15b101
cvs
parents: 32
diff changeset
62 :group 'w3)
c53a95d3c46d Import from CVS: tag r19-15b101
cvs
parents: 32
diff changeset
63
c53a95d3c46d Import from CVS: tag r19-15b101
cvs
parents: 32
diff changeset
64 (defgroup w3-display nil
c53a95d3c46d Import from CVS: tag r19-15b101
cvs
parents: 32
diff changeset
65 "Variables relating to how web pages are displayed."
c53a95d3c46d Import from CVS: tag r19-15b101
cvs
parents: 32
diff changeset
66 :group 'w3)
c53a95d3c46d Import from CVS: tag r19-15b101
cvs
parents: 32
diff changeset
67
c53a95d3c46d Import from CVS: tag r19-15b101
cvs
parents: 32
diff changeset
68 (defgroup w3-hooks nil
c53a95d3c46d Import from CVS: tag r19-15b101
cvs
parents: 32
diff changeset
69 "Hooks relating to Emacs-W3."
c53a95d3c46d Import from CVS: tag r19-15b101
cvs
parents: 32
diff changeset
70 :group 'w3)
c53a95d3c46d Import from CVS: tag r19-15b101
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
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
105 (defcustom w3-documentation-root "http://www.cs.indiana.edu/elisp/w3/docs/"
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
38
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 36
diff changeset
117 "*Fetch frames - can be:
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 36
diff changeset
118 nil no frame display whatsoever
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 36
diff changeset
119 'as-links display frame hyperlinks, but do not fetch them
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 36
diff changeset
120 'ask display frame hyperlinks and ask whether to fetch them
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 36
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
38
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 36
diff changeset
123 :type '(choice (const :tag "Do not display frames" :value nil)
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 36
diff changeset
124 (const :tag "Show hyperlinks" :value as-links)
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 36
diff changeset
125 (const :tag "Show hyperlinks, ask whether to retrieve them" :value ask)
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 36
diff changeset
126 (const :tag "Automatically retrieve frames" :value t)))
32
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
127
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
128 (defcustom w3-do-incremental-display nil
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
129 "*Whether to do incremental display of pages or not."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
130 :group 'w3-display
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
131 :type 'boolean)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
132
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
133 (defcustom w3-echo-link '(title url text name)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
134 "*Whether to display the URL of a link when tabbing through links.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
135 Value is a list of one or more of the following symbols:
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
136
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
137 url == url of the target
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
138 text == text of the link
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
139 title == title attribute of the link
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
140 name == name or id attribute of the link
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
141
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
142 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
143 in menus, etc."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
144 :group 'w3-display
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
145 :type '(set (const :tag "URL" :value url)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
146 (const :tag "Link Text" :value text)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
147 (const :tag "Title of the link as defined in the HTML tag"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
148 :value title)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
149 (const :tag "Name of the link as defined in the HTML tag"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
150 :value name)))
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
151
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
152 (defcustom w3-horizontal-rule-char ?-
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
153 "*The character to use to create a horizontal rule.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
154 Must be the character's code, not a string. This character is
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
155 replicated across the screen to create a division."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
156 :group 'w3-display
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
157 :type 'character)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
158
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
159 (defcustom w3-defined-link-types
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
160 ;; This is the HTML3.0 list (downcased) plus "made".
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
161 '("previous" "next" "up" "down" "home" "toc" "index" "glossary"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
162 "copyright" "bookmark" "help" "made")
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
163 "A list of the (lower-case) names which have special significance
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
164 as the values of REL or REV attributes of <link> elements. They will
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
165 be presented on the toolbar or the links menu, for instance."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
166 :group 'w3-display
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
167 :type '(repeat string))
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
168
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
169 ;;; Parsing related variables
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
170 (defcustom w3-debug-html nil
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
171 "*Whether to gripe about bad HTML or not."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
172 :group 'w3-parsing
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
173 :type '(choice (const :tag "HTML Errors" :value t)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
174 (const :tag "Errors and stylistic issues" :value style)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
175 (const :tag "None" :value nil)))
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
176
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
177 (defcustom w3-debug-buffer "*HTML Debug*"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
178 "*Name of buffer to store debugging information in."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
179 :group 'w3-parsing
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
180 :type 'string)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
181
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
182 ;;; Image related variables
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
183 (defcustom w3-auto-image-alt t
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
184 "*Whether emacs-w3 should create an alt attribute for an image that
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
185 is missing it.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
186 If nil, emacs-w3 will not automatically create an ALT attribute.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
187 If t, the alt attribute will be [IMAGE(nameofimage)]
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
188 If a string, it should be a string suitable for running through format,
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
189 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
190 graphic that is not loaded."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
191 :group 'w3-images
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
192 :type '(choice (const :tag "None" :value nil)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
193 (const :tag "Default" :value t)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
194 string))
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
195
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
196 (defcustom w3-icon-directory "http://cs.indiana.edu/elisp/w3/icons/"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
197 "*Where to find standard icons. Must end in a /!"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
198 :group 'w3-images
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
199 :type 'string)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
200
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
201 (defcustom w3-icon-format 'gif
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
202 "*Image format the default icons are expected to be in.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
203 This is a symbol, string or nil, specifing what file extension to use.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
204 If nil, then no file extension is used."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
205 :group 'w3-images
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
206 :type '(choice (const :tag "GIF Image" :value gif)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
207 (const :tag "XPM Image" :value xpm)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
208 (const :tag "XBM Image" :value xbm)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
209 (const :tag "Let the server decide" :value nil)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
210 (string :tag "Other")))
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
211
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
212 (defcustom w3-delay-image-loads nil
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
213 "*Whether to delay image loading, or automatically retrieve them."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
214 :group 'w3-images
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
215 :type 'boolean)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
216
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
217 (defcustom w3-image-mappings
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
218 '(
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
219 ("image/x-xbitmap" . xbm)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
220 ("image/xbitmap" . xbm)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
221 ("image/xbm" . xbm)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
222 ("image/jpeg" . jpeg)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
223 ("image/gif" . gif)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
224 ("image/png" . png)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
225 ("image/x-fax" . g3fax)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
226 ("image/x-raster" . rast)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
227 ("image/windowdump" . xwd)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
228 ("image/x-icon" . icon)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
229 ("image/portable-graymap" . pgm)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
230 ("image/portable-pixmap" . ppm)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
231 ("image/x-pixmap" . xpm)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
232 ("image/x-xpixmap" . xpm)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
233 ("image/pict" . pict)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
234 ("image/x-rgb" . sgi)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
235 ("image/x-sgi" . sgi)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
236 ("image/x-macpaint" . macpt)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
237 ("image/x-targa" . tga)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
238 ("image/tiff" . tiff)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
239 )
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
240 "*How to map MIME types to image types for the `image' package.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
241 Each entry is a cons cell of MIME types and image-type symbols."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
242 :group 'w3-images
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
243 :type '(repeat cons))
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
244
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
245 ;;; Printing variables
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
246 (defcustom w3-latex-docstyle "{article}"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
247 "*The documentstyle to use when printing or mailing files as LaTeX.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
248 Good defaults are: {article}, [psfig,twocolumn]{article}, etc."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
249 :group 'w3-printing
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
250 :type 'string)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
251
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
252 (defcustom w3-latex-print-links nil
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
253 "*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
254 the document. If `footnote', prints the URL's as footnotes on a page."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
255 :group 'w3-printing
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
256 :type '(choice (const :tag "As endnotes" :value t)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
257 (const :tag "As footnotes" :value footnote)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
258 (const :tag "Do not print" :value nil)))
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
259
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
260 (defcustom w3-latex-use-latex2e nil
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
261 "*If non-nil, configures LaTeX parser to use LaTeX2e syntax. A `nil'
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
262 value indicates that LaTeX 2.0.9 compatibility will be used instead."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
263 :group 'w3-printing
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
264 :type 'boolean)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
265
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
266 (defcustom w3-latex-packages nil
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
267 "*List of LaTeX packages to include when converting HTML to LaTeX.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
268 Currently this is only used if `w3-latex-use-latex2e' is non-nil."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
269 :group 'w3-printing
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
270 :type '(repeat string))
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
271
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
272 (defcustom w3-latex-use-maketitle nil
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
273 "*Non-nil makes the LaTeX parser use real LaTeX title pages."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
274 :group 'w3-printing
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
275 :type 'boolean)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
276
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
277 ;;; Menus
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
278 (defcustom w3-max-menu-length 35
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
279 "*The maximum length of a pulldown menu before it will be split into
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
280 smaller chunks, with the first part as a submenu, followed by the rest
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
281 of the menu."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
282 :group 'w3-menus
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
283 :type 'integer)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
284
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
285 (defcustom w3-max-menu-width 40
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
286 "*The maximum width of a pulldown menu choice."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
287 :group 'w3-menus
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
288 :type 'integer)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
289
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
290 ;;; Advanced stuff
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
291 (defcustom w3-modeline-format
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
292 '(" " ("W3"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
293 (w3-netscape-emulation-minor-mode
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
294 " (NS)")
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
295 (w3-lynx-emulation-minor-mode
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
296 " (Lynx)")
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
297 ": "
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
298 (40 (-40 "%b"))
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
299 " "
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
300 (w3-current-isindex "[Searchable] ")
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
301 "%p" " " global-mode-string))
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
302 "*The modeline format string when in w3 mode"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
303 :group 'w3-advanced
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
304 :type 'list)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
305
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
306 (defcustom w3-netscape-compatible-comments t
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
307 "*Whether to honor netscape-style <! > comments.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
308 Ye gods I wish I could turn this off by default."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
309 :group 'w3-parsing
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
310 :type 'boolean)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
311
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
312 (defcustom w3-notify 'semibully
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
313 "*Selects the behavior when w3 page is ready.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
314 This variable may have one of the following values:
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
315
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
316 newframe -- put the w3 page in its own frame
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
317 bully -- make the w3 page the current buffer and only window
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
318 semibully -- make the w3 page the current buffer in the same window
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
319 aggressive -- make the w3 page the current buffer in the other window
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
320 friendly -- display w3page in other window but don't make current
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
321 polite -- don't display w3 page, but prints message when ready (beeps)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
322 quiet -- like `polite', but don't beep
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
323 meek -- make no indication that page is ready
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
324
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
325 Any other value of `w3-notify' is equivalent to `meek'."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
326 :group 'w3-display
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
327 :type '(choice (const :tag "Display in a new frame"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
328 :value newframe)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
329 (const :tag "Display in the current window, select buffer, and kill other windows"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
330 :value bully)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
331 (const :tag "Display in the current window, select buffer"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
332 :value semibully)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
333 (const :tag "Display in another window, select buffer"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
334 :value aggressive)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
335 (const :tag "Display in another window, but do not select it"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
336 :value friendly)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
337 (const :tag "Do not display page, but show a message and beep"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
338 :value polite)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
339 (const :tag "Do not display page, but show a message (no beep)"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
340 :value quiet)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
341 (const :tag "Do not indicate that the page has been retrieved"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
342 :value meek)))
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
343
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
344 (defcustom w3-popup-menu-on-mouse-3 t
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
345 "*Non-nil value means W3 should provide context-sensitive menus on mouse-3.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
346 A nil value means W3 should not change the binding of mouse-3."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
347 :group 'w3-display
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
348 :type 'boolean)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
349
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
350 (defcustom w3-print-command "lpr -h -d"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
351 "*Print command for dvi files.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
352 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
353 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
354 :group 'w3-printing
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
355 :type 'string)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
356
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
357 (defcustom w3-reuse-buffers 'yes
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
358 "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
359 already been fetched into a W3 buffer. Possible values are: nil,
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
360 '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
361 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
362 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
363
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
364 This will also accept:
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
365 'no ==> always reload
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
366 'yes ==> always reuse
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
367 'ask ==> always ask"
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
368 :group 'w3-display
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
369 :type '(choice (const :tag "Always reload" :value no)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
370 (const :tag "Always reuse" :value yes)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
371 (const :tag "Always ask" :value ask)))
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
372
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
373 (defcustom w3-right-margin 2
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
374 "*Default right margin for Emacs-W3 buffers.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
375 This amount is subtracted from (window-width) for each new WWW buffer
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
376 and used as the new fill-column."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
377 :group 'w3-display
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
378 :type 'integer)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
379
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
380 (defcustom w3-maximum-line-length nil
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
381 "*Maximum length of a line.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
382 If nil, then lines can extend all the way to the window margin."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
383 :group 'w3-display
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
384 :type 'integer)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
385
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
386 (defcustom w3-track-mouse t
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
387 "*Whether to track the mouse and message the url under the mouse."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
388 :group 'w3-display
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
389 :type 'boolean)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
390
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
391 (defcustom w3-honor-stylesheets t
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
392 "*Whether to let a document specify a CSS stylesheet."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
393 :group 'w3-display
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
394 :type 'boolean)
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-user-colors-take-precedence nil
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
397 "*Whether to let a document define certain colors about itself.
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
398 Like foreground and background colors and pixmaps, color of links and
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
399 visited links, etc."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
400 :group 'w3-display
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
401 :type 'boolean)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
402
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
403 ;;; Hook Variables
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
404 (defcustom w3-load-hook nil
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
405 "*Hooks to be run after loading w3."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
406 :group 'w3-hooks
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
407 :type 'hook)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
408
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
409 (defcustom w3-mode-hook nil
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
410 "*Hooks to be run after entering w3-mode."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
411 :group 'w3-hooks
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
412 :type 'hook)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
413
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
414 (defcustom w3-source-file-hook nil
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
415 "*Hooks to be run after getting document source."
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
416 :group 'w3-hooks
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
417 :type 'hook)
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
418
e04119814345 Import from CVS: tag r19-15b99
cvs
parents:
diff changeset
419 (provide 'w3-cus)