From: Karl Heuer Date: Tue, 15 Mar 1994 02:52:55 +0000 (+0000) Subject: (Man-filter-list): Extend footer pattern for hpux. X-Git-Tag: emacs-19.34~9494 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c2d606f4c00b35ce52cb92dff423bfac03f14299;p=emacs.git (Man-filter-list): Extend footer pattern for hpux. (Man-cooked-hook): New variable. (Man-bgproc-sentinel): Run Man-cooked-hook after cleaning backspaces. --- diff --git a/lisp/man.el b/lisp/man.el index 9ed474f77b6..7b401a9032d 100644 --- a/lisp/man.el +++ b/lisp/man.el @@ -144,7 +144,7 @@ the associated section number.") "-e '/[Nn]o such file or directory/d'" "-e '/Reformatting page. Wait/d'" "-e '/Reformatting entry. Wait/d'" - "-e '/^\\([A-Z][A-Z.]*([0-9A-Za-z][-0-9A-Za-z+]*)\\).*\\1$/d'" + "-e '/^ *\\([A-Za-z][A-Za-z.]*([0-9A-Za-z][-0-9A-Za-z+]*)\\).*\\1$/d'" "-e '/^[ \\t]*Hewlett-Packard Company[ \\t]*- [0-9]* -.*$/d'" "-e '/^[ \\t]*Hewlett-Packard[ \\t]*- [0-9]* -.*$/d'" "-e '/^ *Page [0-9]*.*(printed [0-9\\/]*)$/d'" @@ -189,6 +189,10 @@ the manpage buffer.") (defvar Man-mode-hook nil "*Normal hook run when Man mode is enabled.") +(defvar Man-cooked-hook nil + "*Hooks run after removing backspace characters from man page +but before Man-mode.") + (defvar Man-section-regexp "[0-9][a-zA-Z+]*\\|[LNln]" "*Regular expression describing a manpage section within parentheses.") @@ -530,6 +534,7 @@ See the variable `Man-notify' for the different notification behaviors." (save-excursion (set-buffer Man-buffer) (Man-set-fonts) + (run-hooks 'Man-cooked-hook) (Man-mode) (set-buffer-modified-p nil))) (Man-notify-when-ready Man-buffer))