diff options
| author | Karl Heuer | 1994-03-15 02:52:55 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-03-15 02:52:55 +0000 |
| commit | c2d606f4c00b35ce52cb92dff423bfac03f14299 (patch) | |
| tree | 2194c9fecca3e3de5d92a7efbe66a7bf3c81d79e | |
| parent | d68eb3a2abb2eb6c5e3541ae4ece42f6336bd68f (diff) | |
| download | emacs-c2d606f4c00b35ce52cb92dff423bfac03f14299.tar.gz emacs-c2d606f4c00b35ce52cb92dff423bfac03f14299.zip | |
(Man-filter-list): Extend footer pattern for hpux.
(Man-cooked-hook): New variable.
(Man-bgproc-sentinel): Run Man-cooked-hook after cleaning backspaces.
| -rw-r--r-- | lisp/man.el | 7 |
1 files changed, 6 insertions, 1 deletions
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.") | |||
| 144 | "-e '/[Nn]o such file or directory/d'" | 144 | "-e '/[Nn]o such file or directory/d'" |
| 145 | "-e '/Reformatting page. Wait/d'" | 145 | "-e '/Reformatting page. Wait/d'" |
| 146 | "-e '/Reformatting entry. Wait/d'" | 146 | "-e '/Reformatting entry. Wait/d'" |
| 147 | "-e '/^\\([A-Z][A-Z.]*([0-9A-Za-z][-0-9A-Za-z+]*)\\).*\\1$/d'" | 147 | "-e '/^ *\\([A-Za-z][A-Za-z.]*([0-9A-Za-z][-0-9A-Za-z+]*)\\).*\\1$/d'" |
| 148 | "-e '/^[ \\t]*Hewlett-Packard Company[ \\t]*- [0-9]* -.*$/d'" | 148 | "-e '/^[ \\t]*Hewlett-Packard Company[ \\t]*- [0-9]* -.*$/d'" |
| 149 | "-e '/^[ \\t]*Hewlett-Packard[ \\t]*- [0-9]* -.*$/d'" | 149 | "-e '/^[ \\t]*Hewlett-Packard[ \\t]*- [0-9]* -.*$/d'" |
| 150 | "-e '/^ *Page [0-9]*.*(printed [0-9\\/]*)$/d'" | 150 | "-e '/^ *Page [0-9]*.*(printed [0-9\\/]*)$/d'" |
| @@ -189,6 +189,10 @@ the manpage buffer.") | |||
| 189 | (defvar Man-mode-hook nil | 189 | (defvar Man-mode-hook nil |
| 190 | "*Normal hook run when Man mode is enabled.") | 190 | "*Normal hook run when Man mode is enabled.") |
| 191 | 191 | ||
| 192 | (defvar Man-cooked-hook nil | ||
| 193 | "*Hooks run after removing backspace characters from man page | ||
| 194 | but before Man-mode.") | ||
| 195 | |||
| 192 | (defvar Man-section-regexp "[0-9][a-zA-Z+]*\\|[LNln]" | 196 | (defvar Man-section-regexp "[0-9][a-zA-Z+]*\\|[LNln]" |
| 193 | "*Regular expression describing a manpage section within parentheses.") | 197 | "*Regular expression describing a manpage section within parentheses.") |
| 194 | 198 | ||
| @@ -530,6 +534,7 @@ See the variable `Man-notify' for the different notification behaviors." | |||
| 530 | (save-excursion | 534 | (save-excursion |
| 531 | (set-buffer Man-buffer) | 535 | (set-buffer Man-buffer) |
| 532 | (Man-set-fonts) | 536 | (Man-set-fonts) |
| 537 | (run-hooks 'Man-cooked-hook) | ||
| 533 | (Man-mode) | 538 | (Man-mode) |
| 534 | (set-buffer-modified-p nil))) | 539 | (set-buffer-modified-p nil))) |
| 535 | (Man-notify-when-ready Man-buffer)) | 540 | (Man-notify-when-ready Man-buffer)) |