changeset 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 713705a2957d
children 9e868e938ebb
files lisp/ChangeLog lisp/textmodes/tex-mode.el
diffstat 2 files changed, 16 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- 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  <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
@@ -5,19 +10,18 @@
 
 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.
--- 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)