all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Glenn Morris <rgm@gnu.org>
Cc: 8084@debbugs.gnu.org
Subject: bug#8084: 24.0.50; Grep output not usable in Ubuntu
Date: Mon, 21 Feb 2011 01:19:25 -0800	[thread overview]
Message-ID: <8762sdwxr6.fsf@gnus.org> (raw)
In-Reply-To: <etei71rcc7.fsf@fencepost.gnu.org> (Glenn Morris's message of "Mon, 21 Feb 2011 04:00:56 -0500")

Glenn Morris <rgm@gnu.org> writes:

>> In a default install of Ubuntu Maverick, M-x grep doesn't seem to work
>> very well.  The problem seems to be related to Ubuntu grep having
>> colourising switched on by default.
>
> How did they switch on colours by default? I would have guessed it's
> just a shell alias, which shouldn't affect Emacs.

D'oh!  It is:

larsi@lenovo:~$ type grep
grep is aliased to `grep --color=auto'

That explains why doing stuff like

GREP_COLORS=never grep ...

doesn't work for me...  How silly.

But does Emacs bypass the shell alias settings?

> In any case, it's kind of odd that this would cause a problem, since
> Emacs itself turns on grep colours by default - see
> grep-highlight-matches and grep-process-setup.

The former is 'auto for me.  But still I'm getting...

gnus.el:4080:  ;; "[01;31mhello[m", and the select method is ("[01;31mhello[m" (my-var "something"))

Oh, d'oh again!

I have

(global-font-lock-mode -1)

and that makes the escape codes not work.

So this is all user error, I think.  Or should M-x grep work if you have
font locking switched off?  It's not only that the output of M-x grep is
unreadable, but `next-error' doesn't work the first time, either.  (The
second and subsequent times it does work.)

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen





  reply	other threads:[~2011-02-21  9:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-20  1:44 bug#8084: 24.0.50; Grep output not usable in Ubuntu Lars Magne Ingebrigtsen
2011-02-21  9:00 ` Glenn Morris
2011-02-21  9:19   ` Lars Ingebrigtsen [this message]
2011-02-21 21:44     ` Glenn Morris
2011-02-21 22:46       ` Andreas Schwab
2011-08-10 19:03       ` bug#8084: 24.0.50; grep still relies on font-lock somewhat Juri Linkov
2011-09-05  9:49         ` Juri Linkov
2011-09-06 18:42           ` Stefan Monnier
2011-02-21 21:44     ` bug#8084: 24.0.50; Grep output not usable in Ubuntu Stefan Monnier

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=8762sdwxr6.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=8084@debbugs.gnu.org \
    --cc=rgm@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.