* [Peter_Dyballa@Web.DE: popd in tcsh fails]
@ 2005-08-23 1:28 Richard Stallman
2005-08-23 18:02 ` Emilio Lopes
2005-08-23 18:48 ` Fwd: popd in tcsh fails Stefan Monnier
0 siblings, 2 replies; 5+ messages in thread
From: Richard Stallman @ 2005-08-23 1:28 UTC (permalink / raw)
[I sent this message twice before but did not get a response.]
Can someone please look at this, then ack to me?
------- Start of forwarded message -------
To: emacs-pretest-bug@gnu.org
From: Peter Dyballa <Peter_Dyballa@Web.DE>
Date: Wed, 20 Jul 2005 15:36:11 +0200
X-Sender: Peter_Dyballa@web.de
Subject: popd in tcsh fails
Sender: emacs-pretest-bug-bounces+rms=gnu.org@gnu.org
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on monty-python
X-Spam-Level:
X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.63
Hello!
I am using tcsh 6.12.00 in *shell* mode and GNU Emacs does not seem to
understand popd, i.e. after a popd in *shell* file name completion or
dired start with the directory that was before my working directory.
These variables are customized:
'(comint-completion-recexact t)
'(comint-input-ignoredups t)
'(comint-input-ring-file-name ".emacs.d/history")
'(comint-prompt-regexp "^[a-z]+ [0-9]+ /\\\\ " t)
'(comint-use-prompt-regexp nil)
'(shell-cd-regexp "[cp]d")
'(shell-dirtrack-verbose nil)
'(shell-pushd-regexp "p(ush|)d")
Important settings:
value of $LC_ALL: de_DE.UTF-8
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: de_DE.UTF-8
locale-coding-system: utf-8
default-enable-multibyte-characters: t
Major mode: Shell
Minor modes in effect:
display-time-mode: t
mouse-sel-mode: t
show-paren-mode: t
desktop-save-mode: t
tool-bar-mode: t
mouse-wheel-mode: t
tooltip-mode: t
auto-compression-mode: t
menu-bar-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
column-number-mode: t
line-number-mode: t
transient-mark-mode: t
next-error-follow-minor-mode: Fol
- --
Greetings
Pete
"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe trying
to produce bigger and better idiots. So far, the Universe is winning."
-- Rich Cook
_______________________________________________
Emacs-pretest-bug mailing list
Emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
------- End of forwarded message -------
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Peter_Dyballa@Web.DE: popd in tcsh fails]
2005-08-23 1:28 [Peter_Dyballa@Web.DE: popd in tcsh fails] Richard Stallman
@ 2005-08-23 18:02 ` Emilio Lopes
2005-08-23 18:41 ` Emilio Lopes
2005-08-24 10:32 ` Richard M. Stallman
2005-08-23 18:48 ` Fwd: popd in tcsh fails Stefan Monnier
1 sibling, 2 replies; 5+ messages in thread
From: Emilio Lopes @ 2005-08-23 18:02 UTC (permalink / raw)
Cc: Peter_Dyballa
Richard Stallman writes:
> Can someone please look at this, then ack to me?
I started Emacs with this command:
./src/emacs --no-init-file --no-site-file -l ~/tcsh-init.el
The file ~/tcsh-init.el contains the following:
(setq shell-file-name "tcsh")
(setenv "SHELL" shell-file-name)
(setq explicit-shell-file-name shell-file-name)
(setq comint-completion-recexact t)
(setq comint-input-ignoredups t)
(setq comint-input-ring-file-name ".emacs.d/foo_history")
(setq comint-prompt-regexp "^[a-z]+ [0-9]+ /\\\\ ")
(setq comint-use-prompt-regexp nil)
(setq shell-cd-regexp "[cp]d")
(setq shell-dirtrack-verbose nil)
(setq shell-pushd-regexp "p(ush|)d")
The first three lines are there to convince shell-mode to start `tcsh'
as the default shell. The rest are variables customized by original
bug reporter.
My first test was to issue a "pushd /etc" and see if a "C-x C-f" would
offer me that directory as the default one. Test failed. Emacs is
not even recognizing "pushd"s.
So I noted that the customization of `shell-pushd-regexp' (see above)
is bogus. I changed that to
(setq shell-pushd-regexp "p\\(ush\\|\\)d")
and tried some "pushd"s and "popd"s again. Emacs seems to correctly
keep track of the working directory now.
The problem was not tcsh specific AFAICT.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Fwd: popd in tcsh fails
2005-08-23 1:28 [Peter_Dyballa@Web.DE: popd in tcsh fails] Richard Stallman
2005-08-23 18:02 ` Emilio Lopes
@ 2005-08-23 18:48 ` Stefan Monnier
1 sibling, 0 replies; 5+ messages in thread
From: Stefan Monnier @ 2005-08-23 18:48 UTC (permalink / raw)
Cc: emacs-devel
> [I sent this message twice before but did not get a response.]
> Can someone please look at this, then ack to me?
[...]
> I am using tcsh 6.12.00 in *shell* mode and GNU Emacs does not seem to
> understand popd, i.e. after a popd in *shell* file name completion or
> dired start with the directory that was before my working directory.
> These variables are customized:
> '(comint-completion-recexact t)
> '(comint-input-ignoredups t)
> '(comint-input-ring-file-name ".emacs.d/history")
> '(comint-prompt-regexp "^[a-z]+ [0-9]+ /\\\\ " t)
> '(comint-use-prompt-regexp nil)
> '(shell-cd-regexp "[cp]d")
> '(shell-dirtrack-verbose nil)
> '(shell-pushd-regexp "p(ush|)d")
I don't know about popd, but his regexp for pushd is broken (he forgot to
escape the (, ), and | operators), so I'd say this is not a bug.
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-08-24 10:32 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-23 1:28 [Peter_Dyballa@Web.DE: popd in tcsh fails] Richard Stallman
2005-08-23 18:02 ` Emilio Lopes
2005-08-23 18:41 ` Emilio Lopes
2005-08-24 10:32 ` Richard M. Stallman
2005-08-23 18:48 ` Fwd: popd in tcsh fails Stefan Monnier
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).