unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: ispell file-error "Setting current directory"
Date: Mon, 06 Dec 2004 19:23:54 GMT	[thread overview]
Message-ID: <jwvd5xnqlqk.fsf-monnier+gnu.emacs.bug@gnu.org> (raw)
In-Reply-To: mailman.3958.1102353414.27204.bug-gnu-emacs@gnu.org

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

  parent reply	other threads:[~2004-12-06 19:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1CLMMX-0005FZ-6I@fencepost.gnu.org>
     [not found] ` <87vfd13sn1.fsf@jidanni.org>
     [not found]   ` <E1CM4fE-00053C-NN@fencepost.gnu.org>
     [not found]     ` <874qk7zubd.fsf@jidanni.org>
     [not found]       ` <E1CQJ2D-0004U4-1b@fencepost.gnu.org>
2004-11-22 19:10         ` ispell file-error "Setting current directory" Dan Jacobson
     [not found]         ` <mailman.794.1101166272.27204.bug-gnu-emacs@gnu.org>
2004-12-02 16:44           ` Kevin Rodgers
2004-12-04 17:58             ` Dan Jacobson
     [not found]             ` <mailman.3571.1102191417.27204.bug-gnu-emacs@gnu.org>
2004-12-06 17:06               ` Kevin Rodgers
     [not found]               ` <mailman.3958.1102353414.27204.bug-gnu-emacs@gnu.org>
2004-12-06 19:23                 ` Stefan Monnier [this message]
     [not found]           ` <mailman.3125.1102006463.27204.bug-gnu-emacs@gnu.org>
2004-12-03 16:53             ` Stefan Monnier

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvd5xnqlqk.fsf-monnier+gnu.emacs.bug@gnu.org \
    --to=monnier@iro.umontreal.ca \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).