Mercurial > emacs
comparison lisp/textmodes/tex-mode.el @ 64060:fa1dc4af6eee
(tex-file, tex-run, tex-view): Finish `defgroup' description with period.
(tex-insert-quote, latex-find-indent): "?\ " -> "?\s".
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Mon, 04 Jul 2005 03:44:33 +0000 |
parents | 1cde198ddda6 |
children | a8fa7c632ee4 |
comparison
equal
deleted
inserted
replaced
64059:77cc3a2cedb3 | 64060:fa1dc4af6eee |
---|---|
38 | 38 |
39 (require 'shell) | 39 (require 'shell) |
40 (require 'compile) | 40 (require 'compile) |
41 | 41 |
42 (defgroup tex-file nil | 42 (defgroup tex-file nil |
43 "TeX files and directories" | 43 "TeX files and directories." |
44 :prefix "tex-" | 44 :prefix "tex-" |
45 :group 'tex) | 45 :group 'tex) |
46 | 46 |
47 (defgroup tex-run nil | 47 (defgroup tex-run nil |
48 "Running external commands from TeX mode" | 48 "Running external commands from TeX mode." |
49 :prefix "tex-" | 49 :prefix "tex-" |
50 :group 'tex) | 50 :group 'tex) |
51 | 51 |
52 (defgroup tex-view nil | 52 (defgroup tex-view nil |
53 "Viewing and printing TeX files" | 53 "Viewing and printing TeX files." |
54 :prefix "tex-" | 54 :prefix "tex-" |
55 :group 'tex) | 55 :group 'tex) |
56 | 56 |
57 ;;;###autoload | 57 ;;;###autoload |
58 (defcustom tex-shell-file-name nil | 58 (defcustom tex-shell-file-name nil |
1112 (when (or (looking-at (regexp-quote tex-open-quote)) | 1112 (when (or (looking-at (regexp-quote tex-open-quote)) |
1113 (looking-at (regexp-quote tex-close-quote))) | 1113 (looking-at (regexp-quote tex-close-quote))) |
1114 (delete-char (length tex-open-quote)) | 1114 (delete-char (length tex-open-quote)) |
1115 t))) | 1115 t))) |
1116 (self-insert-command (prefix-numeric-value arg)) | 1116 (self-insert-command (prefix-numeric-value arg)) |
1117 (insert (if (memq (char-syntax (preceding-char)) '(?\( ?> ?\ )) | 1117 (insert (if (memq (char-syntax (preceding-char)) '(?\( ?> ?\s)) |
1118 tex-open-quote tex-close-quote)))) | 1118 tex-open-quote tex-close-quote)))) |
1119 | 1119 |
1120 (defun tex-validate-buffer () | 1120 (defun tex-validate-buffer () |
1121 "Check current buffer for paragraphs containing mismatched braces or $s. | 1121 "Check current buffer for paragraphs containing mismatched braces or $s. |
1122 Their positions are recorded in the buffer `*Occur*'. | 1122 Their positions are recorded in the buffer `*Occur*'. |
2419 ((looking-at tex-indent-item-re) | 2419 ((looking-at tex-indent-item-re) |
2420 ;; Indenting relative to an item, have to re-add the outdenting. | 2420 ;; Indenting relative to an item, have to re-add the outdenting. |
2421 (+ indent (current-column) tex-indent-item)) | 2421 (+ indent (current-column) tex-indent-item)) |
2422 (t | 2422 (t |
2423 (let ((col (current-column))) | 2423 (let ((col (current-column))) |
2424 (if (or (not (eq (char-syntax (or (char-after pos) ?\ )) ?\()) | 2424 (if (or (not (eq (char-syntax (or (char-after pos) ?\s)) ?\()) |
2425 ;; Can't be an arg if there's an empty line inbetween. | 2425 ;; Can't be an arg if there's an empty line inbetween. |
2426 (save-excursion (re-search-forward "^[ \t]*$" pos t))) | 2426 (save-excursion (re-search-forward "^[ \t]*$" pos t))) |
2427 ;; If the first char was not an open-paren, there's | 2427 ;; If the first char was not an open-paren, there's |
2428 ;; a risk that this is really not an argument to the | 2428 ;; a risk that this is really not an argument to the |
2429 ;; macro at all. | 2429 ;; macro at all. |