From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jacob Gerlach Newsgroups: gmane.emacs.bugs Subject: bug#17656: 24.3; default-directory with aliases in shell-mode Date: Mon, 2 Jun 2014 11:17:08 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c29e0a85a41904fadbe310 X-Trace: ger.gmane.org 1401724524 8619 80.91.229.3 (2 Jun 2014 15:55:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Jun 2014 15:55:24 +0000 (UTC) To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 02 17:55:13 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WrUZo-0006dZ-6Q for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Jun 2014 17:55:08 +0200 Original-Received: from localhost ([::1]:47360 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrUZn-0007ds-Sa for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Jun 2014 11:55:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59954) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrUZj-0007bv-LL for bug-gnu-emacs@gnu.org; Mon, 02 Jun 2014 11:55:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WrUZi-0005DI-Nl for bug-gnu-emacs@gnu.org; Mon, 02 Jun 2014 11:55:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42177) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrUZi-0005D1-Jg for bug-gnu-emacs@gnu.org; Mon, 02 Jun 2014 11:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WrUZi-0004m3-2T for bug-gnu-emacs@gnu.org; Mon, 02 Jun 2014 11:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jacob Gerlach Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Jun 2014 15:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17656 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17656-submit@debbugs.gnu.org id=B17656.140172446518271 (code B ref 17656); Mon, 02 Jun 2014 15:55:01 +0000 Original-Received: (at 17656) by debbugs.gnu.org; 2 Jun 2014 15:54:25 +0000 Original-Received: from localhost ([127.0.0.1]:41054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WrUZ6-0004kc-OR for submit@debbugs.gnu.org; Mon, 02 Jun 2014 11:54:25 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:51731 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WrUZ4-0004kS-De for 17656@debbugs.gnu.org; Mon, 02 Jun 2014 11:54:23 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1WrUZ4-0006YO-3y for 17656@debbugs.gnu.org; Mon, 02 Jun 2014 11:54:22 -0400 Resent-Message-ID: <21388.40494.1285.324214@gnu.org> Resent-Date: Mon, 2 Jun 2014 11:54:22 -0400 Resent-From: Glenn Morris Resent-To: 17656@debbugs.gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=372WDkbRZE1ghTjeibVyp1zNmkJg5s42egX0HJtzmA0=; b=qT4ciaKHVsLFXQVezSNlWZDhYLJ+VDB5fFipPGszz42FpiHmQHiD61m051Wvma4KwR sMR6yczRgHvwZQx1XjaFI8UK+VKlQTsQXegNBYGht5SpPRMT1yiSiewDJN56f6aQHLY/ oAgwOGK359Xlpc5K0p3hD4tpQCtuCNTHyImPcDSyMV/kXuAcvlki5jKZWYzezLHjcN4b PWQajsDGaFu80+DpX6689kzO3EyQ27GqNGpmVNVCtPjxr6nNqtLAxg0P3w2V9ygTeepI AyEgrM5fZhtcTNpGwR0UuxdbWLteGtqC5hLoOMHK8GgSXPtZxVFLsyR4OoU9lv8z8aXF clSQ== X-Received: by 10.224.46.66 with SMTP id i2mr3153288qaf.22.1401722228808; Mon, 02 Jun 2014 08:17:08 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Bogosity: no, spamicity=0.099431, v1.2.1 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:89889 Archived-At: --001a11c29e0a85a41904fadbe310 Content-Type: text/plain; charset=UTF-8 Glenn, Thanks, that did the trick. I'd like to automate this by reading in aliases from my bash aliases file. Would it be reasonable to do something like adding shell-resync-dirs as a (conditional, if last command matched a cd alias) hook on comint-output-filter-functions? Additionally, is there an easy way to hide the execution of `dirs' from the shell buffer? Thanks, Jake On Sat, May 31, 2014 at 1:30 PM, Glenn Morris wrote: > > This is http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9555 > You can use M-x shell-resync-dirs to fix things up. > --001a11c29e0a85a41904fadbe310 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Glenn,

Thanks, that did the trick.=C2= =A0

I'd like to automate this by reading in al= iases from my bash aliases file. Would it be reasonable to do something like adding shell-resync-dirs as a (conditional, if last command matched a cd alias) hook on comint-output-filter-functions?=C2=A0

Additionally, is there an easy way to hide the execution of `dirs' f= rom the shell buffer?=C2=A0

Thanks, Jake


On Sat, May 31, 2014 at 1:30 PM, Glenn Morris <rgm@gnu.org> wro= te:

This is http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D9555
You can use M-x shell-resync-dirs to fix things up.

--001a11c29e0a85a41904fadbe310--