diff options
| author | Richard M. Stallman | 1993-11-06 04:16:34 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-11-06 04:16:34 +0000 |
| commit | b51aeeffe45056b0f2c430fe3e3455f9a67b3d55 (patch) | |
| tree | 7d768e0d10167b4b564cc0cb59322234eb709522 | |
| parent | 1d2c16fa6dded5e862e5e247fca1965871a4ebb2 (diff) | |
| download | emacs-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.el | 7 |
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. |
| 81 | This variable may have one of the following values: | 81 | This variable may have one of the following values: |
| 82 | 82 | ||
| 83 | newframe -- put the manpage in its own frame (see `Man-frame-parameters') | ||
| 83 | bully -- make the manpage the current buffer and only window | 84 | bully -- make the manpage the current buffer and only window |
| 84 | aggressive -- make the manpage the current buffer in the other window | 85 | aggressive -- make the manpage the current buffer in the other window |
| 85 | friendly -- display manpage in other window but don't make current | 86 | friendly -- display manpage in other window but don't make current |
| @@ -89,6 +90,9 @@ meek -- make no indication that manpage is ready | |||
| 89 | 90 | ||
| 90 | Any other value of `Man-notify' is equivalent to `meek'.") | 91 | Any 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. |
| 94 | When t, and a manpage buffer already exists with the same invocation, | 98 | When 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. |
| 449 | See the variable `Man-notify' for the different notification behaviors." | 453 | See 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)) |