diff options
| author | Juri Linkov | 2011-09-18 22:56:12 +0300 |
|---|---|---|
| committer | Juri Linkov | 2011-09-18 22:56:12 +0300 |
| commit | 72753f87ca435108ba039078dfa0c833aefb453c (patch) | |
| tree | 56af0f5b87036b427ae8ba8702a04b38e6a63880 | |
| parent | c9384295aa5f189930013c80955748604d10dd52 (diff) | |
| download | emacs-72753f87ca435108ba039078dfa0c833aefb453c.tar.gz emacs-72753f87ca435108ba039078dfa0c833aefb453c.zip | |
* lisp/info.el (Info-mode-syntax-table): New variable.
(Info-mode): Set `:syntax-table' to `Info-mode-syntax-table'.
Fixes: debbugs:3312
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/info.el | 10 |
2 files changed, 14 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 62cdd4d61c9..cdcd33877f9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2011-09-18 Juri Linkov <juri@jurta.org> | 1 | 2011-09-18 Juri Linkov <juri@jurta.org> |
| 2 | 2 | ||
| 3 | * info.el (Info-mode-syntax-table): New variable. | ||
| 4 | (Info-mode): Set `:syntax-table' to `Info-mode-syntax-table'. (Bug#3312) | ||
| 5 | |||
| 6 | 2011-09-18 Juri Linkov <juri@jurta.org> | ||
| 7 | |||
| 3 | * info.el (Info-file-supports-index-cookies): Increment | 8 | * info.el (Info-file-supports-index-cookies): Increment |
| 4 | line-beginning-position's arg from 3 to 4 because makeinfo outputs | 9 | line-beginning-position's arg from 3 to 4 because makeinfo outputs |
| 5 | one more line for long file names (bug#4142). | 10 | one more line for long file names (bug#4142). |
diff --git a/lisp/info.el b/lisp/info.el index 42278621bbc..eb45bb0bd2f 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -3887,6 +3887,14 @@ With a zero prefix arg, put the name inside a function call to `info'." | |||
| 3887 | (defvar tool-bar-map) | 3887 | (defvar tool-bar-map) |
| 3888 | (defvar bookmark-make-record-function) | 3888 | (defvar bookmark-make-record-function) |
| 3889 | 3889 | ||
| 3890 | (defvar Info-mode-syntax-table | ||
| 3891 | (let ((st (copy-syntax-table text-mode-syntax-table))) | ||
| 3892 | ;; Use punctuation syntax for apostrophe because of | ||
| 3893 | ;; extensive use of quotes like `this' in Info manuals. | ||
| 3894 | (modify-syntax-entry ?' "." st) | ||
| 3895 | st) | ||
| 3896 | "Syntax table used in `Info-mode'.") | ||
| 3897 | |||
| 3890 | ;; Autoload cookie needed by desktop.el | 3898 | ;; Autoload cookie needed by desktop.el |
| 3891 | ;;;###autoload | 3899 | ;;;###autoload |
| 3892 | (define-derived-mode Info-mode nil "Info" | 3900 | (define-derived-mode Info-mode nil "Info" |
| @@ -3951,7 +3959,7 @@ Advanced commands: | |||
| 3951 | \\[clone-buffer] Select a new cloned Info buffer in another window. | 3959 | \\[clone-buffer] Select a new cloned Info buffer in another window. |
| 3952 | \\[universal-argument] \\[info] Move to new Info file with completion. | 3960 | \\[universal-argument] \\[info] Move to new Info file with completion. |
| 3953 | \\[universal-argument] N \\[info] Select Info buffer with prefix number in the name *info*<N>." | 3961 | \\[universal-argument] N \\[info] Select Info buffer with prefix number in the name *info*<N>." |
| 3954 | :syntax-table text-mode-syntax-table | 3962 | :syntax-table Info-mode-syntax-table |
| 3955 | :abbrev-table text-mode-abbrev-table | 3963 | :abbrev-table text-mode-abbrev-table |
| 3956 | (setq tab-width 8) | 3964 | (setq tab-width 8) |
| 3957 | (add-hook 'activate-menubar-hook 'Info-menu-update nil t) | 3965 | (add-hook 'activate-menubar-hook 'Info-menu-update nil t) |