[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: doc-view.el: about cursor and filename display
From: |
Tassilo Horn |
Subject: |
Re: doc-view.el: about cursor and filename display |
Date: |
Tue, 16 Oct 2007 08:34:38 +0200 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) |
Richard Stallman <address@hidden> writes:
> That can happen if the user calls revert explicitly as well (yes,
> less likely and less severe, but still: the user might do M-x
> revert-buffer, then get annoyed that it doesn't see the result, so
> do it again and again and again).
>
> It shouldn't be too difficult to protect against it by detecting
> the situation and "reacting appropriately".
>
> I don't see how it is possible to detect such a situation. M-x
> revert-buffer could at most detect that input is pending; it cannot
> tell what that input will do when executed, so there is really nothing
> it can do.
I'm not completely sure, but the docs lead me to the impression that I
can set `revert-buffer-function' in doc-view buffers to the function
that reconverts a file. In that function I could check for currently
running processes and revert/reconvert only if no process is already
running. If there's a conversion process underway, I could inform the
user with a message.
Bye,
Tassilo
- doc-view.el: about cursor and filename display, William Xu, 2007/10/15
- Re: doc-view.el: about cursor and filename display, Tassilo Horn, 2007/10/15
- Re: doc-view.el: about cursor and filename display, Stefan Monnier, 2007/10/15
- Re: doc-view.el: about cursor and filename display, Tassilo Horn, 2007/10/15
- Re: doc-view.el: about cursor and filename display, Richard Stallman, 2007/10/16
- Re: doc-view.el: about cursor and filename display,
Tassilo Horn <=
- Re: doc-view.el: about cursor and filename display, Richard Stallman, 2007/10/17
- Re: doc-view.el: about cursor and filename display, Tassilo Horn, 2007/10/17
- Re: doc-view.el: about cursor and filename display, Stefan Monnier, 2007/10/17
- Re: doc-view.el: about cursor and filename display, Tassilo Horn, 2007/10/17
- Re: doc-view.el: about cursor and filename display, Richard Stallman, 2007/10/18
- Re: doc-view.el: about cursor and filename display, Tassilo Horn, 2007/10/18
- Re: doc-view.el: about cursor and filename display, Tassilo Horn, 2007/10/17
- Re: doc-view.el: about cursor and filename display, Dan Nicolaescu, 2007/10/17
- Re: doc-view.el: about cursor and filename display, Miles Bader, 2007/10/17
- Re: doc-view.el: about cursor and filename display, Richard Stallman, 2007/10/19