annotate lisp/w3/w3-cus.el @ 32:e04119814345 r19-15b99

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