annotate lisp/hyperbole/kotl/kmenu.el @ 39:06f275776fba

Added tag r19-15b102 for changeset 1a767b41a199
author cvs
date Mon, 13 Aug 2007 08:54:02 +0200
parents c53a95d3c46d
children 131b0175ea99
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 ;;!emacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 ;; FILE: kmenu.el
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 ;; SUMMARY: Pulldown and popup menus for kotl-mode, the Hyperbole Outliner.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 ;; USAGE: GNU Emacs Lisp Library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 ;; KEYWORDS: mouse, outlines, wp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 ;; AUTHOR: Bob Weiner
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 ;; ORIG-DATE: 28-Mar-94 at 11:22:09
36
c53a95d3c46d Import from CVS: tag r19-15b101
cvs
parents: 24
diff changeset
11 ;; LAST-MOD: 6-Mar-97 at 01:20:03 by Bob Weiner
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ;;
36
c53a95d3c46d Import from CVS: tag r19-15b101
cvs
parents: 24
diff changeset
13 ;; Copyright (C) 1994, 1995, 1997 Free Software Foundation, Inc.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 ;; This file is part of Hyperbole.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 ;; DESCRIPTION:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 ;; DESCRIP-END.
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 ;;; Public variables
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 ;;; ************************************************************************
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 ;;; This definition is used by InfoDock only.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 (defconst id-menubar-kotl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 '(
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 ("Koutline"
24
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 0
diff changeset
28 ["All-Cells-Attributes" (kotl-mode:cell-help nil -1) t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 ["Help" describe-mode t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 ["Manual" (id-info "(hyperbole.info)Outliner") t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 ["Find (Open)" find-file t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 ["Find-Read-Only" find-file-read-only t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 ["Save" save-buffer t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 ["Toggle-Read-Only" toggle-read-only t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 ["Write (Save as)" kfile:write t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 ["Quit" (id-tool-quit '(kill-buffer nil)) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 ("Edit"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 ["Set-Cell-Attribute" kotl-mode:set-cell-attribute t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 ["Add-Child" kotl-mode:add-child t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 ["Add-Cell" kotl-mode:add-cell t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 ["Add-Parent" kotl-mode:add-parent t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 ["Append-Cell" kotl-mode:append-cell t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 ["Split-Cell" kotl-mode:split-cell t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 ["Kill-to-Cell-End" kotl-mode:kill-contents t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 ["Kill-Tree" kotl-mode:kill-tree t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 ["Yank" kotl-mode:yank t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 ["Copy-After-Cell" kotl-mode:copy-after t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 ["Copy-Before-Cell" kotl-mode:copy-before t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 ["Move-After-Cell" kotl-mode:move-after t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 ["Move-Before-Cell" kotl-mode:move-before t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 ["Fill" kotl-mode:fill-cell t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 ["Fill-Paragraph" kotl-mode:fill-paragraph t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 ["Set-Fill-Prefix" kotl-mode:set-fill-prefix t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 ("Jump-to"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 ["Cell" kotl-mode:goto-cell t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 ["Cell-Beginning" kotl-mode:beginning-of-cell t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 ["Cell-End" kotl-mode:end-of-cell t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 ["Child" kotl-mode:down-level t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 ["Parent" kotl-mode:up-level t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 ["Next-Cell" kotl-mode:next-cell t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 ["Prev-Cell" kotl-mode:previous-cell t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 ["Next-Same-Level" kotl-mode:forward-cell t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 ["Prev-Same-Level" kotl-mode:backward-cell t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 ["First-Sibling" kotl-mode:first-sibling t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 ["Last-Sibling" kotl-mode:last-sibling t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 ["Beginning-of-Tree" kotl-mode:beginning-of-tree t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 ["End-of-Tree" kotl-mode:end-of-tree t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 ["First-Cell" kotl-mode:beginning-of-buffer t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 ["Last-Cell" kotl-mode:end-of-buffer t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 ("Label-Type"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 ["Alphanumeric (Default)" (kview:set-label-type kview 'alpha) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 ["Legal" (kview:set-label-type kview 'legal) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 ["None" (kview:set-label-type kview 'no) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 ["Partial-Alpha" (kview:set-label-type kview 'partial-alpha) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 ["Permanent-Idstamp" (kview:set-label-type kview 'id) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 ["Stars" (kview:set-label-type kview 'star) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 ("Link"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 ["Add-at-Point" klink:create t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 ("Tree"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 ["Copy-to-Buffer" kotl-mode:copy-to-buffer t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 ["Demote" kotl-mode:demote-tree t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 ["Kill" kotl-mode:kill-tree t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 ["Mail" kotl-mode:mail-tree t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 ["Promote" kotl-mode:promote-tree t]
24
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 0
diff changeset
103 ["Show-Attributes" (kotl-mode:cell-help nil 2) t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 ["Copy-After-Cell" kotl-mode:copy-after t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 ["Copy-Before-Cell" kotl-mode:copy-before t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 ["Move-After-Cell" kotl-mode:move-after t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 ["Move-Before-Cell" kotl-mode:move-before t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 ("View"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 ["Set-View-Spec" kvspec:activate t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 ["Toggle-Blank-Lines" kvspec:toggle-blank-lines t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 ["Set-Cell-Attribute" kotl-mode:set-cell-attribute t]
24
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 0
diff changeset
115 ["Show-Cell-Attributes" (kotl-mode:cell-help) t]
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 0
diff changeset
116 ["All-Cells-Attributes" (kotl-mode:cell-help nil -1) t]
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 0
diff changeset
117 ["Show-Tree-Attributes" (kotl-mode:cell-help nil 2) t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 ["Hide (Collapse)" kotl-mode:hide-tree t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 ["Hide-Levels" kotl-mode:hide-sublevels t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 ["Hide-Subtree" kotl-mode:hide-subtree t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 ["Overview" kotl-mode:overview t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 ["Show (Expand)" kotl-mode:show-tree t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 ["Show-All" kotl-mode:show-all t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 ["Show-Subtree" kotl-mode:show-subtree t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 ["Show-Top-Level-Only" kotl-mode:top-cells t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 ;;; This definition is used by InfoDock and XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 (defconst id-popup-kotl-menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 '("Koutline"
24
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 0
diff changeset
134 ["All-Cells-Attributes" (kotl-mode:cell-help nil -1) t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 ["Help" describe-mode t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 ["Manual" (id-info "(hyperbole.info)Outliner") t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 ("Edit"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 ["Set-Cell-Attribute" kotl-mode:set-cell-attribute t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 ["Add-Child" kotl-mode:add-child t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 ["Add-Cell" kotl-mode:add-cell t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 ["Add-Parent" kotl-mode:add-parent t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 ["Append-Cell" kotl-mode:append-cell t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 ["Split-Cell" kotl-mode:split-cell t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 ["Kill-to-Cell-End" kotl-mode:kill-contents t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 ["Kill-Tree" kotl-mode:kill-tree t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 ["Yank" kotl-mode:yank t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 ["Copy-After-Cell" kotl-mode:copy-after t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 ["Copy-Before-Cell" kotl-mode:copy-before t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 ["Move-After-Cell" kotl-mode:move-after t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 ["Move-Before-Cell" kotl-mode:move-before t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 ["Fill" kotl-mode:fill-cell t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 ["Fill-Paragraph" kotl-mode:fill-paragraph t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158 ["Set-Fill-Prefix" kotl-mode:set-fill-prefix t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 ("Jump-to"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 ["Cell" kotl-mode:goto-cell t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 ["Cell-Beginning" kotl-mode:beginning-of-cell t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 ["Cell-End" kotl-mode:end-of-cell t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 ["Child" kotl-mode:down-level t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 ["Parent" kotl-mode:up-level t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 ["Next-Cell" kotl-mode:next-cell t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 ["Prev-Cell" kotl-mode:previous-cell t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 ["Next-Same-Level" kotl-mode:forward-cell t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 ["Prev-Same-Level" kotl-mode:backward-cell t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 ["First-Sibling" kotl-mode:first-sibling t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 ["Last-Sibling" kotl-mode:last-sibling t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 ["Beginning-of-Tree" kotl-mode:beginning-of-tree t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 ["End-of-Tree" kotl-mode:end-of-tree t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 ["First-Cell" kotl-mode:beginning-of-buffer t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 ["Last-Cell" kotl-mode:end-of-buffer t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184 ("Label-Type"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 ["Alphanumeric (Default)" (kview:set-label-type kview 'alpha) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 ["Legal" (kview:set-label-type kview 'legal) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 ["None" (kview:set-label-type kview 'no) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 ["Partial-Alpha" (kview:set-label-type kview 'partial-alpha) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 ["Permanent-Idstamp" (kview:set-label-type kview 'id) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 ["Stars" (kview:set-label-type kview 'star) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 ("Link"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 ["Add-at-Point" klink:create t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 ("Tree"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196 ["Copy-to-Buffer" kotl-mode:copy-to-buffer t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 ["Demote" kotl-mode:demote-tree t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 ["Kill" kotl-mode:kill-tree t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 ["Mail" kotl-mode:mail-tree t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 ["Promote" kotl-mode:promote-tree t]
24
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 0
diff changeset
201 ["Show-Attributes" (kotl-mode:cell-help nil 2) 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 ["Copy-After-Cell" kotl-mode:copy-after t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 ["Copy-Before-Cell" kotl-mode:copy-before t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205 ["Move-After-Cell" kotl-mode:move-after t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 ["Move-Before-Cell" kotl-mode:move-before t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 ("View"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 ["Set-View-Spec" kvspec:activate t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 ["Toggle-Blank-Lines" kvspec:toggle-blank-lines t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 ["Set-Cell-Attribute" kotl-mode:set-cell-attribute t]
24
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 0
diff changeset
213 ["Show-Cell-Attributes" (kotl-mode:cell-help) t]
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 0
diff changeset
214 ["All-Cells-Attributes" (kotl-mode:cell-help nil -1) t]
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 0
diff changeset
215 ["Show-Tree-Attributes" (kotl-mode:cell-help nil 2) t]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 ["Hide (Collapse)" kotl-mode:hide-tree t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218 ["Hide-Levels" kotl-mode:hide-sublevels t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219 ["Hide-Subtree" kotl-mode:hide-subtree t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220 ["Overview" kotl-mode:overview 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 ["Show (Expand)" kotl-mode:show-tree t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223 ["Show-All" kotl-mode:show-all t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
224 ["Show-Subtree" kotl-mode:show-subtree t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 ["Show-Top-Level-Only" kotl-mode:top-cells t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228 ["Find (Open)" find-file t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229 ["Find-Read-Only" find-file-read-only t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 ["Save" save-buffer t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231 ["Toggle-Read-Only" toggle-read-only t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232 ["Write (Save as)" kfile:write t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 "----"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 ["Quit" (id-tool-quit '(kill-buffer nil)) t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237 ;;; ************************************************************************
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 ;;; Public functions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239 ;;; ************************************************************************
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241 ;;; This definition is used only by XEmacs and Emacs19.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242 (defun kotl-menubar-menu ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243 "Add a Koutline menu to the menubar for each koutline buffer."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244 (cond ((fboundp 'popup-mode-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245 (setq mode-popup-menu id-popup-kotl-menu))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246 (hyperb:lemacs-p
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
247 (define-key kotl-mode-map 'button3 'kotl-popup-menu))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 (t ;; hyperb:emacs19-p
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249 (define-key kotl-mode-map [down-mouse-3] 'kotl-popup-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250 (define-key kotl-mode-map [mouse-3] nil)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251 (if (and (boundp 'current-menubar)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
252 (or hyperb:emacs19-p current-menubar)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253 (not (car (find-menu-item current-menubar '("Koutline")))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254 (progn
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255 (set-buffer-menubar (copy-sequence current-menubar))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256 (if (fboundp 'add-submenu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257 (add-submenu nil id-popup-kotl-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
258 (add-menu nil (car id-popup-kotl-menu) (cdr id-popup-kotl-menu))))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
260 ;;; This definition is used only by XEmacs and Emacs19.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
261 (defun kotl-popup-menu (event)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262 "Popup the Koutline buffer menu."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
263 (interactive "@e")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
264 (mouse-set-point event)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
265 (if (fboundp 'popup-mode-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
266 (popup-mode-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
267 (popup-menu id-popup-kotl-menu)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
268
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
269 (cond ((null hyperb:window-system))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
270 ((fboundp 'id-menubar-set)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
271 ;; InfoDock under a window system
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
272 (require 'id-menubars)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
273 (id-menubar-set 'kotl-mode 'id-menubar-kotl))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
274 (hyperb:lemacs-p
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
275 ;; XEmacs under a window system
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
276 (add-hook 'kotl-mode-hook 'kotl-menubar-menu))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
277 (hyperb:emacs19-p
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
278 ;; Emacs 19 under a window system
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
279 (require 'lmenu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
280 (add-hook 'kotl-mode-hook 'kotl-menubar-menu)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
281
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
282 (provide 'kmenu)