From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: doc-view.el: about cursor and filename display Date: Wed, 17 Oct 2007 01:02:47 -0400 Message-ID: References: <87r6jw20p3.fsf@baldur.tsdh.de> <87przfbm9t.fsf@baldur.tsdh.de> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1192597389 18000 80.91.229.12 (17 Oct 2007 05:03:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Oct 2007 05:03:09 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 17 07:03:09 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ii13h-0003bN-LC for ged-emacs-devel@m.gmane.org; Wed, 17 Oct 2007 07:03:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ii13a-0004sX-JV for ged-emacs-devel@m.gmane.org; Wed, 17 Oct 2007 01:02:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ii13W-0004s6-Ny for emacs-devel@gnu.org; Wed, 17 Oct 2007 01:02:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ii13V-0004r6-6L for emacs-devel@gnu.org; Wed, 17 Oct 2007 01:02:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ii13V-0004qy-3S for emacs-devel@gnu.org; Wed, 17 Oct 2007 01:02:53 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ii13Q-0001Cd-Oq; Wed, 17 Oct 2007 01:02:48 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1Ii13P-0002DI-Aw; Wed, 17 Oct 2007 01:02:47 -0400 In-reply-to: <87przfbm9t.fsf@baldur.tsdh.de> (message from Tassilo Horn on Tue, 16 Oct 2007 08:34:38 +0200) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:81042 Archived-At: 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. Is the conversion done asynchronously? If so, then yes you could easily check this way. I think the right action is to kill the existing process and start a new one, because that's what the user asked for. You could also indicate in the mode line that the process is running.