From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "John W. Eaton" Newsgroups: gmane.comp.gnu.octave.bugs,gmane.emacs.bugs Subject: CDPATH problem reappears when using octave-2.9.9 from Emacs 23 Date: Sat, 21 Oct 2006 10:06:50 -0400 Message-ID: <17722.10618.676894.295164@segfault.lan> References: <883cfe6d0610201409s65d1c0abt8e6d75db7e17ca8c@mail.gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1161439719 25198 80.91.229.2 (21 Oct 2006 14:08:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 21 Oct 2006 14:08:39 +0000 (UTC) Cc: bug@octave.org, bug-gnu-emacs@gnu.org Original-X-From: bug-octave-bounces@octave.org Sat Oct 21 16:08:36 2006 Return-path: Envelope-to: gcgob-bug-octave@gmane.org Original-Received: from mail.cae.wisc.edu ([144.92.13.31]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GbHWc-0005HA-2K for gcgob-bug-octave@gmane.org; Sat, 21 Oct 2006 16:08:34 +0200 Original-Received: from www.cae.wisc.edu (www.cae.wisc.edu [144.92.13.3]) by mail.cae.wisc.edu (8.13.7+Sun/8.13.3) with ESMTP id k9LE7iDN020361; Sat, 21 Oct 2006 09:07:45 -0500 (CDT) Original-Received: from mail.cae.wisc.edu (mail.cae.wisc.edu [144.92.13.31]) by wwwcaewiscedu (8.13.7+Sun/8.13.7) with ESMTP id k9LE7f8p023008 for ; Sat, 21 Oct 2006 09:07:41 -0500 (CDT) Original-Received: from smtpauth.cae.wisc.edu (smtpauth.cae.wisc.edu [144.92.13.83]) by mail.cae.wisc.edu (8.13.7+Sun/8.13.3) with ESMTP id k9LE6uIO020193; Sat, 21 Oct 2006 09:06:56 -0500 (CDT) Original-Received: from segfault.lan (24-54-182-19.pittpa.adelphia.net [24.54.182.19]) (authenticated bits=0) by smtpauth.cae.wisc.edu (8.13.4/8.13.4/Debian-3sarge2) with ESMTP id k9LE6tgf015746 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 21 Oct 2006 09:06:56 -0500 Original-To: "Michel Salim" In-Reply-To: <883cfe6d0610201409s65d1c0abt8e6d75db7e17ca8c@mail.gmail.com> X-Mailer: VM 7.19 under Emacs 22.0.50.1 X-CAE-MailScanner: Found to be clean (benji), Found to be clean (benji) X-Spam-Flag: NO X-Spam-Level: X-Spam-Reason: ALL_TRUSTED, AWL X-BeenThere: bug-octave@octave.org X-Mailman-Version: 2.1.7 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-octave-bounces@octave.org Errors-To: bug-octave-bounces@octave.org X-CAE-MailScanner-Information: Please contact security@engr.wisc.edu if this message contains a virus or has been corrupted in delivery. Xref: news.gmane.org gmane.comp.gnu.octave.bugs:3981 gmane.emacs.bugs:15384 Archived-At: On 20-Oct-2006, Michel Salim wrote: | -------- | Bug report for Octave 2.9.9 configured for x86_64-redhat-linux-gnu | | Description: | ----------- | | When running Octave 2.9.9 from Emacs (using the CVS unicode-2 branch here), | using M-x run-octave, I get this error: | | "No such directory found via CDPATH environment variable" | | This does not occur after I downgraded Octave to 2.9.8. The problem occurs both | on a Fedora Core 6 (prerelease) machine on x86_64 and on a Fedora Core 5 | machine on i386. | | The problem also does not occur when using the stable 21.4 release of Emacs | | Repeat-By: | --------- | | * Install CVS version of emacs from the emacs-unicode-2 branch | * Start Emacs | * M-x run-octave Is there an Emacs expert on the list who can do this? I don't have time for it. In any case, I looked at the Emacs lisp files that are distributed with the pre-release of Emacs that I am using and it appears that this message could come from the cd function. Is there a cd command in any of your Octave startup files (user or system) that is trying to change to a directory that doesn't exist? The function in the Octave Emacs mode (at least the one distributed with Octave) that calls cd is (defun inferior-octave-directory-tracker (string) "Tracks `cd' commands issued to the inferior Octave process. Use \\[inferior-octave-resync-dirs] to resync if Emacs gets confused." (cond ((string-match "^[ \t]*cd[ \t;]*$" string) (cd "~")) ((string-match "^[ \t]*cd[ \t]+\\([^ \t\n;]*\\)[ \t\n;]*" string) (cd (substring string (match-beginning 1) (match-end 1)))))) This function is set as the comint-input-filter-functions, so I think it will scan all input passed to Octave from Emacs. jwe