diff options
| author | Stefan Monnier | 2007-08-25 20:21:12 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-08-25 20:21:12 +0000 |
| commit | 8837a213a2a7212fb99a31d49ff8da131bc69be1 (patch) | |
| tree | c24de828e45dccbeeab07d3ee9e8e12c316186ca /lisp | |
| parent | c65e69424495d059ff072f92c68ad3cb85c68012 (diff) | |
| download | emacs-8837a213a2a7212fb99a31d49ff8da131bc69be1.tar.gz emacs-8837a213a2a7212fb99a31d49ff8da131bc69be1.zip | |
(uniquify-rationalize-file-buffer-names): Check liveness
of buffers in uniquify-managed.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/uniquify.el | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e49ba253922..69b5c69533e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * uniquify.el (uniquify-rationalize-file-buffer-names): Check liveness | ||
| 4 | of buffers in uniquify-managed. | ||
| 5 | |||
| 3 | * simple.el (invisible-p): Rename from text-invisible-p. | 6 | * simple.el (invisible-p): Rename from text-invisible-p. |
| 4 | Update callers. | 7 | Update callers. |
| 5 | 8 | ||
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." | |||
| 233 | (with-current-buffer (uniquify-item-buffer (car items)) | 233 | (with-current-buffer (uniquify-item-buffer (car items)) |
| 234 | (setq uniquify-managed nil)) | 234 | (setq uniquify-managed nil)) |
| 235 | (setq items nil))) | 235 | (setq items nil))) |
| 236 | ;; In case we missed some calls to kill-buffer, there may be dead | ||
| 237 | ;; buffers in uniquify-managed, so filter them out. | ||
| 238 | (setq items | ||
| 239 | (delq nil (mapcar | ||
| 240 | (lambda (item) | ||
| 241 | (if (buffer-live-p (uniquify-item-buffer item)) | ||
| 242 | item)) | ||
| 243 | items))) | ||
| 236 | (setq fix-list (append fix-list items)))) | 244 | (setq fix-list (append fix-list items)))) |
| 237 | ;; selects buffers whose names may need changing, and others that | 245 | ;; selects buffers whose names may need changing, and others that |
| 238 | ;; may conflict, then bring conflicting names together | 246 | ;; may conflict, then bring conflicting names together |