all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: ispell file-error "Setting current directory"
       [not found]       ` <E1CQJ2D-0004U4-1b@fencepost.gnu.org>
@ 2004-11-22 19:10         ` Dan Jacobson
       [not found]         ` <mailman.794.1101166272.27204.bug-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 6+ messages in thread
From: Dan Jacobson @ 2004-11-22 19:10 UTC (permalink / raw)


rms> Here's how check-ispell-version chooses the directory to use:

rms> 	(default-directory (or (and (boundp 'temporary-file-directory)
rms> 				    temporary-file-directory)
rms> 			       default-directory))

rms> Please examine those variables and see what directory it chooses and
rms> why.

It happened again today.  Had to start a new emacs as replying to mail
was blocked by it.  It must be a complex interaction between
ispell, gnus, ffap, (and ange-ftp? (which I never use)).
In all buffers concerned, the variables you mentioned are $HOME or
/tmp, i.e., OK.

 All I know is
Debugger entered--Lisp error: (file-error "Setting current directory"
"no such file or directory" "/home/jidanni/http:/www.geocities.com/jidanni/")
  call-process("ispell" nil t nil "-vv")
  check-ispell-version()
  ispell-init-process()
  ispell-buffer-local-words()
  ispell-accept-buffer-local-defs()
  flyspell-accept-buffer-local-defs()
  flyspell-mode-on()
  flyspell-mode(1)
  #[nil "^HM-^D^G^@M-A M-^H^H?M-^E^V^@M-BM-C VM-^E^V^@M-DM-E!M-^G" [buffer-read-only turn-on-auto-fill 88888 buffer-size flyspell-mode 1] 2]()
  run-hooks(text-mode-hook)
  text-mode()
  pop-to-buffer("*wide reply to Johnny Lin*<4>")
  message-pop-to-buffer("*wide reply to Johnny Lin*<4>")
  message-reply(nil t)
  gnus-summary-reply((13503) t)
  gnus-summary-reply-with-original(nil t)
  gnus-summary-wide-reply-with-original(nil)
  call-interactively(gnus-summary-wide-reply-with-original)

The geocities  buffer was created by a typo minutes earlier. I had
immediately killed it after it appeared.
emacs-version"21.3.1"

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ispell file-error "Setting current directory"
       [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>
       [not found]           ` <mailman.3125.1102006463.27204.bug-gnu-emacs@gnu.org>
  1 sibling, 2 replies; 6+ messages in thread
From: Kevin Rodgers @ 2004-12-02 16:44 UTC (permalink / raw)


Dan Jacobson wrote:
 > rms> Here's how check-ispell-version chooses the directory to use:
 >
 > rms> 	(default-directory (or (and (boundp 'temporary-file-directory)
 > rms> 				    temporary-file-directory)
 > rms> 			       default-directory))
 >
 > rms> Please examine those variables and see what directory it chooses and
 > rms> why.
 >
 > It happened again today.  Had to start a new emacs as replying to mail
 > was blocked by it.  It must be a complex interaction between
 > ispell, gnus, ffap, (and ange-ftp? (which I never use)).
 > In all buffers concerned, the variables you mentioned are $HOME or
 > /tmp, i.e., OK.

That can't be.

 >  All I know is
 > Debugger entered--Lisp error: (file-error "Setting current directory"
 > "no such file or directory" 
"/home/jidanni/http:/www.geocities.com/jidanni/")
 >   call-process("ispell" nil t nil "-vv")
 >   check-ispell-version()

In the *Backtrace* buffer, point should be at the beginning of the
call-process() line.  Move to the check-ispell-version() line, and
please report what these commands display:

e (current-buffer) RET
e default-directory RET
e temporary-file-directory RET

 >   ispell-init-process()
 >   ispell-buffer-local-words()
 >   ispell-accept-buffer-local-defs()
 >   flyspell-accept-buffer-local-defs()
 >   flyspell-mode-on()
 >   flyspell-mode(1)
 >   #[nil "^HM-^D^G^@M-A M-^H^H?M-^E^V^@M-BM-C VM-^E^V^@M-DM-E!M-^G" 
[buffer-read-only turn-on-auto-fill 88888 buffer-size flyspell-mode 1] 2]()
 >   run-hooks(text-mode-hook)
 >   text-mode()
 >   pop-to-buffer("*wide reply to Johnny Lin*<4>")
 >   message-pop-to-buffer("*wide reply to Johnny Lin*<4>")
 >   message-reply(nil t)
 >   gnus-summary-reply((13503) t)
 >   gnus-summary-reply-with-original(nil t)
 >   gnus-summary-wide-reply-with-original(nil)
 >   call-interactively(gnus-summary-wide-reply-with-original)
 >
 > The geocities  buffer was created by a typo minutes earlier. I had
 > immediately killed it after it appeared.
 > emacs-version"21.3.1"

-- 
Kevin Rodgers

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ispell file-error "Setting current directory"
       [not found]           ` <mailman.3125.1102006463.27204.bug-gnu-emacs@gnu.org>
@ 2004-12-03 16:53             ` Stefan Monnier
  0 siblings, 0 replies; 6+ messages in thread
From: Stefan Monnier @ 2004-12-03 16:53 UTC (permalink / raw)


>> All I know is
>> Debugger entered--Lisp error: (file-error "Setting current directory"
>> "no such file or directory"
>    "/home/jidanni/http:/www.geocities.com/jidanni/")
>> call-process("ispell" nil t nil "-vv")
>> check-ispell-version()

Where does http:/www.geocities.com/jidanni/ come from?
Obviously the problem is that some piece of code is using a URL for
a file name.

> In the *Backtrace* buffer, point should be at the beginning of the
> call-process() line.  Move to the check-ispell-version() line, and
> please report what these commands display:

> e (current-buffer) RET
> e default-directory RET
> e temporary-file-directory RET

The `e' command does not pay attention to the position of point in the
debugger buffer.


        Stefan

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ispell file-error "Setting current directory"
  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>
  1 sibling, 0 replies; 6+ messages in thread
From: Dan Jacobson @ 2004-12-04 17:58 UTC (permalink / raw)


>>>>> "K" == Kevin Rodgers <ihs_4664@yahoo.com> writes:
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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ispell file-error "Setting current directory"
       [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>
  1 sibling, 0 replies; 6+ messages in thread
From: Kevin Rodgers @ 2004-12-06 17:06 UTC (permalink / raw)


Dan Jacobson wrote:
>>>>>>"K" == Kevin Rodgers <ihs_4664@yahoo.com> writes:
> 
> 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.

-- 
Kevin Rodgers

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ispell file-error "Setting current directory"
       [not found]               ` <mailman.3958.1102353414.27204.bug-gnu-emacs@gnu.org>
@ 2004-12-06 19:23                 ` Stefan Monnier
  0 siblings, 0 replies; 6+ messages in thread
From: Stefan Monnier @ 2004-12-06 19:23 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-12-06 19:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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
     [not found]           ` <mailman.3125.1102006463.27204.bug-gnu-emacs@gnu.org>
2004-12-03 16:53             ` Stefan Monnier

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.