annotate man/hm--html-mode.texi @ 44:8d2a9b52c682 r19-15prefinal

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