diff options
| author | Gerd Moellmann | 2001-01-25 17:13:08 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-01-25 17:13:08 +0000 |
| commit | ceba0dac027f80cd8fbf18ac3f25117ae1d4f087 (patch) | |
| tree | 623b0c1935af44225bed3fddf60fd8316b45f4f2 | |
| parent | 9b0630e57ef02f4919c2edfaa1b1910442d088ea (diff) | |
| download | emacs-ceba0dac027f80cd8fbf18ac3f25117ae1d4f087.tar.gz emacs-ceba0dac027f80cd8fbf18ac3f25117ae1d4f087.zip | |
(iswitchb-make-buflist): When nconc'ing lists, don't
discard the result.
(iswitchb-to-end): Likewise.
| -rw-r--r-- | lisp/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/iswitchb.el | 33 |
2 files changed, 25 insertions, 18 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 65220e45a21..d2ba882f54a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2001-01-25 Gerd Moellmann <gerd@gnu.org> | ||
| 2 | |||
| 3 | * iswitchb.el (iswitchb-make-buflist): When nconc'ing lists, don't | ||
| 4 | discard the result. | ||
| 5 | (iswitchb-to-end): Likewise. | ||
| 6 | |||
| 1 | 2001-01-25 Sam Steingold <sds@gnu.org> | 7 | 2001-01-25 Sam Steingold <sds@gnu.org> |
| 2 | 8 | ||
| 3 | * vc-cvs.el (vc-cvs-mode-line-string): Doc & comment fix. | 9 | * vc-cvs.el (vc-cvs-mode-line-string): Doc & comment fix. |
| @@ -38,8 +44,8 @@ | |||
| 38 | (dired-sort-toggle): Use `replace-regexps-in-string' | 44 | (dired-sort-toggle): Use `replace-regexps-in-string' |
| 39 | instead of `dired-replace-in-string'. | 45 | instead of `dired-replace-in-string'. |
| 40 | 46 | ||
| 41 | * dired-aux.el (dired-shell-stuff-it, dired-rename-subdir, | 47 | * dired-aux.el (dired-shell-stuff-it, dired-rename-subdir) |
| 42 | dired-rename-subdir-2, dired-insert-subdir-doinsert): Ditto. | 48 | (dired-rename-subdir-2, dired-insert-subdir-doinsert): Ditto. |
| 43 | 49 | ||
| 44 | * gs.el (gs-replace-in-string): Removed. | 50 | * gs.el (gs-replace-in-string): Removed. |
| 45 | (gs-options): Use `replace-regexps-in-string' | 51 | (gs-options): Use `replace-regexps-in-string' |
diff --git a/lisp/iswitchb.el b/lisp/iswitchb.el index 65b01948702..4e329f8c4a9 100644 --- a/lisp/iswitchb.el +++ b/lisp/iswitchb.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; iswitchb.el --- switch between buffers using substrings | 1 | ;;; iswitchb.el --- switch between buffers using substrings |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1996, 1997, 2000 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1996, 1997, 2000, 2001 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Stephen Eglen <stephen@anc.ed.ac.uk> | 5 | ;; Author: Stephen Eglen <stephen@anc.ed.ac.uk> |
| 6 | ;; Maintainer: Stephen Eglen <stephen@anc.ed.ac.uk> | 6 | ;; Maintainer: Stephen Eglen <stephen@anc.ed.ac.uk> |
| @@ -741,21 +741,22 @@ in this list. If DEFAULT is non-nil, and corresponds to an existing buffer, | |||
| 741 | it is put to the start of the list." | 741 | it is put to the start of the list." |
| 742 | (setq iswitchb-buflist | 742 | (setq iswitchb-buflist |
| 743 | (let* ((iswitchb-current-buffers (iswitchb-get-buffers-in-frames)) | 743 | (let* ((iswitchb-current-buffers (iswitchb-get-buffers-in-frames)) |
| 744 | (iswitchb-temp-buflist | 744 | (iswitchb-temp-buflist |
| 745 | (delq nil | 745 | (delq nil |
| 746 | (mapcar | 746 | (mapcar |
| 747 | (lambda (x) | 747 | (lambda (x) |
| 748 | (let ((b-name (buffer-name x))) | 748 | (let ((b-name (buffer-name x))) |
| 749 | (if (not | 749 | (if (not |
| 750 | (or | 750 | (or |
| 751 | (iswitchb-ignore-buffername-p b-name) | 751 | (iswitchb-ignore-buffername-p b-name) |
| 752 | (memq b-name iswitchb-current-buffers))) | 752 | (memq b-name iswitchb-current-buffers))) |
| 753 | b-name))) | 753 | b-name))) |
| 754 | (buffer-list (and iswitchb-use-frame-buffer-list | 754 | (buffer-list (and iswitchb-use-frame-buffer-list |
| 755 | (selected-frame))))))) | 755 | (selected-frame))))))) |
| 756 | (nconc iswitchb-temp-buflist iswitchb-current-buffers) | 756 | (setq iswitchb-temp-buflist |
| 757 | (nconc iswitchb-temp-buflist iswitchb-current-buffers)) | ||
| 757 | (run-hooks 'iswitchb-make-buflist-hook) | 758 | (run-hooks 'iswitchb-make-buflist-hook) |
| 758 | ;; Should this be after the hooks, or should the hooks be the | 759 | ;; Should this be after the hooks, or should the hooks be the |
| 759 | ;; final thing to be run? | 760 | ;; final thing to be run? |
| 760 | (if default | 761 | (if default |
| 761 | (progn | 762 | (progn |
| @@ -771,7 +772,7 @@ it is put to the start of the list." | |||
| 771 | (lambda (elem) | 772 | (lambda (elem) |
| 772 | (setq iswitchb-temp-buflist (delq elem iswitchb-temp-buflist))) | 773 | (setq iswitchb-temp-buflist (delq elem iswitchb-temp-buflist))) |
| 773 | lst) | 774 | lst) |
| 774 | (nconc iswitchb-temp-buflist lst)) | 775 | (setq iswitchb-temp-buflist (nconc iswitchb-temp-buflist lst))) |
| 775 | 776 | ||
| 776 | (defun iswitchb-get-buffers-in-frames (&optional current) | 777 | (defun iswitchb-get-buffers-in-frames (&optional current) |
| 777 | "Return the list of buffers that are visible in the current frame. | 778 | "Return the list of buffers that are visible in the current frame. |