(info): Use pop-to-buffer.
(same-window-buffer-names): Add "*info*".
(let ((buffer-read-only nil))
(shell-command-on-region (point-min) (point-max) decoder t)))))
+;;;###autoload
+(add-hook 'same-window-buffer-names "*info*")
+
;;;###autoload
(defun info (&optional file)
"Enter Info, the documentation browser.
(if file
(Info-goto-node (concat "(" file ")"))
(if (get-buffer "*info*")
- (switch-to-buffer "*info*")
+ (pop-to-buffer "*info*")
(Info-directory))))
;;;###autoload
;; If point is within a menu item, use that item as the default
(default nil)
(p (point))
+ beg
(last nil))
(save-excursion
(goto-char (point-min))