GNU bug report logs - #11962
23.4; shell-process-cd called before executing command in shell, but must after.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Oleksandr Gavenko <gavenkoa@HIDDEN>; dated Tue, 17 Jul 2012 19:32:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 17 Jul 2012 19:31:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 17 15:31:20 2012
Received: from localhost ([127.0.0.1]:46668 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1SrDUL-0004XP-Bi
	for submit <at> debbugs.gnu.org; Tue, 17 Jul 2012 15:31:19 -0400
Received: from eggs.gnu.org ([208.118.235.92]:38281)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <gavenkoa@HIDDEN>) id 1SrDUI-0004XH-6B
	for submit <at> debbugs.gnu.org; Tue, 17 Jul 2012 15:31:15 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gavenkoa@HIDDEN>) id 1SrDOR-0003k2-Jp
	for submit <at> debbugs.gnu.org; Tue, 17 Jul 2012 15:25:12 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:38848)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gavenkoa@HIDDEN>) id 1SrDOR-0003jy-Fp
	for submit <at> debbugs.gnu.org; Tue, 17 Jul 2012 15:25:11 -0400
Received: from eggs.gnu.org ([208.118.235.92]:59000)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gavenkoa@HIDDEN>) id 1SrDOQ-0000Ez-Et
	for bug-gnu-emacs@HIDDEN; Tue, 17 Jul 2012 15:25:11 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gavenkoa@HIDDEN>) id 1SrDOP-0003jJ-AS
	for bug-gnu-emacs@HIDDEN; Tue, 17 Jul 2012 15:25:10 -0400
Received: from mail-wg0-f49.google.com ([74.125.82.49]:58047)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gavenkoa@HIDDEN>) id 1SrDOP-0003ht-1f
	for bug-gnu-emacs@HIDDEN; Tue, 17 Jul 2012 15:25:09 -0400
Received: by wgbez12 with SMTP id ez12so511941wgb.30
	for <bug-gnu-emacs@HIDDEN>; Tue, 17 Jul 2012 12:25:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=from:to:subject:date:message-id:mime-version:content-type;
	bh=CHfB/tFq2kODOoiSXiAc7KUEmlMN8/lpbXq1EprfPcE=;
	b=Sz/d/Du06QlEFr5vNUxO577/mRzQHgdo0I5DKhCBPurpVa5PJ+FoPBfAVb57OChgGm
	1CRdMHEnIhE7Ip4pr8d9j2UAD8iKHczyfBGT/F+k0jhWJaqt2raDQPi0GX+bWH+8gz6v
	rwzjuPUwvOW2v9GljMuXOAbSrv69lDMkFaik/7ic3PaVSPK3gfaqtjmVeJsdQxLfn6O7
	wwtIHrihOk8pkYFixgTaFhHN9R0khC35nM576N7Y7GA1numHbgHKOSs3H46vkndvet86
	AEq/spb/cIVkp/vWavLgPFdOV2keEZHj8cNbl0rYWsplUjD02uxSYjXkwL80fWdJJqHd
	69yw==
Received: by 10.216.154.69 with SMTP id g47mr82075wek.171.1342553107434;
	Tue, 17 Jul 2012 12:25:07 -0700 (PDT)
Received: from localhost ([46.185.20.32])
	by mx.google.com with ESMTPS id bc2sm42088226wib.0.2012.07.17.12.25.05
	(version=TLSv1/SSLv3 cipher=OTHER);
	Tue, 17 Jul 2012 12:25:06 -0700 (PDT)
Received: by localhost (sSMTP sendmail emulation);
	Tue, 17 Jul 2012 22:25:04 +0300
From: Oleksandr Gavenko <gavenkoa@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 23.4;
	shell-process-cd called before executing command in shell, but must
	after.
Date: Tue, 17 Jul 2012 22:25:04 +0300
Message-ID: <87pq7unqb3.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 208.118.235.17
X-Spam-Score: -6.1 (------)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.1 (------)

In GNU Emacs 23.4.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.10)
 of 2012-04-07 on trouble, modified by Debian

I found md function useful under Bash:

  md () { mkdir -p "$1" && cd "$1"; }

as it save duplicate directory name typing. I decide to teach Emacs understand
this keyword. Natural way to do so is to modify:

  (setq shell-cd-regexp "[cm]d")

But I explore that this setting does not teach Emacs follow into directory
(default-directory still not updated). After debugging functions in
'lisp/shell.el.gz' I found that 'shell-process-cd' call 'shell-cd' which call
'cd' which fail as I believe because 'cd' called before 'md' actually passed
to shell  (directory does not exist and 'cd' fail)...

I think shell mode need to wait some mark that command processed (like waiting
for prompt). This fix my bug report automatically.

-- 
Best regards!




Acknowledgement sent to Oleksandr Gavenko <gavenkoa@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#11962; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.