From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Slawomir Nowaczyk Newsgroups: gmane.emacs.devel Subject: Re: Starting ispell in some fixed directory Date: Fri, 06 Oct 2006 22:28:42 +0200 Message-ID: <20061006221113.A5A5.SLAWOMIR.NOWACZYK.847@student.lu.se> References: <20061005222638.A577.SLAWOMIR.NOWACZYK.847@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1160166549 11769 80.91.229.2 (6 Oct 2006 20:29:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 6 Oct 2006 20:29:09 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 06 22:29:07 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GVwJe-0003lF-40 for ged-emacs-devel@m.gmane.org; Fri, 06 Oct 2006 22:29:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GVwJd-0005DX-FU for ged-emacs-devel@m.gmane.org; Fri, 06 Oct 2006 16:29:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GVwJS-00059U-F9 for emacs-devel@gnu.org; Fri, 06 Oct 2006 16:28:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GVwJQ-000522-8n for emacs-devel@gnu.org; Fri, 06 Oct 2006 16:28:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GVwJQ-00051o-4V for emacs-devel@gnu.org; Fri, 06 Oct 2006 16:28:52 -0400 Original-Received: from [130.235.16.11] (helo=himmelsborg.cs.lth.se) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GVwQM-0006B4-Pk for emacs-devel@gnu.org; Fri, 06 Oct 2006 16:36:03 -0400 Original-Received: from [127.0.0.1] (slawek@dain [130.235.16.76]) by himmelsborg.cs.lth.se (8.13.6/8.13.6/perf-jw-tr) with ESMTP id k96KSnb0028188 for ; Fri, 6 Oct 2006 22:28:49 +0200 (CEST) Original-To: emacs-devel@gnu.org In-Reply-To: X-Esmandil_Citation: done X-Mailer-Plugin: Popup Memopad for Becky!2 Ver.0.02 Rev.2 X-Mailer: Becky! ver. 2.25.02 [en] 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:60479 Archived-At: On Thu, 05 Oct 2006 18:43:34 -0400 Stefan Monnier wrote: #> > #> - (let ((process-connection-type ispell-use-ptys-p)) #> > #> + (let ((process-connection-type ispell-use-ptys-p) #> > #> + (default-directory (if (member system-type '(cygwin windows-nt)) temporary-file-directory default-directory))) #> #> Rather than testing system-type, why not test that #> temporary-file-directory exists? Well, I wanted to keep the change a non-invasive as possible, but you are probably right, there is nothing wrong with running ispell from another directory on systems other than w32 as well. So, how about: (let ((process-connection-type ispell-use-ptys-p) (default-directory (if (and invocation-directory (file-exists-p invocation-directory)) invocation-directory default-directory))) Initially I had some doubts about efficiency of checking directory existence, but it should be totally negligible compared to the cost of start-process. -- Best wishes, Slawomir Nowaczyk ( slawomir.nowaczyk.847@student.lu.se ) Copy Protection: A clever method of preventing incompetent pirates from stealing software and legitimate customers from using it.