diff options
| author | Juri Linkov | 2006-09-02 23:28:55 +0000 |
|---|---|---|
| committer | Juri Linkov | 2006-09-02 23:28:55 +0000 |
| commit | ea1f948dd8b81eca44d72882eeac20e7940ef3ca (patch) | |
| tree | f32796fbbdef9967436dcc3de88ae15212ef2fa8 | |
| parent | 864ac5d4d791115e144859e38bde5a1ffed87d92 (diff) | |
| download | emacs-ea1f948dd8b81eca44d72882eeac20e7940ef3ca.tar.gz emacs-ea1f948dd8b81eca44d72882eeac20e7940ef3ca.zip | |
(Man-topic-history): New variable.
(man): Use it.
| -rw-r--r-- | lisp/man.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/man.el b/lisp/man.el index 77c089b9d8d..2351853eeca 100644 --- a/lisp/man.el +++ b/lisp/man.el | |||
| @@ -388,6 +388,8 @@ Otherwise, the value is whatever the function | |||
| 388 | /\e\\[[0-9][0-9]*m/ s///g" | 388 | /\e\\[[0-9][0-9]*m/ s///g" |
| 389 | "Script for berkeley-like sed to nuke backspaces and ANSI codes from manpages.") | 389 | "Script for berkeley-like sed to nuke backspaces and ANSI codes from manpages.") |
| 390 | 390 | ||
| 391 | (defvar Man-topic-history nil "Topic read history.") | ||
| 392 | |||
| 391 | (defvar man-mode-syntax-table | 393 | (defvar man-mode-syntax-table |
| 392 | (let ((table (copy-syntax-table (standard-syntax-table)))) | 394 | (let ((table (copy-syntax-table (standard-syntax-table)))) |
| 393 | (modify-syntax-entry ?. "w" table) | 395 | (modify-syntax-entry ?. "w" table) |
| @@ -686,7 +688,7 @@ all sections related to a subject, put something appropriate into the | |||
| 686 | (if (string= default-entry "") | 688 | (if (string= default-entry "") |
| 687 | ": " | 689 | ": " |
| 688 | (format " (default %s): " default-entry))) | 690 | (format " (default %s): " default-entry))) |
| 689 | nil nil default-entry))) | 691 | nil 'Man-topic-history default-entry))) |
| 690 | (if (string= input "") | 692 | (if (string= input "") |
| 691 | (error "No man args given") | 693 | (error "No man args given") |
| 692 | input)))) | 694 | input)))) |