From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: grep.el regexp Date: Mon, 11 Jul 2005 12:53:44 -0400 Message-ID: References: <87psuipj8b.fsf@jurta.org> <87k6kme6sp.fsf@jurta.org> <87aclb2w0m.fsf@jurta.org> <873br3xaum.fsf-monnier+emacs@gnu.org> <87u0jh6cwq.fsf-monnier+emacs@gnu.org> <87y88fwpu7.fsf@jurta.org> <87vf3iawo6.fsf@jurta.org> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1121103905 18734 80.91.229.2 (11 Jul 2005 17:45:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Jul 2005 17:45:05 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 11 19:26:54 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ds231-0005Y3-Sa for ged-emacs-devel@m.gmane.org; Mon, 11 Jul 2005 19:26:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ds24b-0003MU-G6 for ged-emacs-devel@m.gmane.org; Mon, 11 Jul 2005 13:28:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ds1xK-00085u-C6 for emacs-devel@gnu.org; Mon, 11 Jul 2005 13:20:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ds1xI-00085L-Pa for emacs-devel@gnu.org; Mon, 11 Jul 2005 13:20:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ds1uX-00070E-2W for emacs-devel@gnu.org; Mon, 11 Jul 2005 13:17:41 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Ds1he-0000Ae-Kd for emacs-devel@gnu.org; Mon, 11 Jul 2005 13:04:22 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1Ds1XM-0008KR-Cr; Mon, 11 Jul 2005 12:53:44 -0400 Original-To: Juri Linkov In-reply-to: <87vf3iawo6.fsf@jurta.org> (message from Juri Linkov on Mon, 11 Jul 2005 03:04:41 +0300) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:40788 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:40788 With `-b' option GNU grep can output the byte offset of the beginning of the matching line counting from the beginning of the file, e.g.: emacs-2:1205:50533:inserts `xyzxyzxyzxyz' in the current buffer. This format resembles the output of column numbers, but it is not. It misleads grep.el into interpreting it as a column number. AFAIK, currently GNU grep doesn't support column number output. It would be rather difficult to handle this byte-count in Emacs, given the complexities of character set decoding. So I think we should forget about that. Meanwhile, if GNU grep doesn't support the column number output, chances are no other does, and there's no reason for grep.el to handle that output. I would guess that it got copied into grep.el from compile.el and that it was implemented for the sake of some GCC front ends that do or might someday output this. So in making this change in grep.el, those formats can be ignored.