bug-grep
[Top][All Lists]
Advanced

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

Re: [patch] selected/context colors


From: Charles Levert
Subject: Re: [patch] selected/context colors
Date: Wed, 16 Nov 2005 17:30:48 -0500
User-agent: Mutt/1.4.1i

* On Wednesday 2005-11-16 at 22:54:58 +0100, Benno Schulenberg wrote:
> Charles Levert wrote:
> > * On Tuesday 2005-11-15 at 23:06:46 +0100, Benno Schulenberg
> > wrote: 
> > > BTW, when using --color=always and piping the output to 'less',
> > > text in a line containing a coloured word cannot be searched
> > > and found.
> >
> > I assume you are already using "less -R".
> 
> $ echo $LESS
> -RMicS -#20
> 
> When using -r instead of -R, the searching works okay, and the 
> horizontal scrolling a bit better.  Why should -r be avoided?

Because it gives up on trying to understand any
control-character based escape sequences and just
lets everything through.  It thus looses track
of the correct column position.  These days,
the worst that can happen is that your terminal
emulator may need to be reset because of this.
In the past, a real terminal may have had a
printer hooked up to it and someone could have
attempted to send you a file containing escape
sequences that divert output to your printer.
A good pager would then protect you from this.


> > Have you tried with a recent 'less' version,
> > such as 385-cl4 or 393-cl1?
> 
> Not yet.

When you do, please tell me about any remaining
horizontal scrolling problems.  There may also
be problems with UTF-8 and searching, but this
can depend on the regexp library against which
"less" is linked.  I have addressed proper
UTF-8 handling from the input file and from the
search prompt, but haven't touched the search
implementation itself.


> > > >  /* Other colors.  Defaults look damn good.  */
> > >
> > > Please remove the strong word.
> >
> > Oh, come on!  Have you never read the original
> > version of GNU Emacs' terminal.el?
> 
> No, hadn't...  Hmm.  There's no "damn" there.  :)

You wish there were.  There's much worst.


> It took a moment before it occurred to me what word I should be 
> looking for.  Wow...  Well, there it's the whole mood of the file, 
> here it's an isolated word.  But that's just my opinion.  You're 
> the man.

Here is a copy of the US Supreme Court decision
on George Carlin's famous "seven dirty words"
comedy bit:

   <http://www.georgecarlin.com/> then "Documents"
   <http://www.georgecarlin.com/dirty/dirty3.html>

He did say:

   "And, uh, bastard you can say, and hell
    and damn so I have to figure out which ones
    you couldn't..."

I think he's the man regarding this, so if he
said that "damn" is ok...
And this was some 33 years ago.




reply via email to

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