From: Slawomir Nowaczyk <slawomir.nowaczyk.847@student.lu.se>
Subject: Re: Starting ispell in some fixed directory
Date: Thu, 05 Oct 2006 23:36:05 +0200 [thread overview]
Message-ID: <20061005222638.A577.SLAWOMIR.NOWACZYK.847@student.lu.se> (raw)
In-Reply-To: <20060924191215.4CE2.SLAWOMIR.NOWACZYK.847@student.lu.se>
Hello,
Any comments on this?
On Sun, 24 Sep 2006 19:37:04 +0200
Slawomir Nowaczyk <slawomir.nowaczyk.847@student.lu.se> wrote:
#> #> > A simple fix would be to run ispell in some predefined
#> #> > directory, at least on Windows -- c:/ for example. I do not
#> #> > think the location matters for ispell.
#> #>
#> #> Patches are welcome, but I doubt that it's so easy to find a
#> #> robust directory to run ispell, what with machines that lack a C:
#> #> drive.
#>
#> Possibly... Are there M$ Windows installations without C: drive?
#>
#> Anyway, the following patch seems to work on my machines:
#>
#> **********************************************************************
#>
#> --- m:/EmacsCVS/EmacsCVS/lisp/textmodes/ispell.el 2006-08-11 12:45:48.025268800 +0200
#> +++ c:/Emacs/lisp/textmodes/ispell.el 2006-09-24 19:11:05.962598400 +0200
#> @@ -2492,7 +2492,8 @@
#> (setq ispell-buffer-local-name nil)
#>
#> (if ispell-async-processp
#> - (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)))
#> (apply 'start-process
#> "ispell" nil ispell-program-name
#> "-a" ; accept single input lines
#>
#> **********************************************************************
#>
#> but I am not 100% sure if temporary-file-directory *always* points to an
#> existing directory... I believe it should, though.
#>
#> #> The user's home directory might be a better idea, but even that is
#> #> not fool-proof.
#> #>
#> #> So I think perhaps the code should try c:/ or ~, and if that fails,
#> #> fall back on the current behavior.
#>
#> Well, if we are really paranoid, the test could be expanded into
#> (and (member system-type '(cygwin windows-nt)) (file-exists-p temporary-file-directory))
#> but I do not think it is necessary.
#>
#> We could, alternatively, use the directory from which emacs.exe is
#> running, but I do not know how to get it.
#> (with-current-buffer "*scratch*" default-directory) would be good enough
#> for me, but I believe it is even less likely to work reliably.
On Sun, 24 Sep 2006 19:37:04 +0200
Slawomir Nowaczyk <slawomir.nowaczyk.847@student.lu.se> wrote:
Here is changelog entry, just in case somebody thinks my patch is good
enough to be installed
2006-09-24 Slawomir Nowaczyk <slawek@cs.lth.se>
* ispell.el (ispell-start-process): on windows, do not run
ispell in a current buffer's directory (it prevented the
directory from being moved/renamed)
--
Best wishes,
Slawomir Nowaczyk
( slawomir.nowaczyk.847@student.lu.se )
I asked Mom if I was a gifted child... she said they certainly
wouldn't have paid for me.
next prev parent reply other threads:[~2006-10-05 21:36 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 [this message]
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
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=20061005222638.A577.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.