annotate lisp/hm--html-menus/hm--html-menu.el @ 2:ac2d302a0011 r19-15b2

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