annotate lisp/hyperbole/kotl/kmenu.el @ 24:4103f0995bd7 r19-15b95

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