all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: emacs-devel@gnu.org
Subject: Re: [david.hansen@gmx.net: Re: comint's directory tracking doesn't understand \( or \)]
Date: Sun, 04 Mar 2007 10:45:53 -0500	[thread overview]
Message-ID: <87wt1xhv0u.fsf@stupidchicken.com> (raw)
In-Reply-To: <871wk56tjh.fsf@localhorst.mine.nu> (David Hansen's message of "Sun\, 04 Mar 2007 14\:13\:22 +0100")

David Hansen <david.hansen@gmx.net> writes:

> On Fri, 02 Mar 2007 12:44:48 -0500 Richard Stallman wrote:
>
>> Would someone please study this, install it if it is safe, then ack?
>
> Alone it's doing not that much.  The attached patch should fix all
> problems with shell-modes directory tracking and special characters
> in directory names.
>
> I'm sorry that it's a bit longish, but the original regexps are a
> bit to much for my small brain ;)

I'm leery of introducing this kind of change into comint.el at this
stage in the release.  It doesn't seem to fit Richard's criterion of
being "simple and safe".

BTW, I can't seem to reproduce the problem referenced in the original
bug report.

M-x shell RET
~ $ cd /tmp/
/tmp $ mkdir /tmp/'(2007)'
/tmp $ cd \(2007\)
/tmp/(2007) $ pwd

 => /tmp/(2007)

This is GNU Emacs 22.0.95.3 (i686-pc-linux-gnu, GTK+ Version 2.10.6)
of 2007-03-04.  Could this be a shell bug on certain systems?

> The *shell* buffer attempts to cd into the current working directory
> of the inferior shell process, but when that directory contains a ( or
> ), it seems to get lost, for example:
>
> M-x shell RET
> $ cd /tmp/
> $ mkdir /tmp/'(2007)'
> $ cd \(2007\)/
>
> The *shell* buffer ends up in /tmp/, not in /tmp/(2007)/ as expected.
>
> Note that if I use:
>
> $ cd '(2007)'
>
> instead, then the tracking works.

  reply	other threads:[~2007-03-04 15:45 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-02 17:44 [david.hansen@gmx.net: Re: comint's directory tracking doesn't understand \( or \)] Richard Stallman
2007-03-04 13:13 ` David Hansen
2007-03-04 15:45   ` Chong Yidong [this message]
2007-03-04 15:51     ` David Kastrup
2007-03-04 19:26       ` Chong Yidong
2007-03-04 19:32         ` David Kastrup
2007-03-04 19:39           ` Lennart Borgman (gmail)
2007-03-04 20:16             ` David Kastrup
2007-03-04 20:25               ` Lennart Borgman (gmail)
2007-03-04 19:47           ` Miles Bader
2007-03-04 21:45         ` Stefan Monnier
2007-03-04 22:06           ` Andreas Seltenreich
2007-03-04 23:42             ` Stefan Monnier
2007-03-04 23:13         ` David Hansen
2007-03-04 23:30           ` David Kastrup
2007-03-05  2:09             ` David Hansen
2007-03-04 19:40       ` Robert J. Chassell
2007-03-04 20:17         ` David Kastrup
2007-03-04 23:22     ` Chris Moore
2007-03-04 23:23       ` Tom Tromey
2007-03-05  2:55   ` Richard Stallman
2007-03-05  6:23     ` David Hansen
2007-03-05 21:50       ` Richard Stallman
2007-03-06  2:23         ` Stefan Monnier
2007-03-06  3:10           ` David Hansen
2007-03-06 22:36           ` Richard Stallman
2007-03-07  0:48           ` Miles Bader
2007-03-07 14:49             ` David Hansen
2007-03-08  3:16               ` Richard Stallman
2007-03-09 19:55               ` Chong Yidong
2007-03-09 20:28                 ` Glenn Morris
2007-03-09 20:45                   ` David Hansen
2007-03-09 21:08                     ` David Kastrup
2007-03-10  0:04                 ` Chong Yidong
2007-03-10  8:06                   ` David Hansen
2007-03-10 20:18                   ` Chong Yidong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wt1xhv0u.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.