+2002-07-01 Sam Steingold <sds@gnu.org>
+
+ * textmodes/tex-mode.el (tex-file): Call `save-some-buffers'
+ before `tex-main-file' because if the current buffer is new, its
+ file might not exist yet, and then `tex-main-file' will
+ incorrectly return "foo.tex.tex".
+
2002-07-01 Juanma Barranquero <lektu@terra.es>
* ido.el (ido-minibuffer-setup-hook): Doc fix.
* info.el (Info-index): Get immediate error if used in `dir'.
- * textmodes/picture.el (picture-forward-column)
+ * textmodes/picture.el (picture-forward-column)
(picture-move-down): Never deactivate the mark.
2002-06-30 Simon Josefsson <jas@extundo.com>
(list (concat slash citations opt arg) 3 'font-lock-constant-face)
;;
;; Text between `` quotes ''.
- (cons (concat (regexp-opt `("``" "\"<" "\"`" "<<" "\81«") t)
- "[^'\">\81»]+" ;a bit pessimistic
- (regexp-opt `("''" "\">" "\"'" ">>" "\81»") t))
+ (cons (concat (regexp-opt `("``" "\"<" "\"`" "<<" "k") t)
+ "[^'\">{]+" ;a bit pessimistic
+ (regexp-opt `("''" "\">" "\"'" ">>" "{") t))
'font-lock-string-face)
;;
;; Command names, special and general.
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))