annotate lisp/hm--html-menus/hm--html-configuration.el @ 22:8fc7fe29b841 r19-15b94

Import from CVS: tag r19-15b94
author cvs
date Mon, 13 Aug 2007 08:50:29 +0200
parents ac2d302a0011
children 4103f0995bd7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 ;;; hm--html-configuration.el - Configurationfile for the html-mode
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
2 ;;;
22
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
3 ;;; $Id: hm--html-configuration.el,v 1.2 1997/02/16 01:29:08 steve Exp $
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4 ;;;
22
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
5 ;;; Copyright (C) 1993 - 1997 Heiko Muenkel
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 ;;; email: muenkel@tnt.uni-hannover.de
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 ;;; This program is free software; you can redistribute it and/or modify
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 ;;; it under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 ;;; the Free Software Foundation; either version 2, or (at your option)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 ;;; any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 ;;; This program is distributed in the hope that it will be useful,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 ;;; GNU General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 ;;; You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 ;;; along with this program; if not, write to the Free Software
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 ;;; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 ;;; Description:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 ;;;
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
25 ;;; This file is for the system wide configuration of the html mode.
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
26 ;;; User specific configuration should be done in the file
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
27 ;;; ~/.hm--html-configuration.el, which preceeds the settings in
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
28 ;;; this file.
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
29 ;;; All settings in this file are done with defvar's, therefore
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
30 ;;; you could overwrite them also with the function setq in your
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
31 ;;; .emacs or default.el and so on.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 ;;; Installation:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 ;;; Put this file in one of your lisp load path directories or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 ;;; set the environment variable HTML_CONFIG_FILE to this file.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 ;;; For example:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 ;;; setenv HTML_CONFIG_FILE "~/data/hm--htm-environment.el"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 ;;; if you have put this file in the directory "~/data/"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
42 ;(require 'adapt)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
45 ;;; The User config file (an proposal of Manoj Srivastava)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 (defvar hm--html-user-config-file nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 "*The location of the users config file.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 This variable will only be used, if no environment variable
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 \"HTML_USER_CONFIG_FILE\" is set.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 Example value: \"~/.hm--html-configuration.el\".")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51
22
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
52 ;;; The site specific config file
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
53 (defvar hm--html-site-config-file nil
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
54 "*The location of a site specific config file.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
55 This variable will only be used, if no environment variable
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
56 \"HTML_SITE_CONFIG_FILE\" is set.")
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
58 ;;; Chose the initial popup menu
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 (defvar hm--html-expert nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 "*t : Use the HTML expert popup menu,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 nil : Use the HTML novice (simple) menu.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
63 NOTE: In the Emacs 19 you should set this variable only before
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
64 loading the mode.")
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 ;;; Your Signature
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 (defvar hm--html-signature-file nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 "*Your Signature file.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 For example: \"http://www.tnt.uni-hannover.de:80/data/info/www/tnt/info/tnt/whois/muenkel.html\".")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 (defvar hm--html-username nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 "*Your Name for the signature. For example: \"Heiko Münkel\".")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 ;;; Your favorite server (eg: the name of the host of your own http server)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 ;;; This is used in some other variables
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 (defvar hm--html-favorite-http-server-host-name "www.tnt.uni-hannover.de"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 "*The name of your favorite http server host. It must be specified !")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 ;;; For links to Info Gateways
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
86 (defvar hm--html-info-hostname:port-alist '(("www.tnt.uni-hannover.de:8005"))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 "*Alist with hostnames and ports for the Info gateway.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
89 (defvar hm--html-info-hostname:port-default "www.tnt.uni-hannover.de:8005"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 "*Default hostname with port for the Info gateway.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
92 (defvar hm--html-info-path-alist '((1 . "/appl/lemacs/Global/emacs/info")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
93 (2 . "/appl/emacs/info")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
94 (3 . "/appl/gnu/Global/info")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
95 (4 . "/appl/emacs-19/Global/info")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
96 (5 . "/"))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 "*Alist with directories for the Info gateway.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 ;;; For links to WAIS Gateways
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
102 (defvar hm--html-wais-hostname:port-alist '(("www.tnt.uni-hannover.de:8001")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
103 ("info.cern.ch:8001"))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 "*Alist with hostnames and ports for the WAIS gateway.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
106 (defvar hm--html-wais-hostname:port-default "www.tnt.uni-hannover.de:8001"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 "*Default hostname with port for the WAIS gateway.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
109 (defvar hm--html-wais-servername:port-alist
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
110 '(("wais.tnt.uni-hannover.de:210")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
111 ("daedalus.tnt.uni-hannover.de:21408")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
112 ("ikarus.tnt.uni-hannover.de:21401"))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 "*Alist with servernames and ports for the WAIS gateway.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
115 (defvar hm--html-wais-servername:port-default "www.tnt.uni-hannover.de:210"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 "*Default servername with port for the WAIS gateway.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 (defvar hm--html-wais-path-alist nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 "*Alist with directories for the wais gateway.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 ;;; For links to HTML servers
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
124 (defvar hm--html-html-hostname:port-alist '(("www.tnt.uni-hannover.de:80")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
125 ("vxcrna.cern.ch:80")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
126 ("www.ncsa.uiuc.edu:80"))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 "*Alist with hostnames and ports for the HTML server.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
129 (defvar hm--html-html-hostname:port-default "www.tnt.uni-hannover.de:80"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 "*Default hostname with port for the HTML server.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
132 (defvar hm--html-html-path-alist '((1 . "/data/info/www/tnt/")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
133 (2 . "/data/info/www/")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
134 (3 . "/data/info/")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
135 (4 . "/data/")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
136 (5 . "/appl/")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
137 (6 . "/project/")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
138 (7 . "~/")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
139 (8 . "/"))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 "*Alist with directories for the HTML server.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 ;;; For links to file gateways
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
145 (defvar hm--html-file-path-alist '((1 . "/data/info/www/tnt/")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
146 (2 . "/data/info/www/")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
147 (3 . "/data/info/")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
148 (4 . "/data/")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
149 (5 . "/appl/")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
150 (6 . "/project/")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
151 (7 . "~/")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
152 (8 . "/"))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 "*Alist with directories for the file gateway.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 ;;; For links to ftp servers
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
158 (defvar hm--html-ftp-hostname:port-alist '(("ftp.tnt.uni-hannover.de")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
159 ("ftp.rrzn.uni-hannover.de")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
160 ("wega.informatik.uni-hannover.de")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
161 ("rusmv1.rus.uni-stuttgart.de")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
162 ("export.lcs.mit.edu")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
163 )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 "*Alist with hostnames and ports for the ftp server.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
166 (defvar hm--html-ftp-hostname:port-default "ftp.rrzn.uni-hannover.de"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 "*Default hostname with port for the ftp server.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
169 (defvar hm--html-ftp-path-alist '((1 . "/pub")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
170 (2 . "/pub/gnu")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
171 (3 . "/pub/linux")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
172 (4 . "/pub/unix")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
173 (5 . "/incoming")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
174 (6 . "/"))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 "*Alist with directories for the ftp server.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 ;;; For links to gopher servers
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
180 (defvar hm--html-gopher-hostname:port-alist
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
181 '(("newsserver.rrzn.uni-hannover.de:70")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
182 ("solaris.rz.tu-clausthal.de:70")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
183 ("veronica.scs.unr.edu:70")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
184 ("pinus.slu.se:70")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
185 ("sunic.sunet.se:70")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
186 )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 "*Alist with hostnames and ports for the gopher server.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
189 (defvar hm--html-gopher-doctype-alist '(("/1")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
190 ("/11")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
191 ("/00"))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 "*Alist with doctype strings for the gopher server.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
194 (defvar hm--html-gopher-doctype-default "/1"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 "*Default doctype string for the gopher server.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
197 (defvar hm--html-gopher-hostname:port-default
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
198 "newsserver.rrzn.uni-hannover.de:70"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 "*Default hostname with port for the gopher server.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
201 (defvar hm--html-gopher-anchor-alist
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
202 '(("veronica")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
203 ("Wide%20Area%20Information%20Services%20databases")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
204 ("Subject%20Tree"))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205 "*Alist with directories for the gopher server.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 ;;; For the links to the Program Gateway
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
210 (defvar hm--html-proggate-hostname:port-alist
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
211 '(("www.tnt.uni-hannover.de:8007")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
212 )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213 "*Alist with hostnames and ports for the proggate server.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
215 (defvar hm--html-proggate-hostname:port-default "www.tnt.uni-hannover.de:8007"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 "*Default hostname with port for the proggate server.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
218 (defvar hm--html-proggate-allowed-file "/appl/www/bin/proggate.allowed"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219 "*The filename (with path) of the proggate allowed file.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
221
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222 ;;; For links to the Local Program Gatewy
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
224 (defvar hm--html-local-proggate-path-alist '((1 . "/bin/")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
225 (2 . "/usr/bin/")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
226 (3 . "/usr/local/bin/")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
227 (4 . "/appl/util/bin/")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
228 (5 . "/appl/gnu/Global/bin/")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
229 (6 . "/")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
230 (7 . "/appl/")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
231 (8 . "~/appl/Global/bin/")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
232 (9 . "~/"))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 "*Alist with directories for the local program gateway.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 ;;; For links to the mail gateway
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
238 (defvar hm--html-mail-hostname:port-alist '(("www.tnt.uni-hannover.de:8003")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
239 )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 "*Alist with hostnames and ports for the mail gateway.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
242 (defvar hm--html-mail-hostname:port-default "www.tnt.uni-hannover.de:8003"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243 "*Default hostname with port for the mail gateway.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
245 (defvar hm--html-mail-path-alist '((1 . "~/data/docs/mail")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
246 (2 . "~/data/docs/news")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
247 (3 . "~/docs/mail")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
248 (4 . "~/docs/news")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
249 (5 . "~/mail")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
250 (6 . "~/news")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
251 (7 . "~/")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
252 (8 . "/data/info/mail")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
253 (9 . "/data/info/news")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
254 (10 . "/"))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255 "*Alist with directories for the mail gateway.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
258 ;;; For mailto links
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
260 (defvar hm--html-mailto-alist '(("muenkel@tnt.uni-hannover.de"))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
261 "*Alist with mail adresses for the mailto alist.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262 The value of `user-mail-address' will also be added by the package to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
263 this alist.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
264
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
265
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
266 ;;; For the server side include directive
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
267 ;;; not sure, if these directives works on any server
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
268
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
269 (defvar hm--html-server-side-include-command-alist '(("/bin/date")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
270 ("/usr/bin/finger")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
271 ("/bin/df"))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
272 "*Alist with commands for the server side include directive.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
273 These commands needs no parameter.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
274
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
275 (defvar hm--html-server-side-include-command-with-parameter-alist
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
276 '(("/usr/bin/man")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
277 ("/usr/bin/finger")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
278 ("/usr/bin/ls")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
279 ("/bin/cat"))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
280 "*Alist with commands for the server side include directive.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
281 These commands needs parameters.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
282
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
283
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
284 ;;; Alist with URL'S for FORMS and IMAGE tags
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
285
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
286 (defvar hm--html-url-alist
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
287 (list
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
288 '("http://hoohoo.ncsa.uiuc.edu/htbin-post/post-query"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
289 POST)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
290 '("http://hoohoo.ncsa.uiuc.edu/htbin/query"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
291 GET)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
292 (list
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
293 (concat "http://"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
294 hm--html-favorite-http-server-host-name
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
295 "/")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
296 'IMAGE))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
297 "*Alist with URL's for FORMS and IMAGE tags.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
298 The cdr of each list contains symbols, which specifys the use of the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
299 URL.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
300
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
301
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
302 ;;; For the marking of examples in the help buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
303
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
304 (defvar hm--html-help-foreground "red"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
305 "The foreground color to highlight examples.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
306
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
307 (defvar hm--html-help-background nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
308 "The background color to highlight examples.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
309
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
310 (defvar hm--html-help-font (face-font 'bold)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
311 "The font to highlight examples.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
312
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
313
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
314 ;;; For the Templates
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
315
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
316 (defvar hm--html-template-dir "/data/info/www/tnt/guide/templates"
22
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
317 "*A directory with templatefiles.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
318 It is now also possible to use it as a list of directories.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
319 Look at the variable `tmpl-template-dir-list' for further descriptions.")
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
320
22
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
321 (if (listp hm--html-template-dir)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
322 (unless (file-exists-p (car hm--html-template-dir))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
323 ;; Use a system directory, if the above one doesn't exist
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
324 ;; This may only be useful, in the XEmacs >= 19.12
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
325 (setq hm--html-template-dir (cons (concat data-directory
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
326 "../lisp/hm--html-menus/")
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
327 hm--html-template-dir)))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
328 (unless (file-exists-p hm--html-template-dir)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
329 ;; Use a system directory, if the above one doesn't exist
22
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
330 ;; This may only be useful, in the XEmacs >= 19.12
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
331 (setq hm--html-template-dir (concat data-directory
22
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
332 "../lisp/hm--html-menus/"))))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
333
22
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
334 (defvar hm--html-frame-template-file (concat data-directory
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
335 "../lisp/hm--html-menus/"
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
336 "frame.tmpl")
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
337 "File, which is used as template for a html frame.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
338
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
339 (defvar hm--html-automatic-expand-templates t
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
340 "*Automatic expansion of templates. This feature needs the file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
341 tmpl-minor-mode.el from Heiko Muenkel (muenkel@tnt.uni-hannover.de),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
342 which is distributed with the package hm--html-menus.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
343
22
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
344 (defvar hm--html-template-filter-regexp ".*\\.html\\.tmpl$"
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
345 "*Regexp for filtering out non template files in a directory.")
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
346
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
347 ;;; for deleting the automounter path-prefix
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
348 (defvar hm--html-delete-wrong-path-prefix '("/tmp_mnt" "/phys/[^/]+")
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
349 "If non nil, it specifies path-prefixes, which should be deleted in pathes.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
350 The Sun automounter adds a temporary prefix to the automounted directories
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
351 (At our site the prefix is /tmp_mnt). But you can't select such a path, if
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
352 the automounter has currently not mounted the directory and so you can't
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
353 follow a html-link, which consists of such a path. To overcome this behaviour,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
354 you can set this variable to the prefix (eg. \"/tmp_mnt\"). After that, the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
355 prefix should be stripped from the pathes during the creation of the links.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
356 ATTENTION: This variable is used as regular expression !
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
357 It can be set to a string or to a list of strings.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
358
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
359
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
360 ;;; For insertation of created and changed comments and automatic
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
361 ;;; date update in the title line
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
362
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
363 (defvar hm--html-automatic-new-date t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
364 "*t => The date in the title line will be updated before filesaving.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
365 nil => No automatic update of the date.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
366
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
367 (defvar hm--html-automatic-changed-comment t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
368 "*t => A \"changed comment\" line will be added before filesaving.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
369 nil => No automatic insertation of a \"changed comment\" line.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
370
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
371 (defvar hm--html-automatic-created-comment t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
372 "*t => A \"created comment\" line will be added.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
373 nil => No automatic insertation of a \"created comment\" line.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
374
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
375
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
376 ;;; Keybindings:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
377
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
378 (defvar hm--html-bind-latin-1-char-entities t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
379 "Set this to nil, if you don't want to use the ISO Latin 1 charcter entities.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
380 This is only useful, if `hm--html-use-old-keymap' is set to nil. It is only
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
381 used during loading the html package the first time.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
382
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
383
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
384 ;;; The drag and drop interface
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
385 (defvar hm--html-idd-create-relative-links t
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
386 "If t, then the hm--html-idd-* functions are creating relative links.
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
387 Otherwise absolute links are used. The idd functions are used for
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
388 drag and drop.")
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
389
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
390 (defvar hm--html-idd-actions
22
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
391 '((nil (((idd-if-major-mode-p . dired-mode)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
392 (idd-if-dired-file-on-line-p . ".*\\.\\(gif\\)\\|\\(jpg\\)"))
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
393 hm--html-idd-add-include-image-from-dired-line)
22
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
394 (((idd-if-major-mode-p . dired-mode)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
395 (idd-if-dired-no-file-on-line-p . nil))
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
396 hm--html-idd-add-file-link-to-file-on-dired-line)
22
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
397 (((idd-if-major-mode-p . dired-mode)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
398 (idd-if-dired-no-file-on-line-p . t))
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
399 hm--html-idd-add-file-link-to-directory-of-buffer)
22
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
400 (((idd-if-major-mode-p . w3-mode)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
401 (idd-if-url-at-point-p . t))
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
402 hm--html-idd-add-html-link-from-w3-buffer-point)
22
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
403 (((idd-if-major-mode-p . w3-mode))
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
404 hm--html-idd-add-html-link-to-w3-buffer)
22
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
405 (((idd-if-local-file-p . t))
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
406 hm--html-idd-add-file-link-to-buffer)))
22
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
407 "The action list for the destination mode `hm--html-mode'.
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
408 Look at the description of the variable idd-actions")
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
409
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
410
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
411 ;;; The font lock keywords
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
412
22
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
413 (defconst hm--html-font-lock-keywords-1
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
414 (list
22
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
415 '("<!--.*-->" . font-lock-comment-face)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
416 '("<[^>]*>" . font-lock-keyword-face)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
417 '("<[^>=]*href[ \t\n]*=[ \t\n]*\"\\([^\"]*\\)\"" 1 font-lock-string-face t)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
418 '("<[^>=]src[ \t\n]*=[ \t\n]*\"\\([^\"]*\\)\"" 1 font-lock-string-face t))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
419 "Subdued level highlighting for hm--html-mode.")
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
420
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
421 (defconst hm--html-font-lock-keywords-2
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
422 (append hm--html-font-lock-keywords-1
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
423 (list
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
424 '(">\\([^<]*\\)</a>" 1 font-lock-reference-face)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
425 '("</b>\\([^<]*\\)</b>" 1 bold)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
426 '("</i>\\([^<]*\\)</i>" 1 italic)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
427 ))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
428 "Gaudy level highlighting for hm--html-mode.")
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
429
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
430 (defvar hm--html-font-lock-keywords hm--html-font-lock-keywords-1
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
431 "Default expressions to highlight in the hm--html-mode.")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
432
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
433
22
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
434
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
435 ;;; The Prefix- Key for the keytables
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
436 (defvar hm--html-minor-mode-prefix-key "\C-z"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
437 "The prefix key for the keytables in the `hm--html-minor-mode'.")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
438
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
439 (defvar hm--html-mode-prefix-key "\C-c"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
440 "The prefix key for the hm--html keys in the `hm--html-mode'.")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
441
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
442
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
443 ;;; The pulldown menu names
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
444 (defvar hm--html-minor-mode-pulldown-menu-name "HM-HTML"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
445 "The name of the pulldown menu in the minor html mode.")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
446
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
447 (defvar hm--html-mode-pulldown-menu-name "HTML"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
448 "The name of the pulldown menu in the major html mode.")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
449
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
450
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
451 ;;; The hook variables
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
452 (defvar hm--html-load-hook nil
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
453 "*Hook variable to execute functions after loading the package.")
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
454
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
455 (defvar hm--html-mode-hook nil
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
456 "This hook will be called each time, when the hm--html-mode is invoked.")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
457
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
458
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
459 ;;; For the file html-view.el
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
460 ;;; There are also some other variables in hmtl-view.el
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
461 ;;; Look at that file, if you've trouble with the functions
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
462 ;;; to preview the html document with the Mosaic
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
463 (defvar html-view-mosaic-command "/sol/www/bin/mosaic"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
464 "The command that runs Mosaic on your system")
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
465
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
466 (defvar html-sigusr1-signal-value 16
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
467 "Value for the SIGUSR1 signal on your system.
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
468 See, usually, /usr/include/sys/signal.h.
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
469 SunOS 4.1.x : (setq html-sigusr1-signal-value 30)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
470 SunOS 5.x : (setq html-sigusr1-signal-value 16)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
471 Linux : (setq html-sigusr1-signal-value 10))")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
472
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
473
22
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
474 ;;; indentation
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
475
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
476 (defvar hm--html-disable-indentation nil
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
477 "*Set this to t, if you want to disable the indentation in the hm--html-mode.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
478 And may be send me (muenkel@tnt.uni-hannover.de) a note, why you've
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
479 done this.")
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
480
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
481 (defvar hm--html-inter-tag-indent 2
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
482 "*The indentation after a start tag.")
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
483
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
484 (defvar hm--html-comment-indent 5
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
485 "*The indentation of a comment.")
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
486
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
487 (defvar hm--html-intra-tag-indent 2
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
488 "*The indentation after the start of a tag.")
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
489
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
490 (defvar hm--html-tag-name-alist
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
491 '(("!--" (:hm--html-one-element-tag t))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
492 )
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
493 "An alist with tag names known by the `hm--html-mode'.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
494 CURRENTLY THIS LIST CONTAINS NOT ALL TAGS!!!!.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
495
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
496 It is used to determine, if a tag is a one element tag or not.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
497
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
498 In the future it should also be used to get possible parameters of
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
499 the tag.")
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
500
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
501
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
502 ;;; Announce the feature hm--html-configuration
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
503 (provide 'hm--html-configuration)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
504