diff options
| -rw-r--r-- | lisp/textmodes/texinfo.el | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/lisp/textmodes/texinfo.el b/lisp/textmodes/texinfo.el index 3b9b9c7b1e3..f6ae5563c17 100644 --- a/lisp/textmodes/texinfo.el +++ b/lisp/textmodes/texinfo.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; texinfo.el --- major mode for editing Texinfo files | 1 | ;;; texinfo.el --- major mode for editing Texinfo files |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1985, '88, '89, '90, '91, '01, | 3 | ;; Copyright (C) 1985,88,89,90,91,92,93,96,97,2000,01,03 |
| 4 | ;; '92, '93, '96, '97, 2000 Free Software Foundation, Inc. | 4 | ;; Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Robert J. Chassell | 6 | ;; Author: Robert J. Chassell |
| 7 | ;; Date: [See date below for texinfo-version] | 7 | ;; Date: [See date below for texinfo-version] |
| @@ -666,7 +666,7 @@ Puts point on a blank line between them." | |||
| 666 | (and (re-search-backward (concat "@\\(end\\s +\\)?" env) bound t) | 666 | (and (re-search-backward (concat "@\\(end\\s +\\)?" env) bound t) |
| 667 | (not (match-end 1))))) | 667 | (not (match-end 1))))) |
| 668 | 668 | ||
| 669 | (defvar texinfo-enable-quote-macros '("@\\(code\\|samp\\|kbd\\)\\>")) | 669 | (defvar texinfo-enable-quote-macros "@\\(code\\|samp\\|kbd\\)\\>") |
| 670 | (defvar texinfo-enable-quote-envs '("example\\>" "lisp\\>")) | 670 | (defvar texinfo-enable-quote-envs '("example\\>" "lisp\\>")) |
| 671 | (defun texinfo-insert-quote (&optional arg) | 671 | (defun texinfo-insert-quote (&optional arg) |
| 672 | "Insert the appropriate quote mark for TeXinfo. | 672 | "Insert the appropriate quote mark for TeXinfo. |
| @@ -842,9 +842,9 @@ The default is not to surround any existing words with the braces." | |||
| 842 | (interactive "P") | 842 | (interactive "P") |
| 843 | (texinfo-insert-@-with-arg "strong" arg)) | 843 | (texinfo-insert-@-with-arg "strong" arg)) |
| 844 | 844 | ||
| 845 | (defun texinfo-insert-@table (&optional arg) | 845 | (defun texinfo-insert-@table () |
| 846 | "Insert the string `@table' in a Texinfo buffer." | 846 | "Insert the string `@table' in a Texinfo buffer." |
| 847 | (interactive "P") | 847 | (interactive) |
| 848 | (insert "@table ")) | 848 | (insert "@table ")) |
| 849 | 849 | ||
| 850 | (defun texinfo-insert-@var (&optional arg) | 850 | (defun texinfo-insert-@var (&optional arg) |
| @@ -881,8 +881,7 @@ to jump to the corresponding spot in the Texinfo source file." | |||
| 881 | 881 | ||
| 882 | (interactive "P") | 882 | (interactive "P") |
| 883 | ;; First, remember current location | 883 | ;; First, remember current location |
| 884 | (let ((source-buffer (current-buffer)) | 884 | (let (current-location) |
| 885 | current-location) | ||
| 886 | (save-excursion | 885 | (save-excursion |
| 887 | (end-of-line) ; so as to find section on current line | 886 | (end-of-line) ; so as to find section on current line |
| 888 | (if (re-search-backward | 887 | (if (re-search-backward |
| @@ -893,7 +892,7 @@ to jump to the corresponding spot in the Texinfo source file." | |||
| 893 | (progn | 892 | (progn |
| 894 | (beginning-of-line) | 893 | (beginning-of-line) |
| 895 | (buffer-substring (point) (progn (end-of-line) (point))))) | 894 | (buffer-substring (point) (progn (end-of-line) (point))))) |
| 896 | ;; else point is located before before any section command | 895 | ;; else point is located before any section command. |
| 897 | (setq current-location "tex"))) | 896 | (setq current-location "tex"))) |
| 898 | ;; Second, create and format an *Occur* buffer | 897 | ;; Second, create and format an *Occur* buffer |
| 899 | (save-excursion | 898 | (save-excursion |