bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ispell file-error "Setting current directory"


From: Stefan Monnier
Subject: Re: ispell file-error "Setting current directory"
Date: Mon, 06 Dec 2004 19:23:54 GMT
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

K> please report what these commands display:
>> I would but Stallman emailed me this patch meaning it's probably fixed
>> now. Maybe next time I should forward these pacthes to the list, who
>> are in much better position to test them than I, and who should know
>> that a fix has already been found.
>> *** ispell.el        01 Nov 2004 13:20:28 -0500      1.149
>> --- ispell.el        23 Nov 2004 17:04:09 -0500      
>> ***************
>> *** 769,774 ****
>> --- 769,776 ----
>> (if buf (kill-buffer buf)))
>> (set-buffer (get-buffer-create " *ispell-tmp*"))
>> (erase-buffer)
>> +       (unless (file-exists-p default-directory)
>> +    (setq default-directory (expand-file-name "~/")))
>> (setq status (call-process
>> ispell-program-name nil t nil
>> ;; aspell doesn't accept the -vv switch.

> That's not a fix, it's a workaround.  The bug that sets default-directory
> to something other than a directory still exists.

No I think it's a fix.  `ispell' does not need to run in any particular
directory (i.e. it doesn't have to run in the directory of the file on which
you're working).  `default-directory' can be validly set to a non-existent
directory (either because it hasn't been made yet, or because it's on
a remote host, or ...).
So you may as well run ispell in ~/ and get on with your life.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]