emacs-devel
[Top][All Lists]
Advanced

[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




reply via email to

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