annotate lisp/hm--html-menus/hm--html-menu.el @ 0:376386a54a3c r19-14

Import from CVS: tag r19-14
author cvs
date Mon, 13 Aug 2007 08:45:50 +0200
parents
children ac2d302a0011
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 ;;; hm--html-menu.el: A menu for the html-mode.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 ;;; v4.60; 17 Feb 1996
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 ;;; Copyright (C) 1993, 1994, 1995, 1996 Heiko Muenkel
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 ;;; email: muenkel@tnt.uni-hannover.de
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 ;;; This program is free software; you can redistribute it and/or modify
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 ;;; it under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 ;;; the Free Software Foundation; either version 2, or (at your option)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 ;;; any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 ;;; This program is distributed in the hope that it will be useful,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 ;;; GNU General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 ;;; You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 ;;; along with this program; if not, write to the Free Software
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 ;;; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 ;;; Description:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 ;;; Defines pulldown and popup menus for the html mode.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 ;;; This file requires the following files:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 ;;; hm--html.el
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 ;;; hm--date.el
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 ;;; hm--html-configuration.el
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 ;;; adapt.el
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 ;;; html-mode.el
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 ;;; The file html-mode.el is the html mode file from Marc Andreessen.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 ;;; You should also have the w3 package from William M. Perry, for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 ;;; browsing html- files in the xemacs and the program Xmosaic together
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 ;;; with the file html-view.el from Ron Tapia for browsing html- files
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 ;;; in the Xmosaic.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 ;;; Installation:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 ;;; Put this file in one of your load path directories and the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 ;;; following lines in your .emacs:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 ;;; (autoload 'html-mode "hm--html-menu" "HTML major mode." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 ;;; (or (assoc "\\.html$" auto-mode-alist)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 ;;; (setq auto-mode-alist (cons '("\\.html$" . html-mode)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 ;;; auto-mode-alist)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 ;;; Look at the file hm--html-configuration for further installation
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 ;;; points.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 (provide 'hm--html-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 (require 'html-mode)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 (require 'hm--html)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 (require 'adapt)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 ;; Menu "HTML"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 (defvar hm--html-pulldown-menu nil "*A List with the HTML-Menu.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 (defvar hm--html-menu-region-expert nil "*A List with the HTML-Menu.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 (defvar hm--html-menu-region-novice nil "*A List with the HTML-Menu.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 (defvar hm--html-menu-noregion-expert nil "*A List with the HTML-Menu.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 (defvar hm--html-menu-noregion-novice nil "*A List with the HTML-Menu.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 (setq hm--html-menu-noregion-expert
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 '("HTML Noregion Expert Menu"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 ("Anchors"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 ["Html link..." hm--html-add-html-link t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 ["Info link..." hm--html-add-info-link t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 ["Gopher link..." hm--html-add-gopher-link t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 ["File link..." hm--html-add-file-link t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 ["Ftp link..." hm--html-add-ftp-link t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 ["News link..." hm--html-add-news-link t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 ["Mailbox link..." hm--html-add-mail-link t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 ["Mailto link..." hm--html-add-mailto-link t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 ["Wais link (direct)..." hm--html-add-direct-wais-link t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 ["Wais link (gateway)..." hm--html-add-wais-link t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 ["Proggate link..." hm--html-add-proggate-link t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 ["Local Proggate link..." hm--html-add-local-proggate-link t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 ["General link..." html-add-normal-link t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 ["Link target..." hm--html-add-link-target t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 ("Frame"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 ["Full html frame..." hm--html-add-full-html-frame t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 ["Frame template..."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 (hm--html-insert-template hm--html-frame-template-file)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 (file-exists-p hm--html-frame-template-file)]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 ["Html" hm--html-add-html t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 ["Head" hm--html-add-head t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 ["Body" hm--html-add-body t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 ["Title and Header..." hm--html-add-title-and-header t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 ["Title..." hm--html-add-title t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 ["Header..." hm--html-add-header t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 ["Node Link..." hm--html-add-normal-node-link t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 ["Address" html-add-address t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 ["Signature" hm--html-add-signature t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 ["Created comment" hm--html-insert-created-comment t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 ["Changed comment" hm--html-insert-changed-comment t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 ["New date in title" hm--html-new-date t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 ("Structure"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 ["Menu or list item" html-add-list-or-menu-item t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 ["Menu" html-add-menu t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 ["Unordered list" html-add-list t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 ["Ordered list" hm--html-add-numberlist t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 ["Directory list" hm--html-add-directory-list t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 ["Description list" html-add-description-list t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 ["Description title" hm--html-add-description-title t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 ["Description entry" hm--html-add-only-description-entry t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 ["Description title + entry" html-add-description-entry t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 ["Table..." hm--html-add-table t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 ["Table title..." hm--html-add-table-title t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 ["Table header..." hm--html-add-table-header t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 ["Table first row..." hm--html-add-first-table-row t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 ["Table additional row..." hm--html-add-additional-table-row t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 ("Additional Commands"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 ["Table row frame..." hm--html-add-row-frame t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 ["Table header entry..." hm--html-add-header-entry t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 ["Table row entry..." hm--html-add-row-entry t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 ["Span columns..." hm--html-table-add-colspan-attribute t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 ["Span rows..." hm--html-table-add-rowspan-attribute t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 ["Paragraph container" hm--html-add-paragraph t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 ["Paragraph start tag" hm--html-add-paragraph-separator t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 ["New line" hm--html-add-line-break t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 ["Horizontal rule" hm--html-add-horizontal-rule t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 ("Formating Paragraphs"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 ["Without links" html-add-plaintext t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 ["With links" hm--html-add-preformated t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 ["Blockquote" html-add-blockquote t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 ["Listing" html-add-listing t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 ["Abstract" hm--html-add-abstract t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 ("Formatting Words"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 ["Bold" hm--html-add-bold t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 ["Italic" hm--html-add-italic t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 ["Underline" hm--html-add-underline t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 ["Typewriter" html-add-fixed t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 ["Strikethru" hm--html-add-strikethru t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 ["Superscript" hm--html-add-superscript t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 ["Subscript" hm--html-add-subscript t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 ;; ["Render" hm--html-add-render t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158 ["Emphasized" html-add-emphasized t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 ["Strong" html-add-strong t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 ("Computing"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 ["Definition" hm--html-add-definition t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 ["Keyboard" html-add-keyboard t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 ["Command" hm--html-add-command t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 ["Argument" hm--html-add-argument t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 ["Option" hm--html-add-option t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 ["Variable" html-add-variable t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 ["Instance" hm--html-add-instance t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 ["Code" hm--html-add-code t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 ["Sample" html-add-sample t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 ("Literature"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 ["Quote" hm--html-add-quote t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 ["Acronym" hm--html-add-acronym t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 ["Abbrevation" hm--html-add-abbrevation t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 ["Citation" html-add-citation t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 ["Literature" hm--html-add-literature t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 ["Publication" hm--html-add-publication t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 ["ISBN" hm--html-add-isbn t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 ("Person"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 ["Person" hm--html-add-person t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 ["Author" hm--html-add-author t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184 ["Editor" hm--html-add-editor t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 ["Credits" hm--html-add-credits t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 ["Copyright" hm--html-add-copyright t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 ["Footnote" hm--html-add-footnote t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 ["Margin" hm--html-add-margin t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 ["HTML Comment" hm--html-add-comment t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 ("Include"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 ["Top aligned image..." hm--html-add-image-top t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196 ["Middle aligned image..." hm--html-add-image-middle t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 ["Bottom aligned image..." hm--html-add-image-bottom t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 ; "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 ; ["File..." hm--html-add-server-side-include-file t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 ; ["Command..." hm--html-add-server-side-include-command t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 ; ["Command with isindex parameter..."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 ; hm--html-add-server-side-include-command-with-isindex-parameter
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 ; t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205 ("Forms"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 ["Form..." hm--html-add-form t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 ["Text field..." hm--html-form-add-input-text t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 ["Password field..." hm--html-form-add-input-password t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 ["Isindex field..." hm--html-form-add-input-isindex t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211 ["Integer field..." hm--html-form-add-input-integer t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 ["Float field..." hm--html-form-add-input-float t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213 ["Date field..." hm--html-form-add-input-date t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 ["Url field..." hm--html-form-add-input-url t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215 ["Scribble field..." hm--html-form-add-input-scribble t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 ["Checkbox button..." hm--html-form-add-input-checkbox t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218 ["Radio button..." hm--html-form-add-input-radio t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219 ["Reset button..." hm--html-form-add-input-reset t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220 ["Submit button..." hm--html-form-add-input-submit t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
221 ["Image button..." hm--html-form-add-input-image t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222 ["Audio button..." hm--html-form-add-input-audio t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
224 ["Option Menu..." hm--html-form-add-select-option-menu t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 ["Scrolled List..." hm--html-form-add-select-scrolled-list t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226 ["Option..." hm--html-form-add-select-option t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228 ["Textarea..." hm--html-form-add-textarea t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 (setq hm--html-menu-noregion-novice
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 '("HTML No-region Novice Menu"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 ("Anchors"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 ["Html link..." hm--html-add-html-link t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237 ["File link..." hm--html-add-file-link t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239 ("Frame"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 ["Full html frame..." hm--html-add-full-html-frame t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242 ["Title and Header..." hm--html-add-title-and-header t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243 ["Signature" hm--html-add-signature t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245 ("Structure"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246 ["Menu item" html-add-list-or-menu-item t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
247 ["Menu" html-add-menu t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249 ["Paragraph Container" hm--html-add-paragraph t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251 ("Formating Paragraphs"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
252 ["Without links" html-add-plaintext t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253 ["With links" hm--html-add-preformated t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255 ("Formatting Words"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256 ["Bold" hm--html-add-bold t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257 ["Italic" hm--html-add-italic t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
258 ["Underline" hm--html-add-underline t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259 ["Typewriter" html-add-fixed t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
260 )))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
261
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262 (setq hm--html-menu-region-expert
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
263 '("HTML Region Expert Menu"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
264 ("Anchors"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
265 ["Html link..." hm--html-add-html-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
266 ["Info link..." hm--html-add-info-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
267 ["Gopher link..." hm--html-add-gopher-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
268 ["File link..." hm--html-add-file-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
269 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
270 ["Ftp link..." hm--html-add-ftp-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
271 ["News link..." hm--html-add-news-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
272 ["Mailbox link..." hm--html-add-mail-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
273 ["Mailto link..." hm--html-add-mailto-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
274 ["WAIS link (direct)..." hm--html-add-direct-wais-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
275 ["WAIS link (gateway)..." hm--html-add-wais-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
276 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
277 ["Proggate link..." hm--html-add-proggate-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
278 ["Local Proggate link..."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
279 hm--html-add-local-proggate-link-to-region
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
280 t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
281 ["General link..." hm--html-add-normal-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
282 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
283 ["Link target..." html-add-reference-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
284 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
285 ("Frame"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
286 ["Full html frame..." hm--html-add-full-html-frame-with-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
287 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
288 ["Head" hm--html-add-head-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
289 ["Body" hm--html-add-body-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
290 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
291 ["Title and Header..." hm--html-add-title-and-header-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
292 ["Title" hm--html-add-title-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
293 ["Header..." hm--html-add-header-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
294 ["Address" hm--html-add-address-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
295 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
296 ("Structure"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
297 ["Menu" hm--html-add-menu-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
298 ["Unordered list" hm--html-add-list-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
299 ["Ordered list" hm--html-add-numberlist-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
300 ["Directory list" hm--html-add-directorylist-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
301 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
302 ["Description list" hm--html-add-description-list-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
303 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
304 ["Table..." hm--html-add-table-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
305 ["Table Title..." hm--html-add-table-title-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
306 ("Additional Commands"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
307 ["Table row frame..." hm--html-add-row-frame-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
308 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
309 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
310 ["Paragraph container" hm--html-add-paragraph-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
311 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
312 ("Formatting Paragraphs"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
313 ["Without links" hm--html-add-plaintext-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
314 ["With links" hm--html-add-preformated-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
315 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
316 ["Blockquote" hm--html-add-blockquote-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
317 ["Listing" hm--html-add-listing-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
318 ["Abstract" hm--html-add-abstract-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
319 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
320 ("Formatting Words"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
321 ["Bold" hm--html-add-bold-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
322 ["Italic" hm--html-add-italic-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
323 ["Underline" hm--html-add-underline-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
324 ["Typewriter" hm--html-add-fixed-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
325 ["Strikethru" hm--html-add-strikethru-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
326 ["Superscript" hm--html-add-superscript-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
327 ["Subscript" hm--html-add-subscript-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
328 ;; ["Render" hm--html-add-render-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
329 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
330 ["Emphasized" hm--html-add-emphasized-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
331 ["Strong" hm--html-add-strong-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
332 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
333 ("Computing"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
334 ["Definition" hm--html-add-definition-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
335 ["Keyboard" hm--html-add-keyboard-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
336 ["Command" hm--html-add-command-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
337 ["Argument" hm--html-add-argument-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
338 ["Option" hm--html-add-option-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
339 ["Variable" hm--html-add-variable-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
340 ["Instance" hm--html-add-instance-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
341 ["Code" hm--html-add-code-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
342 ["Sample" hm--html-add-sample-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
343 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
344 ("Literature"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
345 ["Quote" hm--html-add-quote-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
346 ["Acronym" hm--html-add-acronym-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
347 ["Abbrevation" hm--html-add-abbrevation-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
348 ["Citation" hm--html-add-citation-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
349 ["Literature" hm--html-add-literature-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
350 ["Publication" hm--html-add-publication-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
351 ["ISBN" hm--html-add-isbn-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
352 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
353 ("Person"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
354 ["Person" hm--html-add-person-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
355 ["Author" hm--html-add-author-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
356 ["Editor" hm--html-add-editor-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
357 ["Credits" hm--html-add-credits-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
358 ["Copyright" hm--html-add-copyright-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
359 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
360 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
361 ["Footnote" hm--html-add-footnote-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
362 ["Margin" hm--html-add-margin-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
363 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
364 ["HTML Comment" hm--html-add-comment-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
365 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
366 ("Forms"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
367 ["Form..." hm--html-add-form-to-region t])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
368 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
369
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
370
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
371 (setq hm--html-menu-region-novice
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
372 '("HTML Region Novice Menu"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
373 ("Anchors"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
374 ["Html link..." hm--html-add-html-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
375 ["File link..." hm--html-add-file-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
376 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
377 ("Frame"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
378 ["Full html frame..." hm--html-add-full-html-frame-with-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
379 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
380 ["Title and Header..." hm--html-add-title-and-header-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
381 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
382 ("Structure"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
383 ["Menu" hm--html-add-menu-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
384 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
385 ("Formatting Paragraphs"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
386 ["Without links" hm--html-add-plaintext-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
387 ["With links" hm--html-add-preformated-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
388 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
389 ("Formatting Words"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
390 ["Bold" hm--html-add-bold-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
391 ["Italic" hm--html-add-italic-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
392 ["Underline" hm--html-add-underline-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
393 ["Typewriter" hm--html-add-fixed-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
394 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
395 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
396
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
397
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
398
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
399 (setq hm--html-pulldown-menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
400 '("HTML Config Menu"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
401 ("Set popup menu"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
402 ["Novice menu" hm--html-use-novice-menu t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
403 ["Expert menu" hm--html-use-expert-menu t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
404 ["Marcs menu" hm--html-use-marcs-menu t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
405 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
406 ; ("Highlighting"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
407 ; ["Toggle font lock mode" font-lock-mode (adapt-xemacsp)]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
408 ; ["Fontify buffer" font-lock-fontify-buffer (adapt-xemacsp)]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
409 ; ["Set font lock color..."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
410 ; hm--html-set-font-lock-color
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
411 ; (or (adapt-xemacsp) (adapt-emacs19p))]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
412 ; "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
413 ; ["Toggle use highlighting"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
414 ; hm--html-toggle-use-highlighting
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
415 ; html-use-highlighting]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
416 ; )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
417 ; "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
418 ["Reload config files" hm--html-load-config-files t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
419 ["Templates ..." hm--html-insert-template t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
420 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
421 ["Remove numeric names" hm--html-remove-numeric-names t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
422 ["Quotify hrefs" html-quotify-hrefs t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
423 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
424 ["Submit bug report..." hm--html-submit-bug-report t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
425 ["WWW Package Docs" hm--html-view-www-package-docu t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
426 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
427 ("Preview Document"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
428 ["Netscape view buffer" (hm--html-send-buffer-to-netscape
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
429 (current-buffer)) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
430 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
431 ["Xmosaic start" html-view-start-mosaic t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
432 ["Xmosaic view buffer" html-view-view-buffer t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
433 ["Xmosaic view file" html-view-view-file t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
434 ["Xmosaic goto url" html-view-goto-url t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
435 ["Xmosaic get display" html-view-get-display t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
436 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
437 ["W3 start" w3 t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
438 ["W3 view buffer" w3-preview-this-buffer t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
439 ["W3 open remote file..." w3-fetch t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
440 ["W3 open local..." w3-open-local t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
441 ["W3 use hotlist..." w3-use-hotlist t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
442 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
443 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
444
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
445
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
446 (if (adapt-xemacsp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
447 (defun hm--install-html-menu ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
448 (if (and current-menubar (not (assoc "HTML" current-menubar)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
449 (progn
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
450 (set-buffer-menubar (copy-sequence current-menubar))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
451 (add-menu nil "HTML" (cdr hm--html-pulldown-menu)))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
452 (defun hm--install-html-menu ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
453 (if (and current-menubar (not (assoc "HTML" current-menubar)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
454 (progn
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
455 (set-buffer-menubar current-menubar)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
456 ; (setq lucid-menubar-map nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
457 ; (make-local-variable 'lucid-menubar-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
458 ; (set-buffer-menubar (copy-sequence current-menubar))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
459 ; (make-local-variable 'lucid-menubar-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
460 ; (make-local-variable 'current-menubar)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
461 (add-menu nil "HTML" (cdr hm--html-pulldown-menu))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
462 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
463
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
464 ; (add-menu nil "HTML" (cdr hm--html-pulldown-menu))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
465
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
466
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
467 ;(defun hm--popup-html-menu (event)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
468 ; "Pops the HTML- menu up."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
469 ; (interactive "@e")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
470 ; (if hm--html-marc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
471 ; (popup-menu html-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
472 ; (if hm--html-expert
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
473 ; (if hm--region-active
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
474 ; (popup-menu hm--html-menu-region-expert)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
475 ; (popup-menu hm--html-menu-noregion-expert))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
476 ; (if hm--region-active
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
477 ; (popup-menu hm--html-menu-region-novice)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
478 ; (popup-menu hm--html-menu-noregion-novice)))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
479
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
480
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
481 (defun hm--popup-html-menu (event)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
482 "Pops the HTML- menu up, if no region is active."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
483 (interactive "@e")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
484 (if hm--html-marc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
485 (popup-menu html-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
486 (if hm--html-expert
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
487 (popup-menu hm--html-menu-noregion-expert)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
488 (popup-menu hm--html-menu-noregion-novice))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
489
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
490
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
491 (defun hm--popup-html-menu-region (event)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
492 "Pops the HTML- menu up, if a region is active."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
493 (interactive "@e")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
494 (if hm--html-marc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
495 (popup-menu html-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
496 (if hm--html-expert
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
497 (popup-menu hm--html-menu-region-expert)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
498 (popup-menu hm--html-menu-region-novice))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
499
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
500
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
501 (defun hm--html-use-novice-menu ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
502 "Changes the HTML popup menu to the novice menu."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
503 (interactive)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
504 (setq hm--html-expert nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
505 (setq hm--html-marc nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
506 ; (define-key html-mode-map '(button3) 'hm--popup-html-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
507 ; (define-key html-region-mode-map '(button3) 'hm--popup-html-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
508 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
509
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
510
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
511 (defun hm--html-use-expert-menu ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
512 "Changes the HTML popup menu to the expert menu."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
513 (interactive)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
514 (setq hm--html-expert t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
515 (setq hm--html-marc nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
516 ; (define-key html-mode-map '(button3) 'hm--popup-html-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
517 ; (define-key html-region-mode-map '(button3) 'hm--popup-html-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
518 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
519
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
520
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
521 (defun hm--html-use-marcs-menu ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
522 "Changes the HTML popup menu to Marc Andreessens menu."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
523 (interactive)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
524 (setq hm--html-marc t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
525 ; (define-key html-mode-map '(button3) 'hm--popup-html-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
526 ; (define-key html-region-mode-map '(button3) 'hm--popup-html-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
527 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
528
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
529
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
530 ;(define-key html-mode-map '(button3) 'hm--popup-html-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
531 ;(define-key html-region-mode-map '(button3) 'hm--popup-html-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
532
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
533 (add-hook 'html-mode-hook 'hm--install-html-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
534
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
535
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
536 (defvar hm--html-menu-load-hook nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
537 "*Hook variable to execute functions after loading the file hm--html-menu.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
538
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
539
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
540 (run-hooks 'hm--html-menu-load-hook)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
541