From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Klaus Zeitler Newsgroups: gmane.emacs.bugs Subject: flyspell-prog-mode and file with non-existing dir Date: Mon, 22 Jul 2002 16:50:16 +0200 (MEST) Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <200207221450.g6MEoGS04698@sfsw51.de.lucent.com> NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1027349542 16874 127.0.0.1 (22 Jul 2002 14:52:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 22 Jul 2002 14:52:22 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17WeXs-0004O2-00 for ; Mon, 22 Jul 2002 16:52:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17WeY5-0002GR-00; Mon, 22 Jul 2002 10:52:33 -0400 Original-Received: from auemail2.lucent.com ([192.11.223.163] helo=auemail2.firewall.lucent.com) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17WeWd-00025z-00 for ; Mon, 22 Jul 2002 10:51:03 -0400 Original-Received: from nbgif1.de.lucent.com (h135-248-192-26.lucent.com [135.248.192.26]) by auemail2.firewall.lucent.com (Switch-2.2.2/Switch-2.2.0) with ESMTP id g6MEouW15133 for ; Mon, 22 Jul 2002 10:50:56 -0400 (EDT) Original-Received: from sfsws1.de.lucent.com (sfsws1 [135.248.217.84]) by nbgif1.de.lucent.com (8.8.8/8.8.5) with ESMTP id QAA09412 for ; Mon, 22 Jul 2002 16:50:53 +0200 (MEST) Original-Received: from sfsw51.de.lucent.com (sfsw51 [135.248.210.168]) by sfsws1.de.lucent.com (8.11.6+Sun/8.8.5) with ESMTP id g6MEoHQ01458 for ; Mon, 22 Jul 2002 16:50:52 +0200 (MEST) Original-Received: (from kzeitler@localhost) by sfsw51.de.lucent.com (8.11.6+Sun/8.8.8) id g6MEoGS04698; Mon, 22 Jul 2002 16:50:16 +0200 (MEST) Original-To: bug-gnu-emacs@gnu.org Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:2820 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:2820 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 bug-gnu-emacs@gnu.org 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: C-j C-x C-f t s t x / x . c y p o d i r - w i t h - C-x k C-x C-f t s t 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