# HG changeset patch # User Stefan Monnier # Date 1242832460 0 # Node ID fd266a506f8e75650a9147c3330f899a0f753cb0 # Parent 713705a2957d6750b6372ac12960b817bab57023 (tex-uptodate-p): Accept [1{/var/foo}] as a page number. diff -r 713705a2957d -r fd266a506f8e lisp/ChangeLog --- a/lisp/ChangeLog Wed May 20 12:57:47 2009 +0000 +++ b/lisp/ChangeLog Wed May 20 15:14:20 2009 +0000 @@ -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 -r 713705a2957d -r fd266a506f8e lisp/textmodes/tex-mode.el --- 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)