From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Agustin Martin Newsgroups: gmane.emacs.bugs Subject: bug#6143: 24.0.50; don't ispell-kill-ispell over and over Date: Wed, 12 May 2010 12:26:07 +0200 Message-ID: <20100512102606.GA12529@agmartin.aq.upm.es> References: <87y6ftvphy.fsf@jidanni.org> <20100511132008.GA8625@agmartin.aq.upm.es> <20100511151826.GA13569@agmartin.aq.upm.es> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1273667205 8842 80.91.229.12 (12 May 2010 12:26:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 12 May 2010 12:26:45 +0000 (UTC) To: 6143@debbugs.gnu.org, jidanni@jidanni.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 12 14:26:42 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OCB1O-0003UX-Ge for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 May 2010 14:26:42 +0200 Original-Received: from localhost ([127.0.0.1]:46193 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OCB1N-0005lp-LZ for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 May 2010 08:26:41 -0400 Original-Received: from [140.186.70.92] (port=41730 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OCB1F-0005j2-03 for bug-gnu-emacs@gnu.org; Wed, 12 May 2010 08:26:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OCB1C-0004PI-RU for bug-gnu-emacs@gnu.org; Wed, 12 May 2010 08:26:32 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44725) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OCB1C-0004PC-PU for bug-gnu-emacs@gnu.org; Wed, 12 May 2010 08:26:30 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OCAxq-0004by-DF; Wed, 12 May 2010 08:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Agustin Martin Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 May 2010 12:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6143 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6143-submit@debbugs.gnu.org id=B6143.127366693517707 (code B ref 6143); Wed, 12 May 2010 12:23:02 +0000 Original-Received: (at 6143) by debbugs.gnu.org; 12 May 2010 12:22:15 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OCAx4-0004bY-3Z for submit@debbugs.gnu.org; Wed, 12 May 2010 08:22:15 -0400 Original-Received: from edison.ccupm.upm.es ([138.100.4.49]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OC98l-0003Di-7L for 6143@debbugs.gnu.org; Wed, 12 May 2010 06:26:12 -0400 Original-Received: from agmartin.aq.upm.es (Agmartin.aq.upm.es [138.100.41.131]) by edison.ccupm.upm.es (8.13.8/8.13.8) with ESMTP id o4CAQ7bK027979; Wed, 12 May 2010 12:26:07 +0200 Original-Received: by agmartin.aq.upm.es (Postfix, from userid 1000) id 28BEA8C23E; Wed, 12 May 2010 12:26:07 +0200 (CEST) Content-Disposition: inline In-Reply-To: <20100511151826.GA13569@agmartin.aq.upm.es> User-Agent: Mutt/1.5.20 (2009-06-14) X-Mailman-Approved-At: Wed, 12 May 2010 08:22:12 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 12 May 2010 08:23:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:36895 Archived-At: On Tue, May 11, 2010 at 05:18:26PM +0200, Agustin Martin wrote: > I am still trying to think about something cleaner, or at least about a > reasonable workaround. I have been thinking about this, and about a fix that is XEmacs compatible. Although current ispell.el and flyspell.el cannot be used out of the box in XEmacs, I am using for Debian one of the versions before the CVS->bzr migration heavily patched to also work for XEmacs and keep a consistent spellchecking interface across different Emacs flavors. As a matter of fact it is even patched to work with emacs 21.3, but this is something I do not want to maintain any longer. I am thinking about two possible approaches, one is a compromise, minibuffer is somewhat special, so ispell process directory could be set to $HOME only when spellchecking minibuffer, and name of buffer where ispell process is started faked in this specific case, so process is not killed when buffer is killed. Since process is asigned to $HOME no problems are expected when this is done from a buffer in a removable device creating a minibuffer. However, usual ispell behavior will not be fully honoured here, but this is a side use. Something like (if (window-minibuffer-p) (setq ispell-process-directory (expand-file-name "~/") ispell-process-buffer-name " *Minibuffer-1-has-spellcheck-enabled") (setq ispell-process-directory default-directory ispell-process-buffer-name (buffer-name))) The second approach requires a clean and portable way of knowing the parent buffer for the relevant minibuffer. In this case, just naming ispell-process-buffer-name as parent buffer name may work. I currently do not see a good way to do the second, so first approach should be a reasonable compromise. I will test a bit more and commit if no further problems appear. -- Agustin