[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX-devel] address@hidden: reftex visits .rel files]

From: Ralf Angeli
Subject: Re: [AUCTeX-devel] address@hidden: reftex visits .rel files]
Date: Sun, 22 Jul 2007 09:52:38 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux)

* Richard Stallman (2007-07-21) writes:

> Would you please DTRT then ack?  Please install the fix
> in the Emacs 22 branch.
> From: David Reitter <address@hidden>
> reftex seems to visit .rel files in a way that makes them appear in  
> the `recentf' file list.

Here is a patch with changelog entry.  Could somebody please install
this?  I don't have write access to the Emacs CVS repository.

2007-07-22  Ralf Angeli  <address@hidden>

        * textmodes/reftex.el (reftex-access-parse-file): Create parse
        file in a way that does not interfere with recentf.

--- reftex.el   22 Mar 2007 22:06:43 +0100      1.73
+++ reftex.el   22 Jul 2007 09:49:16 +0200      
@@ -1333,7 +1333,7 @@
         (if (file-writable-p file)
               (message "Writing parse file %s" (abbreviate-file-name file))
-              (find-file file)
+             (set-buffer (get-buffer-create file))
               (insert (format ";; RefTeX parse info file\n"))
               (insert (format ";; File: %s\n" master))
@@ -1358,7 +1358,7 @@
                          (t (print x))))
               (insert "))\n\n")
-              (save-buffer 0)
+             (write-region (point-min) (point-max) file nil 'silent)
               (kill-buffer (current-buffer)))
           (error "Cannot write to file %s" file)))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]