annotate man/hm--html-mode.texi @ 51:69ce12f60f55

Added tag r19-16b91 for changeset ee648375d8d6
author cvs
date Mon, 13 Aug 2007 08:56:44 +0200
parents 6a22abad6937
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1 \input texinfo @c -*-texinfo-*-
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
2 @comment %**start of header (This is for running Texinfo on a region.)
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
3 @setfilename hm--html-mode.info
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
4 @settitle HM HTML Mode
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
5 @setchapternewpage odd
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
6 @comment %**end of header (This is for running Texinfo on a region.)
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
7 @comment $Id: hm--html-mode.texi,v 1.2 1997/03/27 01:22:34 steve Exp $
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
8 @ifinfo
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
9 This file documents the Elisp package @code{hm--html-menus}.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
10
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
11 Copyright @copyright{} 1997 Heiko Münkel
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
12
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
13 Permission is granted to make and distribute verbatim copies of
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
14 this manual provided the copyright notice and this permission notice
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
15 are preserved on all copies.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
16
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
17 @ignore
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
18 Permission is granted to process this file through TeX and print the
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
19 results, provided the printed document carries a copying permission
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
20 notice identical to this one except for the removal of this paragraph
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
21 (this paragraph not being relevant to the printed manual).
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
22
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
23 @end ignore
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
24 Permission is granted to copy and distribute modified versions of this
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
25 manual under the conditions for verbatim copying, provided also that the
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
26 sections entitled ``Distribution'' and ``General Public License'' are
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
27 included exactly as in the original, and provided that the entire
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
28 resulting derived work is distributed under the terms of a permission
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
29 notice identical to this one.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
30
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
31 Permission is granted to copy and distribute translations of this manual
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
32 into another language, under the above conditions for modified versions,
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
33 except that the sections entitled ``Distribution'' and ``General Public
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
34 License'' may be included in a translation approved by the author instead
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
35 of in the original English.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
36
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
37 @end ifinfo
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
38 @iftex
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
39 @input umlaute.texinfo
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
40 @end iftex
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
41 @titlepage
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
42 @sp 10
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
43 @center @titlefont{The Elisp Package hm---html-menus}
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
44
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
45 @sp 4
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
46 @center by Heiko Münkel
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
47 @sp 4
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
48 @center Version 5.6, March 1997
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
49 @page
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
50 @vskip 0pt plus 1filll
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
51 Copyright @copyright{} 1997 Heiko Münkel
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
52 @sp 4
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
53 Permission is granted to make and distribute verbatim copies of
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
54 this manual provided the copyright notice and this permission notice
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
55 are preserved on all copies.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
56
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
57 @ignore
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
58 Permission is granted to process this file through TeX and print the
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
59 results, provided the printed document carries a copying permission
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
60 notice identical to this one except for the removal of this paragraph
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
61 (this paragraph not being relevant to the printed manual).
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
62
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
63 @end ignore
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
64 Permission is granted to copy and distribute modified versions of this
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
65 manual under the conditions for verbatim copying, provided also that the
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
66 sections entitled ``Distribution'' and ``General Public License'' are
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
67 included exactly as in the original, and provided that the entire
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
68 resulting derived work is distributed under the terms of a permission
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
69 notice identical to this one.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
70
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
71 Permission is granted to copy and distribute translations of this manual
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
72 into another language, under the above conditions for modified versions,
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
73 except that the sections entitled ``Distribution'' and ``General Public
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
74 License'' may be included in a translation approved by the author instead
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
75 of in the original English.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
76
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
77 @end titlepage
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
78
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
79 @comment The Top node contains the master menu for the Info file.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
80 @comment This appears only in the Info file, not in the printed manual.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
81
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
82 @node Top, License, (dir), (dir)
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
83 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
84
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
85
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
86
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
87 @menu
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
88 * License:: Your rights
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
89 * Overview:: Overview
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
90 * Distribution:: How to get the latest version
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
91 * Installation:: How to install the package
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
92 * Customization:: How to customize the package
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
93 * Add New Elements:: How to add new HTML elements
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
94 * Use With psgml-html:: Use this package as an add-on minor mode
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
95 * Internal Drag And Drop:: The HTML independent drag and drop package
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
96 * Template Minor Mode:: The HTML independent template package
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
97 * Bug Reports:: How and to whom you should send bug reports
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
98 * Concept Index:: Concept Index
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
99 * Function Index:: Function Index
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
100 * Variable Index:: Variable Index
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
101 @end menu
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
102
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
103
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
104 @node License, Overview, Top, Top
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
105 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
106 @chapter License
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
107 @cindex license to copy hm---html-menus
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
108 @cindex General Public License
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
109 Copyright (C) 1993 - 1997 Heiko Münkel, muenkel@@tnt.uni-hannover.de
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
110 @sp 2
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
111 This program is free software; you can redistribute it and/or modify
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
112 it under the terms of the GNU General Public License as published by
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
113 the Free Software Foundation; either version 2, or (at your option)
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
114 any later version.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
115
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
116 This program is distributed in the hope that it will be useful,
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
117 but WITHOUT ANY WARRANTY; without even the implied warranty of
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
118 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
119 GNU General Public License for more details.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
120
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
121 You should have received a copy of the GNU General Public License
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
122 along with this program; if not, write to the Free Software
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
123 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
124
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
125
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
126 @node Overview, Distribution, License, Top
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
127 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
128 @chapter Overview
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
129 @cindex overview
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
130 @cindex version
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
131 @findex hm--html-mode
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
132 @findex hm--html-minor-mode
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
133
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
134 This document describes the Elisp package @emph{hm---html-menus 5.6}.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
135
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
136 The version of the document is:@*
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
137 $Id: hm--html-mode.texi,v 1.2 1997/03/27 01:22:34 steve Exp $
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
138
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
139 The package provides commands and various popup and pulldown menus for
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
140 an HTML mode called @dfn{hm---html-mode}, a mode for writing HTML pages
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
141 for the World Wide Web (WWW). It also provides a minor mode
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
142 (@dfn{hm---html-minor-mode}), which can be used together with another
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
143 HTML major mode, like the psgml-html modes in XEmacs 19.14.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
144
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
145 You can easily view the HTML documents by calling the browsers w3 (a
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
146 nice elisp package from William M. Perry), Netscape, or Mosaic directly
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
147 from the pulldown menu of the mode.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
148
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
149 An integrated (emacs internal) drag and drop interface makes it
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
150 very easy to insert links or images, by just clicking on them.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
151
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
152 When appropriate, identical commands work on selected
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
153 regions. You'll see the same menu items and can use the same
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
154 keystrokes, whether a region is active or not, but if it's
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
155 active, then the commands are operating on the region. Therefore, you
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
156 don't need to learn different menus or keys for similar functions!
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
157
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
158 One major design goal of the package was to make it easier to write a
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
159 HTML page, even if you don't know much about HTML. For that I've tried
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
160 to put more knowledge about HTML, URL's and so on in it than an SGML based
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
161 mode could find out from a DTD file. In most cases the user gets help to
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
162 construct a specific link by examples, or by a completion list with
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
163 possible input strings. And you can choose between an expert popup menu
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
164 and an novice popup menu interactively. The novice menu contains only
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
165 the basic HTML elements, so that you're not bothered by the quantity of
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
166 different HTML elements. And if you want to use more HTML elements, then
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
167 you can easily switch to the expert menus.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
168
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
169 You can configure the html mode with a special configuration file for
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
170 your site and with another file specific to a user. Look at the
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
171 customization chapter for this, @xref{Customization, Customization}.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
172
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
173
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
174 @node Distribution, Installation, Overview, Top
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
175 @comment node-name, next, previous, up
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
176 @chapter Distribution
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
177 The name of the distribution file is
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
178 @file{hm--html-menus-<version>.tar.gz}, where @var{<version>} is the
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
179 version number. The package is part of the XEmacs. You should always
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
180 find the latest version of the package on the following ftp server:
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
181 @display
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
182 @emph{ftp.tnt.uni-hannover.de} in @file{/pub/editors/xemacs/contrib}
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
183 @end display
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
184 You should also find the package in the USA on the ftp server
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
185 (which is mirrored on many other servers in the world):
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
186 @display
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
187 @emph{sunsite.unc.edu} in @file{/pub/Linux/apps/editors/emacs}
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
188 @end display
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
189 @menu
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
190 * Contents:: Contents of the distribution
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
191 @end menu
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
192
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
193 @node Contents, , Distribution, Distribution
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
194 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
195 @section Contents
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
196 @cindex contents
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
197 The package consists of the following files:
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
198
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
199 @table @file
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
200 @item README
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
201 Please, read this first.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
202 @itemx README-EMACS-19
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
203 Some special hints only for GNU Emacs 19 users.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
204 @itemx ANNOUNCEMENT
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
205 Text of the announcement of this package.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
206 @itemx LSM
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
207 Entry for the Linux Software Map.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
208 @itemx NEWS
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
209 The NEWS and Change log file.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
210 @itemx adapt.el
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
211 Provides (emulates XEmacs) functions for the use of this package with
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
212 GNU Emacs 19.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
213 @itemx hm--html.el
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
214 Provides functions to write html pages. It defines all commands which
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
215 insert html elements and entities.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
216 @itemx hm--html-indentation.el
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
217 Provides the lisp code for the indentation.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
218 @itemx hm--html-keys.el
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
219 Defines the key bindings.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
220 @itemx hm--html-menu.el
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
221 Provides the menus.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
222 @itemx hm--html-mode.el
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
223 Provides the functions for the definition of the hm--html-mode and the
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
224 hm--html-minor-mode. This is the main file of the package.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
225 @itemx hm--html-not-standard.el
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
226 Provides functions to insert some non standard html elements. This file
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
227 is not evaluated by default and it may be a bad idea to use it.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
228 @itemx hm--html-configuration.el
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
229 Configuration file for the html mode. All the user variables are defined
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
230 in this file.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
231 @itemx hm--html-drag-and-drop.el
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
232 Defines the HTML-specific functions for the drag and drop interface.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
233 @itemx hm--date.el
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
234 Defines the function hm--date, which returns the date in the format
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
235 "day-month-year" like "30-Jun-1993".
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
236 @itemx html-view.el
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
237 Ron Tapia's html-view.el to view html pages in Mosaic. It is
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
238 patched for use with XEmacs.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
239 @itemx internal-drag-and-drop.el
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
240 Provides the general (html-mode independent) functions of the drag and
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
241 drop interface.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
242 @itemx templates.doc
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
243 Describes the syntax of the templates provided in the file
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
244 @file{tmpl-minor-mode.el}
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
245 @itemx tmpl-minor-mode.el
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
246 Provides functions for the tmpl-minor-mode. With this mode you can
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
247 expand templates, which are described in the file
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
248 @file{templates-syntax.doc} (look at the files
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
249 @file{command-description.html.tmpl} and @file{frame.html.tmpl} for
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
250 examples). Templates can be expanded automatically, if you include a
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
251 file with templates via the html pulldown menu item "Templates ..." or
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
252 with the item "Templates (fixed dirs)...".
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
253 @itemx command-description.html.tmpl
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
254 Template file for the use with the tmpl-minor-mode.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
255 @itemx frame.html.tmpl
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
256 Template file, provides a simple frame.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
257 @itemx doc/hm--html-mode.texinfo
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
258 Package documentation in the Texinfo format.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
259 @itemx doc/umlaute.texinfo
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
260 Texinfo include file for German vowel mutation (deutsche Umlaute).
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
261 @end table
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
262
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
263 @node Installation, Customization, Distribution, Top
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
264 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
265 @chapter Installation
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
266 @cindex installation
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
267
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
268
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
269 @enumerate
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
270 @item Put all the *.el files in one of your XEmacs (or emacs) lisp load
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
271 directories (e.g. site-lisp/hm--html-menus).
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
272
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
273 @item Put the following in your .emacs (or default.el or site-init.el):
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
274 @lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
275 (autoload 'hm--html-mode "hm--html-mode" "HTML major mode." t)
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
276 (autoload 'hm--html-minor-mode "hm--html-mode" "HTML minor mode." t)
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
277 (or (assoc "\\.html$" auto-mode-alist)
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
278 (setq auto-mode-alist (cons '("\\.html$" . hm--html-mode)
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
279 auto-mode-alist)))
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
280
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
281 (autoload 'tmpl-expand-templates-in-buffer "tmpl-minor-mode"
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
282 "Expand all templates in the current buffer." t)
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
283
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
284 (autoload 'html-view-start-mosaic "html-view" "Start Xmosaic." t)
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
285 (autoload 'html-view-view-buffer
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
286 "html-view"
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
287 "View the current buffer in Xmosaic."
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
288 t)
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
289 (autoload 'html-view-view-file
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
290 "html-view"
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
291 "View a file in Xmosaic."
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
292 t)
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
293 (autoload 'html-view-goto-url
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
294 "html-view"
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
295 "Goto url in Xmosaic."
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
296 t)
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
297 (autoload 'html-view-get-display
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
298 "html-view"
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
299 "Get the display for Xmosaic (i.e. hostxy:0.0)."
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
300 t)
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
301 @end lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
302
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
303 The above lines assume that you have not already installed another
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
304 html mode. If this isn't true, then you should use the following:
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
305 @lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
306 (setq auto-mode-alist (cons '("\\.html$" . hm--html-mode)
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
307 auto-mode-alist))
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
308 @end lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
309
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
310 instead of:
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
311 @lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
312 (or (assoc "\\.html$" auto-mode-alist)
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
313 (setq auto-mode-alist (cons '("\\.html$" . hm--html-mode)
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
314 auto-mode-alist)))
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
315 @end lisp
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
316 If you want to use the hm--html-minor-mode together
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
317 with the psgml-html modes, then you should add the following
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
318 line (works only in XEmacs version >= 19.15 and != 20.0):
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
319 @lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
320 (add-hook 'html-mode-hook 'hm--html-minor-mode)
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
321 @end lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
322 @end enumerate
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
323
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
324 @node Customization, Add New Elements, Installation, Top
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
325 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
326 @chapter Customization
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
327 @cindex customization
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
328 @cindex configuration
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
329
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
330 You should be able to use the package after its installation without
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
331 any further customization. But it contains a lot of user variables to
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
332 adapt the package better to your special needs. How to do this is
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
333 described in this chapter.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
334
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
335 @menu
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
336 * Customization (Configuration) Files::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
337 * Customization Variables::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
338 @end menu
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
339
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
340 @node Customization (Configuration) Files, Customization Variables, Customization, Customization
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
341 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
342 @section Customization (Configuration) Files
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
343 @cindex customization files
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
344 @cindex configuration files
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
345
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
346 This package uses 3 different files to customize the mode, but you need
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
347 not use all of them. Only one of them, the file
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
348 @file{hm--html-configuration.el} is delivered together with the package.
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
349 The reason for three different files is to provide the opportunity to
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
350 have different customization for the package, the site and the
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
351 user. There's also a pulldown menu item to reload all customization
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
352 files. The files are described in the following sections.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
353
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
354 @menu
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
355 * Where Are All The Customization Variables Defined::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
356 * Where To Put Site Specific Customization::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
357 * Where To Put User Specific Customization::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
358 @end menu
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
359
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
360 @node Where Are All The Customization Variables Defined, Where To Put Site Specific Customization, Customization (Configuration) Files, Customization (Configuration) Files
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
361 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
362 @subsection Where Are All The Customization Variables Defined
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
363 @cindex package specific customization
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
364 @cindex hm--configuration.el
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
365 @vindex HTML_CONFIG_FILE
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
366
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
367 All variables which can be used to customize the mode are defined in
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
368 the package configuration file @file{hm--configuration.el}. You should
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
369 take a look at this file if you don't find how to customize a feature
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
370 in this documentation (the documentation of a program is never as
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
371 complete as its program code :-).
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
372
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
373 This file is searched in one of your lisp load directories. You can
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
374 change this by setting the environment variable @code{HTML_CONFIG_FILE}
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
375 to another file. But I don't recommend this.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
376
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
377 @emph{Note}: This file is loaded before the other customization files,
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
378 so that its definitions could be overwritten. All variables are set by
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
379 @code{defvar}, so that its values could also be overwritten with
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
380 @code{setq} in any standard emacs customization files (e.g. in
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
381 @file{.emacs}).
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
382
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
383
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
384 @node Where To Put Site Specific Customization, Where To Put User Specific Customization, Where Are All The Customization Variables Defined, Customization (Configuration) Files
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
385 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
386 @subsection Where To Put Site Specific Customization
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
387 @cindex site specific customization
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
388 @cindex hm--site-configuration-file.el
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
389 @vindex HTML_SITE_CONFIG_FILE
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
390 @vindex hm--html-site-config-file
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
391
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
392 In general all users at a site are writing their html pages for the same
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
393 WWW server. Therefore it is very likely that most of the customizations
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
394 are site specific, and only a few are user specific. However, you
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
395 don't have to use a site specific customization if you don't want one.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
396
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
397 If you'd like to make a site specific customization of
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
398 @code{hm--html-mode}, it's possible to put it in a special file called
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
399 @file{hm--site-configuration-file.el}. If you do this, you have to set
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
400 either the lisp variable @code{hm--html-site-config-file} or the
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
401 environment variable @code{HTML_SITE_CONFIG_FILE} to the file and its
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
402 path. If you write the filename without its extension (.el), emacs
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
403 tries first to load a compiled version of the file.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
404
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
405 The environment variables overwrite the lisp variables.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
406
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
407 You can also put the site specific customization in any standard emacs
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
408 customization file like, @file{default.el}. But an advantage to
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
409 using @file{hm--site-configuration-file.el} is that it is very likely
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
410 you will be able to use this file with future versions of the
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
411 package. I'll try to make it as backward compatible as possible.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
412
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
413 @emph{Note}: This file is loaded after the package customization file
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
414 and before the user customization file.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
415
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
416 @node Where To Put User Specific Customization, , Where To Put Site Specific Customization, Customization (Configuration) Files
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
417 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
418 @subsection Where To Put User Specific Customization
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
419 @cindex user specific customization
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
420 @cindex ~/.hm--configuration-file.el
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
421 @vindex HTML_USER_CONFIG_FILE
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
422 @vindex hm--html-user-config-file
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
423
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
424 User specific customization can be put in the file
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
425 @file{.hm--configuration-file.el}, which is searched by default in the
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
426 home directory of the user. This can be overwritten by setting either
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
427 the environment variable @code{HTML_USER_CONFIG_FILE} or the lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
428 variable @code{hm--html-user-config-file} to the name of the file and
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
429 its path. If you write the filename without its extension (.el), emacs
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
430 tries first to load a compiled version of the file.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
431
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
432 You can also put the user specific customization in your
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
433 @file{.emacs}. It's up to you to decide which way is better.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
434
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
435 @emph{Note}: This file is loaded after the package and the site specific
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
436 one. Therefore it overwrites all other customization files.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
437
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
438
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
439 @node Customization Variables, , Customization (Configuration) Files, Customization
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
440 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
441 @section Customization Variables
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
442
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
443 In the following subsections the main customization variables are
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
444 described.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
445
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
446 @menu
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
447 * User Name/Signature::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
448 * Switching Between Expert And Novice Menus ::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
449 * HTML Doctype::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
450 * Defaults Used For Generating Links::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
451 * Templates::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
452 * Deleting Automounter Path Prefix::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
453 * Automatic Insert Of Information::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
454 * Latin 1 Characters::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
455 * Drag And Drop::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
456 * Font Lock Keywords::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
457 * Prefix Keys::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
458 * Pulldown Menu Names::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
459 * Hook Variables::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
460 * Previewing HTML Files::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
461 * Meta Element::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
462 * Indentation::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
463 @end menu
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
464
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
465
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
466 @node User Name/Signature, Switching Between Expert And Novice Menus , Customization Variables, Customization Variables
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
467 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
468 @subsection User Name/Signature
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
469 @cindex user name
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
470 @cindex signature
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
471 @vindex hm--html-username
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
472 @vindex hm--html-signature-file
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
473
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
474 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
475 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
476 @code{hm--html-username}: Your real name. This is used as the name of
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
477 the signature links. You need only specify it if your name in the
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
478 file @file{/etc/passwd} isn't the one you'd like to see in the html
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
479 files. Otherwise this may be set to @code{nil}.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
480 @item
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
481 @code{hm--html-signature-file}: The link used in your signature. In
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
482 general this should be a link to your home page.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
483 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
484
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
485
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
486 @node Switching Between Expert And Novice Menus , HTML Doctype, User Name/Signature, Customization Variables
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
487 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
488 @subsection Switching Between Expert And Novice Menus
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
489 @cindex expert menus
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
490 @cindex novice menus
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
491 @vindex hm--html-expert
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
492
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
493 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
494 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
495 @code{hm--html-expert}: If you're a html novice and don't want to be
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
496 bothered with lots of possible html elements, then you should use the
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
497 novice popup menus. For that, set this variable to @code{nil},
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
498 which is the default. But if you are more familiar with html and would
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
499 like to use more html elements, then you should use the expert menus and
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
500 set this variable to @code{t}.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
501 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
502
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
503
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
504 @node HTML Doctype, Defaults Used For Generating Links, Switching Between Expert And Novice Menus , Customization Variables
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
505 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
506 @subsection HTML Doctype
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
507 @vindex hm--html-html-doctype-version
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
508 @cindex HTML doctype
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
509
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
510 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
511 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
512 @code{hm--html-html-doctype-version}: The HTML version. This is used in
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
513 the doctype element. Change this if you use non HTML 3.2 elements. This
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
514 package (@xref{Overview, version}.) defines by default only HTML 3.2 elements.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
515 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
516
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
517
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
518 @node Defaults Used For Generating Links, Templates, HTML Doctype, Customization Variables
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
519 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
520 @subsection Defaults Used For Generating Links
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
521 @cindex links
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
522
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
523 One of the main features of @code{hm--html-mode} is its easy ways to
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
524 insert special links to html pages, ftp servers, news servers and so
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
525 on. I think that most people will have their own (this may be site
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
526 specific. @xref{Where To Put Site Specific Customization, Where To Put
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
527 Site Specific Customization}.) favourite servers, directories and so
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
528 on. You may customize the default values and the alists with useful
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
529 alternatives, which are used from the mode in the inserting functions
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
530 for the links.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
531
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
532 @menu
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
533 * Your Favourite HTTP Server::
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
534 * Links to WWW Servers::
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
535 * Links To Files::
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
536 * Links To FTP Servers::
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
537 * Links To Emacs Info Files::
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
538 * Links To Gopher Servers::
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
539 * Links To WAIS Gateways::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
540 * Links To The Mail Gateway::
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
541 * Links For Sending Mail::
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
542 * Links To The Program Gateway::
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
543 * Links To The Local Program Gateway::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
544 * URL For Forms And Image Tags::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
545 * Marking Of Examples::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
546 @end menu
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
547
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
548
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
549 @node Your Favourite HTTP Server, Links to WWW Servers, Defaults Used For Generating Links, Defaults Used For Generating Links
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
550 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
551 @subsubsection Your Favourite HTTP Server
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
552 @cindex favourite HTTP server
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
553 @vindex hm--html-favorite-http-server-host-name
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
554
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
555 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
556 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
557 @code{hm--html-favorite-http-server-host-name}: The name of your
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
558 favorite http server host. It must be specified! This variable is used
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
559 in many other variables.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
560 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
561
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
562
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
563 @node Links to WWW Servers, Links To Files, Your Favourite HTTP Server, Defaults Used For Generating Links
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
564 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
565 @subsubsection Links to WWW Server
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
566 @cindex WWW server links
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
567 @cindex HTTP links
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
568 @vindex hm--html-html-hostname:port-default
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
569 @vindex hm--html-html-hostname:port-alist
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
570 @vindex hm--html-html-path-alist
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
571
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
572 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
573 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
574 @code{hm--html-html-hostname:port-default}: Default hostname with port
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
575 for http links to a HTML server.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
576 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
577 @code{hm--html-html-hostname:port-alist}: Alist with hostnames and ports
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
578 for http links to HTML servers. It contains useful alternatives.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
579 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
580 @code{hm--html-html-path-alist}: Alist with directories for the HTML
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
581 server. Each alist element must consist of a number and a directory
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
582 string. The number is used to select the directory during the query
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
583 about the directory for an http link.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
584 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
585
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
586
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
587 @node Links To Files, Links To FTP Servers, Links to WWW Servers, Defaults Used For Generating Links
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
588 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
589 @subsubsection Links To Files
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
590 @cindex file gateway links
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
591 @vindex hm--html-file-path-alist
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
592
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
593 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
594 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
595 @code{hm--html-file-path-alist}: Alist with directories for the file
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
596 gateway. Each alist element must consist of a number and a directory
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
597 string. The number is used to select the directory during the query
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
598 about the directory for a file link.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
599 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
600
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
601
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
602 @node Links To FTP Servers, Links To Emacs Info Files, Links To Files, Defaults Used For Generating Links
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
603 @comment node-name, next, previous, up
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
604 @subsubsection Links To FTP Servers
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
605 @cindex FTP links
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
606 @vindex hm--html-ftp-hostname:port-default
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
607 @vindex hm--html-ftp-hostname:port-alist
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
608 @vindex hm--html-ftp-path-alist
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
609
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
610 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
611 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
612 @code{hm--html-ftp-hostname:port-default}: Default hostname with port
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
613 for links to an ftp server. This is for the default FTP server. In general
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
614 you don't need to specify a port for this.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
615 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
616 @code{hm--html-ftp-hostname:port-alist}: Alist with hostnames and ports
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
617 for links to ftp servers. It contains useful alternatives. In general
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
618 you don't need to specify ports for the ftp servers.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
619 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
620 @code{hm--html-ftp-path-alist}: Alist with directories for the ftp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
621 server links. It contains useful alternatives with /pub, /pub/gnu and
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
622 so on. Each alist element must consist of a number and a directory
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
623 string. The number is used to select the directory during the query
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
624 about the directory for an ftp link.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
625 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
626
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
627
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
628 @node Links To Emacs Info Files, Links To Gopher Servers, Links To FTP Servers, Defaults Used For Generating Links
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
629 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
630 @subsubsection Links To Emacs Info Files
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
631 @cindex emacs info links
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
632 @vindex hm--html-info-hostname:port-alist
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
633 @vindex hm--html-info-hostname:port-default
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
634 @vindex hm--html-info-path-alist
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
635
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
636 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
637 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
638 @code{hm--html-info-hostname:port-default}: Default hostname with port
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
639 for the Info gateway.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
640 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
641 @code{hm--html-info-hostname:port-alist}: Alist with hostnames and ports
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
642 for Info gateways. It contains useful alternatives.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
643 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
644 @code{hm--html-info-path-alist}: Alist with directories for the Info
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
645 gateway. This may be a list with all of your emacs info directories.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
646 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
647
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
648
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
649 @node Links To Gopher Servers, Links To WAIS Gateways, Links To Emacs Info Files, Defaults Used For Generating Links
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
650 @comment node-name, next, previous, up
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
651 @subsubsection Links To Gopher Servers
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
652 @cindex Gopher gateway links
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
653 @vindex hm--html-gopher-hostname:port-default
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
654 @vindex hm--html-gopher-hostname:port-alist
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
655 @vindex hm--html-gopher-doctype-default
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
656 @vindex hm--html-gopher-doctype-alist
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
657 @vindex hm--html-gopher-anchor-alist
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
658
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
659 There are a lot of useful gopher information servers on the Internet.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
660 You can access them with a gopher browser or with a WWW browser. In the
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
661 latter case you have to use the gopher gateway.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
662
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
663 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
664 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
665 @code{hm--html-gopher-hostname:port-default}: Default hostname with port
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
666 for links to the default gopher server.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
667 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
668 @code{hm--html-gopher-hostname:port-alist}: Alist with hostnames and
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
669 ports for links to gopher servers. It contains useful alternatives.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
670 @item
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
671 @code{hm--html-gopher-doctype-default}: For gopher links you have to
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
672 specify the doctype. In most cases this should be the string \"/1\".
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
673 Therefore this is the default doctype, but you can change it to
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
674 another.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
675 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
676 @code{hm--html-gopher-doctype-alist}: Alist with doctype strings for links
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
677 to a gopher server. The strings \"/1\", \"/11\" and \"/00\" are the only
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
678 doctype strings that I know. Please let me know if there are other
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
679 strings.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
680 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
681 @code{hm--html-gopher-anchor-alist}: Alist with directories for links to
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
682 a gopher server. It contains useful alternatives for the main gopher
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
683 servers. Each alist element must consist of a number and a directory
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
684 string. The number is used to select the directory during the query
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
685 about the directory for a local program gateway link.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
686 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
687
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
688
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
689 @node Links To WAIS Gateways, Links To The Mail Gateway, Links To Gopher Servers, Defaults Used For Generating Links
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
690 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
691 @subsubsection Links To WAIS Gateways
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
692 @cindex WAIS gateway links
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
693 @vindex hm--html-wais-hostname:port-alist
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
694 @vindex hm--html-wais-hostname:port-default
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
695 @vindex hm--html-wais-servername:port-alist
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
696 @vindex hm--html-wais-servername:port-default
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
697 @vindex hm--html-wais-path-alist
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
698
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
699 You can either make a link direct to a WAIS server (it may be that not
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
700 all WWW browsers support this) or an http link to a server (relay host)
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
701 which queries the WAIS server. The variables
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
702 @code{hm--html-wais-hostname:port-default} and
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
703 @code{hm--html-wais-hostname} refer to these relay hosts and the
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
704 variables @code{hm--html-wais-servername:port-default} and
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
705 @code{hm--html-wais-servername:port-alist} refer to the WAIS servers.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
706
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
707 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
708 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
709 @code{hm--html-wais-hostname:port-default}: Default hostname of the
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
710 relay host with port for the WAIS gateway.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
711 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
712 @code{hm--html-wais-hostname:port-alist}: Alist with hostnames of
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
713 possible relay hosts and ports for the WAIS gateway. It contains
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
714 useful alternatives.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
715 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
716 @code{hm--html-wais-servername:port-default}: Default WAIS servername
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
717 with port for the WAIS gateway.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
718 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
719 @code{hm--html-wais-servername:port-alist}: Alist with WAIS servernames
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
720 and ports for the WAIS gateway. It contains useful alternatives.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
721 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
722 @code{hm--html-wais-path-alist}: Alist with directories for the wais gateway.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
723 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
724
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
725
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
726 @node Links To The Mail Gateway, Links For Sending Mail, Links To WAIS Gateways, Defaults Used For Generating Links
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
727 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
728 @subsubsection Links To The Mail Gateway
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
729 @cindex Mail gateway links
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
730 @cindex Mail folder links
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
731 @vindex hm--html-mail-hostname:port-default
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
732 @vindex hm--html-mail-hostname:port-alist
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
733 @vindex hm--html-mail-path-alist
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
734
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
735 The following variables are for customizing the insertion of links to a mail
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
736 folder. You need a special server for this, which sends the email back
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
737 to the browser.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
738
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
739 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
740 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
741 @code{hm--html-mail-hostname:port-default}: Default hostname with port
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
742 for the mail gateway.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
743 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
744 @code{hm--html-mail-hostname:port-alist}: Alist with hostnames and ports
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
745 for the mail gateway. It contains useful alternatives.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
746 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
747 @code{hm--html-mail-path-alist}: Alist with directories for the mail
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
748 gateway. In these directories you'll probably find mail folders. Each
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
749 alist element must consist of a number and a directory string. The
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
750 number is used to select the directory during the query about the
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
751 directory for a mail folder link.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
752 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
753
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
754
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
755 @node Links For Sending Mail, Links To The Program Gateway, Links To The Mail Gateway, Defaults Used For Generating Links
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
756 @comment node-name, next, previous, up
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
757 @subsubsection Links For Sending Mail
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
758 @cindex mailto links
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
759 @vindex hm--html-mailto-alist
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
760
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
761 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
762 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
763 @code{hm--html-mailto-alist}: Alist with mail addresses for the mailto
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
764 alist. The value of `user-mail-address' will also be added by the
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
765 package to this alist.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
766 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
767
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
768
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
769 @node Links To The Program Gateway, Links To The Local Program Gateway, Links For Sending Mail, Defaults Used For Generating Links
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
770 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
771 @subsubsection Links To The Program Gateway
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
772 @cindex program gateway links
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
773 @vindex hm--html-proggate-hostname:port-default
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
774 @vindex hm--html-proggate-hostname:port-alist
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
775 @vindex hm--html-proggate-allowed-file
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
776
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
777 The program gateway is a special TNT site specific gateway for starting
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
778 programs out of a html page. The programs are started by a special
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
779 server, which looks in an allowed file to determine if it is allowed to
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
780 start the program. This is necessary because the programs are running
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
781 under the user id of the server. We're only allowed to start simple
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
782 display programs like man, ls and so on.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
783
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
784 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
785 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
786 @code{hm--html-proggate-hostname:port-default}: Default hostname with
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
787 port for the proggate server.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
788 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
789 @code{hm--html-proggate-hostname:port-alist}: Alist with hostnames and
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
790 ports for the proggate server. It contains useful alternatives.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
791 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
792 @code{hm--html-proggate-allowed-file}: The filename (with path) of the
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
793 proggate allowed file.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
794 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
795
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
796
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
797 @node Links To The Local Program Gateway, URL For Forms And Image Tags, Links To The Program Gateway, Defaults Used For Generating Links
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
798 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
799 @subsubsection Links To The Local Program Gateway
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
800 @cindex local program gateway links
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
801 @vindex hm--html-local-proggate-path-alist
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
802
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
803 Another TNT site specific way to start programs from a html page. These
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
804 programs are started with the id of the user on the host where the
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
805 client (browser) is running. Therefore no restriction about the allowed
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
806 programs is made. With this you can start only programs and do only
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
807 things, which you can do also without the WWW browser.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
808
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
809 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
810 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
811 @code{hm--html-local-proggate-path-alist}: Alist with directories for
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
812 the local program gateway. Contains directories, where you can find
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
813 programs.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
814 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
815
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
816
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
817 @node URL For Forms And Image Tags, Marking Of Examples, Links To The Local Program Gateway, Defaults Used For Generating Links
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
818 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
819 @subsubsection URL For Forms And Image Tags
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
820 @cindex forms URL
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
821 @cindex image URL
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
822 @vindex hm--html-url-alist
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
823
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
824 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
825 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
826 @code{hm--html-url-alist}: Alist with URL's for FORMS and IMAGE tags.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
827 The cdr of each list contains symbols, which specifies the use of the
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
828 URL.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
829 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
830
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
831
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
832 @node Marking Of Examples, , URL For Forms And Image Tags, Defaults Used For Generating Links
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
833 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
834 @subsubsection Marking Of Examples
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
835 @cindex color of help text
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
836 @cindex font of help text
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
837 @vindex hm--html-help-foreground
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
838 @vindex hm--html-help-background
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
839 @vindex hm--html-help-font
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
840
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
841 The following variables are for marking the examples in the help
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
842 buffer.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
843
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
844 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
845 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
846 @code{hm--html-help-foreground}: The foreground color for highlighting
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
847 examples.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
848 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
849 @code{hm--html-help-background}: The background color for highlighting
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
850 examples.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
851 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
852 @code{hm--html-help-font}: The font for highlighting examples.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
853 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
854
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
855
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
856 @node Templates, Deleting Automounter Path Prefix, Defaults Used For Generating Links, Customization Variables
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
857 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
858 @subsection Templates
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
859 @cindex templates
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
860 @vindex hm--html-template-dir
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
861 @vindex hm--html-frame-template-file
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
862 @vindex hm--html-automatic-expand-templates
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
863
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
864 For inserting html template files you can customize where you keep your
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
865 templates.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
866
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
867 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
868 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
869 @code{hm--html-template-dir}: A directory with template files. It is now
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
870 also possible to use it as a list of directories. Look at the variable
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
871 @code{tmpl-template-dir-list} for further descriptions. If this
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
872 variable is set to a non-existent directory, then it defaults to the
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
873 directory where the package is in XEmacs. This is done during
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
874 loading the file @file{hm--html-configuration.el} (@xref{Where Are All
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
875 The Customization Variables Defined, Where Are All The Customization
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
876 Variables Defined}.). This may only be useful in XEmacs >= 19.12.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
877 @item
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
878 @code{hm--html-frame-template-file}: File which is used as template for
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
879 a html frame. An example is in the package
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
880 @emph{hm--html-menus}. @xref{Contents, Contents}.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
881 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
882 @code{hm--html-automatic-expand-templates}: Automatic expansion of
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
883 templates. This feature needs the file @file{tmpl-minor-mode.el} from Heiko
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
884 Münkel (@cite{muenkel@@tnt.uni-hannover.de}), which is distributed with the
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
885 package hm--html-menus.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
886 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
887 @code{hm--html-template-filter-regexp}: Regexp for filtering out non
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
888 (html) template files in a directory.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
889 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
890
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
891
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
892 @node Deleting Automounter Path Prefix, Automatic Insert Of Information, Templates, Customization Variables
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
893 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
894 @subsection Deleting Automounter Path Prefix
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
895 @cindex automounter path
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
896 @vindex hm--html-delete-wrong-path-prefix
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
897
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
898 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
899 @item
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
900 @code{hm--html-delete-wrong-path-prefix}: If non-nil, it specifies path-prefixes which should be deleted in paths.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
901 The Sun automounter adds a temporary prefix to the automounted directories
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
902 (at our site the prefix is /tmp_mnt). But you can't select such a path
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
903 if the automounter has currently not mounted the directory, and so you
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
904 can't follow an html link which consists of such a path. To overcome
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
905 this behaviour, you can set this variable to the prefix
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
906 (e.g. "/tmp_mnt"). After that, the prefix should be stripped from the
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
907 paths during the creation of the links. ATTENTION: This variable is
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
908 used as a regular expression! It can be set to a string or to a list of
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
909 strings.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
910 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
911
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
912 @node Automatic Insert Of Information, Latin 1 Characters, Deleting Automounter Path Prefix, Customization Variables
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
913 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
914 @subsection Automatic Insert Of Information
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
915 @cindex automatic insert
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
916 @cindex date
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
917 @cindex changed comment
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
918 @cindex created comment
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
919 @vindex hm--html-automatic-new-date
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
920 @vindex hm--html-automatic-changed-comment
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
921 @vindex hm--html-automatic-created-comment
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
922
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
923 The @code{hm--html-mode} automatically inserts some useful information in
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
924 html pages. This behaviour can be changed by the following variables.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
925
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
926 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
927 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
928 @code{hm--html-automatic-new-date}: t => The date in the title line will
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
929 be updated before file saving. nil => No automatic update of the date.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
930 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
931 @code{hm--html-automatic-changed-comment}: t => A "changed comment"
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
932 line will be added before file saving. nil => No automatic insert
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
933 of a "changed comment" line.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
934 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
935 @code{hm--html-automatic-created-comment}: t => A "created comment"
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
936 line will be added. nil => No automatic insert of a "created
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
937 comment" line.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
938 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
939
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
940
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
941 @node Latin 1 Characters, Drag And Drop, Automatic Insert Of Information, Customization Variables
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
942 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
943 @subsection Latin 1 Characters
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
944 @cindex latin 1 characters
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
945 @vindex hm--html-bind-latin-1-char-entities
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
946
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
947 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
948 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
949 @code{hm--html-bind-latin-1-char-entities}: Set this to nil, if you
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
950 don't want to use the ISO Latin 1 character entities. This is only
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
951 useful if `hm--html-use-old-keymap' is set to nil. It is only used
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
952 when loading the html package the first time.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
953 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
954
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
955
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
956 @node Drag And Drop, Font Lock Keywords, Latin 1 Characters, Customization Variables
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
957 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
958 @subsection Drag And Drop
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
959 @cindex drag and drop
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
960 @vindex hm--html-idd-create-relative-links
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
961 @vindex hm--html-idd-actions
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
962
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
963 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
964 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
965 @code{hm--html-idd-create-relative-links}: If t, then the
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
966 @code{hm--html-idd-*} functions create relative links. Otherwise
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
967 absolute links are used. The idd functions are used for drag and drop.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
968 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
969 @code{hm--html-idd-actions}: The action list for the destination mode
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
970 @code{hm--html-mode}. Look at the description of the variable
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
971 idd-actions.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
972 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
973
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
974
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
975 @node Font Lock Keywords, Prefix Keys, Drag And Drop, Customization Variables
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
976 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
977 @subsection Font Lock Keywords
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
978 @cindex font lock keywords
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
979 @vindex hm--html-font-lock-keywords-1
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
980 @vindex hm--html-font-lock-keywords-2
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
981 @vindex hm--html-font-lock-keywords
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
982
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
983 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
984 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
985 @code{hm--html-font-lock-keywords-1}: Subdued level highlighting for
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
986 @code{hm--html-mode}.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
987 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
988 @code{hm--html-font-lock-keywords-2}: Gaudy level highlighting for
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
989 @code{hm--html-mode}.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
990 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
991 @code{hm--html-font-lock-keywords}: Default expressions to highlight in
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
992 the @code{hm--html-mode}.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
993 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
994
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
995
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
996 @node Prefix Keys, Pulldown Menu Names, Font Lock Keywords, Customization Variables
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
997 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
998 @subsection Prefix Keys
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
999 @cindex prefix keys
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1000 @kindex prefix keys
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1001 @vindex hm--html-minor-mode-prefix-key
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1002 @vindex hm--html-mode-prefix-key
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1003
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1004 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1005 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1006 @code{hm--html-minor-mode-prefix-key}: The prefix key for the key tables
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1007 in @code{hm--html-minor-mode}.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1008 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1009 @code{hm--html-mode-prefix-key}: The prefix key for the hm--html keys in
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1010 @code{hm--html-mode}.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1011 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1012
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1013
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1014 @node Pulldown Menu Names, Hook Variables, Prefix Keys, Customization Variables
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1015 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1016 @subsection Pulldown Menu Names
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1017 @cindex pulldown menu names
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1018 @vindex hm--html-minor-mode-pulldown-menu-name
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1019 @vindex hm--html-mode-pulldown-menu-name
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1020
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1021 Perhaps you'd like to change the names to get the same menu
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1022 names in the major and in the minor modes of the @code{hm--html-menus}
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1023 package.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1024
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1025 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1026 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1027 @code{hm--html-mode-pulldown-menu-name}: The name of the pulldown menu
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1028 in the major html mode.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1029 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1030 @code{hm--html-minor-mode-pulldown-menu-name}: The name of the pulldown
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1031 menu in the minor html mode.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1032 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1033
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1034
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1035 @node Hook Variables, Previewing HTML Files, Pulldown Menu Names, Customization Variables
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1036 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1037 @subsection Hook Variables
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1038 @vindex hm--html-mode-hook
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1039
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1040 You may use the following two variables, if you'd like to call special
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1041 functions each time the major html mode is entered or the package is
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1042 loaded.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1043
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1044 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1045 @item
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1046 @code{hm--html-mode-hook}: This hook will be called each time
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1047 @code{hm--html-mode} is invoked.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1048 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1049 @code{hm--html-load-hook}: Hook variable to execute functions after
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1050 loading the package.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1051 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1052
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1053
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1054 @node Previewing HTML Files, Meta Element, Hook Variables, Customization Variables
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1055 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1056 @subsection Previewing HTML Files
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1057 @cindex previewing HTML files
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1058 @vindex html-view-mosaic-command
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1059 @vindex html-sigusr1-signal-value
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1060
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1061 The following two variables are only used, if you preview html
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1062 documents with @code{Mosaic}. There are also some other variables in
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1063 @file{hmtl-view.el}. @xref{Contents, Contents}. Look at that file if
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1064 you have trouble with the functions to preview the html document with
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1065 @code{Mosaic}.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1066
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1067 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1068 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1069 @code{html-view-mosaic-command}: The command that runs @code{Mosaic} on your
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1070 system.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1071 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1072 @code{html-sigusr1-signal-value}: Value for the SIGUSR1 signal on your
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1073 system. See, usually, @file{/usr/include/sys/signal.h}.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1074 @example
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1075 SunOS 4.1.x : (setq html-sigusr1-signal-value 30)
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1076 SunOS 5.x : (setq html-sigusr1-signal-value 16)
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1077 Linux : (setq html-sigusr1-signal-value 10))
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1078 @end example
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1079 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1080
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1081
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1082 @node Meta Element, Indentation, Previewing HTML Files, Customization Variables
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1083 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1084 @subsection Meta Element
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1085 @cindex meta element
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1086 @vindex hm--html-meta-name-alist
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1087
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1088 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1089 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1090 @code{hm--html-meta-name-alist}: Alist with possible names for the name
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1091 or http-equiv attribute of meta. Currently I know of the names
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1092 @code{Expires}, @code{Keys} and @code{Author}. Please send me
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1093 (@emph{muenkel@@tnt.uni-hannover.de}) an email, if you know other
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1094 standard html names for the meta element.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1095 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1096
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1097
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1098 @node Indentation, , Meta Element, Customization Variables
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1099 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1100 @subsection Indentation
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1101 @cindex indentation
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1102 @vindex hm--html-disable-indentation
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1103 @vindex hm--html-inter-tag-indent
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1104 @vindex hm--html-comment-indent
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1105 @vindex hm--html-intra-tag-indent
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1106 @vindex hm--html-tag-name-alist
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1107
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1108 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1109 @item
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1110 @code{hm--html-disable-indentation}: Set this to t if you want to
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1111 disable indentation in @code{hm--html-mode}. And maybe send me
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1112 (@emph{muenkel@@tnt.uni-hannover.de}) a note why you did this.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1113 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1114 @code{hm--html-inter-tag-indent}: The indentation after a start tag.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1115 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1116 @code{hm--html-comment-indent}: The indentation of a comment.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1117 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1118 @code{hm--html-intra-tag-indent}: The indentation after the start of a
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1119 tag.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1120 @item
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1121 @code{hm--html-tag-name-alist}: An alist with tag names known by
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1122 @code{hm--html-mode}. It is used to determine if a tag is a one element
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1123 tag or not. In the future it should also be used to get possible
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1124 parameters of the tag. Use lower case characters in this list!!!! If
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1125 you have problems with the indentation of
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1126 @code{:hm--html-one-or-two-element-tag} elements, then you should set
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1127 them to either @code{:hm--html-one-element-tag} or
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1128 @code{:hm--html-two-element-tag}, depending on how you use these
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1129 elements. In the future I'll try to implement a better indentation for
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1130 these elements.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1131 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1132
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1133
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1134 @node Add New Elements, Use With psgml-html, Customization, Top
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1135 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1136 @chapter Add New Elements
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1137 @cindex add new html elements
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1138 @cindex non standard html
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1139 @vindex hm--html-tag-name-alist
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1140
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1141 If you'd like to add new HTML elements to this package, you should first take
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1142 a look at the file @file{hm--html-not-standard.el}, which
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1143 already contains some non-standard elements. If you find your tags
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1144 there, you should uncomment the line @code{(require
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1145 'hm--html-not-standard)} in the file @file{hm--html-mode.el}. There are
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1146 also menu entries for these elements in the file
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1147 @file{hm--html-menu.el}, which are commented out. Don't forget to
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1148 recompile the changed lisp files after that!
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1149
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1150 If you don't find your new elements there, you should do the following
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1151 steps to add them:
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1152
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1153 @enumerate
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1154 @item
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1155 Locate a tag which is similar to the one you want to add. "Similar"
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1156 means that it is inserted in the way you want to insert the new
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1157 tags. Now let's assume, that you chose @samp{<strong></strong>}.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1158 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1159 Look at the file @file{hm--html.el} and search the function(s) which
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1160 inserts the similar tag(s). If the HTML element consists of only one
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1161 tag, then there should be only one function for inserting the tag. If
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1162 the element consists of a start and an end tag, there are at least two
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1163 functions. Only in some special cases, if it is possible to insert
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1164 elements with different attribute values, are there more than two
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1165 functions. In the case of @samp{<strong></strong>}, there are the two
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1166 functions @code{hm--html-add-strong} and
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1167 @code{hm--html-add-strong-to-region}. The first one is used if no
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1168 region is active, and the second if a region is active. The naming scheme
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1169 of these functions is always @var{hm--html-add-<tagname>} and
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1170 @var{hm--html-add-<tagname>-to-region}. @var{<tagname>} is not in all
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1171 cases the tagname. Sometimes a more human readable name is used (e.g.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1172 bold instead of b).
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1173 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1174 To get the right indentation for the new tags you should add an entry
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1175 for them to the variable @code{hm--html-tag-name-alist}, which is defined
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1176 in @file{hm--html-configuration.el}. Let's assume that the new tagname
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1177 is @samp{foo}. The entry in @code{hm--html-tag-name-alist} should
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1178 be
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1179 @lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1180 ("foo" (:hm--html-one-element-tag t))
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1181 @end lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1182 if the new element consists only of one tag (@samp{img} is such an
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1183 element) or
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1184 @lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1185 ("foo" (:hm--html-two-element-tag t))
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1186 @end lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1187 if the new element consists of two tags (@samp{strong} is such an
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1188 element) or
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1189 @lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1190 ("foo" (:hm--html-one-or-two-element-tag t))
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1191 @end lisp
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1192 if the new element consists of two tags, but it is permissible to use the
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1193 start tag without its end tag (@samp{p} is such an element).
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1194 @end enumerate
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1195
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1196 Now you are ready and able to insert the new tags with
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1197 @example
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1198 M-x hm--html-add-foo
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1199 @end example
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1200 and
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1201 @example
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1202 M-x hm--html-add-foo-to-region
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1203 @end example
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1204
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1205 If you want to add the new commands also to the popup menu,
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1206 then you have to take a look at @file{hm--html-menu.el}, where all the
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1207 menus are defined. Look at @code{hm--html-menu-noregion-expert} and
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1208 @code{hm--html-menu-region-expert}. The first one is used if no region is
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1209 active, and the second if a region is active (both are only available
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1210 if the "expert menus" are used; this is an option in the pulldown
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1211 menu). You should now add an entry like
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1212 @lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1213 ["Foo" hm--html-add-foo t]
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1214 @end lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1215 to the @code{hm--html-menu-noregion-expert} variable and an entry
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1216 @lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1217 ["Foo" hm--html-add-foo-to-region t]
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1218 @end lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1219 to the @code{hm--html-menu-region-expert} variable (only if
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1220 @code{hm--html-add-foo-to-region} exists). You can do this by setting the
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1221 whole variable to a new value or by using the function
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1222 @code{add-menu-button}. I recommend the last method.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1223
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1224 If you'd like to have a key sequence for inserting the new tag as well,
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1225 take a look at @file{hm--html-keys.el}. There are
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1226 different key tables defined for region and no region cases and for
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1227 different sorts of elements, like anchors, frame elements (doesn't mean
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1228 the Netscape element frame) and so on. These "groups" are the same as
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1229 the submenu groups.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1230
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1231
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1232 @node Use With psgml-html, Internal Drag And Drop, Add New Elements, Top
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1233 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1234 @chapter Use With psgml-html
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1235 @cindex use with other HTML modes
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1236 @findex hm--html-minor-mode
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1237
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1238 The package provides a minor mode called @code{hm--html-minor-mode},
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1239 which could be used to join the features of this package with another
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1240 HTML package. Currently this is only tested with the psgml-html mode in
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1241 XEmacs. Please let me know if it works or not with other packages
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1242 or in Emacs 19.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1243
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1244 If you'd like to use the minor mode in psgml-html mode,
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1245 put the following line in your @file{.emacs}:
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1246
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1247 @lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1248 (add-hook 'html-mode-hook 'hm--html-minor-mode)
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1249 @end lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1250
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1251 Note: This should work only in XEmacs versions greater than 19.14 and not
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1252 in 20.0. It doesn't work in other versions because the hook variable
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1253 @code{html-mode-hook} doesn't exist in those versions. Therefore in those
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1254 versions you must either call the minor mode by hand or change the
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1255 lisp file of the psgml-html mode.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1256
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1257
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1258 @node Internal Drag And Drop, Template Minor Mode, Use With psgml-html, Top
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1259 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1260 @chapter Internal Drag And Drop
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1261 @cindex drag and drop
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1262 @cindex internal drag and drop
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1263 @vindex idd-actions
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1264 @vindex hm--html-idd-actions
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1265
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1266
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1267 The file @file{internal-drag-and-drop.el}, which is shipped with
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1268 @file{hm--html-menus}, provides a general package for internal drag and
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1269 drop in emacs. "General" means that it can be used apart from
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1270 @code{hm--html-mode} in any other mode.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1271
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1272 You can start such an action by clicking with the mouse in the source
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1273 buffer and then in the destination buffer. The action may depend on
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1274 the points where you've clicked with the mouse, on the state of the
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1275 region, the point, the mark and any other properties of the source and
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1276 the destination buffers. The actions are defined by the variable
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1277 @code{idd-actions}, which is a buffer local variable.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1278
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1279
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1280 @menu
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1281 * Drag And Drop Customization::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1282 * The Drag And Drop Commands::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1283 @end menu
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1284
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1285 @node Drag And Drop Customization, The Drag And Drop Commands, Internal Drag And Drop, Internal Drag And Drop
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1286 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1287 @section Drag And Drop Customization
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1288 @cindex customization
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1289 @cindex configuration
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1290
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1291 The internal drag and drop functions may be used in all
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1292 modes. Therefore their general customization isn't done in
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1293 @file{hm--html-configuration.el}. Its variables are defined in the file
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1294 @file{internal-drag-and-drop.el} instead. You can set them in your
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1295 @file{.emacs} or in one of the other emacs init files (e.g.
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1296 @file{default.el}). The following subsections describe the main
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1297 customization variables.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1298
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1299
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1300 @menu
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1301 * Defining The Drag And Drop Actions::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1302 * The Mouse Bindings::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1303 @end menu
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1304
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1305 @node Defining The Drag And Drop Actions, The Mouse Bindings, Drag And Drop Customization, Drag And Drop Customization
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1306 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1307 @subsection Defining The Drag And Drop Actions
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1308 @cindex actions
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1309 @cindex drag and drop actions
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1310 @vindex idd-actions
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1311
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1312 The drag and drop actions are commands which are called after an
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1313 internal drag and drop. They depend on the source and the destination
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1314 of the drag and drop. Drag and drop actions are defined by the
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1315 variable:
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1316
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1317 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1318 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1319 @code{idd-actions}: A list with actions, depending on the source and the
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1320 destination of the drag and drop command.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1321 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1322
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1323 The list looks like:
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1324 @lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1325 '((@var{<destination-specification-1>} (@var{<source-specification-1>} @var{<action-1-1>})
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1326 (@var{<source-specification-2>} @var{<action-1-2>})
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1327 :
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1328 )
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1329 (@var{<destination-specification-2>} (@var{<source-specification-1>} @var{<action-2-1>})
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1330 (@var{<source-specification-2>} @var{<action-2-2>})
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1331 :
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1332 )
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1333 :
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1334 )
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1335 @end lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1336 The @var{<source-specification>} looks like the following:
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1337 @lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1338 '([(@var{<specification-type>} @var{<value>})])
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1339 @end lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1340 with
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1341 @lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1342 @table @var
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1343 @item <specification-type> :==
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1344 @w{@code{idd-if-minor-mode-p}} | @w{@code{idd-if-buffer-name-p}} |
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1345 @w{@code{idd-if-region-active-p}} | @w{@code{idd-if-url-at-point-p}} |
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1346 @w{@code{idd-if-major-mode-p}} | @w{@code{idd-if-variable-non-nil-p}} |
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1347 @w{@code{idd-if-dired-file-on-line-p}} |
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1348 @w{@code{idd-if-dired-no-file-on-line-p}} |
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1349 @w{@code{idd-if-local-file-p}} | @w{@code{idd-if-buffer-name-p}} |
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1350 @w{@code{idd-if-modifiers-p}} | ...
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1351 @end table
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1352 @end lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1353
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1354 The @var{<specification-type>} - functions must have two arguments. The
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1355 first one is the source or destination and the second is the
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1356 @var{<value>}. It must return @code{nil}, if the test wasn't successful,
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1357 and a number (in general 1), which specifies the weight of the test
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1358 function. The weights of all single tests are added to a summary weight
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1359 and assigned to the action. The action with the highest weight is called
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1360 from the action handler. Look at the definition of
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1361 @w{@code{idd-if-major-mode-p}}, @w{@code{idd-if-minor-mode-p}} and so on for
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1362 examples. Look at the function
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1363 @code{idd-get-source-or-destination-alist}, if you want to know the
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1364 structure of the @code{source-or-destination} argument of these
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1365 functions.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1366
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1367 The @var{<destination-specification>} looks like
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1368 @var{<source-specification>}, but in general it could be set to
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1369 @code{nil} in mode specific idd-action lists.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1370
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1371 If @var{<destination-specification-1>} or @var{<source-specification-1>}
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1372 is set to @code{nil}, then every source or source
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1373 matches. @code{idd-actions} is a buffer local variable, which should be
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1374 at least mode depended. So if the @var{<destination-specification-1>} is
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1375 set to @code{nil} it says, that the destination buffer must only have a
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1376 specific mode. However, it's also possible to define a general
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1377 @code{idd-actions} list, where the destination mode is specified by
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1378 @code{idd-if-major-mode-p}.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1379
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1380 @var{<action>} is a function which has two arguments. The first
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1381 specifies the source and the second the destination. Look at the
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1382 function definition of @code{idd-action-copy-region} and
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1383 @code{idd-action-copy-replace-region}. They are examples for such
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1384 actions.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1385
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1386 The following is an example for @code{hm--html-mode}:
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1387
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1388 @lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1389 (defvar idd-actions
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1390 '((nil (((idd-if-major-mode-p . dired-mode)
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1391 (idd-if-dired-file-on-line-p . ".*\\.\\(gif\\)\\|\\(jpq\\)"))
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1392 hm--html-idd-add-include-image-from-dired-line)
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1393 (((idd-if-major-mode-p . dired-mode)
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1394 (idd-if-dired-no-file-on-line-p . nil))
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1395 hm--html-idd-add-file-link-to-file-on-dired-line)
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1396 (((idd-if-major-mode-p . dired-mode)
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1397 (idd-if-dired-no-file-on-line-p . t))
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1398 hm--html-idd-add-file-link-to-directory-of-buffer)
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1399 (((idd-if-major-mode-p . w3-mode)
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1400 (idd-if-url-at-point-p . t))
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1401 hm--html-idd-add-html-link-from-w3-buffer-point)
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1402 (((idd-if-major-mode-p . w3-mode))
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1403 hm--html-idd-add-html-link-to-w3-buffer)
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1404 (((idd-if-local-file-p . t))
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1405 hm--html-idd-add-file-link-to-buffer)))
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1406 @end lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1407
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1408
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1409 @node The Mouse Bindings, , Defining The Drag And Drop Actions, Drag And Drop Customization
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1410 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1411 @subsection The Mouse Bindings
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1412 @cindex mouse bindings
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1413 @vindex idd-global-mouse-keys
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1414 @vindex idd-global-help-mouse-keys
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1415 @vindex idd-drag-and-drop-mouse-binding-type
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1416 @findex idd-mouse-drag-and-drop
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1417 @findex idd-help-mouse-drag-and-drop
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1418
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1419 The following three variables determine the mouse
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1420 bindings and the mouse behaviour for the internal drag and drop package:
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1421
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1422 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1423 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1424 @code{idd-global-mouse-keys}: The mouse keys for the command
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1425 @code{idd-mouse-drag-and-drop}. The command
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1426 @code{idd-mouse-drag-and-drop} is bound during the loading of the
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1427 package @file{internal-drag-and-drop} to these keys in the @b{global
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1428 keymap}. The drag and drop action @b{must be bound global}, because the
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1429 drag and drop action must be started by a click in the source
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1430 buffer. Therefore no action will be performed if the mouse keys are not
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1431 bound to @code{idd-mouse-drag-and-drop} in the destination buffer.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1432
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1433 Set it to @code{nil}, if you don't want to bind this function during
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1434 loading.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1435
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1436 If the command is already bound in the global keymap during loading,
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1437 then this key sequence will not be bound.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1438
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1439 By default the mouse binding is @key{meta} @key{control} @key{button1}.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1440
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1441 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1442 @code{idd-global-help-mouse-keys}: The mouse keys for the command
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1443 @code{idd-help-mouse-drag-and-drop}. The command
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1444 @code{idd-help-mouse-drag-and-drop} is bound during the loading of the
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1445 package @file{internal-drag-and-drop} to these keys in the @b{global
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1446 keymap}.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1447
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1448 Set it to @code{nil} if you don't want to bind this function during
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1449 loading.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1450
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1451 If the command is already bound in the global keymap during loading,
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1452 then this key sequence will not be bound.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1453
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1454 By default the mouse binding is @key{meta} @key{control} @key{button3}.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1455
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1456 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1457 @code{idd-drag-and-drop-mouse-binding-type}: The type of the drag and
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1458 drop mouse binding. The value may be @code{click} or
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1459 @code{press-button-during-move}. A value of @code{click} means that
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1460 you have to click over the source, release the button and click it again
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1461 over the destination. A value of @code{press-button-during-move} means
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1462 that you have to press the button down over the source and hold it until
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1463 the mouse pointer is over the destination.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1464
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1465 The @emph{disadvantage} of the @code{press-button-during-move} type
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1466 compared with the @code{click} type is that you can't select a destination
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1467 region, and therefore a drag and drop action depending on a selected
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1468 region can't be started with that type of mouse binding.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1469 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1470
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1471 @node The Drag And Drop Commands, , Drag And Drop Customization, Internal Drag And Drop
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1472 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1473 @section The Drag And Drop Commands
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1474 @cindex drag and drop commands
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1475
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1476 There are 2 groups of commands. The first contains commands which
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1477 perform the drag and drop action and the second displays help
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1478 messages about a possible drag and drop action.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1479
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1480
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1481 @menu
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1482 * Performing The Drag And Drop Action::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1483 * Displaying Help On Drag And Drop::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1484 @end menu
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1485
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1486 @node Performing The Drag And Drop Action, Displaying Help On Drag And Drop, The Drag And Drop Commands, The Drag And Drop Commands
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1487 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1488 @subsection Performing The Drag And Drop Action
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1489 @cindex drag and drop commands
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1490 @cindex performing drag and drop
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1491 @findex idd-mouse-drag-and-drop
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1492 @findex idd-start-mouse-drag-and-drop
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1493 @findex idd-mouse-drag-and-drop-press-button-during-move
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1494 @findex idd-mouse-drag-and-drop-click
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1495 @findex idd-help-start-action
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1496 @vindex idd-drag-and-drop-mouse-binding-type
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1497
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1498 The following five commands perform internal
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1499 drag and drop actions:
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1500
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1501 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1502 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1503 @code{idd-mouse-drag-and-drop}: Performs a drag and drop action. It
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1504 calls the command @code{idd-mouse-drag-and-drop-click} or
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1505 @code{idd-mouse-drag-and-drop-press-button-during-move} depending on the
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1506 value of @code{idd-drag-and-drop-mouse-binding-type}. However you've set
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1507 this, you start a drag and drop action with this command by pressing
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1508 down its mouse button over the source. This command is bound by default
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1509 to a global mouse key sequence. @xref{The Mouse Bindings}.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1510
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1511 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1512 @code{idd-start-mouse-drag-and-drop}: Starts a drag and drop command.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1513 This command could be used to start a drag and drop command without a
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1514 button event. Therefore this should not be bound directly to a mouse
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1515 button. This command can be used to start a drag and drop action with a
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1516 click on a menu item or tool bar icon. After that you have to press a
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1517 mouse button over the source. The rest depends on the value of
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1518 @code{idd-drag-and-drop-mouse-binding-type}, as with the command
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1519 @code{idd-mouse-drag-and-drop}.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1520
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1521 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1522 @code{idd-help-start-action}: It is possible to display a help buffer
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1523 with a message in it, which describes the action instead of performing
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1524 it immediately (@pxref{Displaying Help On Drag And Drop}). In this case
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1525 you can perform the action by clicking on a special extent in the help
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1526 buffer, which runs this command.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1527
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1528 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1529 @code{idd-mouse-drag-and-drop-press-button-during-move}: Performs a drag
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1530 and drop action in a more traditional way than
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1531 @code{idd-mouse-drag-and-drop-click}. First you press the button
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1532 over the source and then move with the depressed button to the
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1533 destination, where you release the button. This must be bound to a
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1534 mouse button. The @code{SOURCE-EVENT} must be a
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1535 @code{button-press-event}.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1536
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1537 The disadvantage of this command compared with the command
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1538 @code{idd-mouse-drag-and-drop-click} is, that you can't select a
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1539 destination region.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1540
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1541 You should bind the command @code{idd-mouse-drag-and-drop} instead of
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1542 this one, because it's then possible to switch between both drag and
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1543 drop behaviours by changing only one variable.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1544
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1545 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1546 @code{idd-mouse-drag-and-drop-click}: Performs a drag and drop action in
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1547 a more useful way than
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1548 @code{idd-mouse-drag-and-drop-press-button-during-move}. First you
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1549 click on the source and then on the destination. This must
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1550 be bound to a mouse button. The @code{SOURCE-EVENT} must be a
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1551 @code{button-press-event}.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1552
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1553 You should bind the command @code{idd-mouse-drag-and-drop} instead of
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1554 this one, because it's then possible to switch between both drag and
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1555 drop behaviours by changing only one variable.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1556 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1557
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1558
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1559 @node Displaying Help On Drag And Drop, , Performing The Drag And Drop Action, The Drag And Drop Commands
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1560 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1561 @subsection Displaying Help On Drag And Drop
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1562 @cindex help on drag and drop
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1563 @cindex displaying help on drag and drop
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1564 @findex idd-help-mouse-drag-and-drop
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1565 @findex idd-start-help-mouse-drag-and-drop
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1566
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1567 It's possible to display a buffer with a help message describing the
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1568 action being considered before actually performing it. To perform the
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1569 action, you then click on a special extent in the help buffer. To get
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1570 the help buffer, you do the same things as you do to perform the action
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1571 itself. Only the mouse key differs. There are two commands for this:
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1572
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1573 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1574 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1575 @code{idd-help-mouse-drag-and-drop}: Displays help about the drag and
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1576 drop action. It works similarly to @code{idd-mouse-drag-and-drop}
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1577 (@pxref{Performing The Drag And Drop Action}).
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1578
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1579 By default this command is globally bound to @key{meta} @key{control}
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1580 @key{button3}. This may be changed with the variable
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1581 @code{idd-global-help-mouse-keys} (@pxref{The Mouse Bindings}).
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1582
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1583 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1584 @code{idd-start-help-mouse-drag-and-drop}: Starts displaying help about
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1585 the drag and drop action. It works similarly to
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1586 @code{idd-start-mouse-drag-and-drop} (@pxref{Performing The Drag And
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1587 Drop Action}) and can be used to start the help by clicking on a menu
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1588 item or a tool bar icon.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1589 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1590
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1591
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1592 @node Template Minor Mode, Bug Reports, Internal Drag And Drop, Top
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1593 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1594 @chapter Template Minor Mode
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1595 @cindex templates
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1596
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1597 There's a file called @file{tmpl-minor-mode.el} in the distribution
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1598 of the package @emph{hm---html-menus}. It provides functions to use
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1599 templates for the @code{hm--html-mode} and also for other modes. It
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1600 needs nothing from the rest of the package and therefore it can be used
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1601 independently of @code{hm--html-mode}.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1602
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1603
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1604 @menu
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1605 * What Are Templates::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1606 * Syntax Of Templates::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1607 * Template Customization::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1608 * Template Commands::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1609 @end menu
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1610
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1611 @node What Are Templates, Syntax Of Templates, Template Minor Mode, Template Minor Mode
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1612 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1613 @section What Are Templates
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1614 @cindex templates
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1615 @findex tmpl-insert-template-file
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1616 @findex tmpl-expand-templates-in-buffer
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1617 @findex tmpl-expand-templates-in-region
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1618
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1619 Templates are special pieces of text, which can be expanded by
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1620 emacs. Expansion means that the template is replaced by something else,
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1621 determined by evaluating lisp forms or emacs commands. The
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1622 expansion can be done automatically after the insertion of templates
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1623 with the command @code{tmpl-insert-template-file} in a buffer or by hand
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1624 with the commands @code{tmpl-expand-templates-in-buffer} or
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1625 @code{tmpl-expand-templates-in-region}.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1626
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1627 Templates can be put together with normal text in a so called template
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1628 file to provide prototype files. You should name these files with the
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1629 following naming scheme:
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1630
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1631 @example
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1632 @var{<file>}.@var{<type>}.tmpl
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1633 @end example
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1634
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1635 where @var{<file>} is a string which describes for what the template
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1636 could be used and @var{<type>} the normal file extension, e.g. @samp{c}
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1637 for C- files or @samp{html} for HTML- files.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1638
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1639
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1640 @node Syntax Of Templates, Template Customization, What Are Templates, Template Minor Mode
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1641 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1642 @section Syntax Of Templates
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1643 @cindex template syntax
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1644 @vindex tmpl-sign
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1645
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1646 The templates are marked with the sign ^@@, which stands for the null
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1647 character (\000). It can be inserted in a buffer with the keys @kbd{C-q
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1648 C-SPC}. You can also use any other character or string of characters by
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1649 changing the variable @code{tmpl-sign}.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1650
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1651 At the moment, there are 3 major types of templates:
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1652
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1653 @enumerate
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1654 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1655 @emph{Emacs Lisp function templates}: The expansion of such a template
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1656 evals a lisp form. It is possible to use functions or variables as lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1657 forms. The following is a simple example:
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1658
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1659 @lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1660 ^@@LISP^@@ (insert-file "~/.emacs") ^@@END LISP^@@
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1661 @end lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1662
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1663 inserts the contents of the file @file{~/.emacs} in the current
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1664 buffer during the expansion.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1665
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1666 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1667 @emph{Emacs command templates}: The expansion of a command template
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1668 evals a template in the same way as an interactive command, which is
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1669 invoked with @kbd{M-x command}. For example:
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1670
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1671 @lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1672 ^@@COMMAND^@@ insert-file ^@@END COMMAND^@@
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1673 @end lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1674
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1675 runs the interactive command @code{insert-file} during the expansion.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1676
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1677 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1678 @emph{Template comments} Nothing will be evaluated during the expansion
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1679 of a template comment. It is only a comment. For example:
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1680
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1681 @lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1682 ^@@C^@@ This is a comment
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1683 @end lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1684
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1685 The end of the comment is the end of the line. Therefore it has the same
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1686 syntax as a lisp or C++ comment.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1687 @end enumerate
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1688
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1689 By default, a template will be deleted after its expansion, but
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1690 without the linefeed. Look at the following examples:
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1691
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1692 Before the expansion:
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1693
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1694 @example
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1695 Line before the template
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1696 ^@@C^@@ The Text of a comment template
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1697 Line after the template
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1698 @end example
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1699
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1700 After the expansion:
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1701
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1702 Line before the template
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1703
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1704 Line after the template
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1705
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1706
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1707 Templates can start in any column, and only the template will be deleted
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1708 after its expansion.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1709
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1710
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1711 It is also possible to put an attribute list in a template. The
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1712 attributes of the list control the deletion of the template. It
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1713 may be that this will be extended in the future with other attributes.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1714 The attribute list must be specified as an alist (assoc list) in the start
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1715 tag of a template and after its type. Each element of the alist consists
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1716 of the name of the attribute following its value.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1717 If no attribute list is specified or if an attribute is missing, then the
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1718 default values are used. At the moment there are the following 2 attributes:
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1719
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1720 @enumerate
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1721 @item @emph{don't delete attribute} (@code{DONT_DELETE}): If the value
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1722 is t, then the template will not be deleted after its expansion. If the
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1723 value is nil then the template will be deleted. The default is nil. For
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1724 example:
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1725
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1726 Before the expansion:
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1727
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1728 @example
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1729 Line before the template
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1730 ^@@LISP ((DONT-DELETE t))^@@ (insert-file "~/.cshrc") ^@@END LISP^@@
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1731 Line after the template
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1732 @end example
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1733
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1734 After the expansion:
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1735
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1736 @example
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1737 Line before the template
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1738 ^@@LISP ((DONT-DELETE t))^@@ (insert-file "~/.cshrc") ^@@END LISP^@@
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1739 Line after the template
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1740 @end example
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1741
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1742 It was assumed, that the file @file{~/.cshrc} was empty !
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1743
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1744 @item @emph{delete line attribute} (@code{DELETE-LINE}): If the value is
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1745 t, then the linefeed before or after the template will be deleted. If
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1746 the value is nil then no linefeed will be deleted. The default is
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1747 nil. For example:
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1748
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1749 Before the expansion:
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1750
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1751 @example
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1752 Line before the template
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1753 ^@@LISP ((DELETE-LINE t))^@@ (insert-file "~/.cshrc") ^@@END LISP^@@
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1754 Line after the template
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1755 @end example
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1756
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1757 After the expansion:
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1758
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1759 @example
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1760 Line before the template
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1761 Line after the template
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1762 @end example
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1763
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1764 It was assumed, that the file @file{~/.cshrc} was empty !
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1765 @end enumerate
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1766
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1767 These attributes can be combined. For example:
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1768
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1769 @example
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1770 ^@@COMMAND ((DELETE-LINE t) (DONT-DELETE nil))^@@
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1771 insert-file
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1772 ^@@END COMMAND^@@
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1773 @end example
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1774
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1775 The last examples show also that whitespace (blanks, tabs, linefeeds)
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1776 is allowed at most positions in a template.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1777
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1778 Look at the file @file{tmpl-minor-mode.el} for a description of the
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1779 commands to expand templates.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1780
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1781
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1782 @node Template Customization, Template Commands, Syntax Of Templates, Template Minor Mode
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1783 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1784 @section Template Customization
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1785 @cindex customization
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1786 @cindex configuration
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1787 @vindex tmpl-template-dir-list
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1788 @vindex tmpl-automatic-expand
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1789 @vindex tmpl-filter-regexp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1790 @vindex tmpl-sign
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1791 @vindex tmpl-minor-mode-map
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1792
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1793 Templates may be used for all editing modes, not only for
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1794 @code{hm--html-mode}. Therefore their general customization isn't done in
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1795 @file{hm--html-configuration.el}. Template variables are defined in the file
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1796 @file{tmpl-minor-mode.el} instead. You can set them in your
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1797 @file{.emacs} or in one of the other emacs init files (e.g.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1798 @file{default.el}). The following are the main variables for
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1799 customization.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1800
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1801 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1802 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1803 @code{tmpl-template-dir-list}: A list of directories with template
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1804 files. If it is nil, the default-directory will be used. If more than
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1805 one directory is specified, then the template filenames should differ
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1806 in all directories.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1807
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1808 This variable is used in the commands for inserting templates. Look at
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1809 @code{tmpl-insert-template-file-from-fixed-dirs} and at
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1810 @code{tmpl-insert-template-file}. The command
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1811 @code{tmpl-insert-template-file} uses only the car of the list (if it is
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1812 a list.)
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1813 @item
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1814 @code{tmpl-filter-regexp}: This defines a regular expression used for
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1815 filtering out non-template files in template directories. It is used in
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1816 the command @code{tmpl-insert-template-file-from-fixed-dirs} to allow
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1817 only the selection of files which match the regexp. If it is
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1818 nil, then the Filter @code{".*\\.tmpl$"} is used. Set it to
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1819 @code{\".*\"} if you want to disable the filter function or use the
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1820 command @code{tmpl-insert-template-file}.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1821 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1822 @code{tmpl-automatic-expand}: If you insert a template file with
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1823 @code{tmpl-insert-template-file-from-fixed-dirs} or with
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1824 @code{tmpl-insert-template-file}, this variable is used. The templates
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1825 in the buffer will be automatically expanded if the variable is set to
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1826 t, which is the default.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1827 @item
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1828 @code{tmpl-sign}: Thisdetermines the sign which marks the beginning and
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1829 the end of template expressions. By default it is set to the null
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1830 character (displayed in emacs as ^@@). You can also set this to a
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1831 string. Be careful if you change it, so that the templates will not be
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1832 mixed up with other non-template text! Note: The expansion function
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1833 looks at the whole template, so that it is very unlikely that the
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1834 function will make a mistake.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1835 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1836 @code{tmpl-minor-mode-map}: The keymap for the template minor mode.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1837 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1838
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1839
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1840 @node Template Commands, , Template Customization, Template Minor Mode
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1841 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1842 @section Template Commands
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1843 @cindex commands
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1844
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1845 In this section the commands of the template package are described.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1846
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1847
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1848 @menu
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1849 * Insert Of Template Files::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1850 * Expansion Of Templates::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1851 * Escaping Of Template Signs::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1852 * The Template Minor Mode::
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1853 @end menu
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1854
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1855 @node Insert Of Template Files, Expansion Of Templates, Template Commands, Template Commands
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1856 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1857 @subsection Insert Of Template Files
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1858 @cindex template insert
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1859 @cindex template files
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1860 @findex tmpl-insert-template-file-from-fixed-dirs
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1861 @findex tmpl-insert-template-file
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1862
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1863 The template package provides the following two commands for inserting
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1864 template files in an emacs buffer.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1865
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1866 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1867 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1868 @code{tmpl-insert-template-file}: This command can be used to insert a
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1869 template file in the current buffer. It will expand the templates in the
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1870 buffer if @code{tmpl-automatic-expand} is set to @code{t}. You can set
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1871 a default directory for this command by setting the variable
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1872 @code{tmpl-template-dir-list}. @xref{Template Customization}.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1873 @item
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1874 @code{tmpl-insert-template-file-from-fixed-dirs}: The difference from
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1875 the simpler command @code{tmpl-insert-template-file} is that this
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1876 command will build a list for filename completion from a list of
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1877 predefined directories (look at @code{tmpl-template-dir-list}). The
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1878 filename completion list will also be filtered with the regular
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1879 expression defined by @code{tmpl-filer-regexp}. @xref{Template
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1880 Customization}. You can set the directory list and/or the filter
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1881 differently in each mode where you use templates, so that you will get
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1882 in the completion list only template files which could be used for the
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1883 current mode.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1884
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1885 If you want to insert a template file with this command, which is not in
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1886 one of the directories from @code{tmpl-template-dir-list}, then you have
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1887 to enter the string @emph{"Change the directory"} instead of a template
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1888 file. This string is also in the completion list.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1889 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1890
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1891 Both commands can also be used as functions. In this case the template
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1892 file with is directory path must be given to them as an parameter.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1893
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1894 You can also use commands like @code{insert-file} to insert template
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1895 files and expand them by hand (@pxref{Expansion Of Templates}).
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1896
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1897
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1898 @node Expansion Of Templates, Escaping Of Template Signs, Insert Of Template Files, Template Commands
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1899 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1900 @subsection Expansion Of Templates
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1901 @cindex template expansion
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1902 @cindex expansion
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1903 @findex tmpl-expand-templates-in-region
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1904 @findex tmpl-expand-templates-in-buffer
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1905
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1906 You can expand templates by hand or automatically after their
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1907 insertion. @xref{Insert Of Template Files}, for automatic
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1908 expansion. Expansion by hand can be done with one of the
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1909 following two functions:
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1910
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1911 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1912 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1913 @code{tmpl-expand-templates-in-region}: Expands the templates in the
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1914 region. The region is established by the optional arguments @code{BEGIN}
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1915 and @code{END}. If the arguments are @code{nil}, or if the function is called
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1916 interactively, then the current region will be used.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1917 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1918 @code{tmpl-expand-templates-in-buffer}: Expands all templates in the
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1919 current buffer.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1920 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1921
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1922 Both commands are bound to keys in the @code{tmpl-minor-mode}. @xref{The
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1923 Template Minor Mode}.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1924
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1925
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1926 @node Escaping Of Template Signs, The Template Minor Mode, Expansion Of Templates, Template Commands
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1927 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1928 @subsection Escaping Of Template Signs
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1929 @cindex template escaping
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1930 @cindex escaping
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1931 @findex tmpl-escape-tmpl-sign-in-region
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1932 @findex tmpl-escape-tmpl-sign-in-buffer
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1933
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1934 It is possible to escape template signs in a buffer or in a
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1935 region. Templates with escaped template signs are not expanded, but they
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1936 are un-escaped by the expansion functions. Therefore it is possible to
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1937 exclude single templates from the expansion by escaping them. Note:
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1938 You can't escape a template twice. The commands which can be used for
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1939 this are:
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1940
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1941 @itemize @bullet
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1942 @item
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1943 @code{tmpl-escape-tmpl-sign-in-region}: Escapes all @code{tmpl-sign}s
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1944 (@pxref{Template Customization}) with a @code{tmpl-sign} in a
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1945 region. The region is established by the optional arguments @code{BEGIN}
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1946 and @code{END}. If the arguments are @code{nil}, or if the function is
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1947 called interactively, then the current region will be used.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1948 @item
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1949 @code{tmpl-escape-tmpl-sign-in-buffer}: Same as
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1950 @code{tmpl-escape-tmpl-sign-in-region}, but escapes all templates in the
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1951 whole buffer.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1952 @end itemize
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1953
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1954 Both commands are bound to keys in @code{tmpl-minor-mode}. @xref{The
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1955 Template Minor Mode}.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1956
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1957
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1958 @node The Template Minor Mode, , Escaping Of Template Signs, Template Commands
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1959 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1960 @subsection The Template Minor Mode
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1961 @cindex template minor mode
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1962 @cindex minor mode
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1963 @cindex key bindings
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1964 @findex tmpl-minor-mode
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1965
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1966 The template minor mode can be toggled with the command
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1967 @code{tmpl-minor-mode}. The purpose of this mode is only to provide
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1968 key bindings for some of the commands of the package
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1969 @file{tmpl-minor-mode}. If you don't want to use the key bindings, you
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1970 don't need this minor mode.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1971
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1972 Look at the key table @code{tmpl-minor-mode-map} (@pxref{Template
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1973 Customization}) for the definition of the keys.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1974
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1975 It may be that I'll also provide a pulldown or popup menu for the minor
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1976 mode in a future release.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1977
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1978
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1979 @node Bug Reports, Concept Index, Template Minor Mode, Top
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1980 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1981 @chapter Bug Reports
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1982 @cindex bug report
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1983 @findex hm--html-submit-bug-report
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1984
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1985 There's no software out there without bugs. This package contains
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
1986 software, therefore it has bugs. I (Heiko Münkel
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1987 <muenkel@@tnt.uni-hannover.de>) have inserted most of the bugs in this
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1988 package by myself, but I've forgotten where. So please help me out of
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1989 this disaster and send bug reports, if you've found one of these little
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1990 animals. I'll try to do my very best to fix them and to insert new ones.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1991
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1992 If it's possible, you should use the command
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1993
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1994 @lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1995 M-x hm--html-submit-bug-report
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1996 @end lisp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1997
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1998 There's also an entry in the pulldown menu for this.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
1999
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
2000 In some cases a backtrace would also be appropriate.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
2001
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
2002 If you can't send the report with this function, at
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
2003 least include the package version and your @code{Emacs}/@code{XEmacs}
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
2004 version.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
2005
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
2006 In the best of all worlds you would also include a patch to fix the bug.
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
2007
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 42
diff changeset
2008 @emph{Note}: It's not true that I've inserted the bugs as a marketing trick,
42
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
2009 so that you must buy the next version to get some of them fixed. This is
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
2010 false, because this software is free.
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
2011
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
2012
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
2013 @node Concept Index, Function Index, Bug Reports, Top
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
2014 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
2015 @unnumbered Concept Index
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
2016
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
2017 @printindex cp
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
2018
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
2019 @node Function Index, Variable Index, Concept Index, Top
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
2020 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
2021 @unnumbered Function Index
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
2022
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
2023 @printindex fn
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
2024
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
2025 @node Variable Index, , Function Index, Top
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
2026 @comment node-name, next, previous, up
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
2027 @unnumbered Variable Index
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
2028
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
2029 @printindex vr
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
2030
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
2031 @summarycontents
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
2032 @contents
8b8b7f3559a2 Import from CVS: tag r19-15b104
cvs
parents:
diff changeset
2033 @bye