of buffers in uniquify-managed.
2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
+ * uniquify.el (uniquify-rationalize-file-buffer-names): Check liveness
+ of buffers in uniquify-managed.
+
* simple.el (invisible-p): Rename from text-invisible-p.
Update callers.
(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