annotate lisp/menubar-items.el @ 321:19dcec799385 r21-0-58

Import from CVS: tag r21-0-58
author cvs
date Mon, 13 Aug 2007 10:46:44 +0200
parents 341dac730539
children 4f79e16b1112
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1 ;;; menubar-items.el --- Menubar and popup-menu content for XEmacs.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
2
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
3 ;; Copyright (C) 1991-1995, 1997-1998 Free Software Foundation, Inc.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
4 ;; Copyright (C) 1995 Tinker Systems and INS Engineering Corp.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
5 ;; Copyright (C) 1995 Sun Microsystems.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
6 ;; Copyright (C) 1995, 1996 Ben Wing.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
7 ;; Copyright (C) 1997 MORIOKA Tomohiko
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
8
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
9 ;; Maintainer: XEmacs Development Team
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
10 ;; Keywords: frames, extensions, internal, dumped
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
11
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
12 ;; This file is part of XEmacs.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
13
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
14 ;; XEmacs is free software; you can redistribute it and/or modify it
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
15 ;; under the terms of the GNU General Public License as published by
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
16 ;; the Free Software Foundation; either version 2, or (at your option)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
17 ;; any later version.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
18
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
19 ;; XEmacs is distributed in the hope that it will be useful, but
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
20 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
21 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
22 ;; General Public License for more details.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
23
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
24 ;; You should have received a copy of the GNU General Public License
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
25 ;; along with Xmacs; see the file COPYING. If not, write to the
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
26 ;; Free Software Foundation, 59 Temple Place - Suite 330,
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
27 ;; Boston, MA 02111-1307, USA.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
28
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
29 ;;; Commentary:
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
30
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
31 ;; This file is dumped with XEmacs (when window system and menubar support is
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
32 ;; compiled in).
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
33
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
34 ;;; Code:
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
35
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
36 ;;; Warning-free compile
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
37 (eval-when-compile
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
38 (defvar language-environment-list)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
39 (defvar bookmark-alist)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
40 (defvar language-info-alist)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
41 (defvar current-language-environment)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
42 (defvar tutorial-supported-languages))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
43
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
44 (defconst default-menubar
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
45 (purecopy-menubar
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
46 ;; note backquote.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
47 `(
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
48 ("File"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
49 ["Open..." find-file]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
50 ["Open in Other Window..." find-file-other-window]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
51 ["Open in New Frame..." find-file-other-frame]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
52 ["Insert File..." insert-file]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
53 ["View File..." view-file]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
54 "------"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
55 ["Save" save-buffer
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
56 :active (buffer-modified-p)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
57 :suffix (if put-buffer-names-in-file-menu (buffer-name) "")]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
58 ["Save As..." write-file]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
59 ["Save Some Buffers" save-some-buffers]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
60 "-----"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
61 ["Print Buffer" lpr-buffer
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
62 :active (fboundp 'lpr-buffer)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
63 :suffix (if put-buffer-names-in-file-menu (buffer-name) "")]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
64 ["Pretty-Print Buffer" ps-print-buffer-with-faces
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
65 :active (fboundp 'ps-print-buffer-with-faces)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
66 :suffix (if put-buffer-names-in-file-menu (buffer-name) "")]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
67 "-----"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
68 ["New Frame" make-frame]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
69 ["Frame on Other Display..." make-frame-on-display]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
70 ["Delete Frame" delete-frame
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
71 :active (not (eq (next-frame (selected-frame) 'nomini 'window-system)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
72 (selected-frame)))]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
73 "-----"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
74 ["Split Window" split-window-vertically]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
75 ["Un-Split (Keep This)" delete-other-windows
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
76 :active (not (one-window-p t))]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
77 ["Un-Split (Keep Others)" delete-window
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
78 :active (not (one-window-p t))]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
79 "-----"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
80 ["Revert Buffer" revert-buffer
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
81 :active (or buffer-file-name revert-buffer-function)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
82 :suffix (if put-buffer-names-in-file-menu (buffer-name) "")]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
83 ["Delete Buffer" kill-this-buffer
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
84 :active t
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
85 :suffix (if put-buffer-names-in-file-menu (buffer-name) "")]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
86 "-----"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
87 ["Exit XEmacs" save-buffers-kill-emacs]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
88 )
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
89
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
90 ("Edit"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
91 ["Undo" advertised-undo
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
92 :active (and (not (eq buffer-undo-list t))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
93 (or buffer-undo-list pending-undo-list))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
94 :suffix (if (or (eq last-command 'undo)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
95 (eq last-command 'advertised-undo))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
96 "More" "")]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
97 ["Redo" redo
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
98 :included (fboundp 'redo)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
99 :active (not (or (eq buffer-undo-list t)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
100 (eq last-buffer-undo-list nil)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
101 (not (or (eq last-buffer-undo-list buffer-undo-list)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
102 (and (null (car-safe buffer-undo-list))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
103 (eq last-buffer-undo-list
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
104 (cdr-safe buffer-undo-list)))))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
105 (or (eq buffer-undo-list pending-undo-list)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
106 (eq (cdr buffer-undo-list) pending-undo-list))))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
107 :suffix (if (eq last-command 'redo) "More" "")]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
108 ["Cut" kill-primary-selection
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
109 :active (selection-owner-p)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
110 ["Copy" copy-primary-selection
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
111 :active (selection-owner-p)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
112 ["Paste" yank-clipboard-selection
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
113 :active (selection-exists-p 'CLIPBOARD)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
114 ["Clear" delete-primary-selection
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
115 :active (selection-owner-p)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
116 "----"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
117 ["Search..." isearch-forward]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
118 ["Search Backward..." isearch-backward]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
119 ["Replace..." query-replace]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
120 "----"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
121 ["Search (Regexp)..." isearch-forward-regexp]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
122 ["Search Backward (Regexp)..." isearch-backward-regexp]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
123 ["Replace (Regexp)..." query-replace-regexp]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
124 "----"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
125 ["Goto Line..." goto-line]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
126 ["What Line" what-line]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
127 ("Bookmarks"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
128 :filter bookmark-menu-filter)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
129 "----"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
130 ["Start Macro Recording" start-kbd-macro
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
131 :active (not defining-kbd-macro)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
132 ["End Macro Recording" end-kbd-macro
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
133 :active defining-kbd-macro]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
134 ["Execute Last Macro" call-last-kbd-macro
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
135 :active last-kbd-macro]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
136 "----"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
137 ["Show Message Log" show-message-log]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
138 )
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
139
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
140 ,@(if (featurep 'mule)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
141 '(("Mule"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
142 ("Describe language support")
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
143 ("Set language environment")
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
144 "--"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
145 ["Toggle input method" toggle-input-method]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
146 ["Select input method" select-input-method]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
147 ["Describe input method" describe-input-method]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
148 "--"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
149 ["Describe current coding systems"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
150 describe-current-coding-system]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
151 ["Set coding system of buffer file"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
152 set-buffer-file-coding-system]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
153 ;; not implemented yet
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
154 ["Set coding system of terminal"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
155 set-terminal-coding-system :active nil]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
156 ;; not implemented yet
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
157 ["Set coding system of keyboard"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
158 set-keyboard-coding-system :active nil]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
159 ;; not implemented yet
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
160 ["Set coding system of process"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
161 set-current-process-coding-system :active nil]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
162 "--"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
163 ["Show character table" view-charset-by-menu]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
164 ;; not implemented yet
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
165 ["Show diagnosis for MULE" mule-diag :active nil]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
166 ["Show many languages" view-hello-file])))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
167
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
168 ("Apps"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
169 ["Read Mail (VM)..." vm
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
170 :active (fboundp 'vm)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
171 ["Read Mail (MH)..." (mh-rmail t)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
172 :active (fboundp 'mh-rmail)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
173 ["Send mail..." compose-mail
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
174 :active (fboundp 'compose-mail)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
175 ["Usenet News" gnus
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
176 :active (fboundp 'gnus)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
177 ["Browse the Web" w3
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
178 :active (fboundp 'w3)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
179 ["Gopher" gopher
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
180 :active (fboundp 'gopher)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
181 "----"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
182 ["Spell-Check Buffer" ispell-buffer
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
183 :active (fboundp 'ispell-buffer)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
184 ["Toggle VI emulation" toggle-viper-mode
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
185 :active (fboundp 'toggle-viper-mode)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
186 "----"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
187 ("Calendar"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
188 ["3-Month Calendar" calendar
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
189 :active (fboundp 'calendar)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
190 ["Diary" diary
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
191 :active (fboundp 'diary)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
192 ["Holidays" holidays
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
193 :active (fboundp 'holidays)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
194 ;; we're all pagans at heart ...
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
195 ["Phases of the Moon" phases-of-moon
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
196 :active (fboundp 'phases-of-moon)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
197 ["Sunrise/Sunset" sunrise-sunset
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
198 :active (fboundp 'sunrise-sunset)])
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
199
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
200 ("Games"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
201 ["Mine Game" xmine
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
202 :active (fboundp 'xmine)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
203 ["Tetris" tetris
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
204 :active (fboundp 'tetris)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
205 ["Sokoban" sokoban
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
206 :active (fboundp 'sokoban)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
207 ["Quote from Zippy" yow
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
208 :active (fboundp 'yow)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
209 ["Psychoanalyst" doctor
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
210 :active (fboundp 'doctor)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
211 ["Psychoanalyze Zippy!" psychoanalyze-pinhead
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
212 :active (fboundp 'psychoanalyze-pinhead)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
213 ["Random Flames" flame
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
214 :active (fboundp 'flame)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
215 ["Dunnet (Adventure)" dunnet
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
216 :active (fboundp 'dunnet)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
217 ["Towers of Hanoi" hanoi
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
218 :active (fboundp 'hanoi)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
219 ["Game of Life" life
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
220 :active (fboundp 'life)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
221 ["Multiplication Puzzle" mpuz
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
222 :active (fboundp 'mpuz)]))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
223
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
224 ("Options"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
225 ("Customize"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
226 ("Emacs" :filter (lambda (&rest junk)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
227 (cdr (custom-menu-create 'emacs))))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
228 ["Group..." customize-group]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
229 ["Variable..." customize-variable]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
230 ["Face..." customize-face]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
231 ["Saved..." customize-saved]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
232 ["Set..." customize-customized]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
233 ["Apropos..." customize-apropos]
321
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 314
diff changeset
234 ["Browse..." customize-browse])
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 314
diff changeset
235
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 314
diff changeset
236 ("Manage Packages"
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 314
diff changeset
237 ("Add Download Site"
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 314
diff changeset
238 :filter (lambda (&rest junk)
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 314
diff changeset
239 (package-get-download-menu)))
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 314
diff changeset
240 ["Update Package Index" package-get-update-base]
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 314
diff changeset
241 ["List & Install" pui-list-packages]
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 314
diff changeset
242 ("Using Custom"
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 314
diff changeset
243 ("Select" :filter (lambda (&rest junk)
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 314
diff changeset
244 (cdr (custom-menu-create 'packages))))
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 314
diff changeset
245 ["Update" package-get-custom])
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 314
diff changeset
246 ["Help" (Info-goto-node "(xemacs)Packages")])
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 314
diff changeset
247
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 314
diff changeset
248 "---"
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 314
diff changeset
249
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
250 ("Editing Options"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
251 ["Overstrike"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
252 (progn
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
253 (setq overwrite-mode (if overwrite-mode nil 'overwrite-mode-textual))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
254 (customize-set-variable 'overwrite-mode overwrite-mode))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
255 :style toggle :selected overwrite-mode]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
256 ["Case Sensitive Search"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
257 (customize-set-variable 'case-fold-search
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
258 (setq case-fold-search (not case-fold-search)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
259 :style toggle :selected (not case-fold-search)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
260 ["Case Matching Replace"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
261 (customize-set-variable 'case-replace (not case-replace))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
262 :style toggle :selected case-replace]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
263 ["Auto Delete Selection"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
264 (customize-set-variable 'pending-delete-mode (not pending-delete-mode))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
265 :style toggle
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
266 :selected (and (boundp 'pending-delete-mode) pending-delete-mode)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
267 :active (boundp 'pending-delete-mode)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
268 ["Active Regions"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
269 (customize-set-variable 'zmacs-regions (not zmacs-regions))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
270 :style toggle :selected zmacs-regions]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
271 ["Mouse Paste At Text Cursor"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
272 (customize-set-variable 'mouse-yank-at-point (not mouse-yank-at-point))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
273 :style toggle :selected mouse-yank-at-point]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
274 ("Newline at end of file..."
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
275 ["Don't require"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
276 (customize-set-variable 'require-final-newline nil)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
277 :style radio :selected (not require-final-newline)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
278 ["Require"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
279 (customize-set-variable 'require-final-newline t)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
280 :style radio :selected (eq require-final-newline t)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
281 ["Ask"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
282 (customize-set-variable 'require-final-newline 'ask)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
283 :style radio :selected (and require-final-newline
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
284 (not (eq require-final-newline t)))])
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
285 ["Add Newline When Moving Past End"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
286 (customize-set-variable 'next-line-add-newlines
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
287 (not next-line-add-newlines))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
288 :style toggle :selected next-line-add-newlines]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
289 )
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
290 ("General Options"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
291 ["Teach Extended Commands"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
292 (customize-set-variable 'teach-extended-commands-p
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
293 (not teach-extended-commands-p))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
294 :style toggle :selected teach-extended-commands-p]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
295 ["Debug On Error"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
296 (customize-set-variable 'debug-on-error (not debug-on-error))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
297 :style toggle :selected debug-on-error]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
298 ["Debug On Quit"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
299 (customize-set-variable 'debug-on-quit (not debug-on-quit))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
300 :style toggle :selected debug-on-quit]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
301 )
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
302 ("Printing Options"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
303 ["Command-Line Switches for `lpr'/`lp'..."
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
304 ;; better to directly open a customization buffer, since the value
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
305 ;; must be a list of strings, which is somewhat complex to prompt for.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
306 (customize-variable 'lpr-switches)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
307 (boundp 'lpr-switches)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
308 ("Pretty-Print Paper Size"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
309 ["Letter"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
310 (customize-set-variable 'ps-paper-type 'letter)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
311 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
312 :selected (and (boundp 'ps-paper-type) (eq ps-paper-type 'letter))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
313 :active (boundp 'ps-paper-type)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
314 ["Letter-small"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
315 (customize-set-variable 'ps-paper-type 'letter-small)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
316 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
317 :selected (and (boundp 'ps-paper-type)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
318 (eq ps-paper-type 'letter-small))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
319 :active (boundp 'ps-paper-type)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
320 ["Legal"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
321 (customize-set-variable 'ps-paper-type 'legal)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
322 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
323 :selected (and (boundp 'ps-paper-type) (eq ps-paper-type 'legal))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
324 :active (boundp 'ps-paper-type)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
325 ["Statement"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
326 (customize-set-variable 'ps-paper-type 'statement)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
327 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
328 :selected (and (boundp 'ps-paper-type) (eq ps-paper-type 'statement))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
329 :active (boundp 'ps-paper-type)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
330 ["Executive"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
331 (customize-set-variable 'ps-paper-type 'executive)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
332 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
333 :selected (and (boundp 'ps-paper-type) (eq ps-paper-type 'executive))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
334 :active (boundp 'ps-paper-type)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
335 ["Tabloid"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
336 (customize-set-variable 'ps-paper-type 'tabloid)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
337 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
338 :selected (and (boundp 'ps-paper-type) (eq ps-paper-type 'tabloid))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
339 :active (boundp 'ps-paper-type)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
340 ["Ledger"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
341 (customize-set-variable 'ps-paper-type 'ledger)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
342 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
343 :selected (and (boundp 'ps-paper-type) (eq ps-paper-type 'ledger))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
344 :active (boundp 'ps-paper-type)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
345 ["A3"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
346 (customize-set-variable 'ps-paper-type 'a3)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
347 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
348 :selected (and (boundp 'ps-paper-type) (eq ps-paper-type 'a3))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
349 :active (boundp 'ps-paper-type)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
350 ["A4"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
351 (customize-set-variable 'ps-paper-type 'a4)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
352 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
353 :selected (and (boundp 'ps-paper-type) (eq ps-paper-type 'a4))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
354 :active (boundp 'ps-paper-type)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
355 ["A4small"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
356 (customize-set-variable 'ps-paper-type 'a4small)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
357 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
358 :selected (and (boundp 'ps-paper-type) (eq ps-paper-type 'a4small))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
359 :active (boundp 'ps-paper-type)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
360 ["B4"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
361 (customize-set-variable 'ps-paper-type 'b4)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
362 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
363 :selected (and (boundp 'ps-paper-type) (eq ps-paper-type 'b4))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
364 :active (boundp 'ps-paper-type)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
365 ["B5"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
366 (customize-set-variable 'ps-paper-type 'b5)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
367 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
368 :selected (and (boundp 'ps-paper-type) (eq ps-paper-type 'b5))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
369 :active (boundp 'ps-paper-type)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
370 )
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
371 ["Color Printing"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
372 (cond (ps-print-color-p
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
373 (customize-set-variable 'ps-print-color-p nil)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
374 ;; I'm wondering whether all this muck is usefull.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
375 (and (boundp 'original-face-background)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
376 original-face-background
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
377 (set-face-background 'default original-face-background)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
378 (t
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
379 (customize-set-variable 'ps-print-color-p t)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
380 (setq original-face-background
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
381 (face-background-instance 'default))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
382 (set-face-background 'default "white")))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
383 :style toggle
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
384 :selected (and (boundp 'ps-print-color-p) ps-print-color-p)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
385 :active (boundp 'ps-print-color-p)])
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
386 ("\"Other Window\" Location"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
387 ["Always in Same Frame"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
388 (customize-set-variable
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
389 'get-frame-for-buffer-default-instance-limit nil)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
390 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
391 :selected (null get-frame-for-buffer-default-instance-limit)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
392 ["Other Frame (2 Frames Max)"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
393 (customize-set-variable 'get-frame-for-buffer-default-instance-limit 2)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
394 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
395 :selected (eq 2 get-frame-for-buffer-default-instance-limit)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
396 ["Other Frame (3 Frames Max)"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
397 (customize-set-variable 'get-frame-for-buffer-default-instance-limit 3)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
398 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
399 :selected (eq 3 get-frame-for-buffer-default-instance-limit)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
400 ["Other Frame (4 Frames Max)"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
401 (customize-set-variable 'get-frame-for-buffer-default-instance-limit 4)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
402 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
403 :selected (eq 4 get-frame-for-buffer-default-instance-limit)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
404 ["Other Frame (5 Frames Max)"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
405 (customize-set-variable 'get-frame-for-buffer-default-instance-limit 5)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
406 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
407 :selected (eq 5 get-frame-for-buffer-default-instance-limit)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
408 ["Always Create New Frame"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
409 (customize-set-variable 'get-frame-for-buffer-default-instance-limit 0)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
410 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
411 :selected (eq 0 get-frame-for-buffer-default-instance-limit)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
412 "-----"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
413 ["Temp Buffers Always in Same Frame"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
414 (customize-set-variable 'temp-buffer-show-function
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
415 'show-temp-buffer-in-current-frame)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
416 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
417 :selected (eq temp-buffer-show-function
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
418 'show-temp-buffer-in-current-frame)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
419 ["Temp Buffers Like Other Buffers"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
420 (customize-set-variable 'temp-buffer-show-function nil)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
421 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
422 :selected (null temp-buffer-show-function)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
423 "-----"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
424 ["Make current frame gnuserv target"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
425 (customize-set-variable 'gnuserv-frame (if (eq gnuserv-frame t) nil t))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
426 :style toggle
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
427 :selected (and (boundp 'gnuserv-frame) (eq gnuserv-frame t))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
428 :active (boundp 'gnuserv-frame)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
429 )
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
430 "-----"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
431 ("Syntax Highlighting"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
432 ["In This Buffer"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
433 (progn ;; becomes buffer local
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
434 (font-lock-mode)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
435 (customize-set-variable 'font-lock-mode font-lock-mode))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
436 :style toggle
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
437 :selected (and (boundp 'font-lock-mode) font-lock-mode)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
438 :active (boundp 'font-lock-mode)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
439 ["Automatic"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
440 (customize-set-variable 'font-lock-auto-fontify
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
441 (not font-lock-auto-fontify))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
442 :style toggle
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
443 :selected (and (boundp 'font-lock-auto-fontify) font-lock-auto-fontify)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
444 :active (fboundp 'font-lock-mode)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
445 "-----"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
446 ["Fonts"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
447 (progn
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
448 (require 'font-lock)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
449 (font-lock-use-default-fonts)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
450 (customize-set-variable 'font-lock-use-fonts t)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
451 (customize-set-variable 'font-lock-use-colors nil)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
452 (font-lock-mode 1))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
453 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
454 :selected (and (boundp 'font-lock-use-fonts) font-lock-use-fonts)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
455 :active (fboundp 'font-lock-mode)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
456 ["Colors"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
457 (progn
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
458 (require 'font-lock)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
459 (font-lock-use-default-colors)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
460 (customize-set-variable 'font-lock-use-colors t)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
461 (customize-set-variable 'font-lock-use-fonts nil)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
462 (font-lock-mode 1))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
463 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
464 :selected (and (boundp 'font-lock-use-colors) font-lock-use-colors)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
465 :active (boundp 'font-lock-mode)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
466 "-----"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
467 ["Least"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
468 (progn
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
469 (require 'font-lock)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
470 (if (or (and (not (integerp font-lock-maximum-decoration))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
471 (not (eq t font-lock-maximum-decoration)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
472 (and (integerp font-lock-maximum-decoration)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
473 (<= font-lock-maximum-decoration 0)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
474 nil
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
475 (customize-set-variable 'font-lock-maximum-decoration nil)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
476 (font-lock-recompute-variables)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
477 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
478 :active (fboundp 'font-lock-mode)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
479 :selected (and (boundp 'font-lock-maximium-decoration)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
480 (or (and (not (integerp font-lock-maximum-decoration))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
481 (not (eq t font-lock-maximum-decoration)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
482 (and (integerp font-lock-maximum-decoration)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
483 (<= font-lock-maximum-decoration 0))))]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
484 ["More"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
485 (progn
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
486 (require 'font-lock)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
487 (if (and (integerp font-lock-maximum-decoration)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
488 (= 1 font-lock-maximum-decoration))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
489 nil
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
490 (customize-set-variable 'font-lock-maximum-decoration 1)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
491 (font-lock-recompute-variables)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
492 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
493 :active (fboundp 'font-lock-mode)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
494 :selected (and (boundp 'font-lock-maximium-decoration)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
495 (integerp font-lock-maximum-decoration)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
496 (= 1 font-lock-maximum-decoration))]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
497 ["Even More"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
498 (progn
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
499 (require 'font-lock)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
500 (if (and (integerp font-lock-maximum-decoration)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
501 (= 2 font-lock-maximum-decoration))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
502 nil
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
503 (customize-set-variable 'font-lock-maximum-decoration 2)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
504 (font-lock-recompute-variables)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
505 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
506 :active (fboundp 'font-lock-mode)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
507 :selected (and (boundp 'font-lock-maximum-decoration)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
508 (integerp font-lock-maximum-decoration)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
509 (= 2 font-lock-maximum-decoration))]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
510 ["Most"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
511 (progn
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
512 (require 'font-lock)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
513 (if (or (eq font-lock-maximum-decoration t)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
514 (and (integerp font-lock-maximum-decoration)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
515 (>= font-lock-maximum-decoration 3)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
516 nil
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
517 (customize-set-variable 'font-lock-maximum-decoration t)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
518 (font-lock-recompute-variables)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
519 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
520 :active (fboundp 'font-lock-mode)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
521 :selected (and (boundp 'font-lock-maximum-decoration)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
522 (or (eq font-lock-maximum-decoration t)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
523 (and (integerp font-lock-maximum-decoration)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
524 (>= font-lock-maximum-decoration 3))))]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
525 "-----"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
526 ["Lazy"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
527 (progn ;; becomes buffer local
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
528 (lazy-shot-mode)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
529 (customize-set-variable 'lazy-shot-mode lazy-shot-mode)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
530 ;; this shouldn't be necessary so there has to
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
531 ;; be a redisplay bug lurking somewhere (or
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
532 ;; possibly another event handler bug)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
533 (redraw-modeline))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
534 :active (and (boundp 'font-lock-mode) (boundp 'lazy-shot-mode)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
535 font-lock-mode)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
536 :style toggle
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
537 :selected (and (boundp 'lazy-shot-mode) lazy-shot-mode)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
538 ["Caching"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
539 (progn ;; becomes buffer local
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
540 (fast-lock-mode)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
541 (customize-set-variable 'fast-lock-mode fast-lock-mode)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
542 ;; this shouldn't be necessary so there has to
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
543 ;; be a redisplay bug lurking somewhere (or
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
544 ;; possibly another event handler bug)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
545 (redraw-modeline))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
546 :active (and (boundp 'font-lock-mode) (boundp 'fast-lock-mode)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
547 font-lock-mode)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
548 :style toggle
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
549 :selected (and (boundp 'fast-lock-mode) fast-lock-mode)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
550 )
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
551 ("Paren Highlighting"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
552 ["None"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
553 (customize-set-variable 'paren-mode nil)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
554 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
555 :selected (and (boundp 'paren-mode) (not paren-mode))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
556 :active (boundp 'paren-mode)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
557 ["Blinking Paren"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
558 (customize-set-variable 'paren-mode 'blink-paren)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
559 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
560 :selected (and (boundp 'paren-mode) (eq paren-mode 'blink-paren))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
561 :active (boundp 'paren-mode)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
562 ["Steady Paren"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
563 (customize-set-variable 'paren-mode 'paren)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
564 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
565 :selected (and (boundp 'paren-mode) (eq paren-mode 'paren))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
566 :active (boundp 'paren-mode)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
567 ["Expression"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
568 (customize-set-variable 'paren-mode 'sexp)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
569 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
570 :selected (and (boundp 'paren-mode) (eq paren-mode 'sexp))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
571 :active (boundp 'paren-mode)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
572 ;; ["Nested Shading"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
573 ;; (customize-set-variable 'paren-mode 'nested)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
574 ;; :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
575 ;; :selected (and (boundp 'paren-mode) (eq paren-mode 'nested))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
576 ;; :active (boundp 'paren-mode)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
577 )
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
578 "-----"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
579 ("Frame Appearance"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
580 ["Frame-Local Font Menu"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
581 (customize-set-variable 'font-menu-this-frame-only-p
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
582 (not font-menu-this-frame-only-p))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
583 :style toggle
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
584 :selected (and (boundp 'font-menu-this-frame-only-p)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
585 font-menu-this-frame-only-p)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
586 ,@(if (featurep 'scrollbar)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
587 '(["Scrollbars"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
588 (customize-set-variable 'scrollbars-visible-p
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
589 (not scrollbars-visible-p))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
590 :style toggle
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
591 :selected scrollbars-visible-p]))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
592 ;; I don't think this is of any interest. - dverna apr. 98
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 290
diff changeset
593 ;; #### I beg to differ! Many FSFmacs converts hate the 3D
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 290
diff changeset
594 ;; modeline, and it was perfectly fine to be able to turn them
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 290
diff changeset
595 ;; off through the Options menu. I would have uncommented this
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 290
diff changeset
596 ;; source, but the code for saving options would not save the
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 290
diff changeset
597 ;; modeline 3D-ness. Grrr. --hniksic
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
598 ;; ["3D Modeline"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
599 ;; (progn
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
600 ;; (if (zerop (specifier-instance modeline-shadow-thickness))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
601 ;; (set-specifier modeline-shadow-thickness 2)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
602 ;; (set-specifier modeline-shadow-thickness 0))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
603 ;; (redraw-modeline t))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
604 ;; :style toggle
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
605 ;; :selected (let ((thickness
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
606 ;; (specifier-instance modeline-shadow-thickness)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
607 ;; (and (integerp thickness)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
608 ;; (> thickness 0)))]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
609 ["Truncate Lines"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
610 (progn ;; becomes buffer-local
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
611 (setq truncate-lines (not truncate-lines))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
612 (customize-set-variable 'truncate-lines truncate-lines))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
613 :style toggle
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
614 :selected truncate-lines]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
615 ["Blinking Cursor"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
616 (customize-set-variable 'blink-cursor-mode (not blink-cursor-mode))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
617 :style toggle
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
618 :selected (and (boundp 'blink-cursor-mode) blink-cursor-mode)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
619 :active (boundp 'blink-cursor-mode)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
620 "-----"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
621 ["Block cursor"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
622 (progn
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
623 (customize-set-variable 'bar-cursor nil)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
624 (force-cursor-redisplay))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
625 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
626 :selected (null bar-cursor)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
627 ["Bar cursor (1 pixel)"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
628 (progn
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
629 (customize-set-variable 'bar-cursor t)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
630 (force-cursor-redisplay))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
631 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
632 :selected (eq bar-cursor t)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
633 ["Bar cursor (2 pixels)"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
634 (progn
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
635 (customize-set-variable 'bar-cursor 2)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
636 (force-cursor-redisplay))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
637 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
638 :selected (and bar-cursor (not (eq bar-cursor t)))]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
639 "------"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
640 ["Line Numbers"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
641 (progn
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
642 (customize-set-variable 'line-number-mode (not line-number-mode))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
643 (redraw-modeline))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
644 :style toggle :selected line-number-mode]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
645 ["Column Numbers"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
646 (progn
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
647 (customize-set-variable 'column-number-mode
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
648 (not column-number-mode))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
649 (redraw-modeline))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
650 :style toggle :selected column-number-mode]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
651 )
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
652 ("Menubar Appearance"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
653 ["Buffers Menu Length..."
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
654 (customize-set-variable
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
655 'buffers-menu-max-size
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
656 ;; would it be better to open a customization buffer ?
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
657 (let ((val
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
658 (read-number
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
659 "Enter number of buffers to display (or 0 for unlimited): ")))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
660 (if (eq val 0) nil val)))]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
661 ["Multi-Operation Buffers Sub-Menus"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
662 (customize-set-variable 'complex-buffers-menu-p
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
663 (not complex-buffers-menu-p))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
664 :style toggle
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
665 :selected complex-buffers-menu-p]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
666 ("Buffers Menu Sorting"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
667 ["Most Recently Used"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
668 (progn
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
669 (customize-set-variable 'buffers-menu-sort-function nil)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
670 (customize-set-variable 'buffers-menu-grouping-function nil))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
671 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
672 :selected (null buffers-menu-sort-function)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
673 ["Alphabetically"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
674 (progn
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
675 (customize-set-variable 'buffers-menu-sort-function
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
676 'sort-buffers-menu-alphabetically)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
677 (customize-set-variable 'buffers-menu-grouping-function nil))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
678 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
679 :selected (eq 'sort-buffers-menu-alphabetically
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
680 buffers-menu-sort-function)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
681 ["By Major Mode, Then Alphabetically"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
682 (progn
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
683 (customize-set-variable
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
684 'buffers-menu-sort-function
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
685 'sort-buffers-menu-by-mode-then-alphabetically)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
686 (customize-set-variable
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
687 'buffers-menu-grouping-function
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
688 'group-buffers-menu-by-mode-then-alphabetically))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
689 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
690 :selected (eq 'sort-buffers-menu-by-mode-then-alphabetically
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
691 buffers-menu-sort-function)])
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
692 ["Submenus for Buffer Groups"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
693 (customize-set-variable 'buffers-menu-submenus-for-groups-p
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
694 (not buffers-menu-submenus-for-groups-p))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
695 :style toggle
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
696 :selected buffers-menu-submenus-for-groups-p]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
697 "---"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
698 ["Ignore Scaled Fonts"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
699 (customize-set-variable 'font-menu-ignore-scaled-fonts
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
700 (not font-menu-ignore-scaled-fonts))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
701 :style toggle
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
702 :selected (and (boundp 'font-menu-ignore-scaled-fonts)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
703 font-menu-ignore-scaled-fonts)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
704 )
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
705 ,@(if (featurep 'toolbar)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
706 '(("Toolbar Appearance"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
707 ["Visible"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
708 (customize-set-variable 'toolbar-visible-p
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
709 (not toolbar-visible-p))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
710 :style toggle
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
711 :selected toolbar-visible-p]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
712 ["Captioned"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
713 (customize-set-variable 'toolbar-captioned-p
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
714 (not toolbar-captioned-p))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
715 :style toggle
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
716 :selected toolbar-captioned-p]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
717 ("Default Location"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
718 ["Top"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
719 (customize-set-variable 'default-toolbar-position 'top)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
720 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
721 :selected (eq default-toolbar-position 'top)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
722 ["Bottom"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
723 (customize-set-variable 'default-toolbar-position 'bottom)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
724 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
725 :selected (eq default-toolbar-position 'bottom)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
726 ["Left"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
727 (customize-set-variable 'default-toolbar-position 'left)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
728 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
729 :selected (eq default-toolbar-position 'left)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
730 ["Right"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
731 (customize-set-variable 'default-toolbar-position 'right)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
732 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
733 :selected (eq default-toolbar-position 'right)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
734 )
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
735 )))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
736 ("Mouse"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
737 ["Avoid Text..."
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
738 (customize-set-variable 'mouse-avoidance-mode
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
739 (if mouse-avoidance-mode nil 'banish))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
740 :style toggle
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
741 :selected (and (boundp 'mouse-avoidance-mode) mouse-avoidance-mode)
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
742 :active (and (boundp 'mouse-avoidance-mode)
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
743 (device-on-window-system-p))]
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
744 ["strokes-mode"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
745 (customize-set-variable 'strokes-mode (not strokes-mode))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
746 :style toggle
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
747 :selected (and (boundp 'strokes-mode) strokes-mode)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
748 :active (and (boundp 'strokes-mode)
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
749 (device-on-window-system-p))]
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
750 )
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
751 ("Open URLs With"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
752 ["Emacs-W3"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
753 (customize-set-variable 'browse-url-browser-function 'browse-url-w3)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
754 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
755 :selected (and (boundp 'browse-url-browser-function)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
756 (eq browse-url-browser-function 'browse-url-w3))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
757 :active (and (boundp 'browse-url-browser-function)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
758 (fboundp 'browse-url-w3)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
759 (fboundp 'w3-fetch))]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
760 ["Netscape"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
761 (customize-set-variable 'browse-url-browser-function
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
762 'browse-url-netscape)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
763 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
764 :selected (and (boundp 'browse-url-browser-function)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
765 (eq browse-url-browser-function 'browse-url-netscape))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
766 :active (and (boundp 'browse-url-browser-function)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
767 (fboundp 'browse-url-netscape))]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
768 ["Mosaic"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
769 (customize-set-variable 'browse-url-browser-function
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
770 'browse-url-mosaic)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
771 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
772 :selected (and (boundp 'browse-url-browser-function)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
773 (eq browse-url-browser-function 'browse-url-mosaic))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
774 :active (and (boundp 'browse-url-browser-function)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
775 (fboundp 'browse-url-mosaic))]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
776 ["Mosaic (CCI)"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
777 (customize-set-variable 'browse-url-browser-function 'browse-url-cci)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
778 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
779 :selected (and (boundp 'browse-url-browser-function)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
780 (eq browse-url-browser-function 'browse-url-cci))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
781 :active (and (boundp 'browse-url-browser-function)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
782 (fboundp 'browse-url-cci))]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
783 ["IXI Mosaic"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
784 (customize-set-variable 'browse-url-browser-function
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
785 'browse-url-iximosaic)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
786 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
787 :selected (and (boundp 'browse-url-browser-function)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
788 (eq browse-url-browser-function 'browse-url-iximosaic))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
789 :active (and (boundp 'browse-url-browser-function)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
790 (fboundp 'browse-url-iximosaic))]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
791 ["Lynx (xterm)"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
792 (customize-set-variable 'browse-url-browser-function
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
793 'browse-url-lynx-xterm)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
794 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
795 :selected (and (boundp 'browse-url-browser-function)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
796 (eq browse-url-browser-function 'browse-url-lynx-xterm))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
797 :active (and (boundp 'browse-url-browser-function)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
798 (fboundp 'browse-url-lynx-xterm))]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
799 ["Lynx (xemacs)"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
800 (customize-set-variable 'browse-url-browser-function
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
801 'browse-url-lynx-emacs)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
802 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
803 :selected (and (boundp 'browse-url-browser-function)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
804 (eq browse-url-browser-function 'browse-url-lynx-emacs))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
805 :active (and (boundp 'browse-url-browser-function)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
806 (fboundp 'browse-url-lynx-emacs))]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
807 ["Grail"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
808 (customize-set-variable 'browse-url-browser-function
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
809 'browse-url-grail)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
810 :style radio
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
811 :selected (and (boundp 'browse-url-browser-function)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
812 (eq browse-url-browser-function 'browse-url-grail))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
813 :active (and (boundp 'browse-url-browser-function)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
814 (fboundp 'browse-url-grail))]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
815 )
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
816 "-----"
314
341dac730539 Import from CVS: tag r21-0b55
cvs
parents: 304
diff changeset
817 ["Edit Faces..." (customize-face nil)]
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
818 ("Font" :filter font-menu-family-constructor)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
819 ("Size" :filter font-menu-size-constructor)
314
341dac730539 Import from CVS: tag r21-0b55
cvs
parents: 304
diff changeset
820 ; ("Weight" :filter font-menu-weight-constructor)
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
821 "-----"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
822 ["Save Options" customize-save-customized]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
823 )
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
824
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
825 ("Buffers"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
826 :filter buffers-menu-filter
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
827 ["Read Only" (toggle-read-only)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
828 :style toggle :selected buffer-read-only]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
829 ["List All Buffers" list-buffers]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
830 "--"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
831 )
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
832
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
833 ("Tools"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
834 ["Grep..." grep
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
835 :active (fboundp 'grep)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
836 ["Compile..." compile
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
837 :active (fboundp 'compile)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
838 ["Shell" shell
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
839 :active (fboundp 'shell)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
840 ["Shell Command..." shell-command
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
841 :active (fboundp 'shell-command)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
842 ["Shell Command on Region..." shell-command-on-region
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
843 :active (and (fboundp 'shell-command-on-region) (region-exists-p))]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
844 ["Debug (GDB)..." gdb
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
845 :active (fboundp 'gdb)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
846 ["Debug (DBX)..." dbx
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
847 :active (fboundp 'dbx)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
848 "-----"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
849 ("Tags"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
850 ["Find Tag..." find-tag]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
851 ["Find Other Window..." find-tag-other-window]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
852 ["Next Tag..." (find-tag nil)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
853 ["Next Other Window..." (find-tag-other-window nil)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
854 ["Next File" next-file]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
855 "-----"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
856 ["Tags Search..." tags-search]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
857 ["Tags Replace..." tags-query-replace]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
858 ["Continue Search/Replace" tags-loop-continue]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
859 "-----"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
860 ["Pop stack" pop-tag-mark]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
861 ["Apropos..." tags-apropos]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
862 "-----"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
863 ["Set Tags Table File..." visit-tags-table]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
864 ))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
865
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
866 nil ; the partition: menus after this are flushright
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
867
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
868 ("Help"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
869 ["About XEmacs..." about-xemacs]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
870 ("Basics"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
871 ["Installation" describe-installation
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
872 :active (boundp 'Installation-string)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
873 ;; Tutorials.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
874 ,(if (featurep 'mule)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
875 ;; Mule tutorials.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
876 (let ((lang language-info-alist)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
877 submenu tut)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
878 (while lang
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
879 (and (setq tut (assq 'tutorial (car lang)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
880 (not (string= (caar lang) "ASCII"))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
881 (setq
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
882 submenu
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
883 (cons
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
884 `[,(caar lang) (help-with-tutorial nil ,(cdr tut))]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
885 submenu)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
886 (setq lang (cdr lang)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
887 (append `("Tutorials"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
888 :filter tutorials-menu-filter
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
889 ["Default" help-with-tutorial t
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
890 ,(concat "(" current-language-environment ")")])
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
891 submenu))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
892 ;; Non mule tutorials.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
893 (let ((lang tutorial-supported-languages)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
894 submenu)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
895 (while lang
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
896 (setq submenu
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
897 (cons
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
898 `[,(caar lang)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
899 (help-with-tutorial ,(format "TUTORIAL.%s"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
900 (cadr (car lang))))]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
901 submenu))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
902 (setq lang (cdr lang)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
903 (append '("Tutorials"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
904 ["English" help-with-tutorial])
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
905 submenu)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
906 ["News" view-emacs-news]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
907 ["Packages" finder-by-keyword]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
908 ["Splash" xemacs-splash-buffer])
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
909 "-----"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
910 ("XEmacs FAQ"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
911 ["FAQ (local)" xemacs-local-faq]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
912 ["FAQ via WWW" xemacs-www-faq (boundp 'browse-url-browser-function)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
913 ["Home Page" xemacs-www-page (boundp 'browse-url-browser-function)])
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
914 ("Samples"
304
c6de09ad3017 Import from CVS: tag r21-0b50
cvs
parents: 298
diff changeset
915 ["Sample .emacs" (find-file (locate-data-file "sample.emacs")) (locate-data-file "sample.emacs")]
c6de09ad3017 Import from CVS: tag r21-0b50
cvs
parents: 298
diff changeset
916 ["Sample .Xdefaults" (find-file (locate-data-file "sample.Xdefaults")) (locate-data-file "sample.Xdefaults")]
c6de09ad3017 Import from CVS: tag r21-0b50
cvs
parents: 298
diff changeset
917 ["Sample enriched" (find-file (locate-data-file "enriched.doc")) (locate-data-file "enriched.doc")])
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
918 "-----"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
919 ("Lookup in Info"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
920 ["Key Binding..." Info-goto-emacs-key-command-node]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
921 ["Command..." Info-goto-emacs-command-node]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
922 ["Function..." Info-elisp-ref]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
923 ["Topic..." Info-query])
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
924 ("Manuals"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
925 ["Info" info]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
926 ["Unix Manual..." manual-entry])
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
927 ("Commands & Keys"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
928 ["Mode" describe-mode]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
929 ["Apropos..." hyper-apropos]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
930 ["Apropos Docs..." apropos-documentation]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
931 "-----"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
932 ["Key..." describe-key]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
933 ["Bindings" describe-bindings]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
934 ["Mouse Bindings" describe-pointer]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
935 ["Recent Keys" view-lossage]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
936 "-----"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
937 ["Function..." describe-function]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
938 ["Variable..." describe-variable]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
939 ["Locate Command..." where-is])
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
940 "-----"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
941 ["Recent Messages" view-lossage]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
942 ("Misc"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
943 ["No Warranty" describe-no-warranty]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
944 ["XEmacs License" describe-copying]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
945 ["The Latest Version" describe-distribution])
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 290
diff changeset
946 ["Send Bug Report..." report-emacs-bug]))))
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
947
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
948
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
949 (defun maybe-add-init-button ()
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
950 "Don't call this.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
951 Adds `Load .emacs' button to menubar when starting up with -q."
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
952 ;; by Stig@hackvan.com
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
953 (cond
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
954 (init-file-user nil)
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 290
diff changeset
955 ((file-exists-p (expand-file-name ".emacs" "~"))
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
956 (add-menu-button nil
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
957 ["Load .emacs"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
958 (progn (delete-menu-item '("Load .emacs"))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
959 (load-user-init-file (user-login-name)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
960 ]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
961 "Help"))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
962 (t nil)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
963
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
964 (add-hook 'before-init-hook 'maybe-add-init-button)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
965
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
966
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
967 ;;; The File menu
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
968
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
969 (defvar put-buffer-names-in-file-menu t)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
970
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
971
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
972 ;;; The Bookmarks menu
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
973
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
974 (defun bookmark-menu-filter (&rest ignore)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
975 (let ((definedp (and (boundp 'bookmark-alist)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
976 bookmark-alist
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
977 t)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
978 `(,(if definedp
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
979 '("Jump to Bookmark"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
980 :filter (lambda (&rest junk)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
981 (mapcar #'(lambda (bmk)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
982 `[,bmk (bookmark-jump ',bmk)])
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
983 (bookmark-all-names))))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
984 ["Jump to Bookmark" nil nil])
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
985 ["Set bookmark" bookmark-set
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
986 :active (fboundp 'bookmark-set)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
987 "---"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
988 ["Insert contents" bookmark-menu-insert
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
989 :active (fboundp 'bookmark-menu-insert)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
990 ["Insert location" bookmark-menu-locate
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
991 :active (fboundp 'bookmark-menu-locate)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
992 "---"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
993 ["Rename bookmark" bookmark-menu-rename
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
994 :active (fboundp 'bookmark-menu-rename)]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
995 ,(if definedp
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
996 '("Delete Bookmark"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
997 :filter (lambda (&rest junk)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
998 (mapcar #'(lambda (bmk)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
999 `[,bmk (bookmark-delete ',bmk)])
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1000 (bookmark-all-names))))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1001 ["Delete Bookmark" nil nil])
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1002 ["Edit Bookmark List" bookmark-bmenu-list ,definedp]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1003 "---"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1004 ["Save bookmarks" bookmark-save ,definedp]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1005 ["Save bookmarks as..." bookmark-write ,definedp]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1006 ["Load a bookmark file" bookmark-load
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1007 :active (fboundp 'bookmark-load)])))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1008
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1009 ;;; The Buffers menu
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1010
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1011 (defgroup buffers-menu nil
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1012 "Customization of `Buffers' menu."
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1013 :group 'menu)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1014
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1015 (defcustom buffers-menu-max-size 25
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1016 "*Maximum number of entries which may appear on the \"Buffers\" menu.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1017 If this is 10, then only the ten most-recently-selected buffers will be
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1018 shown. If this is nil, then all buffers will be shown. Setting this to
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1019 a large number or nil will slow down menu responsiveness."
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1020 :type '(choice (const :tag "Show all" nil)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1021 (integer 10))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1022 :group 'buffers-menu)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1023
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1024 (defcustom complex-buffers-menu-p nil
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1025 "*If non-nil, the buffers menu will contain several commands.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1026 Commands will be presented as submenus of each buffer line. If this
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1027 is false, then there will be only one command: select that buffer."
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1028 :type 'boolean
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1029 :group 'buffers-menu)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1030
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1031 (defcustom buffers-menu-submenus-for-groups-p nil
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1032 "*If non-nil, the buffers menu will contain one submenu per group of buffers.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1033 The grouping function is specified in `buffers-menu-grouping-function'.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1034 If this is an integer, do not build submenus if the number of buffers
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1035 is not larger than this value."
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1036 :type '(choice (const :tag "No Subgroups" nil)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1037 (integer :tag "Max. submenus" 10)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1038 (sexp :format "%t\n" :tag "Allow Subgroups" :value t))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1039 :group 'buffers-menu)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1040
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1041 (defcustom buffers-menu-switch-to-buffer-function 'switch-to-buffer
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1042 "*The function to call to select a buffer from the buffers menu.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1043 `switch-to-buffer' is a good choice, as is `pop-to-buffer'."
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1044 :type '(radio (function-item switch-to-buffer)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1045 (function-item pop-to-buffer)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1046 (function :tag "Other"))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1047 :group 'buffers-menu)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1048
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1049 (defcustom buffers-menu-omit-function 'buffers-menu-omit-invisible-buffers
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1050 "*If non-nil, a function specifying the buffers to omit from the buffers menu.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1051 This is passed a buffer and should return non-nil if the buffer should be
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1052 omitted. The default value `buffers-menu-omit-invisible-buffers' omits
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1053 buffers that are normally considered \"invisible\" (those whose name
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1054 begins with a space)."
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1055 :type '(choice (const :tag "None" nil)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1056 function)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1057 :group 'buffers-menu)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1058
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1059 (defcustom buffers-menu-format-buffer-line-function 'format-buffers-menu-line
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1060 "*The function to call to return a string to represent a buffer in the
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1061 buffers menu. The function is passed a buffer and should return a string.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1062 The default value `format-buffers-menu-line' just returns the name of
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1063 the buffer. Also check out `slow-format-buffers-menu-line' which
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1064 returns a whole bunch of info about a buffer."
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1065 :type 'function
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1066 :group 'buffers-menu)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1067
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1068 (defcustom buffers-menu-sort-function
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1069 'sort-buffers-menu-by-mode-then-alphabetically
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1070 "*If non-nil, a function to sort the list of buffers in the buffers menu.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1071 It will be passed two arguments (two buffers to compare) and should return
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1072 T if the first is \"less\" than the second. One possible value is
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1073 `sort-buffers-menu-alphabetically'; another is
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1074 `sort-buffers-menu-by-mode-then-alphabetically'."
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1075 :type '(choice (const :tag "None" nil)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1076 function)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1077 :group 'buffers-menu)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1078
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1079 (defcustom buffers-menu-grouping-function
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1080 'group-buffers-menu-by-mode-then-alphabetically
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1081 "*If non-nil, a function to group buffers in the buffers menu together.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1082 It will be passed two arguments, successive members of the sorted buffers
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1083 list after being passed through `buffers-menu-sort-function'. It should
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1084 return non-nil if the second buffer begins a new group. The return value
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1085 should be the name of the old group, which may be used in hierarchical
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1086 buffers menus. The last invocation of the function contains nil as the
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1087 second argument, so that the name of the last group can be determined.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1088
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1089 The sensible values of this function are dependent on the value specified
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1090 for `buffers-menu-sort-function'."
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1091 :type '(choice (const :tag "None" nil)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1092 function)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1093 :group 'buffers-menu)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1094
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1095 (defun buffers-menu-omit-invisible-buffers (buf)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1096 "For use as a value of `buffers-menu-omit-function'.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1097 Omits normally invisible buffers (those whose name begins with a space)."
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1098 (not (null (string-match "\\` " (buffer-name buf)))))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1099
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1100 (defun sort-buffers-menu-alphabetically (buf1 buf2)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1101 "For use as a value of `buffers-menu-sort-function'.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1102 Sorts the buffers in alphabetical order by name, but puts buffers beginning
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1103 with a star at the end of the list."
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1104 (let* ((nam1 (buffer-name buf1))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1105 (nam2 (buffer-name buf2))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1106 (star1p (not (null (string-match "\\`*" nam1))))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1107 (star2p (not (null (string-match "\\`*" nam2)))))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1108 (if (not (eq star1p star2p))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1109 (not star1p)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1110 (string-lessp nam1 nam2))))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1111
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1112 (defun sort-buffers-menu-by-mode-then-alphabetically (buf1 buf2)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1113 "For use as a value of `buffers-menu-sort-function'.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1114 Sorts first by major mode and then alphabetically by name, but puts buffers
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1115 beginning with a star at the end of the list."
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1116 (let* ((nam1 (buffer-name buf1))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1117 (nam2 (buffer-name buf2))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1118 (star1p (not (null (string-match "\\`*" nam1))))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1119 (star2p (not (null (string-match "\\`*" nam2))))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1120 (mode1 (symbol-value-in-buffer 'major-mode buf1))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1121 (mode2 (symbol-value-in-buffer 'major-mode buf2)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1122 (cond ((not (eq star1p star2p)) (not star1p))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1123 ((and star1p star2p (string-lessp nam1 nam2)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1124 ((string-lessp mode1 mode2) t)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1125 ((string-lessp mode2 mode1) nil)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1126 (t (string-lessp nam1 nam2)))))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1127
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1128 ;; this version is too slow on some machines.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1129 (defun slow-format-buffers-menu-line (buffer)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1130 "For use as a value of `buffers-menu-format-buffer-line-function'.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1131 This returns a string containing a bunch of info about the buffer."
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1132 (format "%s%s %-19s %6s %-15s %s"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1133 (if (buffer-modified-p buffer) "*" " ")
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1134 (if (symbol-value-in-buffer 'buffer-read-only buffer) "%" " ")
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1135 (buffer-name buffer)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1136 (buffer-size buffer)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1137 (symbol-value-in-buffer 'mode-name buffer)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1138 (or (buffer-file-name buffer) "")))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1139
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1140 (defun format-buffers-menu-line (buffer)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1141 "For use as a value of `buffers-menu-format-buffer-line-function'.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1142 This just returns the buffer's name."
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1143 (buffer-name buffer))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1144
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1145 (defun group-buffers-menu-by-mode-then-alphabetically (buf1 buf2)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1146 "For use as a value of `buffers-menu-grouping-function'.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1147 This groups buffers by major mode. It only really makes sense if
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1148 `buffers-menu-sorting-function' is
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1149 `sort-buffers-menu-by-mode-then-alphabetically'."
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1150 (cond ((string-match "\\`*" (buffer-name buf1))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1151 (and (null buf2) "*Misc*"))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1152 ((or (null buf2)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1153 (string-match "\\`*" (buffer-name buf2))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1154 (not (eq (symbol-value-in-buffer 'major-mode buf1)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1155 (symbol-value-in-buffer 'major-mode buf2))))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1156 (symbol-value-in-buffer 'mode-name buf1))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1157 (t nil)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1158
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1159 (defun buffer-menu-save-buffer (buffer)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1160 (save-excursion
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1161 (set-buffer buffer)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1162 (save-buffer)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1163
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1164 (defun buffer-menu-write-file (buffer)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1165 (save-excursion
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1166 (set-buffer buffer)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1167 (write-file (read-file-name
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1168 (format "Write %s to file: "
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1169 (buffer-name (current-buffer)))))))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1170
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1171 (defsubst build-buffers-menu-internal (buffers)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1172 (let (name line)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1173 (mapcar
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1174 #'(lambda (buffer)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1175 (if (eq buffer t)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1176 "---"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1177 (setq line (funcall buffers-menu-format-buffer-line-function
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1178 buffer))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1179 (if complex-buffers-menu-p
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1180 (delq nil
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1181 (list line
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1182 (vector "Switch to Buffer"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1183 (list buffers-menu-switch-to-buffer-function
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1184 (setq name (buffer-name buffer)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1185 t)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1186 (if (eq buffers-menu-switch-to-buffer-function
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1187 'switch-to-buffer)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1188 (vector "Switch to Buffer, Other Frame"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1189 (list 'switch-to-buffer-other-frame
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1190 (setq name (buffer-name buffer)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1191 t)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1192 nil)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1193 (if (and (buffer-modified-p buffer)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1194 (buffer-file-name buffer))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1195 (vector "Save Buffer"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1196 (list 'buffer-menu-save-buffer name) t)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1197 ["Save Buffer" nil nil]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1198 )
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1199 (vector "Save As..."
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1200 (list 'buffer-menu-write-file name) t)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1201 (vector "Delete Buffer" (list 'kill-buffer name)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1202 t)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1203 ;; ### We don't want buffer names to be translated,
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1204 ;; ### so we put the buffer name in the suffix.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1205 ;; ### Also, avoid losing with non-ASCII buffer names.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1206 ;; ### We still lose, however, if complex-buffers-menu-p. --mrb
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1207 (vector ""
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1208 (list buffers-menu-switch-to-buffer-function
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1209 (buffer-name buffer))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1210 t line))))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1211 buffers)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1212
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1213 (defun buffers-menu-filter (menu)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1214 "This is the menu filter for the top-level buffers \"Buffers\" menu.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1215 It dynamically creates a list of buffers to use as the contents of the menu.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1216 Only the most-recently-used few buffers will be listed on the menu, for
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1217 efficiency reasons. You can control how many buffers will be shown by
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1218 setting `buffers-menu-max-size'. You can control the text of the menu
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1219 items by redefining the function `format-buffers-menu-line'."
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1220 (let ((buffers (delete-if buffers-menu-omit-function (buffer-list))))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1221 (and (integerp buffers-menu-max-size)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1222 (> buffers-menu-max-size 1)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1223 (> (length buffers) buffers-menu-max-size)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1224 ;; shorten list of buffers (not with submenus!)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1225 (not (and buffers-menu-grouping-function
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1226 buffers-menu-submenus-for-groups-p))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1227 (setcdr (nthcdr buffers-menu-max-size buffers) nil))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1228 (if buffers-menu-sort-function
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1229 (setq buffers (sort buffers buffers-menu-sort-function)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1230 (if (and buffers-menu-grouping-function
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1231 buffers-menu-submenus-for-groups-p
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1232 (or (not (integerp buffers-menu-submenus-for-groups-p))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1233 (> (length buffers) buffers-menu-submenus-for-groups-p)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1234 (let (groups groupnames current-group)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1235 (mapl
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1236 #'(lambda (sublist)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1237 (let ((groupname (funcall buffers-menu-grouping-function
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1238 (car sublist) (cadr sublist))))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1239 (setq current-group (cons (car sublist) current-group))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1240 (if groupname
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1241 (progn
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1242 (setq groups (cons (nreverse current-group)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1243 groups))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1244 (setq groupnames (cons groupname groupnames))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1245 (setq current-group nil)))))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1246 buffers)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1247 (setq buffers
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1248 (mapcar*
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1249 #'(lambda (groupname group)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1250 (cons groupname (build-buffers-menu-internal group)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1251 (nreverse groupnames)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1252 (nreverse groups))))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1253 (if buffers-menu-grouping-function
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1254 (progn
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1255 (setq buffers
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1256 (mapcon
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1257 #'(lambda (sublist)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1258 (cond ((funcall buffers-menu-grouping-function
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1259 (car sublist) (cadr sublist))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1260 (list (car sublist) t))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1261 (t (list (car sublist)))))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1262 buffers))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1263 ;; remove a trailing separator.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1264 (and (>= (length buffers) 2)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1265 (let ((lastcdr (nthcdr (- (length buffers) 2) buffers)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1266 (if (eq t (cadr lastcdr))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1267 (setcdr lastcdr nil))))))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1268 (setq buffers (build-buffers-menu-internal buffers)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1269 (append menu buffers)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1270 ))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1271
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1272 (defun language-environment-menu-filter (menu)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1273 "This is the menu filter for the \"Language Environment\" submenu."
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1274 (mapcar (lambda (env-sym)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1275 `[ ,(capitalize (symbol-name env-sym))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1276 (set-language-environment ',env-sym)])
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1277 language-environment-list))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1278
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1279
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1280 ;;; The Options menu
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1281
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1282 ;; We'll keep those variables here for a while, in order to provide a
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1283 ;; function for porting the old options file that a user may own to Custom.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1284
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1285 (defvar options-save-faces nil
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1286 "*Non-nil value means save-options will save information about faces.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1287 A nil value means save-options will not save face information.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1288 Set this non-nil only if you use M-x edit-faces to change face
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1289 settings. If you use M-x customize-face or the \"Browse Faces...\"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1290 menu entry, you will see a button in the Customize Face buffer that you
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1291 can use to permanently save your face changes.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1292
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1293 M-x edit-faces is deprecated. Support for it and this variable will
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1294 be discontinued in a future release.")
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1295
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1296 (defvar save-options-init-file nil
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1297 "File into which to save forms to load the options file (nil for .emacs).
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1298 Normally this is nil, which means save into your .emacs file (the value
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1299 of `user-init-file'.")
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1300
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1301 (defvar save-options-file ".xemacs-options"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1302 "File to save options into.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1303 This file is loaded from your .emacs file.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1304 If this is a relative filename, it is put into the same directory as your
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1305 .emacs file.")
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1306
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1307
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1308
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1309 ;;; The Help menu
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1310
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1311 (if (featurep 'mule)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1312 (defun tutorials-menu-filter (menu-items)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1313 ;; If there's a tutorial for the current language environment, make it
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1314 ;; appear first as the default one. Otherwise, use the english one.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1315 (let* ((menu menu-items)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1316 (item (pop menu-items)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1317 (aset
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1318 item 3
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1319 (concat "("
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1320 (if (assoc
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1321 'tutorial
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1322 (assoc current-language-environment language-info-alist))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1323 current-language-environment
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1324 "English")
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1325 ")"))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1326 menu)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1327
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1328
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1329 (set-menubar default-menubar)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1330
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1331
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1332 ;;; Popup menus.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1333
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1334 (defconst default-popup-menu
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1335 '("XEmacs Commands"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1336 ["Undo" advertised-undo
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1337 :active (and (not (eq buffer-undo-list t))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1338 (or buffer-undo-list pending-undo-list))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1339 :suffix (if (or (eq last-command 'undo)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1340 (eq last-command 'advertised-undo))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1341 "More" "")]
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1342 ["Cut" kill-primary-selection
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1343 :active (selection-owner-p)]
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1344 ["Copy" copy-primary-selection
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1345 :active (selection-owner-p)]
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1346 ["Paste" yank-clipboard-selection
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1347 :active (selection-exists-p 'CLIPBOARD)]
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1348 ["Clear" delete-primary-selection
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1349 :active (selection-owner-p)]
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1350 "-----"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1351 ["Select Block" mark-paragraph]
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1352 ["Split Window" split-window-vertically]
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1353 ["Unsplit Window" delete-other-windows]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1354 ))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1355
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1356 (defvar global-popup-menu nil
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1357 "The global popup menu. This is present in all modes.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1358 See the function `popup-menu' for a description of menu syntax.")
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1359
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1360 (defvar mode-popup-menu nil
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1361 "The mode-specific popup menu. Automatically buffer local.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1362 This is appended to the default items in `global-popup-menu'.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1363 See the function `popup-menu' for a description of menu syntax.")
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1364 (make-variable-buffer-local 'mode-popup-menu)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1365
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1366 ;; In an effort to avoid massive menu clutter, this mostly worthless menu is
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1367 ;; superceded by any local popup menu...
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1368 (setq-default mode-popup-menu default-popup-menu)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1369
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1370 (defvar activate-popup-menu-hook nil
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1371 "Function or functions run before a mode-specific popup menu is made visible.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1372 These functions are called with no arguments, and should interrogate and
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1373 modify the value of `global-popup-menu' or `mode-popup-menu' as desired.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1374 Note: this hook is only run if you use `popup-mode-menu' for activating the
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1375 global and mode-specific commands; if you have your own binding for button3,
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1376 this hook won't be run.")
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1377
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1378 (defun popup-mode-menu ()
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1379 "Pop up a menu of global and mode-specific commands.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1380 The menu is computed by combining `global-popup-menu' and `mode-popup-menu'."
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1381 (interactive "@_")
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1382 (run-hooks 'activate-popup-menu-hook)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1383 (popup-menu
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1384 (cond ((and global-popup-menu mode-popup-menu)
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1385 ;; Merge global-popup-menu and mode-popup-menu
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1386 (check-menu-syntax mode-popup-menu)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1387 (let* ((title (car mode-popup-menu))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1388 (items (cdr mode-popup-menu))
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1389 mode-filters)
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1390 ;; Strip keywords from local menu for attaching them at the top
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1391 (while (and items
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1392 (keywordp (car items)))
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1393 ;; Push both keyword and its argument.
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1394 (push (pop items) mode-filters)
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1395 (push (pop items) mode-filters))
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1396 (setq mode-filters (nreverse mode-filters))
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1397 ;; If mode-filters contains a keyword already present in
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1398 ;; `global-popup-menu', you will probably lose.
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1399 (append (list (car global-popup-menu))
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1400 mode-filters
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1401 (cdr global-popup-menu)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1402 '("---" "---")
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1403 (if popup-menu-titles (list title))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1404 (if popup-menu-titles '("---" "---"))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1405 items)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1406 (t
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1407 (or mode-popup-menu
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1408 global-popup-menu
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1409 (error "No menu defined in this buffer"))))))
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1410
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1411 (defun popup-buffer-menu (event)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1412 "Pop up a copy of the Buffers menu (from the menubar) where the mouse is clicked."
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1413 (interactive "e")
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1414 (let ((window (and (event-over-text-area-p event) (event-window event)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1415 (bmenu nil))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1416 (or window
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1417 (error "Pointer must be in a normal window"))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1418 (select-window window)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1419 (if current-menubar
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1420 (setq bmenu (assoc "Buffers" current-menubar)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1421 (if (null bmenu)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1422 (setq bmenu (assoc "Buffers" default-menubar)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1423 (if (null bmenu)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1424 (error "Can't find the Buffers menu"))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1425 (popup-menu bmenu)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1426
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1427 (defun popup-menubar-menu (event)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1428 "Pop up a copy of menu that also appears in the menubar"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1429 ;; by Stig@hackvan.com
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1430 (interactive "e")
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1431 (let ((window (and (event-over-text-area-p event) (event-window event)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1432 popup-menubar)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1433 (or window
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1434 (error "Pointer must be in a normal window"))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1435 (select-window window)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1436 (and current-menubar (run-hooks 'activate-menubar-hook))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1437 ;; ##### Instead of having to copy this just to safely get rid of
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1438 ;; any nil what we should really do is fix up the internal menubar
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1439 ;; code to just ignore nil if generating a popup menu
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1440 (setq popup-menubar (delete nil (copy-sequence (or current-menubar
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1441 default-menubar))))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1442 (popup-menu (cons "Menubar Menu" popup-menubar))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1443 ))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1444
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1445 (global-set-key 'button3 'popup-mode-menu)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1446 ;; shift button3 and shift button2 are reserved for Hyperbole
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1447 (global-set-key '(meta control button3) 'popup-buffer-menu)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1448 ;; The following command is way too dangerous with Custom.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1449 ;; (global-set-key '(meta shift button3) 'popup-menubar-menu)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1450
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1451 ;; Here's a test of the cool new menu features (from Stig).
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1452
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1453 ;;(setq mode-popup-menu
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1454 ;; '("Test Popup Menu"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1455 ;; :filter cdr
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1456 ;; ["this item won't appear because of the menu filter" ding t]
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1457 ;; "--:singleLine"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1458 ;; "singleLine"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1459 ;; "--:doubleLine"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1460 ;; "doubleLine"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1461 ;; "--:singleDashedLine"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1462 ;; "singleDashedLine"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1463 ;; "--:doubleDashedLine"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1464 ;; "doubleDashedLine"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1465 ;; "--:noLine"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1466 ;; "noLine"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1467 ;; "--:shadowEtchedIn"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1468 ;; "shadowEtchedIn"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1469 ;; "--:shadowEtchedOut"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1470 ;; "shadowEtchedOut"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1471 ;; "--:shadowDoubleEtchedIn"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1472 ;; "shadowDoubleEtchedIn"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1473 ;; "--:shadowDoubleEtchedOut"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1474 ;; "shadowDoubleEtchedOut"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1475 ;; "--:shadowEtchedInDash"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1476 ;; "shadowEtchedInDash"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1477 ;; "--:shadowEtchedOutDash"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1478 ;; "shadowEtchedOutDash"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1479 ;; "--:shadowDoubleEtchedInDash"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1480 ;; "shadowDoubleEtchedInDash"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1481 ;; "--:shadowDoubleEtchedOutDash"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1482 ;; "shadowDoubleEtchedOutDash"
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1483 ;; ))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1484
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1485 (defun xemacs-splash-buffer ()
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1486 "Redisplay XEmacs splash screen in a buffer."
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1487 (interactive)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1488 (let ((buffer (get-buffer-create "*Splash*")))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1489 (set-buffer buffer)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1490 (erase-buffer buffer)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1491 (startup-splash-frame)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1492 (pop-to-buffer buffer)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1493 (delete-other-windows)))
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1494
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1495
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1496 ;;; backwards compatibility
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1497 (provide 'x-menubar)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1498 (provide 'menubar-items)
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1499
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1500 ;;; x-menubar.el ends here.