diff options
author | Gerd Moellmann <gerd@gnu.org> | 2000-07-03 09:13:06 +0000 |
---|---|---|
committer | Gerd Moellmann <gerd@gnu.org> | 2000-07-03 09:13:06 +0000 |
commit | f9cc39a188d4259f251bb654352bd1750b2d18f8 (patch) | |
tree | 6b3339d424d078059322eeaaa74531158842dc5f /lisp/dabbrev.el | |
parent | 7c0d9b8972c204c1601944c3042a9646dacd6de5 (diff) | |
download | emacs-f9cc39a188d4259f251bb654352bd1750b2d18f8.tar.gz |
(dabbrev--find-expansion): Use walk-windows instead
of cycling through windows with next-window.
Diffstat (limited to 'lisp/dabbrev.el')
-rw-r--r-- | lisp/dabbrev.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/dabbrev.el b/lisp/dabbrev.el index b14a97bb64b..542f657fceb 100644 --- a/lisp/dabbrev.el +++ b/lisp/dabbrev.el @@ -788,12 +788,12 @@ See also `dabbrev-abbrev-char-regexp' and \\[dabbrev-completion]." ;; Move buffers that are visible on the screen ;; to the front of the list. Remove the current buffer. (when dabbrev--friend-buffer-list - (let ((w (next-window (selected-window)))) - (while (not (eq w (selected-window))) - (setq dabbrev--friend-buffer-list - (cons (window-buffer w) - (delq (window-buffer w) dabbrev--friend-buffer-list))) - (setq w (next-window w)))) + (walk-windows (lambda (w) + (unless (eq w (selected-window)) + (setq dabbrev--friend-buffer-list + (cons (window-buffer w) + (delq (window-buffer w) + dabbrev--friend-buffer-list)))))) (setq dabbrev--friend-buffer-list (delq (current-buffer) dabbrev--friend-buffer-list))) ;; Walk through the buffers |