+2002-08-27 Richard M. Stallman <rms@gnu.org>
+
+ * files.el (find-alternate-file):
+ Bind kill-buffer-query-functions locally, don't set it.
+
2002-08-27 Andreas Schwab <schwab@suse.de>
* kmacro.el (kmacro-start-macro): Doc fix.
(lock-buffer)
(rename-buffer oname)))
(unless (eq (current-buffer) obuf)
- ;; We already asked; don't ask again.
- (setq kill-buffer-query-functions nil)
- (kill-buffer obuf))))
+ (with-current-buffer obuf
+ ;; We already asked; don't ask again.
+ (let ((kill-buffer-query-functions))
+ (kill-buffer obuf))))))
\f
(defun create-file-buffer (filename)
"Create a suitably named buffer for visiting FILENAME, and return it.