annotate man/hm--html-mode.texi @ 195:a2f645c6b9f8 r20-3b24

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