annotate lisp/hm--html-menus/hm--html-menu.el @ 164:4e0740e5aab2

Added tag r20-3b8 for changeset 0132846995bd
author cvs
date Mon, 13 Aug 2007 09:43:39 +0200
parents 25f70ba0133c
children 6075d714658b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
1 ;;; hm--html-menu --- A menu for the hm--html-mode.
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
2 ;;;
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
3 ;;; $Id: hm--html-menu.el,v 1.7 1997/05/29 23:49:42 steve Exp $
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4 ;;;
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
5 ;;; Copyright (C) 1993 - 1997 Heiko Muenkel
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 ;;; email: muenkel@tnt.uni-hannover.de
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 ;;; This program is free software; you can redistribute it and/or modify
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 ;;; it under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 ;;; the Free Software Foundation; either version 2, or (at your option)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 ;;; any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 ;;; This program is distributed in the hope that it will be useful,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 ;;; GNU General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 ;;; You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 ;;; along with this program; if not, write to the Free Software
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 ;;; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 ;;; Description:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 ;;;
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
25 ;;; Defines pulldown and popup menus for the html mode (hm--html-mode).
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 ;;; You should also have the w3 package from William M. Perry, for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 ;;; browsing html- files in the xemacs and the program Xmosaic together
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 ;;; with the file html-view.el from Ron Tapia for browsing html- files
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 ;;; in the Xmosaic.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 ;;; Installation:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 ;;;
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
34 ;;; Put this file in one of your load path directories.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 ;;;
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
36 ;;; Look at the files hm--html-mode.el and hm--html-configuration
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
37 ;;; for further installation points.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 ;; Menu "HTML"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 (defvar hm--html-pulldown-menu nil "*A List with the HTML-Menu.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 (defvar hm--html-menu-region-expert nil "*A List with the HTML-Menu.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 (defvar hm--html-menu-region-novice nil "*A List with the HTML-Menu.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 (defvar hm--html-menu-noregion-expert nil "*A List with the HTML-Menu.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 (defvar hm--html-menu-noregion-novice nil "*A List with the HTML-Menu.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 (setq hm--html-menu-noregion-expert
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 '("HTML Noregion Expert Menu"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 ("Anchors"
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
53 ["Relative link..." hm--html-add-relative-link t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
54 ["General link..." hm--html-add-normal-link t]
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
55 ["Drag & Drop"
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
56 idd-start-mouse-drag-and-drop
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
57 :active t
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
58 :keys "\\[idd-mouse-drag-and-drop]"]
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
59 "----"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 ["Html link..." hm--html-add-html-link t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 ["Info link..." hm--html-add-info-link t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 ["Gopher link..." hm--html-add-gopher-link t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 ["File link..." hm--html-add-file-link t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 ["Ftp link..." hm--html-add-ftp-link t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 ["News link..." hm--html-add-news-link t]
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 102
diff changeset
67 ["Mailbox link..." hm--html-add-mail-box-link t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 ["Mailto link..." hm--html-add-mailto-link t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 ["Wais link (direct)..." hm--html-add-direct-wais-link t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 ["Wais link (gateway)..." hm--html-add-wais-link t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 ["Proggate link..." hm--html-add-proggate-link t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 ["Local Proggate link..." hm--html-add-local-proggate-link t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 ["Link target..." hm--html-add-link-target t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 ("Frame"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 ["Full html frame..." hm--html-add-full-html-frame t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 ["Frame template..."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 (hm--html-insert-template hm--html-frame-template-file)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 (file-exists-p hm--html-frame-template-file)]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 "----"
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
83 ["Doctype" hm--html-add-doctype t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 ["Html" hm--html-add-html t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 ["Head" hm--html-add-head t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 ["Body" hm--html-add-body t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 ["Title and Header..." hm--html-add-title-and-header t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 ["Title..." hm--html-add-title t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 ["Header..." hm--html-add-header t]
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
91 ["Address" hm--html-add-address t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 ["Signature" hm--html-add-signature t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 "----"
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
94 ["Meta information..." hm--html-add-meta t]
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
95 ["Node Link..." hm--html-add-normal-node-link t]
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
96 ["Isindex..." hm--html-add-isindex t]
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
97 ["Document Base..." hm--html-add-base t]
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
98 "----"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 ["Created comment" hm--html-insert-created-comment t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 ["Changed comment" hm--html-insert-changed-comment t]
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
101 ["Modified line" hm--html-insert-modified-line t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 ["New date in title" hm--html-new-date t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 ("Structure"
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
105 ["Menu or list item" hm--html-add-list-or-menu-item t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
106 ["Menu" hm--html-add-menu t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
107 ["Unordered list" hm--html-add-list t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 ["Ordered list" hm--html-add-numberlist t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 ["Directory list" hm--html-add-directory-list t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 "----"
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
111 ["Description list" hm--html-add-description-list t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 ["Description title" hm--html-add-description-title t]
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
113 ["Description entry" hm--html-add-description-entry t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
114 ["Description title + entry"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
115 hm--html-add-description-title-and-entry t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 ["Table..." hm--html-add-table t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 ["Table title..." hm--html-add-table-title t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 ["Table header..." hm--html-add-table-header t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 ["Table first row..." hm--html-add-first-table-row t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 ["Table additional row..." hm--html-add-additional-table-row t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 ("Additional Commands"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 ["Table row frame..." hm--html-add-row-frame t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 ["Table header entry..." hm--html-add-header-entry t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 ["Table row entry..." hm--html-add-row-entry t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 ["Span columns..." hm--html-table-add-colspan-attribute t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 ["Span rows..." hm--html-table-add-rowspan-attribute t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 ["Paragraph container" hm--html-add-paragraph t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 ["Paragraph start tag" hm--html-add-paragraph-separator t]
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
132 ["Document division" hm--html-add-document-division t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 ["New line" hm--html-add-line-break t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 ["Horizontal rule" hm--html-add-horizontal-rule t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 )
142
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 116
diff changeset
136 ("Formatting Paragraphs"
102
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
137 ; ["Without links" hm--html-add-plaintext t]
142
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 116
diff changeset
138 ["Preformatted" hm--html-add-preformatted t]
102
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
139 ["Blockquote" hm--html-add-blockquote t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 "----"
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
141 ["Basefont..." hm--html-add-basefont t]
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
142 ["Font..." hm--html-add-font t]
102
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
143 ["Center" hm--html-add-center t]
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
144 ["Style" hm--html-add-style t]
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
145 "----"
102
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
146 ["HTML Comment" hm--html-add-comment t]
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
147 ; ["Listing" hm--html-add-listing t]
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
148 ; ["Abstract" hm--html-add-abstract t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 ("Formatting Words"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 ["Bold" hm--html-add-bold t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 ["Italic" hm--html-add-italic t]
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
153 ["Typewriter" hm--html-add-fixed t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
154 ["Small" hm--html-add-small t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
155 ["Big" hm--html-add-big t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 ["Superscript" hm--html-add-superscript t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 ["Subscript" hm--html-add-subscript t]
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
158 "----"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
159 ["Underline" hm--html-add-underline t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
160 ["Strikethru" hm--html-add-strikethru t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 "----"
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
162 ; ["Emphasized" hm--html-add-emphasized t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
163 ; ["Strong" hm--html-add-strong t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
164 ; "----"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
165 ("Phrase"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
166 ["Emphasized" hm--html-add-emphasized t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
167 ["Strong" hm--html-add-strong t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
168 "----"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 ["Definition" hm--html-add-definition t]
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
170 ["Keyboard" hm--html-add-keyboard t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
171 ["Variable" hm--html-add-variable t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 ["Code" hm--html-add-code t]
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
173 ["Sample" hm--html-add-sample t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
174 ["Citation" hm--html-add-citation t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 )
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
176 ;; All the following commands are still implemented, but most
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
177 ;; of them are not defined in HTM 3.2
102
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
178 ;; You've to load hm--html-not-standard.el to use them
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
179 ; ("Computing"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
180 ; ["Definition" hm--html-add-definition t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
181 ; ["Keyboard" hm--html-add-keyboard t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
182 ; ["Command" hm--html-add-command t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
183 ; ["Argument" hm--html-add-argument t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
184 ; ["Option" hm--html-add-option t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
185 ; ["Variable" hm--html-add-variable t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
186 ; ["Instance" hm--html-add-instance t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
187 ; ["Code" hm--html-add-code t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
188 ; ["Sample" hm--html-add-sample t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
189 ; )
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
190 ; ("Literature"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
191 ; ["Quote" hm--html-add-quote t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
192 ; ["Acronym" hm--html-add-acronym t]
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 102
diff changeset
193 ; ["Abbreviation" hm--html-add-abbreviation t]
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
194 ; ["Citation" hm--html-add-citation t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
195 ; ["Literature" hm--html-add-literature t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
196 ; ["Publication" hm--html-add-publication t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
197 ; ["ISBN" hm--html-add-isbn t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
198 ; )
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
199 ; ("Person"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
200 ; ["Person" hm--html-add-person t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
201 ; ["Author" hm--html-add-author t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
202 ; ["Editor" hm--html-add-editor t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
203 ; ["Credits" hm--html-add-credits t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
204 ; ["Copyright" hm--html-add-copyright t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
205 ; )
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
206 ; "----"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
207 ; ["Footnote" hm--html-add-footnote t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
208 ; ["Margin" hm--html-add-margin t]
102
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
209 ; "----"
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
210 ; ["HTML Comment" hm--html-add-comment t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 ("Include"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213 ["Top aligned image..." hm--html-add-image-top t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 ["Middle aligned image..." hm--html-add-image-middle t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215 ["Bottom aligned image..." hm--html-add-image-bottom t]
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
216 ["Image as map? ..." hm--html-add-image t]
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
217 ["Drag & Drop"
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
218 idd-start-mouse-drag-and-drop
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
219 :active t
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
220 :keys "\\[idd-mouse-drag-and-drop]"]
24
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 22
diff changeset
221 "----"
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
222 ["Image map..." hm--html-add-image-map t]
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
223 ["Map..." hm--html-add-map t]
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
224 ["Area..." hm--html-add-area t]
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
225 "----"
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
226 ["Applet..." hm--html-add-applet t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
227 ["Parameter..." hm--html-add-applet-parameter t]
102
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
228 ["Script" hm--html-add-script t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229 ; "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 ; ["File..." hm--html-add-server-side-include-file t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231 ; ["Command..." hm--html-add-server-side-include-command t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232 ; ["Command with isindex parameter..."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 ; hm--html-add-server-side-include-command-with-isindex-parameter
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 ; t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 ("Forms"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237 ["Form..." hm--html-add-form 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 ["Text field..." hm--html-form-add-input-text t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 ["Password field..." hm--html-form-add-input-password t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241 ["Isindex field..." hm--html-form-add-input-isindex t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242 ["Integer field..." hm--html-form-add-input-integer t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243 ["Float field..." hm--html-form-add-input-float t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244 ["Date field..." hm--html-form-add-input-date t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245 ["Url field..." hm--html-form-add-input-url t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246 ["Scribble field..." hm--html-form-add-input-scribble t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
247 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 ["Checkbox button..." hm--html-form-add-input-checkbox t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249 ["Radio button..." hm--html-form-add-input-radio t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250 ["Reset button..." hm--html-form-add-input-reset t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251 ["Submit button..." hm--html-form-add-input-submit t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
252 ["Image button..." hm--html-form-add-input-image t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253 ["Audio button..." hm--html-form-add-input-audio 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 ["Option Menu..." hm--html-form-add-select-option-menu t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256 ["Scrolled List..." hm--html-form-add-select-scrolled-list t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257 ["Option..." hm--html-form-add-select-option t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
258 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259 ["Textarea..." hm--html-form-add-textarea 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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
263
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
264 (setq hm--html-menu-noregion-novice
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
265 '("HTML No-region Novice Menu"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
266 ("Anchors"
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
267 ["Relative link..." hm--html-add-relative-link t]
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
268 ["Drag & Drop"
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
269 idd-start-mouse-drag-and-drop
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
270 :active t
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
271 :keys "\\[idd-mouse-drag-and-drop]"]
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
272 "----"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
273 ["Html link..." hm--html-add-html-link t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
274 ["File link..." hm--html-add-file-link t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
275 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
276 ("Frame"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
277 ["Full html frame..." hm--html-add-full-html-frame t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
278 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
279 ["Title and Header..." hm--html-add-title-and-header t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
280 ["Signature" hm--html-add-signature t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
281 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
282 ("Structure"
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
283 ["Menu item" hm--html-add-list-or-menu-item t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
284 ["Menu" hm--html-add-menu t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
285 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
286 ["Paragraph Container" hm--html-add-paragraph t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
287 )
142
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 116
diff changeset
288 ("Formatting Paragraphs"
102
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
289 ; ["Without links" hm--html-add-plaintext t]
142
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 116
diff changeset
290 ["Preformatted" hm--html-add-preformatted t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
291 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
292 ("Formatting Words"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
293 ["Bold" hm--html-add-bold t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
294 ["Italic" hm--html-add-italic t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
295 ["Underline" hm--html-add-underline t]
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
296 ["Typewriter" hm--html-add-fixed t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
297 )))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
298
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
299 (setq hm--html-menu-region-expert
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
300 '("HTML Region Expert Menu"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
301 ("Anchors"
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
302 ["Relative link..." hm--html-add-relative-link-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
303 ["General link..." hm--html-add-normal-link-to-region t]
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
304 ["Drag & Drop"
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
305 idd-start-mouse-drag-and-drop
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
306 :active t
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
307 :keys "\\[idd-mouse-drag-and-drop]"]
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
308 "----"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
309 ["Html link..." hm--html-add-html-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
310 ["Info link..." hm--html-add-info-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
311 ["Gopher link..." hm--html-add-gopher-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
312 ["File link..." hm--html-add-file-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
313 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
314 ["Ftp link..." hm--html-add-ftp-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
315 ["News link..." hm--html-add-news-link-to-region t]
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 102
diff changeset
316 ["Mailbox link..." hm--html-add-mail-box-link-to-region t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
317 ["Mailto link..." hm--html-add-mailto-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
318 ["WAIS link (direct)..." hm--html-add-direct-wais-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
319 ["WAIS link (gateway)..." hm--html-add-wais-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
320 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
321 ["Proggate link..." hm--html-add-proggate-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
322 ["Local Proggate link..."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
323 hm--html-add-local-proggate-link-to-region
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
324 t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
325 "----"
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
326 ["Link target..." hm--html-add-link-target-to-region t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
327 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
328 ("Frame"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
329 ["Full html frame..." hm--html-add-full-html-frame-with-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
330 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
331 ["Head" hm--html-add-head-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
332 ["Body" hm--html-add-body-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
333 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
334 ["Title and Header..." hm--html-add-title-and-header-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
335 ["Title" hm--html-add-title-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
336 ["Header..." hm--html-add-header-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
337 ["Address" hm--html-add-address-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
338 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
339 ("Structure"
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
340 ["Menu item" hm--html-add-list-or-menu-item-to-region t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
341 ["Menu" hm--html-add-menu-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
342 ["Unordered list" hm--html-add-list-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
343 ["Ordered list" hm--html-add-numberlist-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
344 ["Directory list" hm--html-add-directorylist-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
345 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
346 ["Description list" hm--html-add-description-list-to-region t]
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
347 ["Description title" hm--html-add-description-title-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
348 ["Description entry" hm--html-add-description-entry-to-region t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
349 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
350 ["Table..." hm--html-add-table-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
351 ["Table Title..." hm--html-add-table-title-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
352 ("Additional Commands"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
353 ["Table row frame..." hm--html-add-row-frame-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
354 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
355 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
356 ["Paragraph container" hm--html-add-paragraph-to-region t]
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
357 ["Document division" hm--html-add-document-division-to-region t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
358 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
359 ("Formatting Paragraphs"
102
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
360 ; ["Without links" hm--html-add-plaintext-to-region t]
142
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 116
diff changeset
361 ["Preformatted" hm--html-add-preformatted-to-region t]
102
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
362 ["Blockquote" hm--html-add-blockquote-to-region t]
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 46
diff changeset
363 "----"
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
364 ["Font..." hm--html-add-font-to-region t]
102
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
365 ["Center" hm--html-add-center-to-region t]
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
366 ["Style" hm--html-add-style-to-region t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
367 "----"
102
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
368 ["HTML Comment" hm--html-add-comment-to-region t]
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
369 ; ["Listing" hm--html-add-listing-to-region t]
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
370 ; ["Abstract" hm--html-add-abstract-to-region t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
371 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
372 ("Formatting Words"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
373 ["Bold" hm--html-add-bold-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
374 ["Italic" hm--html-add-italic-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
375 ["Typewriter" hm--html-add-fixed-to-region t]
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
376 ["Small" hm--html-add-small-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
377 ["Big" hm--html-add-big-to-region t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
378 ["Superscript" hm--html-add-superscript-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
379 ["Subscript" hm--html-add-subscript-to-region t]
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
380 "----"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
381 ["Underline" hm--html-add-underline-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
382 ["Strikethru" hm--html-add-strikethru-to-region t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
383 ;; ["Render" hm--html-add-render-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
384 "----"
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
385 ; ["Emphasized" hm--html-add-emphasized-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
386 ; ["Strong" hm--html-add-strong-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
387 ; "----"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
388 ("Phrase"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
389 ["Emphasized" hm--html-add-emphasized-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
390 ["Strong" hm--html-add-strong-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
391 "----"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
392 ["Definition" hm--html-add-definition-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
393 ["Keyboard" hm--html-add-keyboard-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
394 ["Variable" hm--html-add-variable-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
395 ["Code" hm--html-add-code-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
396 ["Sample" hm--html-add-sample-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
397 ["Citation" hm--html-add-citation-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
398 )
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
399 ;; All the following commands are still implemented, but most
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
400 ;; of them are not defined in HTM 3.2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
401 ; ("Computing"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
402 ; ["Definition" hm--html-add-definition-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
403 ; ["Keyboard" hm--html-add-keyboard-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
404 ; ["Command" hm--html-add-command-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
405 ; ["Argument" hm--html-add-argument-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
406 ; ["Option" hm--html-add-option-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
407 ; ["Variable" hm--html-add-variable-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
408 ; ["Instance" hm--html-add-instance-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
409 ; ["Code" hm--html-add-code-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
410 ; ["Sample" hm--html-add-sample-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
411 ; )
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
412 ; ("Literature"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
413 ; ["Quote" hm--html-add-quote-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
414 ; ["Acronym" hm--html-add-acronym-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
415 ; ["Abbrevation" hm--html-add-abbrevation-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
416 ; ["Citation" hm--html-add-citation-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
417 ; ["Literature" hm--html-add-literature-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
418 ; ["Publication" hm--html-add-publication-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
419 ; ["ISBN" hm--html-add-isbn-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
420 ; )
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
421 ; ("Person"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
422 ; ["Person" hm--html-add-person-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
423 ; ["Author" hm--html-add-author-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
424 ; ["Editor" hm--html-add-editor-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
425 ; ["Credits" hm--html-add-credits-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
426 ; ["Copyright" hm--html-add-copyright-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
427 ; )
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
428 ; "----"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
429 ; ["Footnote" hm--html-add-footnote-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
430 ; ["Margin" hm--html-add-margin-to-region t]
102
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
431 ; "----"
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
432 ; ["HTML Comment" hm--html-add-comment-to-region t]
24
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 22
diff changeset
433 )
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
434 ("Include"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
435 ["Map..." hm--html-add-map-to-region t]
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
436 "----"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
437 ["Applet..." hm--html-add-applet-to-region t]
102
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
438 ["Script" hm--html-add-script-to-region t]
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
439 )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
440 ("Forms"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
441 ["Form..." hm--html-add-form-to-region 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 (setq hm--html-menu-region-novice
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
446 '("HTML Region Novice Menu"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
447 ("Anchors"
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
448 ["Relative link..." hm--html-add-relative-link-to-region t]
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
449 ["Drag & Drop"
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
450 idd-start-mouse-drag-and-drop
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
451 :active t
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 70
diff changeset
452 :keys "\\[idd-mouse-drag-and-drop]"]
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
453 "----"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
454 ["Html link..." hm--html-add-html-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
455 ["File link..." hm--html-add-file-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
456 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
457 ("Frame"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
458 ["Full html frame..." hm--html-add-full-html-frame-with-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
459 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
460 ["Title and Header..." hm--html-add-title-and-header-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
461 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
462 ("Structure"
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
463 ["Menu item" hm--html-add-list-or-menu-item-to-region t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
464 ["Menu" hm--html-add-menu-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
465 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
466 ("Formatting Paragraphs"
102
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
467 ; ["Without links" hm--html-add-plaintext-to-region t]
142
1856695b1fa9 Import from CVS: tag r20-2b5
cvs
parents: 116
diff changeset
468 ["Preformatted" hm--html-add-preformatted-to-region t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
469 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
470 ("Formatting Words"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
471 ["Bold" hm--html-add-bold-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
472 ["Italic" hm--html-add-italic-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
473 ["Underline" hm--html-add-underline-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
474 ["Typewriter" hm--html-add-fixed-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
475 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
476 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
477
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
478
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
479 (if (adapt-xemacsp)
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
480 ;; The reason for this if form is, that the Emacs 19 can't
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
481 ;; work correct with `:keys "\\[idd-help-mouse-drag-and-drop]"'
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
482 (setq hm--html-pulldown-menu
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
483 '("HTML Config Menu"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
484 ("Set popup menu"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
485 ["Novice menu"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
486 hm--html-use-novice-menu
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
487 :active t
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
488 :style radio
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
489 :selected (not hm--html-expert)]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
490 ["Expert menu"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
491 hm--html-use-expert-menu
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
492 :active t
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
493 :style radio
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
494 :selected hm--html-expert]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
495 )
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
496 ["Reload config files" hm--html-load-config-files t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
497 ["Templates (fixed dirs) ..."
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
498 hm--html-insert-template-from-fixed-dirs
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
499 t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
500 ["Templates ..." hm--html-insert-template t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
501 ["Drag & Drop"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
502 idd-start-mouse-drag-and-drop
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
503 :active t
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
504 :keys "\\[idd-mouse-drag-and-drop]"]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
505 ["Drag & Drop Help"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
506 idd-start-help-mouse-drag-and-drop
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
507 :active t
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
508 :keys "\\[idd-help-mouse-drag-and-drop]"]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
509 "----"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
510 ["Remove numeric names" hm--html-remove-numeric-names t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
511 ["Quotify hrefs" hm--html-quotify-hrefs t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
512 "----"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
513 ["Submit bug report..." hm--html-submit-bug-report t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
514 ["WWW Package Docs" hm--html-view-www-package-docu t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
515 "----"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
516 ("Preview Document"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
517 ["Netscape view buffer" (hm--html-send-buffer-to-netscape
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
518 (current-buffer)) t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
519 "----"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
520 ["Xmosaic start" html-view-start-mosaic t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
521 ["Xmosaic view buffer" html-view-view-buffer t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
522 ["Xmosaic view file" html-view-view-file t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
523 ["Xmosaic goto url" html-view-goto-url t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
524 ["Xmosaic get display" html-view-get-display t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
525 "----"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
526 ["W3 start" w3 t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
527 ["W3 view buffer" w3-preview-this-buffer t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
528 ["W3 open remote file..." w3-fetch t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
529 ["W3 open local..." w3-open-local t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
530 ["W3 use hotlist..." w3-use-hotlist t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
531 )
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
532 ))
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
533 (setq hm--html-pulldown-menu
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
534 '("HTML Config Menu"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
535 ("Set popup menu"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
536 ["Novice menu"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
537 hm--html-use-novice-menu
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
538 :active t
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
539 :style radio
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
540 :selected (not hm--html-expert)]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
541 ["Expert menu"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
542 hm--html-use-expert-menu
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
543 :active t
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
544 :style radio
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
545 :selected hm--html-expert]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
546 )
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
547 ["Reload config files" hm--html-load-config-files t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
548 ["Templates (fixed dirs) ..."
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
549 hm--html-insert-template-from-fixed-dirs
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
550 t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
551 ["Templates ..." hm--html-insert-template t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
552 ["Drag & Drop"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
553 idd-start-mouse-drag-and-drop
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
554 :active t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
555 ["Drag & Drop Help"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
556 idd-start-help-mouse-drag-and-drop
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
557 :active t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
558 "----"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
559 ["Remove numeric names" hm--html-remove-numeric-names t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
560 ["Quotify hrefs" hm--html-quotify-hrefs t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
561 "----"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
562 ["Submit bug report..." hm--html-submit-bug-report t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
563 ["WWW Package Docs" hm--html-view-www-package-docu t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
564 "----"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
565 ("Preview Document"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
566 ["Netscape view buffer" (hm--html-send-buffer-to-netscape
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
567 (current-buffer)) t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
568 "----"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
569 ["Xmosaic start" html-view-start-mosaic t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
570 ["Xmosaic view buffer" html-view-view-buffer t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
571 ["Xmosaic view file" html-view-view-file t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
572 ["Xmosaic goto url" html-view-goto-url t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
573 ["Xmosaic get display" html-view-get-display t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
574 "----"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
575 ["W3 start" w3 t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
576 ["W3 view buffer" w3-preview-this-buffer t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
577 ["W3 open remote file..." w3-fetch t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
578 ["W3 open local..." w3-open-local t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
579 ["W3 use hotlist..." w3-use-hotlist t]
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
580 )
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
581 ))
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 142
diff changeset
582 )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
583
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
584 (if (adapt-xemacsp)
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
585 (defun hm--install-html-menu (menu-name)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
586 (if (and current-menubar (not (assoc menu-name current-menubar)))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
587 (progn
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
588 (set-buffer-menubar (copy-sequence current-menubar))
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 102
diff changeset
589 (add-submenu nil
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 102
diff changeset
590 (cons menu-name (cdr hm--html-pulldown-menu))
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 102
diff changeset
591 "HTML"))))
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
592
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
593 (defun hm--install-html-menu (menu-name)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
594 (if (eq major-mode 'hm--html-mode)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
595 (easy-menu-define hm--html-menu-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
596 hm--html-mode-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
597 "The hm--html-mode pulldown menu."
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
598 (cons menu-name
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
599 (cdr hm--html-pulldown-menu)))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
600 (easy-menu-define hm--html-minor-menu-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
601 hm--html-minor-mode-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
602 "The hm--html-minor-mode pulldown menu."
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
603 (cons menu-name
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
604 (cdr hm--html-pulldown-menu))))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
605 ))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
606
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
607 (if (adapt-emacs19p)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
608 (progn
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
609
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
610 (setq hm--html-menu-noregion-expert-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
611 (make-lucid-menu-keymap (car hm--html-menu-noregion-expert)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
612 (cdr hm--html-menu-noregion-expert)))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
613
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
614 (setq hm--html-menu-region-expert-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
615 (make-lucid-menu-keymap (car hm--html-menu-region-expert)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
616 (cdr hm--html-menu-region-expert)))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
617
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
618 (setq hm--html-menu-noregion-novice-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
619 (make-lucid-menu-keymap (car hm--html-menu-noregion-novice)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
620 (cdr hm--html-menu-noregion-novice)))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
621
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
622 (setq hm--html-menu-region-novice-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
623 (make-lucid-menu-keymap (car hm--html-menu-region-novice)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
624 (cdr hm--html-menu-region-novice)))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
625
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
626 ;; Speeds up the first popup of a menu
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
627 (if hm--html-expert
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
628 (progn
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
629 (x-popup-menu nil hm--html-menu-noregion-expert-map)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
630 (x-popup-menu nil hm--html-menu-region-expert-map)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
631 )
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
632 (x-popup-menu nil hm--html-menu-noregion-novice-map)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
633 (x-popup-menu nil hm--html-menu-region-novice-map))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
634
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
635
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
636 )
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
637
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
638 (defun hm--html-popup-menu (event)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
639 "Pops the HTML- menu up, if no region is active."
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
640 (interactive "@e")
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
641 (if hm--html-expert
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
642 (popup-menu hm--html-menu-noregion-expert)
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
643 (popup-menu hm--html-menu-noregion-novice)))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
644
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
645
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
646 (defun hm--html-popup-menu-region (event)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
647 "Pops the HTML- menu up, if a region is active."
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
648 (interactive "@e")
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
649 (if hm--html-expert
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
650 (popup-menu hm--html-menu-region-expert)
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
651 (popup-menu hm--html-menu-region-novice)))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
652 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
653
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
654
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
655 (if (adapt-xemacsp)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
656 (progn
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
657
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
658 (defun hm--html-use-novice-menu ()
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
659 "Changes the HTML popup menu to the novice menu."
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
660 (interactive)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
661 (setq hm--html-expert nil)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
662 )
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
663
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
664
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
665 (defun hm--html-use-expert-menu ()
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
666 "Changes the HTML popup menu to the expert menu."
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
667 (interactive)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
668 (setq hm--html-expert t)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
669 )
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
670 )
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
671
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
672 ;; For the Emacs 19
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
673 (defun hm--html-use-novice-menu ()
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
674 "Changes the HTML popup menu to the novice menu."
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
675 (interactive)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
676 (setq hm--html-expert nil)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
677 (define-key hm--html-region-mode-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
678 hm--html-emacs19-popup-region-menu-button
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
679 hm--html-menu-region-novice-map)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
680 (define-key hm--html-minor-region-mode-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
681 hm--html-emacs19-popup-region-menu-button
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
682 hm--html-menu-region-novice-map)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
683 (if (not hm--html-region-mode)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
684 (define-key hm--html-mode-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
685 hm--html-emacs19-popup-noregion-menu-button
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
686 hm--html-menu-noregion-novice-map))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
687 (if (not hm--html-minor-region-mode)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
688 (define-key hm--html-minor-mode-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
689 hm--html-emacs19-popup-noregion-menu-button
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
690 hm--html-menu-noregion-novice-map))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
691 )
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
692
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
693 (defun hm--html-use-expert-menu ()
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
694 "Changes the HTML popup menu to the expert menu."
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
695 (interactive)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
696 (setq hm--html-expert t)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
697 (define-key hm--html-region-mode-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
698 hm--html-emacs19-popup-region-menu-button
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
699 hm--html-menu-region-expert-map)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
700 (define-key hm--html-minor-region-mode-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
701 hm--html-emacs19-popup-region-menu-button
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
702 hm--html-menu-region-expert-map)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
703 (if (not hm--html-region-mode)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
704 (define-key hm--html-mode-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
705 hm--html-emacs19-popup-noregion-menu-button
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
706 hm--html-menu-noregion-expert-map))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
707 (if (not hm--html-minor-region-mode)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
708 (define-key hm--html-minor-mode-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
709 hm--html-emacs19-popup-noregion-menu-button
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
710 hm--html-menu-noregion-expert-map))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
711 )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
712 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
713
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
714
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
715 (defvar hm--html-use-psgml t
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
716 "Set this to t, if functions from the psgml-mode should be used.")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
717
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
718 ;;; Popup the menus in the minor mode
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
719
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
720 (if (adapt-xemacsp)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
721 (progn
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
722
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
723 (defadvice sgml-xemacs-get-popup-value (around
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
724 hm--html-popup-menu-advice
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
725 activate)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
726 "Calls `hm--html-sgml-xemacs-get-popup-value' instead of the original.
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
727 `hm--html-sgml-xemacs-get-popup-value' is only called, if the
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
728 `hm--html-minor-mode' is active.
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
729 `hm--html-sgml-xemacs-get-popup-value' adds the 'hm--html-mode' popup
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
730 menus to the psgml popup menu."
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
731 (if hm--html-minor-mode
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
732 (setq ad-return-value
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
733 (hm--html-sgml-xemacs-get-popup-value (ad-get-arg 0)))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
734 ad-do-it))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
735
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
736 (defun hm--html-sgml-xemacs-get-popup-value (menudesc)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
737 (let ((value nil)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
738 (event nil))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
739 ;; (popup-menu menudesc)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
740 (popup-menu (append hm--html-popup-menu ; for the hm--html-menu
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
741 (list "==" ;
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
742 (car menudesc) ;
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
743 "==") ;
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
744 (cdr menudesc))) ;
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 102
diff changeset
745 (while (popup-up-p)
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
746 (setq event (next-command-event event))
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 102
diff changeset
747 (cond ((misc-user-event-p event)
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
748 (cond
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
749 ((eq (event-object event) 'abort)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
750 (signal 'quit nil))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
751 ((eq (event-object event) 'menu-no-selection-hook)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
752 nil)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
753 ((commandp (event-object event)) ; for the
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
754 (call-interactively (event-object event)) ; hm--html-menu
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
755 (signal 'quit nil)) ; items
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
756 (t
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
757 (eval (event-object event)))))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
758 ((button-release-event-p event) ; don't beep twice
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
759 nil)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
760 ((and (fboundp 'event-matches-key-specifier-p)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
761 (event-matches-key-specifier-p event (quit-char)))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
762 (signal 'quit nil))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
763 (t
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
764 (beep)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
765 (message "please make a choice from the menu."))))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
766 value))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
767 )
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
768 ; Fuer den Emacs 19 fehlt hier noch etwas !!!
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
769 )
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
770
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
771 (if (adapt-xemacsp)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
772 (progn
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
773
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
774 (defun hm--html-popup-minor-html-menu (event)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
775 "Pops the HTML- menu up, if no region is active."
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
776 (interactive "@e")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
777 (if hm--html-use-psgml
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
778 (let ((hm--html-popup-menu (if hm--html-expert
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
779 hm--html-menu-noregion-expert
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
780 hm--html-menu-noregion-novice)))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
781 (sgml-tags-menu event))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
782 (if hm--html-expert
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
783 (popup-menu hm--html-menu-noregion-expert)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
784 (popup-menu hm--html-menu-noregion-novice))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
785 ))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
786
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
787
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
788 (defun hm--html-popup-minor-html-menu-region (event)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
789 "Pops the HTML- menu up, if a region is active."
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
790 (interactive "@e")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
791 (if hm--html-use-psgml
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
792 (let ((hm--html-popup-menu (if hm--html-expert
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
793 hm--html-menu-region-expert
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
794 hm--html-menu-region-novice)))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
795 (sgml-tags-menu event))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
796 (if hm--html-expert
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
797 (popup-menu hm--html-menu-region-expert)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
798 (popup-menu hm--html-menu-region-novice))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
799 ))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
800
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
801 ))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
802
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
803
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
804 (run-hooks 'hm--html-menu-load-hook)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
805
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
806
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
807 ;;; Announce the feature hm--html-menu
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
808 (provide 'hm--html-menu)