I remember investigating this hack a while ago and finding that it
looked very difficult. This time, it's nearly trivial. What gives?
Pretend they don't exist. They might be on other display devices."
(ad-set-arg 2 nil))
Pretend they don't exist. They might be on other display devices."
(ad-set-arg 2 nil))
+;; Rename buffers along with files.
+
+(defadvice rename-file (after mdw-rename-buffers (from to &optional forcep)
+ compile activate)
+ (let ((buffer (get-file-buffer from)))
+ (when buffer
+ (with-current-buffer buffer
+ (set-visited-file-name to nil t)))))
+
;;;--------------------------------------------------------------------------
;;; Improved compilation machinery.
;;;--------------------------------------------------------------------------
;;; Improved compilation machinery.