From 24d2266c2003adab99cb30587a353c4663af7ddf Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Wed, 20 May 2009 15:14:20 +0000 Subject: [PATCH] (tex-uptodate-p): Accept [1{/var/foo}] as a page number. --- lisp/ChangeLog | 18 +++++++++++------- lisp/textmodes/tex-mode.el | 6 +++++- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ac91f3f3f10..108e28a5242 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2009-05-20 Stefan Monnier + + * textmodes/tex-mode.el (tex-uptodate-p): Accept [1{/var/foo}] as + a page number. + 2009-05-20 Jason Rumney * files.el (locate-dominating-stop-dir-regexp): Add terminal @@ -5,19 +10,18 @@ 2009-05-20 Chong Yidong - * 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 - * 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. diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index 312a081992e..8c8a9d5ac1a 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el @@ -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) -- 2.39.5