Subject: Re: bug#6535: 24.0.50; grep seems not to work

From: Jan Djärv <[email-masked]>
Date: Tue, 29 Jun 2010 11:38:04 +0200

What kind of shell are you running?  Are you doing any stty or other terminal 
related things in your dot-files for that shell?  Are there perhaps some 
global files that the shell reads on startup, for example /etc/bashrc?

How does it look if you put

   TERM=vt100 grep -nH -e cp cpuprc *.c

as the grep command?

john ffitch skrev 2010-06-28 18.59:
> I an in dired mode and attempt to do M-x grep
> It hangs; if I try again later it says i still have a grep process
> reports
> -*- mode: grep; default-directory: "~/Sourceforge/csound5/Engine/" -*-
> Grep started at Mon Jun 28 17:58:43
>
> grep -nH -e cpuprc *.c
> tset: unknown terminal type emacs-grep
> Terminal type?
>
> The grep seems to hang at this point.  It used to work.  Tried
> searching for terminal type without success
>
> In GNU Emacs 24.0.50.3 (x86_64-unknown-linux-gnu, GTK+ Version 2.18.6)
>   of 2010-06-17 on harvey
> Windowing system distributor `The X.Org Foundation', version 11.0.10605000
> 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_GB.UTF-8
>    value of $XMODIFIERS: @im=local
>    locale-coding-system: utf-8-unix
>    default enable-multibyte-characters: t
>
> Major mode: Dired by name
>
> Minor modes in effect:
>    auto-image-file-mode: t
>    show-paren-mode: t
>    display-time-mode: t
>    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
>    auto-composition-mode: t
>    auto-encryption-mode: t
>    auto-compression-mode: t
>    line-number-mode: t
>    transient-mark-mode: t
>
> Recent input:
> <up>  <up>  <down>  S h e SPC w a s SPC l i v i n g SPC
> w i t h SPC h u s n<backspace>  b a n d , SPC s t e
> p<backspace>  <backspace>  <backspace>  <backspace>  s
> o n SPC b y SPC f u<backspace>  i r t s SPC m a r r
> i a g e SPC<backspace>  , SPC a n d SPC 4 SPC s o n
> s SPC b y SPC s e c o n d SPC<down-mouse-1>  <mouse-1>
> C-t<down>  i n SPC F u n t i n g d o n SPC i n SPC
> 1 9 0 1<return>  <down-mouse-1>  <mouse-1>  , SPC o r
> SPC a n y SPC f u r t h e r SPC s u g g e s t i o n
> s SPC o r C-\ C-g C-e SPC C-d<down-mouse-1>  <mouse-1>
> SPC ( i e SPC b 1 8 7 3 )<down-mouse-1>  <mouse-1>
> ( o f SPC SPC 7<backspace>  <backspace>  7 ) SPC M-q
> C-x C-s C-x k<return>  d n n d SPC n s y C-x C-f S
> O u r<tab>  <backspace>  <backspace>  <backspace>  o u
> r c e<tab>  c s p o u<backspace>  <backspace>  <backspace>
> o<tab>  5 / E n g i<tab>  e n t<tab>  c<return>  C-s
> c p u p r c C-x C-f<backspace>  <backspace>  <backspace>
> <backspace>  <backspace>  <backspace>  <backspace>  O p
> c o<tab>  <return>  M-x g r e p<return>  c p u p r c
> SPC * . c<return>  M-c M-x e m a c s - r<tab>  <backspace>
> <backspace>  <backspace>  <backspace>  <backspace>  <backspace>
> <backspace>  r e p o<tab>  i<backspace>  r t<tab>
> <return>
>
> Recent messages:
> Invalid face reference: my-trailing-space-face
> Invalid face reference: my-tab-face
> Loading vc-cvs...done
> Mark saved where search started
> Loading dired-add...done
> Invalid face reference: my-trailing-space-face [2 times]
> call-interactively: Buffer is read-only: #<buffer Opcodes>Invalid face reference: my-trailing-space-face
> Invalid face reference: my-trailing-space-face [3 times]
> Making completion list...
> Invalid face reference: my-trailing-space-face
>
> Load-path shadows:
> /home/jpff/GNU_21/local-lisp/scroll-lock hides /home/jpff/GNU_21/emacs/trunk/lisp/scroll-lock
> /home/jpff/GNU_21/local-lisp/t-mouse hides /home/jpff/GNU_21/emacs/trunk/lisp/t-mouse
> /home/jpff/GNU_21/local-lisp/ruler-mode hides /home/jpff/GNU_21/emacs/trunk/lisp/ruler-mode
> /home/jpff/GNU_21/local-lisp/emerge hides /home/jpff/GNU_21/emacs/trunk/lisp/vc/emerge
> /home/jpff/GNU_21/local-lisp/url-gw hides /home/jpff/GNU_21/emacs/trunk/lisp/url/url-gw
> /home/jpff/GNU_21/local-lisp/url-file hides /home/jpff/GNU_21/emacs/trunk/lisp/url/url-file
> /home/jpff/GNU_21/local-lisp/url-cid hides /home/jpff/GNU_21/emacs/trunk/lisp/url/url-cid
> /home/jpff/GNU_21/local-lisp/url-parse hides /home/jpff/GNU_21/emacs/trunk/lisp/url/url-parse
> /home/jpff/GNU_21/local-lisp/url-cache hides /home/jpff/GNU_21/emacs/trunk/lisp/url/url-cache
> /home/jpff/GNU_21/local-lisp/url-http hides /home/jpff/GNU_21/emacs/trunk/lisp/url/url-http
> /home/jpff/GNU_21/local-lisp/url-misc hides /home/jpff/GNU_21/emacs/trunk/lisp/url/url-misc
> /home/jpff/GNU_21/local-lisp/url hides /home/jpff/GNU_21/emacs/trunk/lisp/url/url
> /home/jpff/GNU_21/local-lisp/url-auth hides /home/jpff/GNU_21/emacs/trunk/lisp/url/url-auth
> /home/jpff/GNU_21/local-lisp/url-ldap hides /home/jpff/GNU_21/emacs/trunk/lisp/url/url-ldap
> /home/jpff/GNU_21/local-lisp/url-news hides /home/jpff/GNU_21/emacs/trunk/lisp/url/url-news
> /home/jpff/GNU_21/local-lisp/url-vars hides /home/jpff/GNU_21/emacs/trunk/lisp/url/url-vars
> /home/jpff/GNU_21/local-lisp/url-cookie hides /home/jpff/GNU_21/emacs/trunk/lisp/url/url-cookie
> /home/jpff/GNU_21/local-lisp/url-nfs hides /home/jpff/GNU_21/emacs/trunk/lisp/url/url-nfs
> /home/jpff/GNU_21/local-lisp/url-ns hides /home/jpff/GNU_21/emacs/trunk/lisp/url/url-ns
> /home/jpff/GNU_21/local-lisp/url-irc hides /home/jpff/GNU_21/emacs/trunk/lisp/url/url-irc
> /home/jpff/GNU_21/local-lisp/remember hides /home/jpff/GNU_21/emacs/trunk/lisp/textmodes/remember
> /home/jpff/GNU_21/local-lisp/socks hides /home/jpff/GNU_21/emacs/trunk/lisp/net/socks
>
> Features:
> (shadow emacsbug help-mode grep compile dired multi-isearch parse-time
> vc-cvs imenu cc-mode cc-fonts cc-menus cc-cmds cc-styles cc-align
> cc-engine cc-vars cc-defs ispell feedmail newcomment mailabbrev
> mailalias rmailout rmailkwd etach sendmail mime-compose
> mail-alias-menu mailcrypt mail-extr comint ring rmail mail-utils eldoc
> package image-file logger crypt crypt++ crypt+pgp-pub paren cal-julian
> uniquify advice help-fns advice-preload view cal-china cal-bahai
> cal-islam cal-hebrew lunar solar cal-dst appt diary-lib diary-loaddefs
> holidays hol-loaddefs regexp-opt cal-menu easymenu calendar
> cal-loaddefs time tooltip ediff-hook vc-hooks lisp-float-type mwheel
> x-win x-dnd 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 dynamic-setting font-render-setting gtk
> x-toolkit x multi-tty emacs)
>
> ==John ffitch
>
>