annotate lisp/hm--html-menus/hm--html-menu.el @ 24:4103f0995bd7 r19-15b95

Import from CVS: tag r19-15b95
author cvs
date Mon, 13 Aug 2007 08:51:03 +0200
parents 8fc7fe29b841
children 441bb1e64a06
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 ;;;
24
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 22
diff changeset
3 ;;; $Id: hm--html-menu.el,v 1.3 1997/02/22 22:07:11 steve Exp $
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4 ;;;
22
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
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]
22
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
55 ["Drag & Drop"
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
56 idd-start-mouse-drag-and-drop
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
57 :active t
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
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]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 ["Mailbox link..." hm--html-add-mail-link t]
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 "----"
24
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 22
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 "----"
24
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 22
diff changeset
94 ["Meta information..." hm--html-add-meta t]
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 22
diff changeset
95 ["Node Link..." hm--html-add-normal-node-link t]
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 22
diff changeset
96 ["Isindex..." hm--html-add-isindex t]
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 22
diff changeset
97 ["Document Base..." hm--html-add-base t]
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 22
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]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 ["New date in title" hm--html-new-date t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 ("Structure"
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
104 ["Menu or list item" hm--html-add-list-or-menu-item t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
105 ["Menu" hm--html-add-menu t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
106 ["Unordered list" hm--html-add-list t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 ["Ordered list" hm--html-add-numberlist t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 ["Directory list" hm--html-add-directory-list t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 "----"
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
110 ["Description list" hm--html-add-description-list t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 ["Description title" hm--html-add-description-title t]
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
112 ["Description entry" hm--html-add-description-entry t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
113 ["Description title + entry"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
114 hm--html-add-description-title-and-entry t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 ["Table..." hm--html-add-table t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 ["Table title..." hm--html-add-table-title t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 ["Table header..." hm--html-add-table-header t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 ["Table first row..." hm--html-add-first-table-row t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 ["Table additional row..." hm--html-add-additional-table-row t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 ("Additional Commands"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 ["Table row frame..." hm--html-add-row-frame t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 ["Table header entry..." hm--html-add-header-entry t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 ["Table row entry..." hm--html-add-row-entry t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 ["Span columns..." hm--html-table-add-colspan-attribute t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 ["Span rows..." hm--html-table-add-rowspan-attribute t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 ["Paragraph container" hm--html-add-paragraph t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 ["Paragraph start tag" hm--html-add-paragraph-separator t]
24
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 22
diff changeset
131 ["Document division" hm--html-add-document-division t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 ["New line" hm--html-add-line-break t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 ["Horizontal rule" hm--html-add-horizontal-rule t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 ("Formating Paragraphs"
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
136 ["Without links" hm--html-add-plaintext t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 ["With links" hm--html-add-preformated t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 "----"
24
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 22
diff changeset
139 ["Basefont..." hm--html-add-basefont t]
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 22
diff changeset
140 ["Font..." hm--html-add-font t]
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
141 ["Blockquote" hm--html-add-blockquote t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
142 ["Listing" hm--html-add-listing t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 ["Abstract" hm--html-add-abstract t]
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
144 "----"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
145 ["Center" hm--html-add-center t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 ("Formatting Words"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 ["Bold" hm--html-add-bold t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 ["Italic" hm--html-add-italic t]
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
150 ["Typewriter" hm--html-add-fixed t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
151 ["Small" hm--html-add-small t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
152 ["Big" hm--html-add-big t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 ["Superscript" hm--html-add-superscript t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 ["Subscript" hm--html-add-subscript t]
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
155 "----"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
156 ["Underline" hm--html-add-underline t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
157 ["Strikethru" hm--html-add-strikethru t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158 ;; ["Render" hm--html-add-render t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 "----"
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
160 ; ["Emphasized" hm--html-add-emphasized t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
161 ; ["Strong" hm--html-add-strong t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
162 ; "----"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
163 ("Phrase"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
164 ["Emphasized" hm--html-add-emphasized t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
165 ["Strong" hm--html-add-strong t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
166 "----"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 ["Definition" hm--html-add-definition t]
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
168 ["Keyboard" hm--html-add-keyboard t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
169 ["Variable" hm--html-add-variable t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 ["Code" hm--html-add-code t]
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
171 ["Sample" hm--html-add-sample t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
172 ["Citation" hm--html-add-citation t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 )
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
174 ;; All the following commands are still implemented, but most
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
175 ;; of them are not defined in HTM 3.2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
176 ; ("Computing"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
177 ; ["Definition" hm--html-add-definition t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
178 ; ["Keyboard" hm--html-add-keyboard t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
179 ; ["Command" hm--html-add-command t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
180 ; ["Argument" hm--html-add-argument t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
181 ; ["Option" hm--html-add-option t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
182 ; ["Variable" hm--html-add-variable t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
183 ; ["Instance" hm--html-add-instance t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
184 ; ["Code" hm--html-add-code t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
185 ; ["Sample" hm--html-add-sample t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
186 ; )
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
187 ; ("Literature"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
188 ; ["Quote" hm--html-add-quote t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
189 ; ["Acronym" hm--html-add-acronym t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
190 ; ["Abbrevation" hm--html-add-abbrevation t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
191 ; ["Citation" hm--html-add-citation t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
192 ; ["Literature" hm--html-add-literature t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
193 ; ["Publication" hm--html-add-publication t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
194 ; ["ISBN" hm--html-add-isbn t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
195 ; )
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
196 ; ("Person"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
197 ; ["Person" hm--html-add-person t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
198 ; ["Author" hm--html-add-author t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
199 ; ["Editor" hm--html-add-editor t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
200 ; ["Credits" hm--html-add-credits t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
201 ; ["Copyright" hm--html-add-copyright t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
202 ; )
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
203 ; "----"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
204 ; ["Footnote" hm--html-add-footnote t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
205 ; ["Margin" hm--html-add-margin t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207 ["HTML Comment" hm--html-add-comment t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 ("Include"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 ["Top aligned image..." hm--html-add-image-top t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211 ["Middle aligned image..." hm--html-add-image-middle t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 ["Bottom aligned image..." hm--html-add-image-bottom t]
24
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 22
diff changeset
213 ["Image as map? ..." hm--html-add-image t]
22
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
214 ["Drag & Drop"
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
215 idd-start-mouse-drag-and-drop
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
216 :active t
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
217 :keys "\\[idd-mouse-drag-and-drop]"]
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
218 "----"
24
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 22
diff changeset
219 ["Image map..." hm--html-add-image-map t]
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 22
diff changeset
220 ["Map..." hm--html-add-map t]
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 22
diff changeset
221 ["Area..." hm--html-add-area t]
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 22
diff changeset
222 "----"
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
223 ["Applet..." hm--html-add-applet t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
224 ["Parameter..." hm--html-add-applet-parameter t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 ; "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226 ; ["File..." hm--html-add-server-side-include-file t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 ; ["Command..." hm--html-add-server-side-include-command t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228 ; ["Command with isindex parameter..."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229 ; hm--html-add-server-side-include-command-with-isindex-parameter
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 ; t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232 ("Forms"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 ["Form..." hm--html-add-form t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 ["Text field..." hm--html-form-add-input-text t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 ["Password field..." hm--html-form-add-input-password t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237 ["Isindex field..." hm--html-form-add-input-isindex t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 ["Integer field..." hm--html-form-add-input-integer t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239 ["Float field..." hm--html-form-add-input-float t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 ["Date field..." hm--html-form-add-input-date t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241 ["Url field..." hm--html-form-add-input-url t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242 ["Scribble field..." hm--html-form-add-input-scribble t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244 ["Checkbox button..." hm--html-form-add-input-checkbox t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245 ["Radio button..." hm--html-form-add-input-radio t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246 ["Reset button..." hm--html-form-add-input-reset t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
247 ["Submit button..." hm--html-form-add-input-submit t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 ["Image button..." hm--html-form-add-input-image t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249 ["Audio button..." hm--html-form-add-input-audio 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 ["Option Menu..." hm--html-form-add-select-option-menu t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
252 ["Scrolled List..." hm--html-form-add-select-scrolled-list t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253 ["Option..." hm--html-form-add-select-option 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 ["Textarea..." hm--html-form-add-textarea t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
258
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
260 (setq hm--html-menu-noregion-novice
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
261 '("HTML No-region Novice Menu"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262 ("Anchors"
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
263 ["Relative link..." hm--html-add-relative-link t]
22
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
264 ["Drag & Drop"
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
265 idd-start-mouse-drag-and-drop
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
266 :active t
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
267 :keys "\\[idd-mouse-drag-and-drop]"]
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
268 "----"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
269 ["Html link..." hm--html-add-html-link t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
270 ["File link..." hm--html-add-file-link t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
271 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
272 ("Frame"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
273 ["Full html frame..." hm--html-add-full-html-frame t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
274 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
275 ["Title and Header..." hm--html-add-title-and-header t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
276 ["Signature" hm--html-add-signature t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
277 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
278 ("Structure"
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
279 ["Menu item" hm--html-add-list-or-menu-item t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
280 ["Menu" hm--html-add-menu t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
281 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
282 ["Paragraph Container" hm--html-add-paragraph t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
283 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
284 ("Formating Paragraphs"
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
285 ["Without links" hm--html-add-plaintext t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
286 ["With links" hm--html-add-preformated 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 ("Formatting Words"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
289 ["Bold" hm--html-add-bold t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
290 ["Italic" hm--html-add-italic t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
291 ["Underline" hm--html-add-underline t]
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
292 ["Typewriter" hm--html-add-fixed t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
293 )))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
294
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
295 (setq hm--html-menu-region-expert
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
296 '("HTML Region Expert Menu"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
297 ("Anchors"
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
298 ["Relative link..." hm--html-add-relative-link-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
299 ["General link..." hm--html-add-normal-link-to-region t]
22
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
300 ["Drag & Drop"
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
301 idd-start-mouse-drag-and-drop
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
302 :active t
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
303 :keys "\\[idd-mouse-drag-and-drop]"]
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
304 "----"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
305 ["Html link..." hm--html-add-html-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
306 ["Info link..." hm--html-add-info-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
307 ["Gopher link..." hm--html-add-gopher-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
308 ["File link..." hm--html-add-file-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
309 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
310 ["Ftp link..." hm--html-add-ftp-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
311 ["News link..." hm--html-add-news-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
312 ["Mailbox link..." hm--html-add-mail-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
313 ["Mailto link..." hm--html-add-mailto-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
314 ["WAIS link (direct)..." hm--html-add-direct-wais-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
315 ["WAIS link (gateway)..." hm--html-add-wais-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
316 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
317 ["Proggate link..." hm--html-add-proggate-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
318 ["Local Proggate link..."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
319 hm--html-add-local-proggate-link-to-region
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
320 t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
321 "----"
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
322 ["Link target..." hm--html-add-link-target-to-region t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
323 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
324 ("Frame"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
325 ["Full html frame..." hm--html-add-full-html-frame-with-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
326 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
327 ["Head" hm--html-add-head-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
328 ["Body" hm--html-add-body-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 ["Title and Header..." hm--html-add-title-and-header-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
331 ["Title" hm--html-add-title-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
332 ["Header..." hm--html-add-header-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
333 ["Address" hm--html-add-address-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
334 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
335 ("Structure"
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
336 ["Menu item" hm--html-add-list-or-menu-item-to-region t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
337 ["Menu" hm--html-add-menu-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
338 ["Unordered list" hm--html-add-list-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
339 ["Ordered list" hm--html-add-numberlist-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
340 ["Directory list" hm--html-add-directorylist-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
341 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
342 ["Description list" hm--html-add-description-list-to-region t]
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
343 ["Description title" hm--html-add-description-title-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
344 ["Description entry" hm--html-add-description-entry-to-region t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
345 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
346 ["Table..." hm--html-add-table-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
347 ["Table Title..." hm--html-add-table-title-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
348 ("Additional Commands"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
349 ["Table row frame..." hm--html-add-row-frame-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
350 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
351 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
352 ["Paragraph container" hm--html-add-paragraph-to-region t]
24
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 22
diff changeset
353 ["Document division" hm--html-add-document-division-to-region t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
354 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
355 ("Formatting Paragraphs"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
356 ["Without links" hm--html-add-plaintext-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
357 ["With links" hm--html-add-preformated-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
358 "----"
24
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 22
diff changeset
359 ["Font..." hm--html-add-font-to-region t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
360 ["Blockquote" hm--html-add-blockquote-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
361 ["Listing" hm--html-add-listing-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
362 ["Abstract" hm--html-add-abstract-to-region t]
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
363 "----"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
364 ["Center" hm--html-add-center-to-region t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
365 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
366 ("Formatting Words"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
367 ["Bold" hm--html-add-bold-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
368 ["Italic" hm--html-add-italic-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
369 ["Typewriter" hm--html-add-fixed-to-region t]
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
370 ["Small" hm--html-add-small-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
371 ["Big" hm--html-add-big-to-region t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
372 ["Superscript" hm--html-add-superscript-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
373 ["Subscript" hm--html-add-subscript-to-region t]
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
374 "----"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
375 ["Underline" hm--html-add-underline-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
376 ["Strikethru" hm--html-add-strikethru-to-region t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
377 ;; ["Render" hm--html-add-render-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
378 "----"
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
379 ; ["Emphasized" hm--html-add-emphasized-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
380 ; ["Strong" hm--html-add-strong-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
381 ; "----"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
382 ("Phrase"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
383 ["Emphasized" hm--html-add-emphasized-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
384 ["Strong" hm--html-add-strong-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
385 "----"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
386 ["Definition" hm--html-add-definition-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
387 ["Keyboard" hm--html-add-keyboard-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
388 ["Variable" hm--html-add-variable-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
389 ["Code" hm--html-add-code-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
390 ["Sample" hm--html-add-sample-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
391 ["Citation" hm--html-add-citation-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
392 )
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
393 ;; All the following commands are still implemented, but most
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
394 ;; of them are not defined in HTM 3.2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
395 ; ("Computing"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
396 ; ["Definition" hm--html-add-definition-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
397 ; ["Keyboard" hm--html-add-keyboard-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
398 ; ["Command" hm--html-add-command-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
399 ; ["Argument" hm--html-add-argument-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
400 ; ["Option" hm--html-add-option-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
401 ; ["Variable" hm--html-add-variable-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
402 ; ["Instance" hm--html-add-instance-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
403 ; ["Code" hm--html-add-code-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
404 ; ["Sample" hm--html-add-sample-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
405 ; )
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
406 ; ("Literature"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
407 ; ["Quote" hm--html-add-quote-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
408 ; ["Acronym" hm--html-add-acronym-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
409 ; ["Abbrevation" hm--html-add-abbrevation-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
410 ; ["Citation" hm--html-add-citation-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
411 ; ["Literature" hm--html-add-literature-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
412 ; ["Publication" hm--html-add-publication-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
413 ; ["ISBN" hm--html-add-isbn-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
414 ; )
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
415 ; ("Person"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
416 ; ["Person" hm--html-add-person-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
417 ; ["Author" hm--html-add-author-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
418 ; ["Editor" hm--html-add-editor-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
419 ; ["Credits" hm--html-add-credits-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
420 ; ["Copyright" hm--html-add-copyright-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
421 ; )
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
422 ; "----"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
423 ; ["Footnote" hm--html-add-footnote-to-region t]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
424 ; ["Margin" hm--html-add-margin-to-region t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
425 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
426 ["HTML Comment" hm--html-add-comment-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
427 )
24
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 22
diff changeset
428 ("Include"
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 22
diff changeset
429 ["Map..." hm--html-add-map-to-region t]
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 22
diff changeset
430 "----"
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 22
diff changeset
431 ["Applet..." hm--html-add-applet-to-region t]
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 22
diff changeset
432 )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
433 ("Forms"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
434 ["Form..." hm--html-add-form-to-region t])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
435 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
436
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
437
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
438 (setq hm--html-menu-region-novice
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
439 '("HTML Region Novice Menu"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
440 ("Anchors"
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
441 ["Relative link..." hm--html-add-relative-link-to-region t]
22
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
442 ["Drag & Drop"
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
443 idd-start-mouse-drag-and-drop
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
444 :active t
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
445 :keys "\\[idd-mouse-drag-and-drop]"]
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
446 "----"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
447 ["Html link..." hm--html-add-html-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
448 ["File link..." hm--html-add-file-link-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
449 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
450 ("Frame"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
451 ["Full html frame..." hm--html-add-full-html-frame-with-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
452 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
453 ["Title and Header..." hm--html-add-title-and-header-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
454 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
455 ("Structure"
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
456 ["Menu item" hm--html-add-list-or-menu-item-to-region t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
457 ["Menu" hm--html-add-menu-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
458 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
459 ("Formatting Paragraphs"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
460 ["Without links" hm--html-add-plaintext-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
461 ["With links" hm--html-add-preformated-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
462 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
463 ("Formatting Words"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
464 ["Bold" hm--html-add-bold-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
465 ["Italic" hm--html-add-italic-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
466 ["Underline" hm--html-add-underline-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
467 ["Typewriter" hm--html-add-fixed-to-region t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
468 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
469 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
470
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
471
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
472
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
473 (setq hm--html-pulldown-menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
474 '("HTML Config Menu"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
475 ("Set popup menu"
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
476 ["Novice menu"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
477 hm--html-use-novice-menu
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
478 :active t
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
479 :style radio
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
480 :selected (not hm--html-expert)]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
481 ["Expert menu"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
482 hm--html-use-expert-menu
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
483 :active t
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
484 :style radio
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
485 :selected hm--html-expert]
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
486 ; ["Marcs menu" hm--html-use-marcs-menu t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
487 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
488 ["Reload config files" hm--html-load-config-files t]
22
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
489 ["Templates (fixed dirs) ..."
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
490 hm--html-insert-template-from-fixed-dirs
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
491 t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
492 ["Templates ..." hm--html-insert-template t]
22
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
493 ["Drag & Drop"
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
494 idd-start-mouse-drag-and-drop
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
495 :active t
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
496 :keys "\\[idd-mouse-drag-and-drop]"]
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
497 ["Drag & Drop Help"
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
498 idd-start-help-mouse-drag-and-drop
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
499 :active t
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents: 2
diff changeset
500 :keys "\\[idd-help-mouse-drag-and-drop]"]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
501 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
502 ["Remove numeric names" hm--html-remove-numeric-names t]
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
503 ["Quotify hrefs" hm--html-quotify-hrefs t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
504 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
505 ["Submit bug report..." hm--html-submit-bug-report t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
506 ["WWW Package Docs" hm--html-view-www-package-docu t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
507 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
508 ("Preview Document"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
509 ["Netscape view buffer" (hm--html-send-buffer-to-netscape
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
510 (current-buffer)) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
511 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
512 ["Xmosaic start" html-view-start-mosaic t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
513 ["Xmosaic view buffer" html-view-view-buffer t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
514 ["Xmosaic view file" html-view-view-file t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
515 ["Xmosaic goto url" html-view-goto-url t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
516 ["Xmosaic get display" html-view-get-display t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
517 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
518 ["W3 start" w3 t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
519 ["W3 view buffer" w3-preview-this-buffer t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
520 ["W3 open remote file..." w3-fetch t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
521 ["W3 open local..." w3-open-local t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
522 ["W3 use hotlist..." w3-use-hotlist t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
523 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
524 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
525
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
526
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
527 (if (adapt-xemacsp)
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
528 (defun hm--install-html-menu (menu-name)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
529 (if (and current-menubar (not (assoc menu-name current-menubar)))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
530 (progn
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
531 (set-buffer-menubar (copy-sequence current-menubar))
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
532 (add-menu nil menu-name (cdr hm--html-pulldown-menu)))))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
533
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
534 (defun hm--install-html-menu (menu-name)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
535 (if (eq major-mode 'hm--html-mode)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
536 (easy-menu-define hm--html-menu-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
537 hm--html-mode-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
538 "The hm--html-mode pulldown menu."
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
539 (cons menu-name
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
540 (cdr hm--html-pulldown-menu)))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
541 (easy-menu-define hm--html-minor-menu-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
542 hm--html-minor-mode-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
543 "The hm--html-minor-mode pulldown menu."
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
544 (cons menu-name
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
545 (cdr hm--html-pulldown-menu))))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
546 ; (easy-menu-define hm--html-region-menu-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
547 ; hm--html-region-mode-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
548 ; "The hm--html-mode pulldown menu, if a region is active."
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
549 ; (cons menu-name
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
550 ; (cdr hm--html-pulldown-menu)))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
551 ; (if (and current-menubar (not (assoc "HTML" current-menubar)))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
552 ; (progn
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
553 ; (set-buffer-menubar current-menubar)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
554 ; ))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
555 ; (add-menu nil "HTML" (cdr hm--html-pulldown-menu))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
556 ))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
557
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
558 (if (adapt-emacs19p)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
559 (progn
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
560
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
561 (setq hm--html-menu-noregion-expert-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
562 (make-lucid-menu-keymap (car hm--html-menu-noregion-expert)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
563 (cdr hm--html-menu-noregion-expert)))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
564
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
565 (setq hm--html-menu-region-expert-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
566 (make-lucid-menu-keymap (car hm--html-menu-region-expert)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
567 (cdr hm--html-menu-region-expert)))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
568
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
569 (setq hm--html-menu-noregion-novice-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
570 (make-lucid-menu-keymap (car hm--html-menu-noregion-novice)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
571 (cdr hm--html-menu-noregion-novice)))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
572
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
573 (setq hm--html-menu-region-novice-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
574 (make-lucid-menu-keymap (car hm--html-menu-region-novice)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
575 (cdr hm--html-menu-region-novice)))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
576
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
577 ;; Speeds up the first popup of a menu
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
578 (if hm--html-expert
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
579 (progn
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
580 (x-popup-menu nil hm--html-menu-noregion-expert-map)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
581 (x-popup-menu nil hm--html-menu-region-expert-map)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
582 )
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
583 (x-popup-menu nil hm--html-menu-noregion-novice-map)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
584 (x-popup-menu nil hm--html-menu-region-novice-map))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
585
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
586
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
587 ; (defun hm--html-emacs19-popup-menu (menu event)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
588 ; (let ((pos (posn-x-y (event-end event)))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
589 ; (window (posn-window (event-start event)))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
590 ; (answer))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
591 ; (while menu
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
592 ; (setq answer (x-popup-menu (list (list (car pos) (cdr pos))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
593 ; window)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
594 ; menu))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
595 ; (setq cmd (lookup-key menu (apply 'vector answer)))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
596 ; (setq menu nil)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
597 ; (and cmd
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
598 ; (if (keymapp cmd)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
599 ; (setq menu cmd)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
600 ; (call-interactively cmd))))))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
601
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
602 ; (defun hm--html-popup-menu (event)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
603 ; "Pops the HTML- menu up, if no region is active."
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
604 ; (interactive "@e")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
605 ; (if hm--html-expert
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
606 ; (hm--html-emacs19-popup-menu hm--html-menu-noregion-expert-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
607 ; event)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
608 ; (hm--html-emacs19-popup-menu hm--html-menu-noregion-novice-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
609 ; event)))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
610
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
611 ; (defun hm--html-popup-menu-region (event)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
612 ; "Pops the HTML- menu up, if a region is active."
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
613 ; (interactive "@e")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
614 ; (if hm--html-expert
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
615 ; (hm--html-emacs19-popup-menu hm--html-menu-region-expert-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
616 ; event)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
617 ; (hm--html-emacs19-popup-menu hm--html-menu-region-novice-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
618 ; event)))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
619 )
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
620
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
621 (defun hm--html-popup-menu (event)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
622 "Pops the HTML- menu up, if no region is active."
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
623 (interactive "@e")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
624 ; (if hm--html-marc
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
625 ; (popup-menu html-menu)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
626 (if hm--html-expert
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
627 (popup-menu hm--html-menu-noregion-expert)
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
628 (popup-menu hm--html-menu-noregion-novice)))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
629 ;)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
630
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
631
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
632 (defun hm--html-popup-menu-region (event)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
633 "Pops the HTML- menu up, if a region is active."
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
634 (interactive "@e")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
635 ; (if hm--html-marc
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
636 ; (popup-menu html-menu)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
637 (if hm--html-expert
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
638 (popup-menu hm--html-menu-region-expert)
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
639 (popup-menu hm--html-menu-region-novice)))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
640 ;)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
641 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
642
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
643
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
644 (if (adapt-xemacsp)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
645 (progn
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
646
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
647 (defun hm--html-use-novice-menu ()
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
648 "Changes the HTML popup menu to the novice menu."
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
649 (interactive)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
650 (setq hm--html-expert nil)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
651 ; (setq hm--html-marc nil)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
652 ; (define-key html-mode-map '(button3) 'hm--popup-html-menu)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
653 ; (define-key html-region-mode-map '(button3) 'hm--popup-html-menu)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
654 )
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
655
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
656
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
657 (defun hm--html-use-expert-menu ()
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
658 "Changes the HTML popup menu to the expert menu."
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
659 (interactive)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
660 (setq hm--html-expert t)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
661 ; (setq hm--html-marc nil)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
662 ; (define-key html-mode-map '(button3) 'hm--popup-html-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
663 ; (define-key html-region-mode-map '(button3) 'hm--popup-html-menu)
2
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 )
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
666
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
667 ;; For the Emacs 19
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
668 (defun hm--html-use-novice-menu ()
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
669 "Changes the HTML popup menu to the novice menu."
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
670 (interactive)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
671 (setq hm--html-expert nil)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
672 (define-key hm--html-region-mode-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
673 hm--html-emacs19-popup-region-menu-button
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
674 hm--html-menu-region-novice-map)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
675 (define-key hm--html-minor-region-mode-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
676 hm--html-emacs19-popup-region-menu-button
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
677 hm--html-menu-region-novice-map)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
678 (if (not hm--html-region-mode)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
679 (define-key hm--html-mode-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
680 hm--html-emacs19-popup-noregion-menu-button
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
681 hm--html-menu-noregion-novice-map))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
682 (if (not hm--html-minor-region-mode)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
683 (define-key hm--html-minor-mode-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
684 hm--html-emacs19-popup-noregion-menu-button
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
685 hm--html-menu-noregion-novice-map))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
686 )
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
687
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
688 (defun hm--html-use-expert-menu ()
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
689 "Changes the HTML popup menu to the expert menu."
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
690 (interactive)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
691 (setq hm--html-expert t)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
692 (define-key hm--html-region-mode-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
693 hm--html-emacs19-popup-region-menu-button
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
694 hm--html-menu-region-expert-map)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
695 (define-key hm--html-minor-region-mode-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
696 hm--html-emacs19-popup-region-menu-button
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
697 hm--html-menu-region-expert-map)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
698 (if (not hm--html-region-mode)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
699 (define-key hm--html-mode-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
700 hm--html-emacs19-popup-noregion-menu-button
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
701 hm--html-menu-noregion-expert-map))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
702 (if (not hm--html-minor-region-mode)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
703 (define-key hm--html-minor-mode-map
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
704 hm--html-emacs19-popup-noregion-menu-button
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
705 hm--html-menu-noregion-expert-map))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
706 )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
707 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
708
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
709 ;(defun hm--html-use-marcs-menu ()
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
710 ; "Changes the HTML popup menu to Marc Andreessens menu."
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
711 ; (interactive)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
712 ; (setq hm--html-marc t)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
713 ; )
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
714
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
715
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
716 ;(define-key html-mode-map '(button3) 'hm--popup-html-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
717 ;(define-key html-region-mode-map '(button3) 'hm--popup-html-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
718
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
719 ;(add-hook 'html-mode-hook 'hm--install-html-menu)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
720
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
721
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
722 ;(defun sgml-popup-menu (event title entries)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
723 ; "Display a popup menu."
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
724 ; (setq entries
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
725 ; (loop for ent in entries collect
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
726 ; (vector (car ent)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
727 ; (list 'setq 'value (list 'quote (cdr ent)))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
728 ; t)))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
729 ; (cond ((> (length entries) sgml-max-menu-size)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
730 ; (setq entries
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
731 ; (loop for i from 1 while entries collect
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
732 ; (let ((submenu
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
733 ; (subseq entries 0 (min (length entries)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
734 ; sgml-max-menu-size))))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
735 ; (setq entries (nthcdr sgml-max-menu-size
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
736 ; entries))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
737 ; (cons
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
738 ; (format "%s '%s'-'%s'"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
739 ; title
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
740 ; (sgml-range-indicator (aref (car submenu) 0))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
741 ; (sgml-range-indicator
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
742 ; (aref (car (last submenu)) 0)))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
743 ; submenu))))))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
744 ;; (sgml-xemacs-get-popup-value (cons title entries)))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
745 ; (sgml-xemacs-get-popup-value (append hm--html-popup-menu
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
746 ; (list "--" "--" title "==")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
747 ; entries)))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
748
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
749 (defvar hm--html-use-psgml t
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
750 "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
751
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
752 ;;; Popup the menus in the minor mode
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
753
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
754 (if (adapt-xemacsp)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
755 (progn
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
756
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
757 (defadvice sgml-xemacs-get-popup-value (around
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
758 hm--html-popup-menu-advice
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
759 activate)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
760 "Calls `hm--html-sgml-xemacs-get-popup-value' instead of the original.
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
761 `hm--html-sgml-xemacs-get-popup-value' is only called, if the
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
762 `hm--html-minor-mode' is active.
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
763 `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
764 menus to the psgml popup menu."
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
765 (if hm--html-minor-mode
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
766 (setq ad-return-value
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
767 (hm--html-sgml-xemacs-get-popup-value (ad-get-arg 0)))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
768 ad-do-it))
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 (defun hm--html-sgml-xemacs-get-popup-value (menudesc)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
771 (let ((value nil)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
772 (event nil))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
773 ;; (popup-menu menudesc)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
774 (popup-menu (append hm--html-popup-menu ; for the hm--html-menu
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
775 (list "==" ;
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
776 (car menudesc) ;
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
777 "==") ;
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
778 (cdr menudesc))) ;
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
779 (while (popup-menu-up-p)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
780 (setq event (next-command-event event))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
781 (cond ((menu-event-p event)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
782 (cond
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
783 ((eq (event-object event) 'abort)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
784 (signal 'quit nil))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
785 ((eq (event-object event) 'menu-no-selection-hook)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
786 nil)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
787 ((commandp (event-object event)) ; for the
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
788 (call-interactively (event-object event)) ; hm--html-menu
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
789 (signal 'quit nil)) ; items
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
790 (t
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
791 (eval (event-object event)))))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
792 ((button-release-event-p event) ; don't beep twice
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
793 nil)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
794 ((and (fboundp 'event-matches-key-specifier-p)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
795 (event-matches-key-specifier-p event (quit-char)))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
796 (signal 'quit nil))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
797 (t
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
798 (beep)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
799 (message "please make a choice from the menu."))))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
800 value))
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 ; Fuer den Emacs 19 fehlt hier noch etwas !!!
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
803 )
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
804
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
805 (if (adapt-xemacsp)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
806 (progn
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
807
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
808 (defun hm--html-popup-minor-html-menu (event)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
809 "Pops the HTML- menu up, if no region is active."
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
810 (interactive "@e")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
811 (if hm--html-use-psgml
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
812 (let ((hm--html-popup-menu (if hm--html-expert
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
813 hm--html-menu-noregion-expert
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
814 hm--html-menu-noregion-novice)))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
815 (sgml-tags-menu event))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
816 (if hm--html-expert
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
817 (popup-menu hm--html-menu-noregion-expert)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
818 (popup-menu hm--html-menu-noregion-novice))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
819 ))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
820
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
821
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
822 (defun hm--html-popup-minor-html-menu-region (event)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
823 "Pops the HTML- menu up, if a region is active."
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
824 (interactive "@e")
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
825 (if hm--html-use-psgml
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
826 (let ((hm--html-popup-menu (if hm--html-expert
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
827 hm--html-menu-region-expert
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
828 hm--html-menu-region-novice)))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
829 (sgml-tags-menu event))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
830 (if hm--html-expert
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
831 (popup-menu hm--html-menu-region-expert)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
832 (popup-menu hm--html-menu-region-novice))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
833 ))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
834
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
835 ))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
836
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
837
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
838 ;(defvar hm--html-menu-load-hook nil
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
839 ; "*Hook variable to execute functions after loading the file hm--html-menu.")
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
840
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
841
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
842 (run-hooks 'hm--html-menu-load-hook)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
843
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
844
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
845 ;;; Announce the feature hm--html-menu
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
846 (provide 'hm--html-menu)