Mercurial > emacs
diff lisp/textmodes/tex-mode.el @ 103268:fd266a506f8e
(tex-uptodate-p): Accept [1{/var/foo}] as a page number.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Wed, 20 May 2009 15:14:20 +0000 |
parents | a9dc0e7c3f2b |
children | da8b3e61b182 |
line wrap: on
line diff
--- a/lisp/textmodes/tex-mode.el Wed May 20 12:57:47 2009 +0000 +++ b/lisp/textmodes/tex-mode.el Wed May 20 15:14:20 2009 +0000 @@ -1924,7 +1924,11 @@ " (.*)\\.") 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)