diff options
| author | Francesco Potortì | 1994-09-22 12:10:16 +0000 |
|---|---|---|
| committer | Francesco Potortì | 1994-09-22 12:10:16 +0000 |
| commit | 799ac634aadd4c9279e26c5cebe52d8bebafbe21 (patch) | |
| tree | 0c61df0744e0e109f1c35f977a3d6ee3b6305933 | |
| parent | 130f43af3de2c8673940008b272dc7c128591903 (diff) | |
| download | emacs-799ac634aadd4c9279e26c5cebe52d8bebafbe21.tar.gz emacs-799ac634aadd4c9279e26c5cebe52d8bebafbe21.zip | |
User option Man-notify-flag renamed to Man-notify-method.
| -rw-r--r-- | lisp/man.el | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/lisp/man.el b/lisp/man.el index 527297b695b..9687d7783ef 100644 --- a/lisp/man.el +++ b/lisp/man.el | |||
| @@ -3,8 +3,8 @@ | |||
| 3 | ;; Copyright (C) 1993, 1994 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1993, 1994 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Barry A. Warsaw <bwarsaw@cen.com> | 5 | ;; Author: Barry A. Warsaw <bwarsaw@cen.com> |
| 6 | ;; Last-Modified: $Date: $ | 6 | ;; Last-Modified: $Date: 1994/09/21 16:15:42 $ |
| 7 | ;; Version: $Revision: $ | 7 | ;; Version: $Revision: 1.48 $ |
| 8 | ;; Keywords: help | 8 | ;; Keywords: help |
| 9 | ;; Adapted-By: ESR, pot | 9 | ;; Adapted-By: ESR, pot |
| 10 | 10 | ||
| @@ -103,7 +103,7 @@ | |||
| 103 | "The name of the program that produces man pages.") | 103 | "The name of the program that produces man pages.") |
| 104 | 104 | ||
| 105 | ;; Use the value of the obsolete user option Man-notify, if set. | 105 | ;; Use the value of the obsolete user option Man-notify, if set. |
| 106 | (defvar Man-notify-flag (if (boundp 'Man-notify) Man-notify 'friendly) | 106 | (defvar Man-notify-method (if (boundp 'Man-notify) Man-notify 'friendly) |
| 107 | "*Selects the behavior when manpage is ready. | 107 | "*Selects the behavior when manpage is ready. |
| 108 | This variable may have one of the following values, where (sf) means | 108 | This variable may have one of the following values, where (sf) means |
| 109 | that the frames are switched, so the manpage is displayed in the frame | 109 | that the frames are switched, so the manpage is displayed in the frame |
| @@ -118,7 +118,7 @@ polite -- don't display manpage, but prints message and beep when ready | |||
| 118 | quiet -- like `polite', but don't beep | 118 | quiet -- like `polite', but don't beep |
| 119 | meek -- make no indication that the manpage is ready | 119 | meek -- make no indication that the manpage is ready |
| 120 | 120 | ||
| 121 | Any other value of `Man-notify-flag' is equivalent to `meek'.") | 121 | Any other value of `Man-notify-method' is equivalent to `meek'.") |
| 122 | 122 | ||
| 123 | (defvar Man-frame-parameters nil | 123 | (defvar Man-frame-parameters nil |
| 124 | "*Frame parameter list for creating a new frame for a manual page.") | 124 | "*Frame parameter list for creating a new frame for a manual page.") |
| @@ -127,7 +127,7 @@ Any other value of `Man-notify-flag' is equivalent to `meek'.") | |||
| 127 | "*Reuse a manpage buffer if possible. | 127 | "*Reuse a manpage buffer if possible. |
| 128 | If non-nil, and a manpage buffer already exists with the same | 128 | If non-nil, and a manpage buffer already exists with the same |
| 129 | invocation, man just indicates the manpage is ready according to the | 129 | invocation, man just indicates the manpage is ready according to the |
| 130 | value of `Man-notify-flag'. When nil, it always fires off a | 130 | value of `Man-notify-method'. When nil, it always fires off a |
| 131 | background process,putting the results in a uniquely named buffer.") | 131 | background process,putting the results in a uniquely named buffer.") |
| 132 | 132 | ||
| 133 | (defvar Man-downcase-section-letters-flag t | 133 | (defvar Man-downcase-section-letters-flag t |
| @@ -488,7 +488,7 @@ default section number is selected from `Man-auto-section-alist'." | |||
| 488 | This command is the top-level command in the man package. It runs a Un*x | 488 | This command is the top-level command in the man package. It runs a Un*x |
| 489 | command to retrieve and clean a manpage in the background and places the | 489 | command to retrieve and clean a manpage in the background and places the |
| 490 | results in a Man mode (manpage browsing) buffer. See variable | 490 | results in a Man mode (manpage browsing) buffer. See variable |
| 491 | `Man-notify-flag' for what happens when the buffer is ready. | 491 | `Man-notify-method' for what happens when the buffer is ready. |
| 492 | Normally, if a buffer already exists for this man page, it will display | 492 | Normally, if a buffer already exists for this man page, it will display |
| 493 | immediately; either a prefix argument or a nil value to `Man-reuse-okay-flag' | 493 | immediately; either a prefix argument or a nil value to `Man-reuse-okay-flag' |
| 494 | overrides this and forces the man page to be regenerated." | 494 | overrides this and forces the man page to be regenerated." |
| @@ -549,12 +549,12 @@ start a background process even if a buffer already exists and | |||
| 549 | 549 | ||
| 550 | (defun Man-notify-when-ready (man-buffer) | 550 | (defun Man-notify-when-ready (man-buffer) |
| 551 | "Notify the user when MAN-BUFFER is ready. | 551 | "Notify the user when MAN-BUFFER is ready. |
| 552 | See the variable `Man-notify-flag' for the different notification behaviors." | 552 | See the variable `Man-notify-method' for the different notification behaviors." |
| 553 | (let ((saved-frame (save-excursion | 553 | (let ((saved-frame (save-excursion |
| 554 | (set-buffer man-buffer) | 554 | (set-buffer man-buffer) |
| 555 | Man-original-frame))) | 555 | Man-original-frame))) |
| 556 | (cond | 556 | (cond |
| 557 | ((eq Man-notify-flag 'newframe) | 557 | ((eq Man-notify-method 'newframe) |
| 558 | ;; Since we run asynchronously, perhaps while Emacs is waiting | 558 | ;; Since we run asynchronously, perhaps while Emacs is waiting |
| 559 | ;; for input, we must not leave a different buffer current. We | 559 | ;; for input, we must not leave a different buffer current. We |
| 560 | ;; can't rely on the editor command loop to reselect the | 560 | ;; can't rely on the editor command loop to reselect the |
| @@ -562,30 +562,30 @@ See the variable `Man-notify-flag' for the different notification behaviors." | |||
| 562 | (save-excursion | 562 | (save-excursion |
| 563 | (set-buffer man-buffer) | 563 | (set-buffer man-buffer) |
| 564 | (make-frame Man-frame-parameters))) | 564 | (make-frame Man-frame-parameters))) |
| 565 | ((eq Man-notify-flag 'pushy) | 565 | ((eq Man-notify-method 'pushy) |
| 566 | (switch-to-buffer man-buffer)) | 566 | (switch-to-buffer man-buffer)) |
| 567 | ((eq Man-notify-flag 'bully) | 567 | ((eq Man-notify-method 'bully) |
| 568 | (and window-system | 568 | (and window-system |
| 569 | (frame-live-p saved-frame) | 569 | (frame-live-p saved-frame) |
| 570 | (select-frame saved-frame)) | 570 | (select-frame saved-frame)) |
| 571 | (pop-to-buffer man-buffer) | 571 | (pop-to-buffer man-buffer) |
| 572 | (delete-other-windows)) | 572 | (delete-other-windows)) |
| 573 | ((eq Man-notify-flag 'aggressive) | 573 | ((eq Man-notify-method 'aggressive) |
| 574 | (and window-system | 574 | (and window-system |
| 575 | (frame-live-p saved-frame) | 575 | (frame-live-p saved-frame) |
| 576 | (select-frame saved-frame)) | 576 | (select-frame saved-frame)) |
| 577 | (pop-to-buffer man-buffer)) | 577 | (pop-to-buffer man-buffer)) |
| 578 | ((eq Man-notify-flag 'friendly) | 578 | ((eq Man-notify-method 'friendly) |
| 579 | (and window-system | 579 | (and window-system |
| 580 | (frame-live-p saved-frame) | 580 | (frame-live-p saved-frame) |
| 581 | (select-frame saved-frame)) | 581 | (select-frame saved-frame)) |
| 582 | (display-buffer man-buffer 'not-this-window)) | 582 | (display-buffer man-buffer 'not-this-window)) |
| 583 | ((eq Man-notify-flag 'polite) | 583 | ((eq Man-notify-method 'polite) |
| 584 | (beep) | 584 | (beep) |
| 585 | (message "Manual buffer %s is ready" (buffer-name man-buffer))) | 585 | (message "Manual buffer %s is ready" (buffer-name man-buffer))) |
| 586 | ((eq Man-notify-flag 'quiet) | 586 | ((eq Man-notify-method 'quiet) |
| 587 | (message "Manual buffer %s is ready" (buffer-name man-buffer))) | 587 | (message "Manual buffer %s is ready" (buffer-name man-buffer))) |
| 588 | ((or (eq Man-notify-flag 'meek) | 588 | ((or (eq Man-notify-method 'meek) |
| 589 | t) | 589 | t) |
| 590 | (message "")) | 590 | (message "")) |
| 591 | ))) | 591 | ))) |
| @@ -719,7 +719,7 @@ The following man commands are available in the buffer. Try | |||
| 719 | The following variables may be of some use. Try | 719 | The following variables may be of some use. Try |
| 720 | \"\\[describe-variable] <variable-name> RET\" for more information: | 720 | \"\\[describe-variable] <variable-name> RET\" for more information: |
| 721 | 721 | ||
| 722 | Man-notify-flag What happens when manpage formatting is done. | 722 | Man-notify-method What happens when manpage formatting is done. |
| 723 | Man-reuse-okay-flag Reuse already formatted buffer. | 723 | Man-reuse-okay-flag Reuse already formatted buffer. |
| 724 | Man-downcase-section-letters-flag Force section letters to lower case. | 724 | Man-downcase-section-letters-flag Force section letters to lower case. |
| 725 | Man-circular-pages-flag Treat multiple manpage list as circular. | 725 | Man-circular-pages-flag Treat multiple manpage list as circular. |
| @@ -987,9 +987,9 @@ Prefix argument ARG is passed to `Man-getpage-in-background'." | |||
| 987 | (delete-windows-on buff) | 987 | (delete-windows-on buff) |
| 988 | (kill-buffer buff)) | 988 | (kill-buffer buff)) |
| 989 | (if (and window-system | 989 | (if (and window-system |
| 990 | (or (eq Man-notify-flag 'newframe) | 990 | (or (eq Man-notify-method 'newframe) |
| 991 | (and pop-up-frames | 991 | (and pop-up-frames |
| 992 | (eq Man-notify-flag 'bully)))) | 992 | (eq Man-notify-method 'bully)))) |
| 993 | (delete-frame))) | 993 | (delete-frame))) |
| 994 | 994 | ||
| 995 | (defun Man-quit () | 995 | (defun Man-quit () |
| @@ -999,9 +999,9 @@ Prefix argument ARG is passed to `Man-getpage-in-background'." | |||
| 999 | (delete-windows-on buff) | 999 | (delete-windows-on buff) |
| 1000 | (bury-buffer buff)) | 1000 | (bury-buffer buff)) |
| 1001 | (if (and window-system | 1001 | (if (and window-system |
| 1002 | (or (eq Man-notify-flag 'newframe) | 1002 | (or (eq Man-notify-method 'newframe) |
| 1003 | (and pop-up-frames | 1003 | (and pop-up-frames |
| 1004 | (eq Man-notify-flag 'bully)))) | 1004 | (eq Man-notify-method 'bully)))) |
| 1005 | (delete-frame))) | 1005 | (delete-frame))) |
| 1006 | 1006 | ||
| 1007 | (defun Man-goto-page (page) | 1007 | (defun Man-goto-page (page) |