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

Import from CVS: tag r19-14
author cvs
date Mon, 13 Aug 2007 08:45:50 +0200
parents
children ac2d302a0011
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 ;;; hm--html-keys.el
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 ;;; v1.50; 17-Feb-1996
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 ;;; Copyright (C) 1995, 1996 Heiko Muenkel
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 ;;; email: muenkel@tnt.uni-hannover.de
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 ;;; This program is free software; you can redistribute it and/or modify
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 ;;; it under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 ;;; the Free Software Foundation; either version 1, or (at your option)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 ;;; any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 ;;; This program is distributed in the hope that it will be useful,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 ;;; GNU General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 ;;; You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 ;;; along with this program; if not, write to the Free Software
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 ;;; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 ;;; Description:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 ;;; Defines the new keybindigs for the hm--html-menus package.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 ;;; At the moment it will only be used, if the variable
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 ;;; 'hm--html-use-old-keymap' in hm--html-configuration.el
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 ;;; is set to nil, which is the default.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 ;;; Installation:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 ;;; Put this file in one of your load path directories.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 (provide 'hm--html-keys)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 (defvar hm--html-noregion-anchor-map nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 "Noregion sub keymap for inserting anchors.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 (if hm--html-noregion-anchor-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 (setq hm--html-noregion-anchor-map (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 (define-key hm--html-noregion-anchor-map "h" 'hm--html-add-html-link)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 (define-key hm--html-noregion-anchor-map "i" 'hm--html-add-info-link)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 (define-key hm--html-noregion-anchor-map "g" 'hm--html-add-gopher-link)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 (define-key hm--html-noregion-anchor-map "f" 'hm--html-add-file-link)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 (define-key hm--html-noregion-anchor-map "\C-f" 'hm--html-add-ftp-link)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 (define-key hm--html-noregion-anchor-map "n" 'hm--html-add-news-link)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 (define-key hm--html-noregion-anchor-map "m" 'hm--html-add-mail-link)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 ; (define-key hm--html-noregion-anchor-map "\C-m" 'hm--html-add-mailto-link)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 (define-key hm--html-noregion-anchor-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 [(control m)] 'hm--html-add-mailto-link)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 (define-key hm--html-noregion-anchor-map "w" 'hm--html-add-direct-wais-link)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 (define-key hm--html-noregion-anchor-map "\C-w" 'hm--html-add-wais-link)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 (define-key hm--html-noregion-anchor-map "p" 'hm--html-add-proggate-link)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 (define-key hm--html-noregion-anchor-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 "\C-p" 'hm--html-add-local-proggate-link)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 (define-key hm--html-noregion-anchor-map "l" 'html-add-normal-link)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 (define-key hm--html-noregion-anchor-map "t" 'hm--html-add-link-target)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 (defvar hm--html-region-anchor-map nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 "Region sub keymap for inserting anchors.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 (if hm--html-region-anchor-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 (setq hm--html-region-anchor-map (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 (define-key hm--html-region-anchor-map "h" 'hm--html-add-html-link-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 (define-key hm--html-region-anchor-map "i" 'hm--html-add-info-link-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 (define-key hm--html-region-anchor-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 "g" 'hm--html-add-gopher-link-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 (define-key hm--html-region-anchor-map "f" 'hm--html-add-file-link-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 (define-key hm--html-region-anchor-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 "\C-f" 'hm--html-add-ftp-link-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 (define-key hm--html-region-anchor-map "n" 'hm--html-add-news-link-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 (define-key hm--html-region-anchor-map "m" 'hm--html-add-mail-link-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 ; (define-key hm--html-region-anchor-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 ; "\C-m" 'hm--html-add-mailto-link-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 (define-key hm--html-region-anchor-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 [(control m)] 'hm--html-add-mailto-link-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 (define-key hm--html-region-anchor-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 "w" 'hm--html-add-direct-wais-link-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 (define-key hm--html-region-anchor-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 "\C-w" 'hm--html-add-wais-link-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 (define-key hm--html-region-anchor-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 "p" 'hm--html-add-proggate-link-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 (define-key hm--html-region-anchor-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 "\C-p" 'hm--html-add-local-proggate-link-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 (define-key hm--html-region-anchor-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 "l" 'hm--html-add-normal-link-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 (define-key hm--html-region-anchor-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 "t" 'html-add-reference-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 (defvar hm--html-noregion-frame-map nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 "Noregion sub keymap for inserting frame elements.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 (if hm--html-noregion-frame-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 (setq hm--html-noregion-frame-map (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 (define-key hm--html-noregion-frame-map "f" 'hm--html-add-full-html-frame)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 (define-key hm--html-noregion-frame-map [(control h)] 'hm--html-add-html)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 (define-key hm--html-noregion-frame-map [(meta h)] 'hm--html-add-head)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 (define-key hm--html-noregion-frame-map "b" 'hm--html-add-body)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 (define-key hm--html-noregion-frame-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 [(control t)] 'hm--html-add-title-and-header)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 (define-key hm--html-noregion-frame-map "t" 'hm--html-add-title)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 (define-key hm--html-noregion-frame-map "h" 'hm--html-add-header)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 (define-key hm--html-noregion-frame-map "n" 'hm--html-add-normal-node-link)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 (define-key hm--html-noregion-frame-map "a" 'html-add-address)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 (define-key hm--html-noregion-frame-map "s" 'hm--html-add-signature)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 (define-key hm--html-noregion-frame-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 [(control c)] 'hm--html-insert-created-comment)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 (define-key hm--html-noregion-frame-map "c" 'hm--html-insert-changed-comment)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 (define-key hm--html-noregion-frame-map "d" 'hm--html-new-date)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 (defvar hm--html-region-frame-map nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 "Region sub keymap for inserting frame elements.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 (if hm--html-region-frame-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 (setq hm--html-region-frame-map (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 (define-key hm--html-region-frame-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 "f" 'hm--html-add-full-html-frame-with-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 (define-key hm--html-region-frame-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 [(meta h)] 'hm--html-add-head-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 (define-key hm--html-region-frame-map "b" 'hm--html-add-body-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 (define-key hm--html-region-frame-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 [(control t)] 'hm--html-add-title-and-header-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 (define-key hm--html-region-frame-map "t" 'hm--html-add-title-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 (define-key hm--html-region-frame-map "h" 'hm--html-add-header-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 (define-key hm--html-region-frame-map "a" 'hm--html-add-address-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 (defvar hm--html-noregion-structure-map nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 "Noregion sub keymap for inserting entities.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 (if hm--html-noregion-structure-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 (setq hm--html-noregion-structure-map (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 (define-key hm--html-noregion-structure-map "i" 'html-add-list-or-menu-item)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 (define-key hm--html-noregion-structure-map "m" 'html-add-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 (define-key hm--html-noregion-structure-map "u" 'html-add-list)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 (define-key hm--html-noregion-structure-map "o" 'hm--html-add-numberlist)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 (define-key hm--html-noregion-structure-map "d" 'hm--html-add-directory-list)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 (define-key hm--html-noregion-structure-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 "\C-dl" 'html-add-description-list)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 (define-key hm--html-noregion-structure-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 "\C-dt" 'hm--html-add-description-title)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 (define-key hm--html-noregion-structure-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 "\C-de" 'hm--html-add-only-description-entry)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 (define-key hm--html-noregion-structure-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 "\C-d\C-t" 'html-add-description-entry)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 (define-key hm--html-noregion-structure-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 "\C-tt" 'hm--html-add-table)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 (define-key hm--html-noregion-structure-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 "\C-t\C-t" 'hm--html-add-table-title)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158 (define-key hm--html-noregion-structure-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 "\C-th" 'hm--html-add-table-header)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 (define-key hm--html-noregion-structure-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 "\C-tr" 'hm--html-add-first-table-row)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 (define-key hm--html-noregion-structure-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 "\C-t\C-r" 'hm--html-add-additional-table-row)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 (define-key hm--html-noregion-structure-map "p" 'hm--html-add-paragraph)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 (define-key hm--html-noregion-structure-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 "\C-p" 'hm--html-add-paragraph-separator)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 (define-key hm--html-noregion-structure-map "\C-m" 'hm--html-add-line-break)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 (define-key hm--html-noregion-structure-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 "h" 'hm--html-add-horizontal-rule)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 (defvar hm--html-region-structure-map nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 "Region sub keymap for inserting entities.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 (if hm--html-region-structure-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 (setq hm--html-region-structure-map (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 (define-key hm--html-region-structure-map "m" 'hm--html-add-menu-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 (define-key hm--html-region-structure-map "u" 'hm--html-add-list-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 (define-key hm--html-region-structure-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 "o" 'hm--html-add-numberlist-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 (define-key hm--html-region-structure-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 "d" 'hm--html-add-directory-list-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184 (define-key hm--html-region-structure-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 "\C-dl" 'html-add-description-list-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 (define-key hm--html-region-structure-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 "\C-tt" 'hm--html-add-table-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 (define-key hm--html-region-structure-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 "\C-t\C-t" 'hm--html-add-table-title-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 (define-key hm--html-region-structure-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 "p" 'hm--html-add-paragraph-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 (defvar hm--html-noregion-formating-paragraph-map nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 "Noregion sub keymap for inserting paragraph formating elements.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 (if hm--html-noregion-formating-paragraph-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 (setq hm--html-noregion-formating-paragraph-map (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 (define-key hm--html-noregion-formating-paragraph-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 "o" 'html-add-plaintext)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 (define-key hm--html-noregion-formating-paragraph-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 "w" 'hm--html-add-preformated)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 (define-key hm--html-noregion-formating-paragraph-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205 "b" 'html-add-blockquote)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 (define-key hm--html-noregion-formating-paragraph-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207 "l" 'html-add-listing)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 (define-key hm--html-noregion-formating-paragraph-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 "a" 'hm--html-add-abstract)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 (defvar hm--html-region-formating-paragraph-map nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213 "Region sub keymap for inserting paragraph formating elements.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215 (if hm--html-region-formating-paragraph-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 (setq hm--html-region-formating-paragraph-map (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218 (define-key hm--html-region-formating-paragraph-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219 "o" 'hm--html-add-plaintext-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220 (define-key hm--html-region-formating-paragraph-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
221 "w" 'hm--html-add-preformated-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222 (define-key hm--html-region-formating-paragraph-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223 "b" 'hm--html-add-blockquote-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
224 (define-key hm--html-region-formating-paragraph-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 "l" 'hm--html-add-listing-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226 (define-key hm--html-region-formating-paragraph-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 "a" 'hm--html-add-abstract-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 ;(defvar hm--html-noregion-entity-map nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231 ; "Noregion sub keymap for inserting entities.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 ;(if hm--html-noregion-entity-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 ; ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 ; (setq hm--html-noregion-entity-map (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 ; )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 ;(defvar hm--html-region-entity-map nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239 ; "Region sub keymap for inserting entities.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241 ;(if hm--html-region-entity-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242 ; ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243 ; (setq hm--html-region-entity-map (make-sparse-keymap))
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 ;(defvar hm--html-noregion-logical-map nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
247 ; "Noregion sub keymap for inserting logical text formating elements.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249 ;(if hm--html-noregion-logical-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250 ; ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251 ; (setq hm--html-noregion-logical-map (make-sparse-keymap))
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 ;(defvar hm--html-region-logical-map nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255 ; "Region sub keymap for inserting logical text formating elements.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257 ;(if hm--html-region-logical-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
258 ; ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259 ; (setq hm--html-region-logical-map (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
260 ; )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
261
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262 (defvar hm--html-noregion-formating-word-map nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
263 "Norgion sub keymap for inserting physical text formating elements.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
264
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
265 (if hm--html-noregion-formating-word-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
266 ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
267 (setq hm--html-noregion-formating-word-map (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
268 (define-key hm--html-noregion-formating-word-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
269 "b" 'hm--html-add-bold)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
270 (define-key hm--html-noregion-formating-word-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
271 "i" 'hm--html-add-italic)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
272 (define-key hm--html-noregion-formating-word-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
273 "u" 'hm--html-add-underline)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
274 (define-key hm--html-noregion-formating-word-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
275 "t" 'html-add-fixed)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
276 (define-key hm--html-noregion-formating-word-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
277 "s" 'hm--html-add-strikethru)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
278 (define-key hm--html-noregion-formating-word-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
279 "\C-p" 'hm--html-add-superscript)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
280 (define-key hm--html-noregion-formating-word-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
281 "\C-b" 'hm--html-add-subscript)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
282 (define-key hm--html-noregion-formating-word-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
283 "e" 'html-add-emphasized)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
284 (define-key hm--html-noregion-formating-word-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
285 "\C-s" 'html-add-strong)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
286 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
287
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
288 (defvar hm--html-region-formating-word-map nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
289 "Region sub keymap for inserting word text formating elements.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
290
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
291 (if hm--html-region-formating-word-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
292 ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
293 (setq hm--html-region-formating-word-map (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
294 (define-key hm--html-region-formating-word-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
295 "b" 'hm--html-add-bold-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
296 (define-key hm--html-region-formating-word-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
297 "i" 'hm--html-add-italic-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
298 (define-key hm--html-region-formating-word-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
299 "u" 'hm--html-add-underline-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
300 (define-key hm--html-region-formating-word-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
301 "t" 'hm--html-add-fixed-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
302 (define-key hm--html-region-formating-word-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
303 "s" 'hm--html-add-strikethru-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
304 (define-key hm--html-region-formating-word-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
305 "\C-p" 'hm--html-add-superscript-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
306 (define-key hm--html-region-formating-word-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
307 "\C-b" 'hm--html-add-subscript-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
308 (define-key hm--html-region-formating-word-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
309 "e" 'hm--html-add-emphasized-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
310 (define-key hm--html-region-formating-word-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
311 "\C-s" 'hm--html-add-strong-to-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
312 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
313
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
314 ;(defvar hm--html-noregion-header-map nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
315 ; "Noregion sub keymap for inserting header elements.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
316
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
317 ;(if hm--html-noregion-header-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
318 ; ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
319 ; (setq hm--html-noregion-header-map (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
320 ; )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
321
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
322 ;(defvar hm--html-region-header-map nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
323 ; "Region sub keymap for inserting header elements.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
324
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
325 ;(if hm--html-region-header-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
326 ; ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
327 ; (setq hm--html-region-header-map (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
328 ; )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
329
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
330 ;(defvar hm--html-noregion-head-map nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
331 ; "Noregion sub keymap for inserting head elements.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
332
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
333 ;(if hm--html-noregion-head-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
334 ; ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
335 ; (setq hm--html-noregion-head-map (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
336 ; )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
337
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
338 ;(defvar hm--html-region-head-map nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
339 ; "Region sub keymap for inserting head elements.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
340
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
341 ;(if hm--html-region-head-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
342 ; ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
343 ; (setq hm--html-region-head-map (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
344 ; )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
345
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
346 ;(defvar hm--html-noregion-list-map nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
347 ; "Noregion sub keymap for inserting lists.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
348
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
349 ;(if hm--html-noregion-list-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
350 ; ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
351 ; (setq hm--html-noregion-list-map (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
352 ; )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
353
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
354 ;(defvar hm--html-region-list-map nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
355 ; "Region sub keymap for inserting lists.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
356
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
357 ;(if hm--html-region-list-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
358 ; ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
359 ; (setq hm--html-region-list-map (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
360 ; )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
361
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
362 (defvar hm--html-noregion-graphics-map nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
363 "Noregion sub keymap for inserting graphics (images).")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
364
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
365 (if hm--html-noregion-graphics-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
366 ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
367 (setq hm--html-noregion-graphics-map (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
368 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
369
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
370 (defvar hm--html-region-graphics-map nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
371 "Region sub keymap for inserting graphics (images).")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
372
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
373 (if hm--html-region-graphics-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
374 ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
375 (setq hm--html-region-graphics-map (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
376 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
377
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
378 (defvar hm--html-noregion-text-elements-map nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
379 "Noregion sub keymap for inserting text elements.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
380
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
381 (if hm--html-noregion-text-elements-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
382 ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
383 (setq hm--html-noregion-text-elements-map (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
384 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
385
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
386 (defvar hm--html-region-text-elements-map nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
387 "Region sub keymap for inserting text elements.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
388
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
389 (if hm--html-region-text-elements-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
390 ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
391 (setq hm--html-region-text-elements-map (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
392 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
393
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
394 (defvar hm--html-noregion-forms-map nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
395 "Noregion sub keymap for inserting forms.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
396
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
397 (if hm--html-noregion-forms-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
398 ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
399 (setq hm--html-noregion-forms-map (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
400 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
401
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
402 (defvar hm--html-region-forms-map nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
403 "Region sub keymap for inserting forms.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
404
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
405 (if hm--html-region-forms-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
406 ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
407 (setq hm--html-region-forms-map (make-sparse-keymap))
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 (defvar hm--html-region-sub-map-1 nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
411 "Region sub keymap for the html-mode.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
412
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
413 (if hm--html-region-sub-map-1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
414 ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
415 (setq hm--html-region-sub-map-1 (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
416 ; (define-key hm--html-region-sub-map-1 "\C-e" hm--html-region-entity-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
417 ; (define-key hm--html-region-sub-map-1 "\C-l" hm--html-region-logical-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
418 ; (define-key hm--html-region-sub-map-1 "\C-p" hm--html-region-physical-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
419 ; (define-key hm--html-region-sub-map-1 "\C-h" hm--html-region-header-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
420 (define-key hm--html-region-sub-map-1 "\C-o" hm--html-region-forms-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
421 ; (define-key hm--html-region-sub-map-1 "\C-l" hm--html-region-list-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
422 (define-key hm--html-region-sub-map-1 "\C-a" hm--html-region-anchor-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
423 (define-key hm--html-region-sub-map-1 "\C-i" hm--html-region-graphics-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
424 (define-key hm--html-region-sub-map-1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
425 "\C-t" hm--html-region-text-elements-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
426 ; (define-key hm--html-region-sub-map-1 "\C-b" hm--html-region-head-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
427 (define-key hm--html-region-sub-map-1 "\C-f" hm--html-region-frame-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
428 (define-key hm--html-region-sub-map-1 "\C-s" hm--html-region-structure-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
429 (define-key hm--html-region-sub-map-1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
430 "\C-p" hm--html-region-formating-paragraph-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
431 (define-key hm--html-region-sub-map-1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
432 "\C-w" hm--html-region-formating-word-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
433 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
434
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
435 (defvar hm--html-noregion-sub-map-1 nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
436 "Noregion sub keymap for the html-mode.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
437
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
438 (if hm--html-noregion-sub-map-1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
439 ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
440 (setq hm--html-noregion-sub-map-1 (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
441
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
442
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
443 ; (define-key hm--html-noregion-sub-map-1 "\C-e" hm--html-noregion-entity-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
444 ; (define-key hm--html-noregion-sub-map-1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
445 ; "\C-l" hm--html-noregion-logical-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
446 ; (define-key hm--html-noregion-sub-map-1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
447 ; "\C-p" hm--html-noregion-physical-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
448 ; (define-key hm--html-noregion-sub-map-1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
449 ; [(control h)] hm--html-noregion-header-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
450 (define-key hm--html-noregion-sub-map-1 "\C-o" hm--html-noregion-forms-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
451 ; (define-key hm--html-noregion-sub-map-1 "\C-l" hm--html-noregion-list-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
452 (define-key hm--html-noregion-sub-map-1 "\C-a" hm--html-noregion-anchor-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
453 (define-key hm--html-noregion-sub-map-1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
454 [(control i)] hm--html-noregion-graphics-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
455 (define-key hm--html-noregion-sub-map-1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
456 "\C-t" hm--html-noregion-text-elements-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
457 ; (define-key hm--html-noregion-sub-map-1 "\C-b" hm--html-noregion-head-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
458 (define-key hm--html-noregion-sub-map-1 "\C-f" hm--html-noregion-frame-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
459 (define-key hm--html-noregion-sub-map-1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
460 "\C-s" hm--html-noregion-structure-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
461 (define-key hm--html-noregion-sub-map-1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
462 "\C-p" hm--html-noregion-formating-paragraph-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
463 (define-key hm--html-noregion-sub-map-1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
464 "\C-w" hm--html-noregion-formating-word-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
465 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
466
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
467 (defvar hm--html-region-sub-map nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
468 "Region sub keymap for the html-mode.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
469
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
470 (if hm--html-region-sub-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
471 ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
472 (setq hm--html-region-sub-map (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
473 ; (define-key hm--html-region-sub-map "\C-n" hm--html-noregion-sub-map-1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
474 ; (define-key hm--html-region-sub-map "\C-r" hm--html-region-sub-map-1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
475 (define-key hm--html-region-sub-map "\M-n" hm--html-noregion-sub-map-1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
476 (define-key hm--html-region-sub-map "\M-r" hm--html-region-sub-map-1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
477
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
478 (if (adapt-emacs19p)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
479 (map-keymap '(lambda (key-description-list binding)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
480 (define-key hm--html-region-sub-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
481 (single-key-description key-description-list) binding))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
482 hm--html-region-sub-map-1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
483 (map-keymap '(lambda (key-description-list binding)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
484 (define-key hm--html-region-sub-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
485 key-description-list binding))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
486 hm--html-region-sub-map-1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
487 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
488 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
489
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
490 (defvar hm--html-noregion-sub-map nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
491 "Noregion keymap for the html-mode.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
492
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
493 (if hm--html-noregion-sub-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
494 ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
495 (setq hm--html-noregion-sub-map (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
496 ; (define-key hm--html-noregion-sub-map "\C-n" hm--html-noregion-sub-map-1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
497 ; (define-key hm--html-noregion-sub-map "\C-r" hm--html-region-sub-map-1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
498 (define-key hm--html-noregion-sub-map "\M-n" hm--html-noregion-sub-map-1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
499 (define-key hm--html-noregion-sub-map "\M-r" hm--html-region-sub-map-1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
500
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
501 (if (adapt-emacs19p)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
502 (map-keymap '(lambda (key-description-list binding)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
503 (define-key hm--html-region-sub-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
504 (single-key-description key-description-list) binding))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
505 hm--html-region-sub-map-1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
506 (map-keymap '(lambda (key-description-list binding)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
507 (define-key hm--html-noregion-sub-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
508 key-description-list binding))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
509 hm--html-noregion-sub-map-1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
510 )
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 (defvar hm--html-mode-map nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
514 "Normal and noregion keymap for the html-mode.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
515
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
516 (if hm--html-mode-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
517 ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
518 (setq hm--html-mode-map (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
519 (define-key hm--html-mode-map "\C-c" hm--html-noregion-sub-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
520 (if (adapt-xemacsp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
521 (define-key hm--html-mode-map '(button3) 'hm--popup-html-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
522 (define-key hm--html-mode-map [mouse-3] 'hm--popup-html-menu))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
523 (if hm--html-bind-latin-1-char-entities
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
524 (progn
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
525 (define-key hm--html-mode-map [adiaeresis] 'hm--html_ae)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
526 (define-key hm--html-mode-map [odiaeresis] 'hm--html_oe)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
527 (define-key hm--html-mode-map [udiaeresis] 'hm--html_ue)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
528 (define-key hm--html-mode-map [aring] 'hm--html_aa)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
529 (define-key hm--html-mode-map [Adiaeresis] 'hm--html_Ae)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
530 (define-key hm--html-mode-map [Odiaeresis] 'hm--html_Oe)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
531 (define-key hm--html-mode-map [Udiaeresis] 'hm--html_Ue)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
532 (define-key hm--html-mode-map [Aring] 'hm--html_Aa)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
533 (define-key hm--html-mode-map [ediaeresis] 'hm--html_ediaeresis)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
534 (define-key hm--html-mode-map [Ediaeresis] 'hm--html_Ediaeresis)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
535 (define-key hm--html-mode-map [idiaeresis] 'hm--html_idiaeresis)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
536 (define-key hm--html-mode-map [Idiaeresis] 'hm--html_Idiaeresis)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
537 (define-key hm--html-mode-map [ssharp] 'hm--html_sz)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
538 (define-key hm--html-mode-map [aacute] 'hm--html_aacute)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
539 (define-key hm--html-mode-map [eacute] 'hm--html_eacute)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
540 (define-key hm--html-mode-map [iacute] 'hm--html_iacute)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
541 (define-key hm--html-mode-map [oacute] 'hm--html_oacute)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
542 (define-key hm--html-mode-map [uacute] 'hm--html_uacute)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
543 (define-key hm--html-mode-map [Aacute] 'hm--html_Aacute)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
544 (define-key hm--html-mode-map [Eacute] 'hm--html_Eacute)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
545 (define-key hm--html-mode-map [Iacute] 'hm--html_Iacute)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
546 (define-key hm--html-mode-map [Oacute] 'hm--html_Oacute)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
547 (define-key hm--html-mode-map [Uacute] 'hm--html_Uacute)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
548 (define-key hm--html-mode-map [agrave] 'hm--html_agrave)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
549 (define-key hm--html-mode-map [egrave] 'hm--html_egrave)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
550 (define-key hm--html-mode-map [igrave] 'hm--html_igrave)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
551 (define-key hm--html-mode-map [ograve] 'hm--html_ograve)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
552 (define-key hm--html-mode-map [ugrave] 'hm--html_ugrave)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
553 (define-key hm--html-mode-map [Agrave] 'hm--html_Agrave)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
554 (define-key hm--html-mode-map [Egrave] 'hm--html_Egrave)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
555 (define-key hm--html-mode-map [Igrave] 'hm--html_Igrave)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
556 (define-key hm--html-mode-map [Ograve] 'hm--html_Ograve)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
557 (define-key hm--html-mode-map [Ugrave] 'hm--html_Ugrave)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
558 (define-key hm--html-mode-map [ccedilla] 'hm--html_ccedilla)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
559 (define-key hm--html-mode-map [Ccedilla] 'hm--html_Ccedilla)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
560 (define-key hm--html-mode-map [acircumflex] 'hm--html_acircumflex)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
561 (define-key hm--html-mode-map [ecircumflex] 'hm--html_ecircumflex)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
562 (define-key hm--html-mode-map [icircumflex] 'hm--html_icircumflex)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
563 (define-key hm--html-mode-map [ocircumflex] 'hm--html_ocircumflex)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
564 (define-key hm--html-mode-map [ucircumflex] 'hm--html_ucircumflex)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
565 (define-key hm--html-mode-map [Acircumflex] 'hm--html_Acircumflex)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
566 (define-key hm--html-mode-map [Ecircumflex] 'hm--html_Ecircumflex)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
567 (define-key hm--html-mode-map [Icircumflex] 'hm--html_Icircumflex)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
568 (define-key hm--html-mode-map [Ocircumflex] 'hm--html_Ocircumflex)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
569 (define-key hm--html-mode-map [Ucircumflex] 'hm--html_Ucircumflex)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
570 (define-key hm--html-mode-map [atilde] 'hm--html_atilde)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
571 (define-key hm--html-mode-map [otilde] 'hm--html_otilde)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
572 (define-key hm--html-mode-map [ntilde] 'hm--html_ntilde)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
573 (define-key hm--html-mode-map [Atilde] 'hm--html_Atilde)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
574 (define-key hm--html-mode-map [Otilde] 'hm--html_Otilde)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
575 (define-key hm--html-mode-map [Ntilde] 'hm--html_Ntilde)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
576 (define-key hm--html-mode-map [eth] 'hm--html_eth)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
577 (define-key hm--html-mode-map [ETH] 'hm--html_Eth)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
578 (define-key hm--html-mode-map [thorn] 'hm--html_thorn)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
579 (define-key hm--html-mode-map [THORN] 'hm--html_Thorn)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
580 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
581 (define-key hm--html-mode-map "<" 'hm--html-smart-less-than)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
582 (define-key hm--html-mode-map ">" 'hm--html-smart-greater-than)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
583 (define-key hm--html-mode-map "&" 'html-ampersand)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
584 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
585
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
586 (defvar hm--html-region-mode-map nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
587 "Region keymap for the html-mode.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
588
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
589 (if hm--html-region-mode-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
590 ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
591 (setq hm--html-region-mode-map (make-sparse-keymap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
592 (define-key hm--html-region-mode-map "\C-c" hm--html-region-sub-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
593 (if (adapt-xemacsp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
594 (define-key hm--html-region-mode-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
595 '(button3) 'hm--popup-html-menu-region)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
596 (define-key hm--html-region-mode-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
597 [mouse-3] 'hm--popup-html-menu-region))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
598 ;; It maybe a better idea to set the following to undefine in this list...
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
599 (if hm--html-bind-latin-1-char-entities
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
600 (progn
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
601 (define-key hm--html-region-mode-map [adiaeresis] 'hm--html_ae)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
602 (define-key hm--html-region-mode-map [odiaeresis] 'hm--html_oe)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
603 (define-key hm--html-region-mode-map [udiaeresis] 'hm--html_ue)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
604 (define-key hm--html-region-mode-map [aring] 'hm--html_aa)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
605 (define-key hm--html-region-mode-map [Adiaeresis] 'hm--html_Ae)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
606 (define-key hm--html-region-mode-map [Odiaeresis] 'hm--html_Oe)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
607 (define-key hm--html-region-mode-map [Udiaeresis] 'hm--html_Ue)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
608 (define-key hm--html-region-mode-map [Aring] 'hm--html_Aa)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
609 (define-key hm--html-region-mode-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
610 [ediaeresis] 'hm--html_ediaeresis)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
611 (define-key hm--html-region-mode-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
612 [Ediaeresis] 'hm--html_Ediaeresis)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
613 (define-key hm--html-region-mode-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
614 [idiaeresis] 'hm--html_idiaeresis)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
615 (define-key hm--html-region-mode-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
616 [Idiaeresis] 'hm--html_Idiaeresis)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
617 (define-key hm--html-region-mode-map [ssharp] 'hm--html_sz)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
618 (define-key hm--html-region-mode-map [aacute] 'hm--html_aacute)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
619 (define-key hm--html-region-mode-map [eacute] 'hm--html_eacute)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
620 (define-key hm--html-region-mode-map [iacute] 'hm--html_iacute)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
621 (define-key hm--html-region-mode-map [oacute] 'hm--html_oacute)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
622 (define-key hm--html-region-mode-map [uacute] 'hm--html_uacute)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
623 (define-key hm--html-region-mode-map [Aacute] 'hm--html_Aacute)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
624 (define-key hm--html-region-mode-map [Eacute] 'hm--html_Eacute)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
625 (define-key hm--html-region-mode-map [Iacute] 'hm--html_Iacute)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
626 (define-key hm--html-region-mode-map [Oacute] 'hm--html_Oacute)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
627 (define-key hm--html-region-mode-map [Uacute] 'hm--html_Uacute)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
628 (define-key hm--html-region-mode-map [agrave] 'hm--html_agrave)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
629 (define-key hm--html-region-mode-map [egrave] 'hm--html_egrave)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
630 (define-key hm--html-region-mode-map [igrave] 'hm--html_igrave)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
631 (define-key hm--html-region-mode-map [ograve] 'hm--html_ograve)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
632 (define-key hm--html-region-mode-map [ugrave] 'hm--html_ugrave)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
633 (define-key hm--html-region-mode-map [Agrave] 'hm--html_Agrave)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
634 (define-key hm--html-region-mode-map [Egrave] 'hm--html_Egrave)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
635 (define-key hm--html-region-mode-map [Igrave] 'hm--html_Igrave)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
636 (define-key hm--html-region-mode-map [Ograve] 'hm--html_Ograve)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
637 (define-key hm--html-region-mode-map [Ugrave] 'hm--html_Ugrave)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
638 (define-key hm--html-region-mode-map [ccedilla] 'hm--html_ccedilla)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
639 (define-key hm--html-region-mode-map [Ccedilla] 'hm--html_Ccedilla)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
640 (define-key hm--html-region-mode-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
641 [acircumflex] 'hm--html_acircumflex)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
642 (define-key hm--html-region-mode-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
643 [ecircumflex] 'hm--html_ecircumflex)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
644 (define-key hm--html-region-mode-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
645 [icircumflex] 'hm--html_icircumflex)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
646 (define-key hm--html-region-mode-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
647 [ocircumflex] 'hm--html_ocircumflex)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
648 (define-key hm--html-region-mode-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
649 [ucircumflex] 'hm--html_ucircumflex)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
650 (define-key hm--html-region-mode-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
651 [Acircumflex] 'hm--html_Acircumflex)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
652 (define-key hm--html-region-mode-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
653 [Ecircumflex] 'hm--html_Ecircumflex)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
654 (define-key hm--html-region-mode-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
655 [Icircumflex] 'hm--html_Icircumflex)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
656 (define-key hm--html-region-mode-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
657 [Ocircumflex] 'hm--html_Ocircumflex)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
658 (define-key hm--html-region-mode-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
659 [Ucircumflex] 'hm--html_Ucircumflex)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
660 (define-key hm--html-region-mode-map [atilde] 'hm--html_atilde)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
661 (define-key hm--html-region-mode-map [otilde] 'hm--html_otilde)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
662 (define-key hm--html-region-mode-map [ntilde] 'hm--html_ntilde)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
663 (define-key hm--html-region-mode-map [Atilde] 'hm--html_Atilde)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
664 (define-key hm--html-region-mode-map [Otilde] 'hm--html_Otilde)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
665 (define-key hm--html-region-mode-map [Ntilde] 'hm--html_Ntilde)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
666 (define-key hm--html-region-mode-map [eth] 'hm--html_eth)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
667 (define-key hm--html-region-mode-map [ETH] 'hm--html_Eth)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
668 (define-key hm--html-region-mode-map [thorn] 'hm--html_thorn)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
669 (define-key hm--html-region-mode-map [THORN] 'hm--html_Thorn)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
670 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
671 (define-key hm--html-region-mode-map "<" 'html-less-than)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
672 (define-key hm--html-region-mode-map ">" 'html-greater-than)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
673 (define-key hm--html-region-mode-map "&" 'html-ampersand)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
674 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
675
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
676
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
677 ;;; -----
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
678
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
679 ;(use-local-map hm--html-mode-map)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
680
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
681 (or (assq 'hm--html-region-mode minor-mode-alist)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
682 (setq minor-mode-alist
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
683 (purecopy
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
684 (append minor-mode-alist
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
685 '((hm--html-region-mode " Region"))))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
686
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
687
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
688
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
689 (defun html-region-mode (on)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
690 "Turns the minor mode html-region-mode on or off.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
691 The function turns the html-region-mode on, if ON is t and off otherwise."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
692 (if (string= mode-name "HTML")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
693 (if on
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
694 ;; html-region-mode on
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
695 (progn
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
696 (setq hm--html-region-mode t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
697 (use-local-map hm--html-region-mode-map))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
698 ;; html-region-mode off
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
699 (setq hm--html-region-mode nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
700 (use-local-map hm--html-mode-map))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
701