annotate lisp/hm--html-menus/hm--html-menu.el @ 22:8fc7fe29b841 r19-15b94

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