From: Ethan Glasser-Camp <glasse@cs.rpi.edu>
To: 6843@debbugs.gnu.org
Subject: bug#6843: 23.1; grep-mode and filenames with colors
Date: Wed, 11 Aug 2010 07:20:08 -0400 [thread overview]
Message-ID: <4C628768.5060808@cs.rpi.edu> (raw)
grep-mode highlights matches based on the presence of a pair of colons
around a number. But, for example, if you do this:
ethan@joker:~$ mkdir test
ethan@joker:~$ echo 'Hello' > test/10:45:20.txt
ethan@joker:~$ emacs -q
M-x rgrep <RET>
Hello <RET>
~/test <RET>
The results will mis-highlight 10:45:20, coloring "45" as the line
number (when it is part of the name of the file). Correspondingly,
if you do
M-x grep <RET>
Hello 10:<TAB> <RET>
The same thing happens. It's not possible to automatically jump-to-line
when this happens.
Thanks for your time,
Ethan
In GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.18.3)
of 2010-03-26 on palmer, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.10604000
configured using `configure '--build=i486-linux-gnu'
'--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib'
'--libexecdir=/usr/lib' '--localstatedir=/var/lib'
'--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes'
'--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim'
'--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars'
'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu'
'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS=''
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: @im=ibus
locale-coding-system: utf-8-unix
default-enable-multibyte-characters: t
Major mode: Grep
Minor modes in effect:
shell-dirtrack-mode: t
tooltip-mode: t
tool-bar-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
global-auto-composition-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
M-x r g r e p <return> H e l l o <return> * <return>
f o o <tab> <backspace> <backspace> <backspace> t e
s t <tab> <return> C-x o <down> <down> <down> <down>
<down> <down> <down> <right> <right> <right> <right>
<right> <right> <right> <right> <right> <right> <right>
<right> <right> <right> <right> <right> C-a <down>
<down> <down> <up> <up> <up> <return> C-x k <return>
M-x <up> <return> H e l l o <return> <return> t e s
t <return> C-x o <down> <down> <down> <down> <down>
<down> <down> <down> <return> M-x <up> <return> f o
o <return> * <return> <M-backspace> <M-backspace> s
r <tab> c a m <tab> <return> C-x o <down> <down> <down>
<down> <down> <down> <down> <M-down> <M-down> M-x <up>
<return> H e l l o <return> ~ <backspace> <return>
~ <backspace> <M-backspace> <M-backspace> t e s t <tab>
<return> C-x o <down> <down> <up> <up> C-x o <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> M-x <up> <return> H e l l o <return> <return>
<return> <help-echo> M-x g r e p <return> H e l l o
SPC <backspace> <return> M-x <up> <return> H e l l
o SPC 1 0 : <tab> <return> M-x <up> C-g M-x e m a c
<tab> b <tab> <M-backspace> <M-backspace> <M-backspace>
<M-backspace> b u <backspace> <backspace> r e p <tab>
o r t <tab> <return>
Recent messages:
Grep finished (matches found)
Mark set
Grep finished (matches found)
Mark set
Grep finished (matches found) [3 times]
Grep finished with no matches found
Grep finished (matches found)
Quit
Making completion list...
/usr/bin/mail is not an executable. Setting mail-interactive to t.
next reply other threads:[~2010-08-11 11:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-11 11:20 Ethan Glasser-Camp [this message]
2017-07-26 23:32 ` bug#6843: grep-mode and filenames with colons npostavs
2017-07-27 12:10 ` Dmitry Gutov
2017-07-27 17:20 ` Eli Zaretskii
2017-07-30 15:01 ` npostavs
2017-08-01 13:28 ` Dmitry Gutov
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=4C628768.5060808@cs.rpi.edu \
--to=glasse@cs.rpi.edu \
--cc=6843@debbugs.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.