* bug#1451: 23.0.60; *shell* swallows meaningful command output lines
@ 2008-11-28 13:38 Tassilo Horn
[not found] ` <handler.1451.B.122787954130853.ack@emacsbugs.donarmstrong.com>
0 siblings, 1 reply; 5+ messages in thread
From: Tassilo Horn @ 2008-11-28 13:38 UTC (permalink / raw)
To: emacs-pretest-bug
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.
Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list.
Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:
When I use `M-x shell' and go to one of my git repositories I get this:
--8<---------------cut here---------------start------------->8---
horn@thinkpad:~/repos/org> git status
# On branch master
no changes added to commit (use "git add" and/or "git commit -a")
--8<---------------cut here---------------end--------------->8---
When I do the same in a terminal emulator outside emacs I get:
--8<---------------cut here---------------start------------->8---
╭─[horn@thinkpad]─[~/repos/org]─[0]─[5410]
╰─[:)] % git status
# On branch master
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
#
# modified: private.org
# modified: remember.org
# modified: uni.org
#
no changes added to commit (use "git add" and/or "git commit -a")
--8<---------------cut here---------------end--------------->8---
Clearly that's what I expect from inside emacs, too.
If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
`bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/usr/share/emacs/23.0.60/etc/DEBUG for instructions.
In GNU Emacs 23.0.60.1 (x86_64-pc-linux-gnu, GTK+ Version 2.14.4)
of 2008-11-27 on thinkpad
Windowing system distributor `The X.Org Foundation', version 11.0.10502000
configured using `configure '--prefix=/usr' '--host=x86_64-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--libdir=/usr/lib64' '--program-suffix=-emacs-23' '--infodir=/usr/share/info/emacs-23' '--with-sound' '--with-x' '--with-toolkit-scroll-bars' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xpm' '--with-freetype' '--with-xft' '--with-libotf' '--with-m17n-flt' '--with-x-toolkit=gtk' '--without-hesiod' '--without-kerberos' '--without-kerberos5' '--with-gpm' '--with-dbus' '--build=x86_64-pc-linux-gnu' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu' 'CFLAGS=-g -ggdb -O1 -pipe' 'LDFLAGS=''
Important settings:
value of $LC_ALL: nil
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: en_US.UTF-8
value of $XMODIFIERS: nil
locale-coding-system: utf-8-unix
default-enable-multibyte-characters: t
Major mode: Shell
Minor modes in effect:
dirtrack-mode: t
rcirc-track-minor-mode: t
yas/minor-mode: t
recentf-mode: t
iswitchb-mode: t
window-number-meta-mode: t
window-number-mode: t
savehist-mode: t
exec-abbrev-cmd-mode: t
show-paren-mode: t
tooltip-mode: t
mouse-wheel-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
global-auto-composition-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
column-number-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
C-s C-s <return> C-x b <return> C-c C-SPC C-c C-SPC
C-c C-SPC C-c C-SPC C-c C-SPC C-c C-SPC C-c g <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <return>
c <up> <up> <up> <return> c <return> c <return> SPC
c <return> SPC c <return> SPC c <return> SPC SPC SPC
<return> <return> <return> <return> <return> <return>
<return> <return> <return> <return> <return> <return>
<return> <return> <return> <return> <return> <return>
<return> <return> <return> <return> <return> <return>
<return> <return> <return> <return> <return> <return>
<return> <return> <return> <return> <return> <return>
<return> <return> <return> <return> <return> <return>
<return> <return> <return> <return> <return> <return>
<return> <return> <return> <return> <return> <return>
<return> <return> <return> <return> <return> <return>
<return> <return> <return> <return> <return> <return>
<return> <return> <return> <return> <return> <return>
<return> <return> <return> <return> <return> <return>
<return> <return> <return> <return> <return> <return>
<return> <return> <return> <return> <return> <return>
<return> <return> <return> <return> <return> <return>
<return> <backspace> SPC SPC c <return> c l s C-c g
g <up> <up> <up> <return> <return> c <up> <up> <up>
<up> <up> <up> <up> <return> c <return> SPC c <return>
c l s C-c s c d SPC u n <tab> r <tab> t r <tab> <tab>
<tab> n <tab> <return> s v n SPC u p <return> . . <return>
c d SPC <tab> t r <tab> <tab> u <tab> <return> s v
n SPC u p <return> . . <return> . . <return> . . <return>
c d SPC r e p <tab> o r g <tab> <return> g i t SPC
s t a t <tab> t <tab> <backspace> e s <backspace> <backspace>
i s <backspace> <backspace> e s <backspace> <backspace>
o s <backspace> <backspace> u s <return> p w d <return>
l s <return> <down-mouse-1> <mouse-1> M-x r e b <return>
r e p o <tab> <return>
Recent messages:
No completions of stat
Completing file name...
No completions of stat
No completions of statt
Completing file name...
No completions of statt
error in process filter: dirtrack: Directory
# (use "git add <file/ does not exist
error in process filter: Directory
# (use "git add <file/ does not exist
--
[Emacs] is written in Lisp, which is the only computer language that is
beautiful. -- Neal Stephenson, _In the Beginning was the Command Line_
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#1451: 23.0.60; *shell* swallows meaningful command output lines
@ 2008-11-30 23:41 Chong Yidong
0 siblings, 0 replies; 5+ messages in thread
From: Chong Yidong @ 2008-11-30 23:41 UTC (permalink / raw)
To: Tassilo Horn; +Cc: 1451
> When I use `M-x shell' and go to one of my git repositories I get this:
>
> horn@thinkpad:~/repos/org> git status
> # On branch master
> no changes added to commit (use "git add" and/or "git commit -a")
I can't reproduce this with `emacs -Q':
~/temp/emacs $ git --no-pager status
# On branch master
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
#
# modified: src/ChangeLog
#
no changes added to commit (use "git add" and/or "git commit -a")
(git tries using a pager if the --no-pager option is omitted, which is
presumably not what you want in this bug report.)
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#1451: Acknowledgement (23.0.60; *shell* swallows meaningful command output lines)
[not found] ` <handler.1451.B.122787954130853.ack@emacsbugs.donarmstrong.com>
@ 2008-12-01 8:00 ` Tassilo Horn
2008-12-01 10:22 ` Andreas Schwab
0 siblings, 1 reply; 5+ messages in thread
From: Tassilo Horn @ 2008-12-01 8:00 UTC (permalink / raw)
To: 1451; +Cc: Chong Yidong
Hi Chong,
I cannot reproduce this with emacs -Q, too. But with my "normal" emacs
I now get an even worse behavior.
--8<---------------cut here---------------start------------->8---
horn@thinkpad:~/repos/org> git status
<the output hangs and after RET I get>
[1] horn@thinkpad:~/repos/org>
--8<---------------cut here---------------end--------------->8---
And in *Messages* I get:
--8<---------------cut here---------------start------------->8---
error in process filter: dirtrack: Directory
# (use "git add <file/ does not exist
--8<---------------cut here---------------end--------------->8---
My shell customizations are:
--8<---------------cut here---------------start------------->8---
(setq shell-file-name "/bin/zsh"
comint-input-ignoredups t
comint-prompt-read-only t)
;; Requires ZSH prompt "walters"
(setq-default dirtrack-list '("^[^:]+:\\([^>]+\\)>" 1))
(global-set-key (kbd "C-c s") 'shell)
(defun th-shell-mode-init ()
(shell-dirtrack-mode -1)
(dirtrack-mode 1)
(ansi-color-for-comint-mode-on))
(add-hook 'shell-mode-hook 'th-shell-mode-init)
--8<---------------cut here---------------end--------------->8---
It seems dirtrack-mode has some problems with the output.
Bye,
Tassilo
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#1451: Acknowledgement (23.0.60; *shell* swallows meaningful command output lines)
2008-12-01 8:00 ` bug#1451: Acknowledgement (23.0.60; *shell* swallows meaningful command output lines) Tassilo Horn
@ 2008-12-01 10:22 ` Andreas Schwab
2008-12-01 10:27 ` Tassilo Horn
0 siblings, 1 reply; 5+ messages in thread
From: Andreas Schwab @ 2008-12-01 10:22 UTC (permalink / raw)
To: Tassilo Horn; +Cc: 1451, Chong Yidong
Tassilo Horn <thorn@fastmail.fm> writes:
> ;; Requires ZSH prompt "walters"
> (setq-default dirtrack-list '("^[^:]+:\\([^>]+\\)>" 1))
This can match more than one line, you should probably add \n to the
bracket expressions.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#1451: Acknowledgement (23.0.60; *shell* swallows meaningful command output lines)
2008-12-01 10:22 ` Andreas Schwab
@ 2008-12-01 10:27 ` Tassilo Horn
0 siblings, 0 replies; 5+ messages in thread
From: Tassilo Horn @ 2008-12-01 10:27 UTC (permalink / raw)
To: Andreas Schwab; +Cc: 1451, Chong Yidong
Andreas Schwab <schwab@suse.de> writes:
Hi Andreas,
>> ;; Requires ZSH prompt "walters"
>> (setq-default dirtrack-list '("^[^:]+:\\([^>]+\\)>" 1))
>
> This can match more than one line, you should probably add \n to the
> bracket expressions.
Ah, thanks a lot. That seems to be the reason for my problem. With
your suggestion it works now as expected.
Bye,
Tassilo
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-12-01 10:27 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-28 13:38 bug#1451: 23.0.60; *shell* swallows meaningful command output lines Tassilo Horn
[not found] ` <handler.1451.B.122787954130853.ack@emacsbugs.donarmstrong.com>
2008-12-01 8:00 ` bug#1451: Acknowledgement (23.0.60; *shell* swallows meaningful command output lines) Tassilo Horn
2008-12-01 10:22 ` Andreas Schwab
2008-12-01 10:27 ` Tassilo Horn
-- strict thread matches above, loose matches on Subject: below --
2008-11-30 23:41 bug#1451: 23.0.60; *shell* swallows meaningful command output lines Chong Yidong
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.