[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Please try Pmail
From: |
Stefan Monnier |
Subject: |
Re: Please try Pmail |
Date: |
Tue, 20 Jan 2009 23:18:10 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
>> The cleanest solution is to let build_annotations_unwind run some
>> buffer-local hook function (e.g. write-region-post-annotate-function),
>> which can either run kill-buffer, and/or re-narrow the buffer, and/or
>> kill previous buffers. The current code already allows it via
>> kill-buffer-hook, but using that is ugly and will lead to
>> other surprises.
> The annotation functions would need to add functions to that hook when
> they are run.
Not really. When they switch to another buffer, they may need to adjust
that hook in that buffer. The default value could be `kill-buffer', so
as to preserve current behavior.
> Another idea: allow a new type of return value for annotation functions,
> and use this to keep track of buffers to be killed. For example, allow
> annotation functions to return (FUN1 . FUN2), where FUN1 and FUN2 are
> lambda functions. Then FUN1 is called during annotation, and FUN2 is
> called after other annotations have taken place.
Since they return a buffer already, we may as well store the FUN2
inside that buffer (as a buffer-local var).
Stefan
- Please try Pmail, Richard M Stallman, 2009/01/17
- Re: Please try Pmail, Chong Yidong, 2009/01/18
- Re: Please try Pmail, Alfred M. Szmidt, 2009/01/18
- Re: Please try Pmail, Stefan Monnier, 2009/01/18
- Re: Please try Pmail, Chong Yidong, 2009/01/18
- Re: Please try Pmail, Chong Yidong, 2009/01/18
- Re: Please try Pmail, Stefan Monnier, 2009/01/19
- Re: Please try Pmail, Chong Yidong, 2009/01/20
- Re: Please try Pmail, Stefan Monnier, 2009/01/20
- Re: Please try Pmail, Chong Yidong, 2009/01/20
- Re: Please try Pmail,
Stefan Monnier <=
- Re: Please try Pmail, Chong Yidong, 2009/01/21
- Re: Please try Pmail, Stefan Monnier, 2009/01/21
- Re: Please try Pmail, Chong Yidong, 2009/01/21
- Re: Please try Pmail, Stefan Monnier, 2009/01/21
- Re: Please try Pmail, Chong Yidong, 2009/01/21
- Re: Please try Pmail, Richard M Stallman, 2009/01/22
- Re: Please try Pmail, Chong Yidong, 2009/01/22
- Re: Please try Pmail, Richard M Stallman, 2009/01/21
- Re: Please try Pmail, Chong Yidong, 2009/01/21
- Re: Please try Pmail, Richard M Stallman, 2009/01/20