[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mac OS X / Emacs 23.2.93; help needed with term window behaviour

From: Livin Stephen Sharma
Subject: Mac OS X / Emacs 23.2.93; help needed with term window behaviour
Date: Tue, 1 Mar 2011 07:55:51 +0530

Hello, emacs Gurus!
This is something that has been an occasional annoyance while using term-mode shells within emacs.
 Now I think I finally know at least the circumstances under which the problem occurs.. I'd appreciate your help in resolving this :)

When I execute commands like 'ifconfig' from within a 'term-mode' bash session,
 emacs rings the error bell and the text and cursor-position in the term window get mixed up.
Below is the info from the emacs bug-reporter tool.

On the other hand printing "\t" (printf "\t" or echo -e "a\tb") does not seem to cause any problems whatsoever.

In addition to the steps outlined in the pseudo bug-report below,
 + I have tried removing /etc/bashrc and $HOME/.bashrc to see if my customisations there were the root cause.
 But I still see the problem within 'emacs -Q' with these files out of the picture.

Why does emacs/term appear to be trying to 'interpret' the TABs in the o/p (looks like it tries to do file-name autocompletion on something?)
 Any clues on what I could try next?

--text follows this line--
This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your report will be posted to the address@hidden mailing list
and the gnu.emacs.bug news group, and at

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug.  If you can, give
a recipe starting from `emacs -Q':

      1. launch emacs: "/Applications/ -Q"

      2. start a bash shell within emacs: M-x term RET RET (/bin/bash is offered as default shell in my setup)

      3. type a command like ifconfig
1) now, shell gets messed up:

   + an "error in process filter: cd-absolute: /Users/li/: no such directory" message is displayed

   + the current-line/cursor gets thrown backwards so that 'ifconfig' o/p and current-line in term are overlapping

2) need to execute 'clear' (C-l) or 'reset' in shell to make things usable again
      4. In case 'ifconfig' does not reproduce the error, try to do execute "echo 'MY_SAMPLE_OUTPUT'" in a term buffer within emacs where MY_SAMPLE_OUTPUT is:
lo9: flags=9999<UP,LOOPBACK,RUNNING,MULTICAST> mtu 99999
inet9 ::9 prefixlen 999 
inet9 fe99::9%lo9 prefixlen 99 scopeid 9x9 
inet 999.9.9.9 netmask 9xff999999 
gif9: flags=9999<POINTOPOINT,MULTICAST> mtu 9999
stf9: flags=9<> mtu 9999
ether 99:b9:e9:cb:db:a9 
media: autoselect
status: inactive
ether 99:99:bb:9b:99:9f 
inet9 fe99::999:bbff:fe9b:999f%en9 prefixlen 99 scopeid 9x9 
inet 999.999.9.9 netmask 9xffffff99 broadcast 999.999.9.999
media: autoselect
status: active
lladdr 99:b9:e9:ff:fe:cb:db:a9 
media: autoselect <full-duplex>
status: inactive
ether 99:99:99:9c:99:99 
media: autoselect
status: inactive
vboxnet9: flags=9999<BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 9999
ether 9a:99:99:99:99:99
      5. lines like these: " inet9: " contain leading TAB characters. I believe those are the ones that cause the error to be triggered.

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'.
For information about debugging Emacs, please read the file

In GNU Emacs (x86_64-apple-darwin, NS apple-appkit-1038.35)
 of 2011-02-01 on
Windowing system distributor `Apple', version 10.3.1038
configured using `configure  '--host=x86_64-apple-darwin' '--build=i686-apple-darwin' '--with-ns' 'build_alias=i686-apple-darwin' 'host_alias=x86_64-apple-darwin' 'CC=gcc -mmacosx-version-min=10.5''

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: Term

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
M-x t e r m <return> <return> i f c o n f i g <return> 
<menu-bar> <help-menu> <send-emacs-bug-report>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
error in process filter: cd-absolute: /Users/li/: no such directory
error in process filter: /Users/li/: no such directory

Load-path shadows:
None found.

(shadow sort mail-extr message ecomplete rfc822 mml mml-sec
password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231
rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc
time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1
hex-util hashcash mail-utils emacsbug term disp-table ehelp electric
ring tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win easymenu
tool-bar dnd fontset image fringe lisp-mode register page menu-bar
rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock
syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button
minibuffer faces cus-face files text-properties overlay md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process ns multi-tty emacs)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]