From: Slawomir Nowaczyk <slawomir.nowaczyk.847@student.lu.se>
Subject: Re: Starting ispell in some fixed directory
Date: Fri, 06 Oct 2006 22:28:42 +0200 [thread overview]
Message-ID: <20061006221113.A5A5.SLAWOMIR.NOWACZYK.847@student.lu.se> (raw)
In-Reply-To: <jwvzmcacs39.fsf-monnier+emacs@gnu.org>
On Thu, 05 Oct 2006 18:43:34 -0400
Stefan Monnier <monnier@iro.umontreal.ca> 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.
prev parent reply other threads:[~2006-10-06 20:28 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-18 14:32 Starting ispell in some fixed directory Slawomir Nowaczyk
2006-09-18 18:51 ` Richard Stallman
2006-09-18 19:10 ` Eli Zaretskii
2006-09-24 17:37 ` Slawomir Nowaczyk
2006-09-25 8:21 ` Slawomir Nowaczyk
2006-10-05 21:36 ` Slawomir Nowaczyk
2006-10-05 22:00 ` Stuart D. Herring
2006-10-05 22:33 ` Slawomir Nowaczyk
2006-10-05 22:43 ` Stefan Monnier
2006-10-06 20:28 ` Slawomir Nowaczyk [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061006221113.A5A5.SLAWOMIR.NOWACZYK.847@student.lu.se \
--to=slawomir.nowaczyk.847@student.lu.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.