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

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

flyspell-prog-mode and file with non-existing dir


From: Klaus Zeitler
Subject: flyspell-prog-mode and file with non-existing dir
Date: Mon, 22 Jul 2002 16:50:16 +0200 (MEST)

This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the address@hidden mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.2.2 (sparc-sun-solaris2.7, Motif Version 2.1.0)
 of 2002-04-25 on sfsw54
configured using `configure  --with-gcc 
--prefix=/vol/freeware/SunOS-5.7/emacs/21.2 
--sharedstatedir=/vol/freeware/SunOS-5.7/emacs/21.2/share 
--with-x-toolkit=motif --x-includes=/usr/openwin/include:/usr/local/gnu/include 
--x-libraries=/usr/openwin/lib:/usr/local/gnu/lib --with-pop'
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: C
  locale-coding-system: nil
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:


1. start emacs with -q --no-site-file
2. in scratch buffer execute
   (flyspell-prog-mode)
3. execute find-file for a C file with a typo in the directory name,
   e.g. ~/dir-with-typo/x.c

   this results in

File mode specification error: (file-error "Setting current directory" "no such 
file or directory" "/home/kzeitler/dir-with-typo/")


>From now find-file of all files that want to use flyspell-prog-mode will
result in the same error. More over if there are more functions in the mode 
hook these wont be executed.


Reason:

check-ispell-version fails with the non existing directory, but the
temporary buffer " *ispell-tmp*" wont be killed. Further calls of
check-ispell-version use the existing temporary buffer and immediately
return with the same error (from call-process).
I guess that the call-process call in check-ispell-version needs some
error handling, i.e. catch the error and kill temp buffer.

Workaround is obvious: kill temp buffer " *ispell-tmp*"


Recent input:
<mouse-2> <return> <left> C-j C-x C-f <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> t s t x / x . c <left> <left> 
<left> <left> <backspace> <backspace> <backspace> y 
p o <right> <right> <right> <left> <left> <left> <left> 
<left> <left> <left> d i r - w i t h - <return> C-x 
k <return> C-x C-f <up> <left> <left> <left> <left> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> t s t <return> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <menu-bar> <help-menu> <re
port-emacs-bug>

Recent messages:
Loading tooltip...done
For information about the GNU Project and its goals, type C-h C-p.
Mark set
Use M-x make-directory RET RET to create the directory
Loading cc-mode...done
Loading flyspell...
File mode specification error: (file-error "Setting current directory" "no such 
file or directory" "/home/kzeitler/dir-with-typo/")
Loading flyspell...
File mode specification error: (file-error "Setting current directory" "no such 
file or directory" "/home/kzeitler/dir-with-typo/")
Loading emacsbug...done



reply via email to

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