aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2011-09-18 22:56:12 +0300
committerJuri Linkov2011-09-18 22:56:12 +0300
commit72753f87ca435108ba039078dfa0c833aefb453c (patch)
tree56af0f5b87036b427ae8ba8702a04b38e6a63880
parentc9384295aa5f189930013c80955748604d10dd52 (diff)
downloademacs-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/ChangeLog5
-rw-r--r--lisp/info.el10
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 @@
12011-09-18 Juri Linkov <juri@jurta.org> 12011-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
62011-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)