Mercurial > emacs
annotate lisp/ebuff-menu.el @ 58290:b2910e1fbe2e
(erase_phys_cursor): Adjust cursor row visible height.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Wed, 17 Nov 2004 00:27:37 +0000 |
parents | 9ca7944ad9e9 |
children | 1312906d3476 cb7f41387eb3 |
rev | line source |
---|---|
662
8a533acedb77
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
475
diff
changeset
|
1 ;;; ebuff-menu.el --- electric-buffer-list mode |
8a533acedb77
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
475
diff
changeset
|
2 |
7300 | 3 ;; Copyright (C) 1985, 1986, 1994 Free Software Foundation, Inc. |
846
20674ae6bf52
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
807
diff
changeset
|
4 |
807
4f28bd14272c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
662
diff
changeset
|
5 ;; Author: Richard Mlynarik <mly@ai.mit.edu> |
21045 | 6 ;; Maintainer: FSF |
31559 | 7 ;; Keywords: convenience |
475 | 8 |
9 ;; This file is part of GNU Emacs. | |
10 | |
11 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
12 ;; it under the terms of the GNU General Public License as published by | |
807
4f28bd14272c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
662
diff
changeset
|
13 ;; the Free Software Foundation; either version 2, or (at your option) |
475 | 14 ;; any later version. |
15 | |
16 ;; GNU Emacs is distributed in the hope that it will be useful, | |
17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19 ;; GNU General Public License for more details. | |
20 | |
21 ;; You should have received a copy of the GNU General Public License | |
14169 | 22 ;; along with GNU Emacs; see the file COPYING. If not, write to the |
23 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
24 ;; Boston, MA 02111-1307, USA. | |
475 | 25 |
807
4f28bd14272c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
662
diff
changeset
|
26 ;;; Commentary: |
4f28bd14272c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
662
diff
changeset
|
27 |
2307
10e417efb12a
Added or corrected Commentary sections
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2026
diff
changeset
|
28 ;; Who says one can't have typeout windows in GNU Emacs? The entry |
10e417efb12a
Added or corrected Commentary sections
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2026
diff
changeset
|
29 ;; point, `electric-buffer-list' works like ^r select buffer from the |
10e417efb12a
Added or corrected Commentary sections
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2026
diff
changeset
|
30 ;; ITS Emacs lunar or tmacs libraries. |
807
4f28bd14272c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
662
diff
changeset
|
31 |
4f28bd14272c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
662
diff
changeset
|
32 ;;; Code: |
475 | 33 |
34 (require 'electric) | |
35 | |
36 ;; this depends on the format of list-buffers (from src/buffer.c) and | |
37 ;; on stuff in lisp/buff-menu.el | |
38 | |
39 (defvar electric-buffer-menu-mode-map nil) | |
40 | |
58120 | 41 (defvar electric-buffer-menu-mode-hook nil |
42 "Normal hook run by `electric-buffer-list'.") | |
43 | |
475 | 44 ;;;###autoload |
45 (defun electric-buffer-list (arg) | |
58120 | 46 "Pop up a buffer describing the set of Emacs buffers. |
475 | 47 Vaguely like ITS lunar select buffer; combining typeoutoid buffer |
48 listing with menuoid buffer selection. | |
49 | |
50 If the very next character typed is a space then the buffer list | |
51 window disappears. Otherwise, one may move around in the buffer list | |
52 window, marking buffers to be selected, saved or deleted. | |
53 | |
54 To exit and select a new buffer, type a space when the cursor is on | |
55 the appropriate line of the buffer-list window. Other commands are | |
58120 | 56 much like those of `Buffer-menu-mode'. |
475 | 57 |
58120 | 58 Run hooks in `electric-buffer-menu-mode-hook' on entry. |
475 | 59 |
49588
37645a051842
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
41016
diff
changeset
|
60 \\{electric-buffer-menu-mode-map}" |
475 | 61 (interactive "P") |
62 (let (select buffer) | |
63 (save-window-excursion | |
38928
86b624b00b77
(electric-buffer-list): Use list-buffers-noselect.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
31559
diff
changeset
|
64 (setq buffer (list-buffers-noselect arg)) |
86b624b00b77
(electric-buffer-list): Use list-buffers-noselect.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
31559
diff
changeset
|
65 (Electric-pop-up-window buffer) |
475 | 66 (unwind-protect |
67 (progn | |
68 (set-buffer buffer) | |
69 (Electric-buffer-menu-mode) | |
41016
7cbfb84f7362
(electric-buffer-update-highlight): New function.
Richard M. Stallman <rms@gnu.org>
parents:
38928
diff
changeset
|
70 (electric-buffer-update-highlight) |
475 | 71 (setq select |
72 (catch 'electric-buffer-menu-select | |
8122
2fae14e8ae5d
(electric-buffer-list): Change prompt message.
Richard M. Stallman <rms@gnu.org>
parents:
7300
diff
changeset
|
73 (message "<<< Press Return to bury the buffer list >>>") |
2026
3514a9bf50c5
(electric-buffer-list): Handle any kind of event.
Richard M. Stallman <rms@gnu.org>
parents:
1821
diff
changeset
|
74 (if (eq (setq unread-command-events (list (read-event))) |
3514a9bf50c5
(electric-buffer-list): Handle any kind of event.
Richard M. Stallman <rms@gnu.org>
parents:
1821
diff
changeset
|
75 ?\ ) |
1821
04fb1d3d6992
JimB's changes since January 18th
Jim Blandy <jimb@redhat.com>
parents:
1607
diff
changeset
|
76 (progn (setq unread-command-events nil) |
475 | 77 (throw 'electric-buffer-menu-select nil))) |
12568
94ee086557db
(electric-buffer-list): Save point before
Karl Heuer <kwzh@gnu.org>
parents:
11275
diff
changeset
|
78 (let ((start-point (point)) |
94ee086557db
(electric-buffer-list): Save point before
Karl Heuer <kwzh@gnu.org>
parents:
11275
diff
changeset
|
79 (first (progn (goto-char (point-min)) |
50035
af49d6f1e6cc
(electric-buffer-list): Respect `Buffer-menu-use-header-line'.
John Paul Wallington <jpw@pobox.com>
parents:
49588
diff
changeset
|
80 (unless Buffer-menu-use-header-line |
af49d6f1e6cc
(electric-buffer-list): Respect `Buffer-menu-use-header-line'.
John Paul Wallington <jpw@pobox.com>
parents:
49588
diff
changeset
|
81 (forward-line 2)) |
475 | 82 (point))) |
83 (last (progn (goto-char (point-max)) | |
84 (forward-line -1) | |
85 (point))) | |
86 (goal-column 0)) | |
12568
94ee086557db
(electric-buffer-list): Save point before
Karl Heuer <kwzh@gnu.org>
parents:
11275
diff
changeset
|
87 ;; Use start-point if it is meaningful. |
94ee086557db
(electric-buffer-list): Save point before
Karl Heuer <kwzh@gnu.org>
parents:
11275
diff
changeset
|
88 (goto-char (if (or (< start-point first) |
94ee086557db
(electric-buffer-list): Save point before
Karl Heuer <kwzh@gnu.org>
parents:
11275
diff
changeset
|
89 (> start-point last)) |
94ee086557db
(electric-buffer-list): Save point before
Karl Heuer <kwzh@gnu.org>
parents:
11275
diff
changeset
|
90 first |
94ee086557db
(electric-buffer-list): Save point before
Karl Heuer <kwzh@gnu.org>
parents:
11275
diff
changeset
|
91 start-point)) |
475 | 92 (Electric-command-loop 'electric-buffer-menu-select |
93 nil | |
94 t | |
95 'electric-buffer-menu-looper | |
96 (cons first last)))))) | |
97 (set-buffer buffer) | |
98 (Buffer-menu-mode) | |
99 (bury-buffer buffer) | |
100 (message ""))) | |
101 (if select | |
102 (progn (set-buffer buffer) | |
103 (let ((opoint (point-marker))) | |
104 (Buffer-menu-execute) | |
105 (goto-char (point-min)) | |
106 (if (prog1 (search-forward "\n>" nil t) | |
107 (goto-char opoint) (set-marker opoint nil)) | |
108 (Buffer-menu-select) | |
109 (switch-to-buffer (Buffer-menu-buffer t)))))))) | |
110 | |
111 (defun electric-buffer-menu-looper (state condition) | |
112 (cond ((and condition | |
113 (not (memq (car condition) '(buffer-read-only | |
114 end-of-buffer | |
115 beginning-of-buffer)))) | |
116 (signal (car condition) (cdr condition))) | |
117 ((< (point) (car state)) | |
118 (goto-char (point-min)) | |
50035
af49d6f1e6cc
(electric-buffer-list): Respect `Buffer-menu-use-header-line'.
John Paul Wallington <jpw@pobox.com>
parents:
49588
diff
changeset
|
119 (unless Buffer-menu-use-header-line |
af49d6f1e6cc
(electric-buffer-list): Respect `Buffer-menu-use-header-line'.
John Paul Wallington <jpw@pobox.com>
parents:
49588
diff
changeset
|
120 (forward-line 2))) |
475 | 121 ((> (point) (cdr state)) |
122 (goto-char (point-max)) | |
123 (forward-line -1) | |
124 (if (pos-visible-in-window-p (point-max)) | |
41016
7cbfb84f7362
(electric-buffer-update-highlight): New function.
Richard M. Stallman <rms@gnu.org>
parents:
38928
diff
changeset
|
125 (recenter -1)))) |
7cbfb84f7362
(electric-buffer-update-highlight): New function.
Richard M. Stallman <rms@gnu.org>
parents:
38928
diff
changeset
|
126 (electric-buffer-update-highlight)) |
475 | 127 |
128 (put 'Electric-buffer-menu-mode 'mode-class 'special) | |
129 (defun Electric-buffer-menu-mode () | |
130 "Major mode for editing a list of buffers. | |
131 Each line describes one of the buffers in Emacs. | |
132 Letters do not insert themselves; instead, they are commands. | |
133 \\<electric-buffer-menu-mode-map> | |
134 \\[keyboard-quit] or \\[Electric-buffer-menu-quit] -- exit buffer menu, returning to previous window and buffer | |
135 configuration. If the very first character typed is a space, it | |
136 also has this effect. | |
137 \\[Electric-buffer-menu-select] -- select buffer of line point is on. | |
138 Also show buffers marked with m in other windows, | |
139 deletes buffers marked with \"D\", and saves those marked with \"S\". | |
140 \\[Buffer-menu-mark] -- mark buffer to be displayed. | |
141 \\[Buffer-menu-not-modified] -- clear modified-flag on that buffer. | |
142 \\[Buffer-menu-save] -- mark that buffer to be saved. | |
143 \\[Buffer-menu-delete] or \\[Buffer-menu-delete-backwards] -- mark that buffer to be deleted. | |
144 \\[Buffer-menu-unmark] -- remove all kinds of marks from current line. | |
145 \\[Electric-buffer-menu-mode-view-buffer] -- view buffer, returning when done. | |
146 \\[Buffer-menu-backup-unmark] -- back up a line and remove marks. | |
147 | |
148 \\{electric-buffer-menu-mode-map} | |
149 | |
58120 | 150 Entry to this mode via command `electric-buffer-list' calls the value of |
151 `electric-buffer-menu-mode-hook'." | |
475 | 152 (kill-all-local-variables) |
153 (use-local-map electric-buffer-menu-mode-map) | |
154 (setq mode-name "Electric Buffer Menu") | |
155 (setq mode-line-buffer-identification "Electric Buffer List") | |
156 (make-local-variable 'Helper-return-blurb) | |
157 (setq Helper-return-blurb "return to buffer editing") | |
158 (setq truncate-lines t) | |
159 (setq buffer-read-only t) | |
160 (setq major-mode 'Electric-buffer-menu-mode) | |
161 (goto-char (point-min)) | |
162 (if (search-forward "\n." nil t) (forward-char -1)) | |
163 (run-hooks 'electric-buffer-menu-mode-hook)) | |
164 | |
165 ;; generally the same as Buffer-menu-mode-map | |
166 ;; (except we don't indirect to global-map) | |
167 (put 'Electric-buffer-menu-undefined 'suppress-keymap t) | |
168 (if electric-buffer-menu-mode-map | |
169 nil | |
23007
62da6fd2d526
(electric-buffer-menu-mode-map): Don't wipe out all Meta keys.
Richard M. Stallman <rms@gnu.org>
parents:
21045
diff
changeset
|
170 (let ((map (make-keymap))) |
2397
2b34a2ef4d63
(electric-buffer-menu-mode-map): fillarray isn't a valid operation on maps
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2307
diff
changeset
|
171 (fillarray (car (cdr map)) 'Electric-buffer-menu-undefined) |
23007
62da6fd2d526
(electric-buffer-menu-mode-map): Don't wipe out all Meta keys.
Richard M. Stallman <rms@gnu.org>
parents:
21045
diff
changeset
|
172 (define-key map "\e" nil) |
475 | 173 (define-key map "\C-z" 'suspend-emacs) |
174 (define-key map "v" 'Electric-buffer-menu-mode-view-buffer) | |
918
94b50bbd43c3
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
917
diff
changeset
|
175 (define-key map (char-to-string help-char) 'Helper-help) |
475 | 176 (define-key map "?" 'Helper-describe-bindings) |
177 (define-key map "\C-c" nil) | |
178 (define-key map "\C-c\C-c" 'Electric-buffer-menu-quit) | |
179 (define-key map "\C-]" 'Electric-buffer-menu-quit) | |
180 (define-key map "q" 'Electric-buffer-menu-quit) | |
181 (define-key map " " 'Electric-buffer-menu-select) | |
8122
2fae14e8ae5d
(electric-buffer-list): Change prompt message.
Richard M. Stallman <rms@gnu.org>
parents:
7300
diff
changeset
|
182 (define-key map "\C-m" 'Electric-buffer-menu-select) |
475 | 183 (define-key map "\C-l" 'recenter) |
184 (define-key map "s" 'Buffer-menu-save) | |
185 (define-key map "d" 'Buffer-menu-delete) | |
186 (define-key map "k" 'Buffer-menu-delete) | |
187 (define-key map "\C-d" 'Buffer-menu-delete-backwards) | |
188 ;(define-key map "\C-k" 'Buffer-menu-delete) | |
189 (define-key map "\177" 'Buffer-menu-backup-unmark) | |
190 (define-key map "~" 'Buffer-menu-not-modified) | |
191 (define-key map "u" 'Buffer-menu-unmark) | |
192 (let ((i ?0)) | |
193 (while (<= i ?9) | |
194 (define-key map (char-to-string i) 'digit-argument) | |
195 (define-key map (concat "\e" (char-to-string i)) 'digit-argument) | |
196 (setq i (1+ i)))) | |
197 (define-key map "-" 'negative-argument) | |
198 (define-key map "\e-" 'negative-argument) | |
199 (define-key map "m" 'Buffer-menu-mark) | |
200 (define-key map "\C-u" 'universal-argument) | |
201 (define-key map "\C-p" 'previous-line) | |
202 (define-key map "\C-n" 'next-line) | |
203 (define-key map "p" 'previous-line) | |
204 (define-key map "n" 'next-line) | |
205 (define-key map "\C-v" 'scroll-up) | |
206 (define-key map "\ev" 'scroll-down) | |
207 (define-key map ">" 'scroll-right) | |
208 (define-key map "<" 'scroll-left) | |
209 (define-key map "\e\C-v" 'scroll-other-window) | |
210 (define-key map "\e>" 'end-of-buffer) | |
211 (define-key map "\e<" 'beginning-of-buffer) | |
11275
53f0ebe096f5
(electric-buffer-menu-mode-map): Undefine ESC ESC
Richard M. Stallman <rms@gnu.org>
parents:
10115
diff
changeset
|
212 (define-key map "\e\e" nil) |
10115
e55ee438bd10
(electric-buffer-menu-mode-map):
Richard M. Stallman <rms@gnu.org>
parents:
8122
diff
changeset
|
213 (define-key map "\e\e\e" 'Electric-buffer-menu-quit) |
e55ee438bd10
(electric-buffer-menu-mode-map):
Richard M. Stallman <rms@gnu.org>
parents:
8122
diff
changeset
|
214 (define-key map [escape escape escape] 'Electric-buffer-menu-quit) |
7006
5f1e5be68fcd
(Electric-buffer-menu-mouse-select): New function.
Karl Heuer <kwzh@gnu.org>
parents:
2397
diff
changeset
|
215 (define-key map [mouse-2] 'Electric-buffer-menu-mouse-select) |
475 | 216 (setq electric-buffer-menu-mode-map map))) |
49588
37645a051842
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
41016
diff
changeset
|
217 |
475 | 218 (defun Electric-buffer-menu-exit () |
219 (interactive) | |
2026
3514a9bf50c5
(electric-buffer-list): Handle any kind of event.
Richard M. Stallman <rms@gnu.org>
parents:
1821
diff
changeset
|
220 (setq unread-command-events (listify-key-sequence (this-command-keys))) |
475 | 221 ;; for robustness |
222 (condition-case () | |
223 (throw 'electric-buffer-menu-select nil) | |
224 (error (Buffer-menu-mode) | |
225 (other-buffer)))) | |
226 | |
227 (defun Electric-buffer-menu-select () | |
228 "Leave Electric Buffer Menu, selecting buffers and executing changes. | |
58120 | 229 Save buffers marked \"S\". Delete buffers marked \"K\". |
230 Select buffer at point and display buffers marked \">\" in other windows." | |
475 | 231 (interactive) |
232 (throw 'electric-buffer-menu-select (point))) | |
233 | |
7006
5f1e5be68fcd
(Electric-buffer-menu-mouse-select): New function.
Karl Heuer <kwzh@gnu.org>
parents:
2397
diff
changeset
|
234 (defun Electric-buffer-menu-mouse-select (event) |
5f1e5be68fcd
(Electric-buffer-menu-mouse-select): New function.
Karl Heuer <kwzh@gnu.org>
parents:
2397
diff
changeset
|
235 (interactive "e") |
5f1e5be68fcd
(Electric-buffer-menu-mouse-select): New function.
Karl Heuer <kwzh@gnu.org>
parents:
2397
diff
changeset
|
236 (select-window (posn-window (event-end event))) |
5f1e5be68fcd
(Electric-buffer-menu-mouse-select): New function.
Karl Heuer <kwzh@gnu.org>
parents:
2397
diff
changeset
|
237 (set-buffer (window-buffer (selected-window))) |
5f1e5be68fcd
(Electric-buffer-menu-mouse-select): New function.
Karl Heuer <kwzh@gnu.org>
parents:
2397
diff
changeset
|
238 (goto-char (posn-point (event-end event))) |
5f1e5be68fcd
(Electric-buffer-menu-mouse-select): New function.
Karl Heuer <kwzh@gnu.org>
parents:
2397
diff
changeset
|
239 (throw 'electric-buffer-menu-select (point))) |
5f1e5be68fcd
(Electric-buffer-menu-mouse-select): New function.
Karl Heuer <kwzh@gnu.org>
parents:
2397
diff
changeset
|
240 |
475 | 241 (defun Electric-buffer-menu-quit () |
242 "Leave Electric Buffer Menu, restoring previous window configuration. | |
58120 | 243 Skip execution of select, save, and delete commands." |
475 | 244 (interactive) |
245 (throw 'electric-buffer-menu-select nil)) | |
246 | |
247 (defun Electric-buffer-menu-undefined () | |
248 (interactive) | |
249 (ding) | |
14310
49af6e2bfaa8
(Electric-buffer-menu-undefined): Pass proper format string to message.
Karl Heuer <kwzh@gnu.org>
parents:
14169
diff
changeset
|
250 (message "%s" |
49af6e2bfaa8
(Electric-buffer-menu-undefined): Pass proper format string to message.
Karl Heuer <kwzh@gnu.org>
parents:
14169
diff
changeset
|
251 (if (and (eq (key-binding "\C-c\C-c") 'Electric-buffer-menu-quit) |
475 | 252 (eq (key-binding " ") 'Electric-buffer-menu-select) |
919 | 253 (eq (key-binding (char-to-string help-char)) 'Helper-help) |
475 | 254 (eq (key-binding "?") 'Helper-describe-bindings)) |
916
938f166a0874
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
915
diff
changeset
|
255 (substitute-command-keys "Type C-c C-c to exit, Space to select, \\[Helper-help] for help, ? for commands") |
475 | 256 (substitute-command-keys "\ |
257 Type \\[Electric-buffer-menu-quit] to exit, \ | |
258 \\[Electric-buffer-menu-select] to select, \ | |
259 \\[Helper-help] for help, \\[Helper-describe-bindings] for commands."))) | |
260 (sit-for 4)) | |
261 | |
262 (defun Electric-buffer-menu-mode-view-buffer () | |
263 "View buffer on current line in Electric Buffer Menu. | |
58120 | 264 Return to Electric Buffer Menu when done." |
475 | 265 (interactive) |
266 (let ((bufnam (Buffer-menu-buffer nil))) | |
267 (if bufnam | |
268 (view-buffer bufnam) | |
269 (ding) | |
270 (message "Buffer %s does not exist!" bufnam) | |
271 (sit-for 4)))) | |
272 | |
41016
7cbfb84f7362
(electric-buffer-update-highlight): New function.
Richard M. Stallman <rms@gnu.org>
parents:
38928
diff
changeset
|
273 (defvar electric-buffer-overlay nil) |
7cbfb84f7362
(electric-buffer-update-highlight): New function.
Richard M. Stallman <rms@gnu.org>
parents:
38928
diff
changeset
|
274 (defun electric-buffer-update-highlight () |
50068
9fa70ec97b76
(electric-buffer-update-highlight): Do nothing
John Paul Wallington <jpw@pobox.com>
parents:
50035
diff
changeset
|
275 (when (eq major-mode 'Electric-buffer-menu-mode) |
9fa70ec97b76
(electric-buffer-update-highlight): Do nothing
John Paul Wallington <jpw@pobox.com>
parents:
50035
diff
changeset
|
276 ;; Make sure we have an overlay to use. |
9fa70ec97b76
(electric-buffer-update-highlight): Do nothing
John Paul Wallington <jpw@pobox.com>
parents:
50035
diff
changeset
|
277 (or electric-buffer-overlay |
9fa70ec97b76
(electric-buffer-update-highlight): Do nothing
John Paul Wallington <jpw@pobox.com>
parents:
50035
diff
changeset
|
278 (progn |
9fa70ec97b76
(electric-buffer-update-highlight): Do nothing
John Paul Wallington <jpw@pobox.com>
parents:
50035
diff
changeset
|
279 (make-local-variable 'electric-buffer-overlay) |
9fa70ec97b76
(electric-buffer-update-highlight): Do nothing
John Paul Wallington <jpw@pobox.com>
parents:
50035
diff
changeset
|
280 (setq electric-buffer-overlay (make-overlay (point) (point))))) |
9fa70ec97b76
(electric-buffer-update-highlight): Do nothing
John Paul Wallington <jpw@pobox.com>
parents:
50035
diff
changeset
|
281 (move-overlay electric-buffer-overlay |
9fa70ec97b76
(electric-buffer-update-highlight): Do nothing
John Paul Wallington <jpw@pobox.com>
parents:
50035
diff
changeset
|
282 (save-excursion (beginning-of-line) (point)) |
9fa70ec97b76
(electric-buffer-update-highlight): Do nothing
John Paul Wallington <jpw@pobox.com>
parents:
50035
diff
changeset
|
283 (save-excursion (end-of-line) (point))) |
9fa70ec97b76
(electric-buffer-update-highlight): Do nothing
John Paul Wallington <jpw@pobox.com>
parents:
50035
diff
changeset
|
284 (overlay-put electric-buffer-overlay 'face 'highlight))) |
41016
7cbfb84f7362
(electric-buffer-update-highlight): New function.
Richard M. Stallman <rms@gnu.org>
parents:
38928
diff
changeset
|
285 |
18383 | 286 (provide 'ebuff-menu) |
287 | |
52401 | 288 ;;; arch-tag: 1d4509b3-eece-4d4f-95ea-77c83eaf0275 |
662
8a533acedb77
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
475
diff
changeset
|
289 ;;; ebuff-menu.el ends here |