diff options
| author | Stefan Monnier <monnier@iro.umontreal.ca> | 2007-08-25 20:21:12 +0000 |
|---|---|---|
| committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2007-08-25 20:21:12 +0000 |
| commit | 39bd67f6ca1f50b6a10b0c924c1b5704ce44f0a8 (patch) | |
| tree | b5ecf17dd1e99f94802e39739f2d43358782ac88 /lisp/uniquify.el | |
| parent | 07643c4965a20870c1d9dd2eef409fec5821e127 (diff) | |
| download | emacs-39bd67f6ca1f50b6a10b0c924c1b5704ce44f0a8.tar.gz | |
(uniquify-rationalize-file-buffer-names): Check liveness
of buffers in uniquify-managed.
Diffstat (limited to 'lisp/uniquify.el')
| -rw-r--r-- | lisp/uniquify.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/uniquify.el b/lisp/uniquify.el index 1c00d1edadb..f6bfd432a16 100644 --- a/lisp/uniquify.el +++ b/lisp/uniquify.el @@ -233,6 +233,14 @@ this rationalization." (with-current-buffer (uniquify-item-buffer (car items)) (setq uniquify-managed nil)) (setq items nil))) + ;; In case we missed some calls to kill-buffer, there may be dead + ;; buffers in uniquify-managed, so filter them out. + (setq items + (delq nil (mapcar + (lambda (item) + (if (buffer-live-p (uniquify-item-buffer item)) + item)) + items))) (setq fix-list (append fix-list items)))) ;; selects buffers whose names may need changing, and others that ;; may conflict, then bring conflicting names together |
