aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-05-14 19:49:52 +0000
committerRichard M. Stallman1994-05-14 19:49:52 +0000
commit9f2863b218f877cc5dcfded91a78dd1f34b9df9d (patch)
tree9428c0bff8264bf051c4b2588b99690df18f2977
parente9d7d7e02d6523aa49a5b57c178b99fa6baa1d8f (diff)
downloademacs-9f2863b218f877cc5dcfded91a78dd1f34b9df9d.tar.gz
emacs-9f2863b218f877cc5dcfded91a78dd1f34b9df9d.zip
Remove periods from messages.
(Man-heading-regexp): Accept only one leading space.
-rw-r--r--lisp/man.el20
1 files changed, 11 insertions, 9 deletions
diff --git a/lisp/man.el b/lisp/man.el
index 40408cf87bb..225b6277b1d 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -199,7 +199,9 @@ the manpage buffer.")
199(defvar Man-section-regexp "[0-9][a-zA-Z+]*\\|[LNln]" 199(defvar Man-section-regexp "[0-9][a-zA-Z+]*\\|[LNln]"
200 "*Regular expression describing a manpage section within parentheses.") 200 "*Regular expression describing a manpage section within parentheses.")
201 201
202(defvar Man-heading-regexp "^[ \t]*\\([A-Z][A-Z \t]+\\)$" 202;; Unless some system actually adds leading whitespace other than one space,
203;; it is more reliable not to accept any other leading whitespace.
204(defvar Man-heading-regexp "^ ?*\\([A-Z][A-Z \t]+\\)$"
203 "*Regular expression describing a manpage heading entry.") 205 "*Regular expression describing a manpage heading entry.")
204 206
205(defvar Man-see-also-regexp "SEE ALSO" 207(defvar Man-see-also-regexp "SEE ALSO"
@@ -287,7 +289,7 @@ This regular expression should start with a `^' character.")
287 (setq flist (cdr flist)) 289 (setq flist (cdr flist))
288 (if (or (not (stringp pcom)) 290 (if (or (not (stringp pcom))
289 (not (listp pargs))) 291 (not (listp pargs)))
290 (error "malformed Man-filter-list.")) 292 (error "Malformed Man-filter-list"))
291 (setq command (concat command " | " pcom 293 (setq command (concat command " | " pcom
292 (mapconcat '(lambda (phrase) phrase) 294 (mapconcat '(lambda (phrase) phrase)
293 pargs " "))))) 295 pargs " ")))))
@@ -437,7 +439,7 @@ overrides this and forces the man page to be regenerated."
437 default-entry)))))) 439 default-entry))))))
438 (and (string= man-args "") 440 (and (string= man-args "")
439 (if (string= default-entry "") 441 (if (string= default-entry "")
440 (error "No man args given.") 442 (error "No man args given")
441 (setq man-args default-entry))) 443 (setq man-args default-entry)))
442 444
443 ;; Recognize the subject(section) syntax. 445 ;; Recognize the subject(section) syntax.
@@ -462,7 +464,7 @@ start a background process even if a buffer already exists and
462 buffer) 464 buffer)
463 (Man-notify-when-ready buffer) 465 (Man-notify-when-ready buffer)
464 (require 'env) 466 (require 'env)
465 (message "Invoking %s %s in background." manual-program man-args) 467 (message "Invoking %s %s in background" manual-program man-args)
466 (setq buffer (generate-new-buffer bufname)) 468 (setq buffer (generate-new-buffer bufname))
467 (save-excursion 469 (save-excursion
468 (set-buffer buffer) 470 (set-buffer buffer)
@@ -742,7 +744,7 @@ Actually the section moved to is described by `Man-see-also-regexp'."
742 (interactive) 744 (interactive)
743 (if (not (Man-find-section Man-see-also-regexp)) 745 (if (not (Man-find-section Man-see-also-regexp))
744 (error (concat "No " Man-see-also-regexp 746 (error (concat "No " Man-see-also-regexp
745 " section found in current manpage.")))) 747 " section found in current manpage"))))
746 748
747(defun Man-follow-manual-reference (arg reference) 749(defun Man-follow-manual-reference (arg reference)
748 "Get one of the manpages referred to in the \"SEE ALSO\" section. 750 "Get one of the manpages referred to in the \"SEE ALSO\" section.
@@ -819,23 +821,23 @@ Prefix argument ARG is passed to `Man-getpage-in-background'."
819 "Find the next manpage entry in the buffer." 821 "Find the next manpage entry in the buffer."
820 (interactive) 822 (interactive)
821 (if (= (length Man-page-list) 1) 823 (if (= (length Man-page-list) 1)
822 (error "This is the only manpage in the buffer.")) 824 (error "This is the only manpage in the buffer"))
823 (if (< Man-current-page (length Man-page-list)) 825 (if (< Man-current-page (length Man-page-list))
824 (Man-goto-page (1+ Man-current-page)) 826 (Man-goto-page (1+ Man-current-page))
825 (if Man-circular-pages-p 827 (if Man-circular-pages-p
826 (Man-goto-page 1) 828 (Man-goto-page 1)
827 (error "You're looking at the last manpage in the buffer.")))) 829 (error "You're looking at the last manpage in the buffer"))))
828 830
829(defun Man-previous-manpage () 831(defun Man-previous-manpage ()
830 "Find the previous manpage entry in the buffer." 832 "Find the previous manpage entry in the buffer."
831 (interactive) 833 (interactive)
832 (if (= (length Man-page-list) 1) 834 (if (= (length Man-page-list) 1)
833 (error "This is the only manpage in the buffer.")) 835 (error "This is the only manpage in the buffer"))
834 (if (> Man-current-page 1) 836 (if (> Man-current-page 1)
835 (Man-goto-page (1- Man-current-page)) 837 (Man-goto-page (1- Man-current-page))
836 (if Man-circular-pages-p 838 (if Man-circular-pages-p
837 (Man-goto-page (length Man-page-list)) 839 (Man-goto-page (length Man-page-list))
838 (error "You're looking at the first manpage in the buffer.")))) 840 (error "You're looking at the first manpage in the buffer"))))
839 841
840(provide 'man) 842(provide 'man)
841 843