emacs-devel
[Top][All Lists]
Advanced

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

Re: Occur stack


From: David Kastrup
Subject: Re: Occur stack
Date: Wed, 15 Jan 2014 10:06:07 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Juri Linkov <address@hidden> writes:

>>> Yes, I can do this manually if I remember to do it,
>>
>> No need to do it by hand:
>>
>> (add-hook 'occur-hook 'rename-uniquely)
>
> Or (add-hook 'occur-hook (lambda () (occur-rename-buffer t)))
>
> In addition, for more convenience of switching related buffers
> we could group occur buffers in the window-local tab-bar,
> so it will display the history of *Occur* buffers.
> In *Help* it could display the history of help topics,
> in Dired the history of directories visited with `a'
> (dired-find-alternate-file), etc.

For things like an occur or grep buffer, I don't think it is necessary
to keep the actual contents around.  They can be regenerated from
scratch fast enough, so just keeping the history and possibly a somewhat
robust cursor location should be enough.  It becomes trickier with stuff
like grep-find which may run for a while.  Still, having the command
history to some depth available conveniently is cheap and useful,
certainly much cheaper than keeping the buffers.

-- 
David Kastrup




reply via email to

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