]> git.eshelyaron.com Git - emacs.git/commitdiff
(tex-uptodate-p): Accept [1{/var/foo}] as a page number.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 20 May 2009 15:14:20 +0000 (15:14 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 20 May 2009 15:14:20 +0000 (15:14 +0000)
lisp/ChangeLog
lisp/textmodes/tex-mode.el

index ac91f3f3f105352ce8949682ce612457eced1352..108e28a5242242ad20923076671dab2fef12290e 100644 (file)
@@ -1,3 +1,8 @@
+2009-05-20  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * textmodes/tex-mode.el (tex-uptodate-p): Accept [1{/var/foo}] as
+       a page number.
+
 2009-05-20  Jason Rumney  <jasonr@gnu.org>
 
        * files.el (locate-dominating-stop-dir-regexp): Add terminal
 
 2009-05-20  Chong Yidong  <cyd@stupidchicken.com>
 
-       * international/encoded-kb.el (encoded-kbd-setup-display): Change
-       DISPLAY arg to TERMINAL.
+       * international/encoded-kb.el (encoded-kbd-setup-display):
+       Change DISPLAY arg to TERMINAL.
 
        * international/mule.el (set-terminal-coding-system)
        (set-keyboard-coding-system): Change DISPLAY arg to TERMINAL.
 
 2009-05-19  Alan Mackenzie  <acm@muc.de>
 
-       * progmodes/cc-mode.el (c-extend-and-neutralize-CPP-line): Renamed
-       from c-neutralize-syntax-in-CPP.  Set the variables c-new-BEG and
-       c-new-END, thus extending the font-lock region.
-       (c-font-lock-init): Don't set obsolete variable
-       font-lock-lines-before.
+       * progmodes/cc-mode.el (c-extend-and-neutralize-CPP-line):
+       Rename from c-neutralize-syntax-in-CPP.  Set the variables c-new-BEG
+       and c-new-END, thus extending the font-lock region.
+       (c-font-lock-init): Don't set obsolete variable font-lock-lines-before.
 
        * progmodes/cc-langs.el (c-before-font-lock-function): Rename a
        value to c-extend-and-neutralize-syntax-in-CPP.
index 312a081992e9b9ee3a6851596438242ce3d0ebcd..8c8a9d5ac1a1000582d15de03e0b69eb737a0a10 100644 (file)
@@ -1924,7 +1924,11 @@ FILE is typically the output DVI or PDF file."
                          " (.*)\\.")
                  nil t)
                (> (save-excursion
-                    (or (re-search-backward "\\[[0-9]+\\]" nil t)
+                     ;; Usually page numbers are output as [N], but
+                     ;; I've already seen things like
+                     ;; [1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}]
+                     (or (re-search-backward "\\[[0-9]+\\({[^}]*}\\)?\\]"
+                                             nil t)
                         (point-min)))
                   (save-excursion
                     (or (re-search-backward "Rerun" nil t)