2021-03-30 23:23:29 +00:00
|
|
|
;;; ebuff-menu.el --- electric-buffer-list mode -*- lexical-binding: t -*-
|
1992-05-30 23:54:21 +00:00
|
|
|
|
2024-01-02 01:47:10 +00:00
|
|
|
;; Copyright (C) 1985-1986, 1994, 2001-2024 Free Software Foundation,
|
2013-01-01 09:11:05 +00:00
|
|
|
;; Inc.
|
1991-12-21 09:29:41 +00:00
|
|
|
|
1992-07-22 04:22:42 +00:00
|
|
|
;; Author: Richard Mlynarik <mly@ai.mit.edu>
|
2019-05-25 20:43:06 +00:00
|
|
|
;; Maintainer: emacs-devel@gnu.org
|
2000-09-12 12:37:36 +00:00
|
|
|
;; Keywords: convenience
|
1992-07-22 04:22:42 +00:00
|
|
|
|
1991-12-21 09:29:41 +00:00
|
|
|
;; This file is part of GNU Emacs.
|
|
|
|
|
2008-05-06 08:06:51 +00:00
|
|
|
;; GNU Emacs is free software: you can redistribute it and/or modify
|
1991-12-21 09:29:41 +00:00
|
|
|
;; it under the terms of the GNU General Public License as published by
|
2008-05-06 08:06:51 +00:00
|
|
|
;; the Free Software Foundation, either version 3 of the License, or
|
|
|
|
;; (at your option) any later version.
|
1991-12-21 09:29:41 +00:00
|
|
|
|
|
|
|
;; GNU Emacs is distributed in the hope that it will be useful,
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;; GNU General Public License for more details.
|
|
|
|
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
2017-09-13 22:52:52 +00:00
|
|
|
;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
|
1991-12-21 09:29:41 +00:00
|
|
|
|
1992-07-16 21:47:34 +00:00
|
|
|
;;; Commentary:
|
|
|
|
|
1993-03-22 03:27:18 +00:00
|
|
|
;; Who says one can't have typeout windows in GNU Emacs? The entry
|
|
|
|
;; point, `electric-buffer-list' works like ^r select buffer from the
|
|
|
|
;; ITS Emacs lunar or tmacs libraries.
|
1992-07-16 21:47:34 +00:00
|
|
|
|
|
|
|
;;; Code:
|
1991-12-21 09:29:41 +00:00
|
|
|
|
|
|
|
(require 'electric)
|
|
|
|
|
2011-03-12 02:49:29 +00:00
|
|
|
(defvar electric-buffer-menu-mode-map
|
|
|
|
(let ((map (make-keymap)))
|
2021-03-30 23:23:29 +00:00
|
|
|
(fillarray (car (cdr map)) #'Electric-buffer-menu-undefined)
|
2011-03-12 02:49:29 +00:00
|
|
|
(define-key map "\e" nil)
|
2021-03-30 23:23:29 +00:00
|
|
|
(define-key map "\C-z" #'suspend-frame)
|
|
|
|
(define-key map "v" #'Electric-buffer-menu-mode-view-buffer)
|
|
|
|
(define-key map (char-to-string help-char) #'Helper-help)
|
|
|
|
(define-key map "?" #'Helper-describe-bindings)
|
2011-03-12 02:49:29 +00:00
|
|
|
(define-key map "\C-c" nil)
|
2021-03-30 23:23:29 +00:00
|
|
|
(define-key map "\C-c\C-c" #'Electric-buffer-menu-quit)
|
|
|
|
(define-key map "\C-]" #'Electric-buffer-menu-quit)
|
|
|
|
(define-key map "q" #'Electric-buffer-menu-quit)
|
|
|
|
(define-key map " " #'Electric-buffer-menu-select)
|
|
|
|
(define-key map "\C-m" #'Electric-buffer-menu-select)
|
|
|
|
(define-key map "\C-l" #'recenter)
|
|
|
|
(define-key map "s" #'Buffer-menu-save)
|
2022-01-24 16:22:49 +00:00
|
|
|
(define-key map "S" #'tabulated-list-sort)
|
2021-03-30 23:23:29 +00:00
|
|
|
(define-key map "d" #'Buffer-menu-delete)
|
|
|
|
(define-key map "k" #'Buffer-menu-delete)
|
|
|
|
(define-key map "\C-d" #'Buffer-menu-delete-backwards)
|
|
|
|
;; (define-key map "\C-k" #'Buffer-menu-delete)
|
|
|
|
(define-key map "\177" #'Buffer-menu-backup-unmark)
|
|
|
|
(define-key map "~" #'Buffer-menu-not-modified)
|
|
|
|
(define-key map "u" #'Buffer-menu-unmark)
|
|
|
|
(define-key map "\M-\177" #'Buffer-menu-unmark-all-buffers)
|
|
|
|
(define-key map "U" #'Buffer-menu-unmark-all)
|
|
|
|
(dotimes (i 10)
|
|
|
|
(define-key map (char-to-string i) #'digit-argument)
|
|
|
|
(define-key map (concat "\e" (char-to-string i)) #'digit-argument))
|
|
|
|
(define-key map "-" #'negative-argument)
|
|
|
|
(define-key map "\e-" #'negative-argument)
|
|
|
|
(define-key map "m" #'Buffer-menu-mark)
|
|
|
|
(define-key map "\C-u" #'universal-argument)
|
|
|
|
(define-key map "\C-p" #'previous-line)
|
|
|
|
(define-key map "\C-n" #'next-line)
|
|
|
|
(define-key map "p" #'previous-line)
|
|
|
|
(define-key map "n" #'next-line)
|
|
|
|
(define-key map "\C-v" #'scroll-up-command)
|
|
|
|
(define-key map "\ev" #'scroll-down-command)
|
|
|
|
(define-key map ">" #'scroll-right)
|
|
|
|
(define-key map "<" #'scroll-left)
|
|
|
|
(define-key map "\e\C-v" #'scroll-other-window)
|
|
|
|
(define-key map "\e>" #'end-of-buffer)
|
|
|
|
(define-key map "\e<" #'beginning-of-buffer)
|
2011-03-12 02:49:29 +00:00
|
|
|
(define-key map "\e\e" nil)
|
2021-03-30 23:23:29 +00:00
|
|
|
(define-key map "\e\e\e" #'Electric-buffer-menu-quit)
|
2011-03-12 02:49:29 +00:00
|
|
|
;; This binding prevents the "escape => ESC" function-key-map mapping from
|
|
|
|
;; kicking in!
|
2021-03-30 23:23:29 +00:00
|
|
|
;; (define-key map [escape escape escape] #'Electric-buffer-menu-quit)
|
|
|
|
(define-key map [mouse-2] #'Electric-buffer-menu-mouse-select)
|
2011-03-12 02:49:29 +00:00
|
|
|
map))
|
1991-12-21 09:29:41 +00:00
|
|
|
|
2012-05-06 08:43:46 +00:00
|
|
|
(put 'Electric-buffer-menu-quit :advertised-binding "\C-c\C-c")
|
|
|
|
(put 'Electric-buffer-menu-select :advertised-binding " ")
|
|
|
|
(put 'Helper-help :advertised-binding (char-to-string help-char))
|
|
|
|
(put 'Helper-describe-bindings :advertised-binding "?")
|
|
|
|
|
2004-11-10 10:45:59 +00:00
|
|
|
(defvar electric-buffer-menu-mode-hook nil
|
2012-05-13 14:23:45 +00:00
|
|
|
"Normal hook run by `electric-buffer-menu-mode'.")
|
2004-11-10 10:45:59 +00:00
|
|
|
|
1991-12-21 09:29:41 +00:00
|
|
|
;;;###autoload
|
|
|
|
(defun electric-buffer-list (arg)
|
2012-05-13 14:23:45 +00:00
|
|
|
"Pop up the Buffer Menu in an \"electric\" window.
|
|
|
|
If you type SPC or RET (`Electric-buffer-menu-select'), that
|
|
|
|
selects the buffer at point and quits the \"electric\" window.
|
|
|
|
Otherwise, you can move around in the Buffer Menu, marking
|
|
|
|
buffers to be selected, saved or deleted; these other commands
|
|
|
|
are much like those of `Buffer-menu-mode'.
|
1991-12-21 09:29:41 +00:00
|
|
|
|
2004-11-10 10:45:59 +00:00
|
|
|
Run hooks in `electric-buffer-menu-mode-hook' on entry.
|
1991-12-21 09:29:41 +00:00
|
|
|
|
2012-05-13 14:23:45 +00:00
|
|
|
\\<electric-buffer-menu-mode-map>
|
|
|
|
\\[keyboard-quit] or \\[Electric-buffer-menu-quit] -- exit buffer menu, returning to previous window and buffer
|
|
|
|
configuration. If the very first character typed is a space, it
|
|
|
|
also has this effect.
|
|
|
|
\\[Electric-buffer-menu-select] -- select buffer of line point is on.
|
|
|
|
Also show buffers marked with m in other windows,
|
|
|
|
deletes buffers marked with \"D\", and saves those marked with \"S\".
|
|
|
|
\\[Buffer-menu-mark] -- mark buffer to be displayed.
|
|
|
|
\\[Buffer-menu-not-modified] -- clear modified-flag on that buffer.
|
|
|
|
\\[Buffer-menu-save] -- mark that buffer to be saved.
|
|
|
|
\\[Buffer-menu-delete] or \\[Buffer-menu-delete-backwards] -- mark that buffer to be deleted.
|
|
|
|
\\[Buffer-menu-unmark] -- remove all kinds of marks from current line.
|
2016-11-22 06:23:50 +00:00
|
|
|
\\[Buffer-menu-unmark-all] -- remove all kinds of marks from all lines.
|
2012-05-13 14:23:45 +00:00
|
|
|
\\[Electric-buffer-menu-mode-view-buffer] -- view buffer, returning when done.
|
|
|
|
\\[Buffer-menu-backup-unmark] -- back up a line and remove marks."
|
1991-12-21 09:29:41 +00:00
|
|
|
(interactive "P")
|
|
|
|
(let (select buffer)
|
|
|
|
(save-window-excursion
|
2001-08-23 22:17:34 +00:00
|
|
|
(setq buffer (list-buffers-noselect arg))
|
|
|
|
(Electric-pop-up-window buffer)
|
1991-12-21 09:29:41 +00:00
|
|
|
(unwind-protect
|
2012-06-09 14:33:44 +00:00
|
|
|
(let ((header header-line-format))
|
1991-12-21 09:29:41 +00:00
|
|
|
(set-buffer buffer)
|
2012-05-13 14:23:45 +00:00
|
|
|
(electric-buffer-menu-mode)
|
2012-06-09 14:33:44 +00:00
|
|
|
(setq header-line-format header)
|
2012-05-13 14:23:45 +00:00
|
|
|
(goto-char (point-min))
|
|
|
|
(if (search-forward "\n." nil t)
|
|
|
|
(forward-char -1))
|
2001-11-13 17:29:40 +00:00
|
|
|
(electric-buffer-update-highlight)
|
1991-12-21 09:29:41 +00:00
|
|
|
(setq select
|
|
|
|
(catch 'electric-buffer-menu-select
|
2012-05-13 14:23:45 +00:00
|
|
|
(message "<<< Type SPC or RET to bury the buffer list >>>")
|
2015-07-25 16:54:42 +00:00
|
|
|
(push (read-event) unread-command-events)
|
1995-07-17 23:09:48 +00:00
|
|
|
(let ((start-point (point))
|
|
|
|
(first (progn (goto-char (point-min))
|
2003-03-06 10:52:39 +00:00
|
|
|
(unless Buffer-menu-use-header-line
|
|
|
|
(forward-line 2))
|
1991-12-21 09:29:41 +00:00
|
|
|
(point)))
|
|
|
|
(last (progn (goto-char (point-max))
|
|
|
|
(forward-line -1)
|
|
|
|
(point)))
|
|
|
|
(goal-column 0))
|
1995-07-17 23:09:48 +00:00
|
|
|
;; Use start-point if it is meaningful.
|
|
|
|
(goto-char (if (or (< start-point first)
|
|
|
|
(> start-point last))
|
|
|
|
first
|
|
|
|
start-point))
|
1991-12-21 09:29:41 +00:00
|
|
|
(Electric-command-loop 'electric-buffer-menu-select
|
|
|
|
nil
|
|
|
|
t
|
|
|
|
'electric-buffer-menu-looper
|
|
|
|
(cons first last))))))
|
|
|
|
(set-buffer buffer)
|
|
|
|
(Buffer-menu-mode)
|
2010-05-08 00:20:30 +00:00
|
|
|
(bury-buffer) ;Get rid of window, if dedicated.
|
1991-12-21 09:29:41 +00:00
|
|
|
(message "")))
|
2012-05-13 14:23:45 +00:00
|
|
|
(when select
|
|
|
|
(set-buffer buffer)
|
2020-10-02 06:07:53 +00:00
|
|
|
(goto-char select)
|
2012-05-13 14:23:45 +00:00
|
|
|
(let ((opoint (point-marker)))
|
|
|
|
(Buffer-menu-execute)
|
|
|
|
(goto-char (point-min))
|
|
|
|
(if (prog1 (search-forward "\n>" nil t)
|
|
|
|
(goto-char opoint)
|
|
|
|
(set-marker opoint nil))
|
|
|
|
(Buffer-menu-select)
|
|
|
|
(switch-to-buffer (Buffer-menu-buffer t)))))))
|
1991-12-21 09:29:41 +00:00
|
|
|
|
|
|
|
(defun electric-buffer-menu-looper (state condition)
|
|
|
|
(cond ((and condition
|
|
|
|
(not (memq (car condition) '(buffer-read-only
|
|
|
|
end-of-buffer
|
|
|
|
beginning-of-buffer))))
|
|
|
|
(signal (car condition) (cdr condition)))
|
|
|
|
((< (point) (car state))
|
|
|
|
(goto-char (point-min))
|
2003-03-06 10:52:39 +00:00
|
|
|
(unless Buffer-menu-use-header-line
|
|
|
|
(forward-line 2)))
|
1991-12-21 09:29:41 +00:00
|
|
|
((> (point) (cdr state))
|
|
|
|
(goto-char (point-max))
|
|
|
|
(forward-line -1)
|
|
|
|
(if (pos-visible-in-window-p (point-max))
|
2001-11-13 17:29:40 +00:00
|
|
|
(recenter -1))))
|
|
|
|
(electric-buffer-update-highlight))
|
1991-12-21 09:29:41 +00:00
|
|
|
|
2005-08-09 02:53:39 +00:00
|
|
|
(defvar Helper-return-blurb)
|
|
|
|
|
2012-05-13 14:23:45 +00:00
|
|
|
(define-derived-mode electric-buffer-menu-mode Buffer-menu-mode
|
|
|
|
"Electric Buffer Menu"
|
|
|
|
"Toggle Electric Buffer Menu mode in this buffer.
|
|
|
|
With a prefix argument ARG, enable Long Lines mode if ARG is
|
|
|
|
positive, and disable it otherwise. If called from Lisp, enable
|
|
|
|
the mode if ARG is omitted or nil.
|
1991-12-21 09:29:41 +00:00
|
|
|
|
2012-05-13 14:23:45 +00:00
|
|
|
Electric Buffer Menu mode is a minor mode which is automatically
|
|
|
|
enabled and disabled by the \\[electric-buffer-list] command.
|
|
|
|
See the documentation of `electric-buffer-list' for details."
|
1991-12-21 09:29:41 +00:00
|
|
|
(setq mode-line-buffer-identification "Electric Buffer List")
|
2020-12-09 08:44:38 +00:00
|
|
|
(setq-local Helper-return-blurb "return to buffer editing"))
|
2012-05-13 14:23:45 +00:00
|
|
|
|
1991-12-21 09:29:41 +00:00
|
|
|
;; generally the same as Buffer-menu-mode-map
|
|
|
|
;; (except we don't indirect to global-map)
|
|
|
|
(put 'Electric-buffer-menu-undefined 'suppress-keymap t)
|
2011-03-12 02:49:29 +00:00
|
|
|
|
1991-12-21 09:29:41 +00:00
|
|
|
(defun Electric-buffer-menu-exit ()
|
|
|
|
(interactive)
|
2015-07-25 16:54:42 +00:00
|
|
|
(setq unread-command-events
|
|
|
|
(nconc (listify-key-sequence (this-command-keys))
|
|
|
|
unread-command-events))
|
1991-12-21 09:29:41 +00:00
|
|
|
;; for robustness
|
|
|
|
(condition-case ()
|
|
|
|
(throw 'electric-buffer-menu-select nil)
|
|
|
|
(error (Buffer-menu-mode)
|
|
|
|
(other-buffer))))
|
|
|
|
|
|
|
|
(defun Electric-buffer-menu-select ()
|
|
|
|
"Leave Electric Buffer Menu, selecting buffers and executing changes.
|
2004-11-10 10:45:59 +00:00
|
|
|
Save buffers marked \"S\". Delete buffers marked \"K\".
|
|
|
|
Select buffer at point and display buffers marked \">\" in other windows."
|
1991-12-21 09:29:41 +00:00
|
|
|
(interactive)
|
|
|
|
(throw 'electric-buffer-menu-select (point)))
|
|
|
|
|
1994-04-21 14:39:40 +00:00
|
|
|
(defun Electric-buffer-menu-mouse-select (event)
|
|
|
|
(interactive "e")
|
|
|
|
(select-window (posn-window (event-end event)))
|
Do not call to `selected-window' where it is assumed by default.
Affected functions are `window-minibuffer-p', `window-dedicated-p',
`window-hscroll', `window-width', `window-height', `window-buffer',
`window-frame', `window-start', `window-point', `next-window'
and `window-display-table'.
* abbrev.el (abbrev--default-expand):
* bs.el (bs--show-with-configuration):
* buff-menu.el (Buffer-menu-mouse-select):
* calc/calc.el (calc):
* calendar/calendar.el (calendar-generate-window):
* calendar/diary-lib.el (diary-simple-display, diary-show-all-entries)
(diary-make-entry):
* comint.el (send-invisible, comint-dynamic-complete-filename)
(comint-dynamic-simple-complete, comint-dynamic-list-completions):
* completion.el (complete):
* dabbrev.el (dabbrev-expand, dabbrev--make-friend-buffer-list):
* disp-table.el (describe-current-display-table):
* doc-view.el (doc-view-insert-image):
* ebuff-menu.el (Electric-buffer-menu-mouse-select):
* ehelp.el (with-electric-help):
* emacs-lisp/easy-mmode.el (easy-mmode-define-navigation):
* emacs-lisp/edebug.el (edebug-two-window-p, edebug-pop-to-buffer):
* emacs-lisp/helper.el (Helper-help-scroller):
* emulation/cua-base.el (cua--post-command-handler-1):
* eshell/esh-mode.el (eshell-output-filter):
* ffap.el (ffap-gnus-wrapper):
* help-macro.el (make-help-screen):
* hilit-chg.el (highlight-compare-buffers):
* hippie-exp.el (hippie-expand, try-expand-dabbrev-visible):
* hl-line.el (global-hl-line-highlight):
* icomplete.el (icomplete-simple-completing-p):
* isearch.el (isearch-done):
* jit-lock.el (jit-lock-stealth-fontify):
* mail/rmailsum.el (rmail-summary-scroll-msg-up):
* lisp/mouse-drag.el (mouse-drag-should-do-col-scrolling):
* mpc.el (mpc-tagbrowser, mpc):
* net/rcirc.el (rcirc-any-buffer):
* play/gomoku.el (gomoku-max-width, gomoku-max-height):
* play/landmark.el (landmark-max-width, landmark-max-height):
* play/zone.el (zone):
* progmodes/compile.el (compilation-goto-locus):
* progmodes/ebrowse.el (ebrowse-view/find-file-and-search-pattern):
* progmodes/etags.el (find-tag-other-window):
* progmodes/fortran.el (fortran-column-ruler):
* progmodes/gdb-mi.el (gdb-mouse-toggle-breakpoint-fringe):
* progmodes/verilog-mode.el (verilog-point-text):
* reposition.el (reposition-window):
* rot13.el (toggle-rot13-mode):
* server.el (server-switch-buffer):
* shell.el (shell-dynamic-complete-command)
(shell-dynamic-complete-environment-variable):
* simple.el (insert-buffer, set-selective-display)
(delete-completion-window):
* speedbar.el (speedbar-timer-fn, speedbar-center-buffer-smartly)
(speedbar-recenter):
* startup.el (fancy-splash-head):
* textmodes/ispell.el (ispell-command-loop):
* textmodes/makeinfo.el (makeinfo-compilation-sentinel-region):
* tutorial.el (help-with-tutorial):
* vc/add-log.el (add-change-log-entry):
* vc/compare-w.el (compare-windows):
* vc/ediff-help.el (ediff-indent-help-message):
* vc/ediff-util.el (ediff-setup-control-buffer, ediff-position-region):
* vc/ediff-wind.el (ediff-skip-unsuitable-frames)
(ediff-setup-control-frame):
* vc/emerge.el (emerge-position-region):
* vc/pcvs-util.el (cvs-bury-buffer):
* window.el (walk-windows, mouse-autoselect-window-select):
* winner.el (winner-set-conf, winner-undo): Related users changed.
2013-08-05 14:26:57 +00:00
|
|
|
(set-buffer (window-buffer))
|
1994-04-21 14:39:40 +00:00
|
|
|
(goto-char (posn-point (event-end event)))
|
|
|
|
(throw 'electric-buffer-menu-select (point)))
|
|
|
|
|
1991-12-21 09:29:41 +00:00
|
|
|
(defun Electric-buffer-menu-quit ()
|
|
|
|
"Leave Electric Buffer Menu, restoring previous window configuration.
|
2004-11-10 10:45:59 +00:00
|
|
|
Skip execution of select, save, and delete commands."
|
1991-12-21 09:29:41 +00:00
|
|
|
(interactive)
|
|
|
|
(throw 'electric-buffer-menu-select nil))
|
|
|
|
|
|
|
|
(defun Electric-buffer-menu-undefined ()
|
|
|
|
(interactive)
|
|
|
|
(ding)
|
1996-01-25 00:53:08 +00:00
|
|
|
(message "%s"
|
2012-05-06 08:43:46 +00:00
|
|
|
(substitute-command-keys "\
|
1991-12-21 09:29:41 +00:00
|
|
|
Type \\[Electric-buffer-menu-quit] to exit, \
|
|
|
|
\\[Electric-buffer-menu-select] to select, \
|
2012-05-06 08:43:46 +00:00
|
|
|
\\[Helper-help] for help, \\[Helper-describe-bindings] for commands."))
|
1991-12-21 09:29:41 +00:00
|
|
|
(sit-for 4))
|
|
|
|
|
|
|
|
(defun Electric-buffer-menu-mode-view-buffer ()
|
|
|
|
"View buffer on current line in Electric Buffer Menu.
|
2004-11-10 10:45:59 +00:00
|
|
|
Return to Electric Buffer Menu when done."
|
1991-12-21 09:29:41 +00:00
|
|
|
(interactive)
|
|
|
|
(let ((bufnam (Buffer-menu-buffer nil)))
|
|
|
|
(if bufnam
|
|
|
|
(view-buffer bufnam)
|
|
|
|
(ding)
|
|
|
|
(message "Buffer %s does not exist!" bufnam)
|
|
|
|
(sit-for 4))))
|
|
|
|
|
2001-11-13 17:29:40 +00:00
|
|
|
(defvar electric-buffer-overlay nil)
|
2012-05-13 14:23:45 +00:00
|
|
|
|
2001-11-13 17:29:40 +00:00
|
|
|
(defun electric-buffer-update-highlight ()
|
2012-05-13 14:23:45 +00:00
|
|
|
(when (derived-mode-p 'electric-buffer-menu-mode)
|
2003-03-10 03:06:13 +00:00
|
|
|
;; Make sure we have an overlay to use.
|
|
|
|
(or electric-buffer-overlay
|
2020-12-09 08:44:38 +00:00
|
|
|
(setq-local electric-buffer-overlay
|
|
|
|
(make-overlay (point) (point))))
|
2003-03-10 03:06:13 +00:00
|
|
|
(move-overlay electric-buffer-overlay
|
Use line-end-position rather than end-of-line, etc.
* textmodes/texnfo-upd.el (texinfo-start-menu-description)
(texinfo-update-menu-region-beginning, texinfo-menu-first-node)
(texinfo-delete-existing-pointers, texinfo-find-pointer)
(texinfo-clean-up-node-line, texinfo-insert-node-lines)
(texinfo-multiple-files-update):
* textmodes/table.el (table--probe-cell-left-up)
(table--probe-cell-right-bottom):
* textmodes/picture.el (picture-tab-search):
* textmodes/page-ext.el (pages-copy-header-and-position)
(pages-directory-for-addresses):
* progmodes/vera-mode.el (vera-get-offset):
* progmodes/simula.el (simula-calculate-indent):
* progmodes/python.el (python-pdbtrack-overlay-arrow):
* progmodes/prolog.el (end-of-prolog-clause):
* progmodes/perl-mode.el (perl-calculate-indent, perl-indent-exp):
* progmodes/icon.el (indent-icon-exp):
* progmodes/etags.el (tag-re-match-p):
* progmodes/ebrowse.el (ebrowse-show-file-name-at-point):
* progmodes/ebnf2ps.el (ebnf-begin-file):
* progmodes/dcl-mode.el (dcl-back-to-indentation-1)
(dcl-save-local-variable):
* play/life.el (life-setup):
* play/gametree.el (gametree-looking-at-ply):
* nxml/nxml-maint.el (nxml-insert-target-repertoire-glyph-set):
* mail/sendmail.el (mail-mode-auto-fill):
* emacs-lisp/lisp-mode.el (calculate-lisp-indent):
* emacs-lisp/edebug.el (edebug-overlay-arrow):
* emacs-lisp/checkdoc.el (checkdoc-this-string-valid):
* woman.el (woman-parse-numeric-value, woman2-TH, woman2-SH)
(woman-tab-to-tab-stop, WoMan-warn-ignored):
* type-break.el (type-break-file-keystroke-count):
* term.el (term-replace-by-expanded-history-before-point)
(term-skip-prompt, term-extract-string):
* speedbar.el (speedbar-edit-line, speedbar-expand-line)
(speedbar-contract-line, speedbar-toggle-line-expansion)
(speedbar-parse-c-or-c++tag, speedbar-parse-tex-string)
(speedbar-buffer-revert-buffer, speedbar-highlight-one-tag-line):
* sort.el (sort-skip-fields):
* skeleton.el (skeleton-internal-list):
* simple.el (line-move-finish, line-move-to-column):
* shell.el (shell-forward-command):
* misc.el (copy-from-above-command):
* makesum.el (double-column):
* ebuff-menu.el (electric-buffer-update-highlight):
* dired.el (dired-move-to-end-of-filename):
* dframe.el (dframe-popup-kludge):
* bookmark.el (bookmark-kill-line, bookmark-bmenu-show-filenames):
* arc-mode.el (archive-get-lineno):
Use line-end-position and line-beginning-position.
* net/ange-ftp.el, progmodes/hideif.el, reposition.el:
Same, but only in comments.
2010-11-06 20:23:42 +00:00
|
|
|
(line-beginning-position)
|
|
|
|
(line-end-position))
|
2003-03-10 03:06:13 +00:00
|
|
|
(overlay-put electric-buffer-overlay 'face 'highlight)))
|
2001-11-13 17:29:40 +00:00
|
|
|
|
1997-06-22 18:57:55 +00:00
|
|
|
(provide 'ebuff-menu)
|
|
|
|
|
1992-05-30 23:54:21 +00:00
|
|
|
;;; ebuff-menu.el ends here
|