aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-11-06 04:16:34 +0000
committerRichard M. Stallman1993-11-06 04:16:34 +0000
commitb51aeeffe45056b0f2c430fe3e3455f9a67b3d55 (patch)
tree7d768e0d10167b4b564cc0cb59322234eb709522
parent1d2c16fa6dded5e862e5e247fca1965871a4ebb2 (diff)
downloademacs-b51aeeffe45056b0f2c430fe3e3455f9a67b3d55.tar.gz
emacs-b51aeeffe45056b0f2c430fe3e3455f9a67b3d55.zip
(Man-frame-parameters): New variable.
(Man-notify-when-ready): Handle `newframe' as Man-notify value.
-rw-r--r--lisp/man.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/man.el b/lisp/man.el
index 1e60e660b49..5e2027a2107 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -80,6 +80,7 @@
80 "*Selects the behavior when manpage is ready. 80 "*Selects the behavior when manpage is ready.
81This variable may have one of the following values: 81This variable may have one of the following values:
82 82
83newframe -- put the manpage in its own frame (see `Man-frame-parameters')
83bully -- make the manpage the current buffer and only window 84bully -- make the manpage the current buffer and only window
84aggressive -- make the manpage the current buffer in the other window 85aggressive -- make the manpage the current buffer in the other window
85friendly -- display manpage in other window but don't make current 86friendly -- display manpage in other window but don't make current
@@ -89,6 +90,9 @@ meek -- make no indication that manpage is ready
89 90
90Any other value of `Man-notify' is equivalent to `meek'.") 91Any other value of `Man-notify' is equivalent to `meek'.")
91 92
93(defvar Man-frame-parameters nil
94 "*Frame parameter list for creating a new frame for a manual page.")
95
92(defvar Man-reuse-okay-p t 96(defvar Man-reuse-okay-p t
93 "*Reuse a manpage buffer if possible. 97 "*Reuse a manpage buffer if possible.
94When t, and a manpage buffer already exists with the same invocation, 98When t, and a manpage buffer already exists with the same invocation,
@@ -448,6 +452,9 @@ start a background process even if a buffer already exists and
448 "Notify the user when MAN-BUFFER is ready. 452 "Notify the user when MAN-BUFFER is ready.
449See the variable `Man-notify' for the different notification behaviors." 453See the variable `Man-notify' for the different notification behaviors."
450 (cond 454 (cond
455 ((eq Man-notify 'newframe)
456 (set-buffer man-buffer)
457 (new-frame Man-frame-parameters))
451 ((eq Man-notify 'bully) 458 ((eq Man-notify 'bully)
452 (pop-to-buffer man-buffer) 459 (pop-to-buffer man-buffer)
453 (delete-other-windows)) 460 (delete-other-windows))