+2011-07-10 Bill Wohler <wohler@newt.com>
+
+ * mh-folder.el (mh-inc-folder, mh-modify, mh-scan-folder)
+ (mh-make-folder): Replace calls to switch-to-buffer with of
+ pop-to-buffer. The former is intended for interactive use only and
+ generates warnings in Emacs 24.
+
2011-07-09 Bill Wohler <wohler@newt.com>
* mh-speed.el (mh-speed-toggle,mh-speed-view): Document "ignored"
(setq threading-needed-flag mh-show-threads-flag)
(setq mh-previous-window-config config))
((not (eq (current-buffer) (get-buffer folder)))
- (switch-to-buffer folder)
+ (pop-to-buffer folder)
(setq mh-previous-window-config config))))
(mh-get-new-mail file)
(when (and threading-needed-flag
;; Just show the edit buffer...
(delete-other-windows)
- (switch-to-buffer edit-buffer)))
+ (pop-to-buffer edit-buffer)))
;;;###mh-autoload
(defun mh-next-button (&optional backward-flag)
(unless dont-exec-pending
(mh-process-or-undo-commands folder)
(mh-reset-threads-and-narrowing))
- (switch-to-buffer folder)))
+ (pop-to-buffer folder)))
(mh-regenerate-headers range)
(if (zerop (buffer-size))
(if (equal range "all")
(defun mh-make-folder (name)
"Create a new mail folder called NAME.
Make it the current folder."
- (switch-to-buffer name)
+ (pop-to-buffer name)
(setq buffer-read-only nil)
(erase-buffer)
(if mh-adaptive-cmd-note-flag