(defun test () (interactive) (set-buffer "a") (with-current-buffer "c" (pop-to-buffer "b")) (message "%s" (buffer-name (current-buffer))))
(test) At the end, it print "a" as the current buffer name, but actually this command makes the buffer "b" current. Shouldn't it print "b"? with-current-buffer is supposed to restore the previous current buffer. That is buffer a. This command does not make buffer b current. However, the main loop does that, because b is the selected window's buffer. The results are correct; I see no bug here. _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel