diff options
author | Sam Steingold <[email protected]> | 2002-07-01 19:55:45 +0000 |
---|---|---|
committer | Sam Steingold <[email protected]> | 2002-07-01 19:55:45 +0000 |
commit | 7abc9addc7501da288dd0af9fd2bdcf8bcca0c6d (patch) | |
tree | 294728059f9080b2bcf79980d922906edb16df29 /lisp/textmodes | |
parent | ce827a7d43e491c5c8782e7e9f61779d9066596d (diff) |
(tex-file): call `save-some-buffers' before `tex-main-file'
Diffstat (limited to 'lisp/textmodes')
-rw-r--r-- | lisp/textmodes/tex-mode.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index 4d4a7d9302..b78c50b2ec 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el @@ -529,9 +529,9 @@ An alternative value is \" . \", if you use a font with a narrow period." (list (concat slash citations opt arg) 3 'font-lock-constant-face) ;; ;; Text between `` quotes ''. - (cons (concat (regexp-opt `("``" "\"<" "\"`" "<<" "��") t) - "[^'\">��]+" ;a bit pessimistic - (regexp-opt `("''" "\">" "\"'" ">>" "��") t)) + (cons (concat (regexp-opt `("``" "\"<" "\"`" "<<" "k") t) + "[^'\">{]+" ;a bit pessimistic + (regexp-opt `("''" "\">" "\"'" ">>" "{") t)) 'font-lock-string-face) ;; ;; Command names, special and general. @@ -1678,10 +1678,10 @@ See \\[tex-file] for an alternative." This function is more useful than \\[tex-buffer] when you need the `.aux' file of LaTeX to have the correct name." (interactive) + (when tex-offer-save + (save-some-buffers)) (let* ((source-file (tex-main-file)) (file-dir (file-name-directory (expand-file-name source-file)))) - (if tex-offer-save - (save-some-buffers)) (if (tex-shell-running) (tex-kill-job) (tex-start-shell)) |