[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
- Re: Occur stack, (continued)
- Re: Occur stack, Daniel Colascione, 2014/01/14
- Re: Occur stack, John Yates, 2014/01/14
- RE: Occur stack, Drew Adams, 2014/01/14
- Re: Occur stack, Stefan Monnier, 2014/01/14
- Re: Occur stack, Allen S. Rout, 2014/01/14
- Re: Occur stack, Juri Linkov, 2014/01/15
- Re: Occur stack,
David Kastrup <=
- Re: Occur stack, Juri Linkov, 2014/01/16
- Re: Occur stack, David Kastrup, 2014/01/16
- Re: Occur stack, Lars Ingebrigtsen, 2014/01/16
- Re: Occur stack, David Kastrup, 2014/01/16
- Re: Occur stack, Stefan Monnier, 2014/01/16
- Re: Occur stack, David Kastrup, 2014/01/16
- Re: Occur stack, Lars Ingebrigtsen, 2014/01/17
- Re: Occur stack, Tom, 2014/01/14
Re: Occur stack, Andreas Röhler, 2014/01/15