Local Variables/revert-buffer patch for XEmacs 21.4.9-12

Rodney Sparapani rsparapa at post.its.mcw.edu
Wed May 7 16:53:25 CEST 2003


I'm happy to report that Andy Piper has issued a patch to fix the lingering 
Local Variables/revert-buffer problem that exists in XEmacs 21.4.9-12  This 
removes the necessity of the inconvenient work-arounds that I've posted in the 
past.  Kudos to Andy and the XEmacs Project for working with the ESS community 
to get this resolved so ESS works as advertised on their stable flagship 21.4.12

------------- Begin Forwarded Message -------------

2003-05-06  Andy Piper  <andy at xemacs.org>

	* files.el (revert-buffer): Make sure local variables get processed,
	even in the case of an optimized reversion.

------------- End Forwarded Message -------------

Rodney Sparapani              Medical College of Wisconsin
Sr. Biostatistician           Patient Care & Outcomes Research
rsparapa at mcw.edu              http://www.mcw.edu/pcor
Was 'Name That Tune' rigged?  WWLD -- What Would Lombardi Do
-------------- next part --------------
--- lisp/files.el~	2003-01-07 20:49:22.000000000 -0800
+++ lisp/files.el	2003-05-06 17:46:56.000000000 -0700
@@ -2724,7 +2724,14 @@
 		    ;; The resultant buffer is identical, alter
 		    ;; modtime, update mods and exit
 		    (set-visited-file-modtime)
-		    (after-find-file nil nil t t t))
+		    (after-find-file nil nil t t t)
+		    ;; We preserved modes above so fixup the local
+		    ;; variables manually
+		    (condition-case err
+			(hack-local-variables)
+		      (error (lwarn 'local-variables 'warning
+			       "File local-variables error: %s"
+			       (error-message-string err)))))
 		   (t t))
 	     t)))))
 


More information about the ESS-help mailing list