emacs-devel
[Top][All Lists]
Advanced

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

Re: xref and leaving "temporary" buffers open


From: Eli Zaretskii
Subject: Re: xref and leaving "temporary" buffers open
Date: Sat, 25 Jul 2015 17:07:14 +0300

> Cc: address@hidden
> From: Dmitry Gutov <address@hidden>
> Date: Sat, 25 Jul 2015 16:26:45 +0300
> 
> What I'm talking about, are file buffers that xref commands need to 
> open, to read their contents. Such as xref-find-references; see, it can 
> use Grep to find textual matches, but it cannot verify that the 
> beginning and the end of the match are symbol boundaries without using 
> the corresponding major mode, its syntax table, *and* its 
> syntax-propertize-function. Basically, the only sane solution is to open 
> each buffer and verify.
> 
> The question is, should they be killed afterwards.

There are arguments either way, AFAIU, so perhaps make this a
defcustom.

> > I see no reason why not.  Some commands already save the buffer
> > (perhaps after asking for confirmation) to have the file on disk
> > consistent with what Emacs has, and this is no different.
> 
> Hmm yes. I wonder if it'll be appropriate to simply call 
> (auto-revert-handler) if each buffer visited for this purpose.

Might be reasonable.  Again, if you are in doubt, let a user option
override that.



reply via email to

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