From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eric Hanchrow Newsgroups: gmane.emacs.bugs Subject: bug#27873: 26.0.50; M-x grep broken Date: Sun, 30 Jul 2017 18:48:26 +0000 Message-ID: References: <87a83m7xf4.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a113ed2beb8256a05558d5c44" X-Trace: blaine.gmane.org 1501440561 13479 195.159.176.226 (30 Jul 2017 18:49:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 30 Jul 2017 18:49:21 +0000 (UTC) Cc: 27873@debbugs.gnu.org, Dmitry Gutov To: npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 30 20:49:16 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dbtH6-0002wo-So for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 Jul 2017 20:49:13 +0200 Original-Received: from localhost ([::1]:56179 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dbtH7-00070f-UJ for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 Jul 2017 14:49:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dbtGz-0006zK-Dn for bug-gnu-emacs@gnu.org; Sun, 30 Jul 2017 14:49:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dbtGw-0003DG-AX for bug-gnu-emacs@gnu.org; Sun, 30 Jul 2017 14:49:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60085) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dbtGw-0003D4-5G for bug-gnu-emacs@gnu.org; Sun, 30 Jul 2017 14:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dbtGv-0003qH-SA for bug-gnu-emacs@gnu.org; Sun, 30 Jul 2017 14:49:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eric Hanchrow Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 30 Jul 2017 18:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27873 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 27873-submit@debbugs.gnu.org id=B27873.150144052514745 (code B ref 27873); Sun, 30 Jul 2017 18:49:01 +0000 Original-Received: (at 27873) by debbugs.gnu.org; 30 Jul 2017 18:48:45 +0000 Original-Received: from localhost ([127.0.0.1]:34529 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dbtGf-0003pl-C4 for submit@debbugs.gnu.org; Sun, 30 Jul 2017 14:48:45 -0400 Original-Received: from mail-io0-f174.google.com ([209.85.223.174]:37863) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dbtGd-0003pY-J7 for 27873@debbugs.gnu.org; Sun, 30 Jul 2017 14:48:44 -0400 Original-Received: by mail-io0-f174.google.com with SMTP id c74so104133342iod.4 for <27873@debbugs.gnu.org>; Sun, 30 Jul 2017 11:48:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=G/zdfX9jJ9TfrdG72WdhnI5+Mw6BpstKTTfdwej+USk=; b=Gn5plZcKzZmsl4gMA8M7PcleFjdWkn7Ku8GrbXgV3pL5G7ccoeqodRmMfY7S2gvD+w RIhlhro7LSl6Lf7ypRS6Q/92OjWYfN6MYRm7dCf5WWHGloJ8jrxJPIBhoUSOYu1mJ1yg wnP4hSV65tPjI61eCt2bqAAXERVqKt8iOY5IeZ484CW5wz+ZdmeWoE92VnNnpXWKRvv0 yJ3aPSHiMAw60R5VO/5sAWLrFqEgBkdXdlcUNPTzTY2S31F2ZiXq4qbjgXHQkmelvhVJ FEkcco8BskXkkYUIbtn8olwKoRtmGP8dYxwDxH7bm8ByZxEvHohSp04K9VYU7JWmD16E YM2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=G/zdfX9jJ9TfrdG72WdhnI5+Mw6BpstKTTfdwej+USk=; b=ocarj7wMwZSmkVnYDuDiwm/wQvRIalFPCtLeKiE+jec/EDl64hwqgaoLLhAPjeovwo p2Hff2AHkuTysbquUdacYm2Yqom3b8cnyzxK5kL7iVSSb2Ev/m82qo5BEFfP3y6gSQzw vM+539yJsxQh+fHW+PBr2lEVC6JBYEx3j968VwZMG/+PUawtCzO6dUQ2vJ5gSJ1yhLBd 9wZYEZw7uCTMVTBEOAk/WDLumaofVN9H4tEKcWswQ6fzOmqPsR2/9MJe03pICCiFU+ZW h4tsy4M4fypyoFNm9/OzFjLCGjuqfFSC7VlmrHEwPuSQ6WEWiXD4Qm4lrRD67T9Nr54z RNmQ== X-Gm-Message-State: AIVw110SoE3+k0XapHJ1ZMrGnYfHEzLcA6P384o+KNJnjJ48+xPCSB6F qW4EjAeX4lNgWJd/20TsnQ726Eirqg== X-Received: by 10.107.129.232 with SMTP id l101mr15521075ioi.151.1501440517873; Sun, 30 Jul 2017 11:48:37 -0700 (PDT) In-Reply-To: <87a83m7xf4.fsf@users.sourceforge.net> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:135167 Archived-At: --001a113ed2beb8256a05558d5c44 Content-Type: text/plain; charset="UTF-8" "git apply" refused to apply the patch, but I applied it by hand, and it seems to work fine. Thanks. On Sun, Jul 30, 2017 at 8:30 AM wrote: > tags 27873 + patch > quit > > Eric Hanchrow writes: > > > This displayed a *grep* buffer that looked something like I expected, > > but: > > > > * instead of there being exactly one line with some underlining > > (indicating a "hit"), there were a bunch: the one I expected, as well > > as a few before it like this: > > > > grep: git-repositories: Is a directory > > grep: guix: Is a directory > > grep: homedir: Is a directory > > grep: homework: Is a directory > > grep: iTunesDSM: Is a directory > > grep: jessie64: Is a directory > > grep: local: Is a directory > > grep: log: Is a directory > > grep: mygo: Is a directory > > grep: node_modules: Is a directory > > grep: perl5: Is a directory > > phonetic-alphabet.txt1:Stolen from > http://www.fourmilab.ch/documents/phoneticalphabet/ > > grep: pprof: Is a directory > > > > You can't tell from what I've pasted above, but the 9 "Is a directory" > > lines before the actual hit were red and underlined, just like the > > match was. > > > > * Hitting C-x `, instead of visiting the file with the hit, put a > > nine-line-high prompt in the minibuffer, as if it was asking me which > > directory to find the file in a directory with a really weird name. > > (You can see some evedince of this in the "Recent messages" stuff below). > > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27840 is a similar report > from a few days ago. > > It's not a duplicate though, this bug is because I thought using --null > would make it possible to get filenames containing newlines > unambiguously, but I was wrong. Here's a patch, also covers a couple of > minor issues that came up later in Bug#6843. > > --001a113ed2beb8256a05558d5c44 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
"git apply" refused to apply the patch, but I ap= plied it by hand, and it seems to work fine.=C2=A0 Thanks.

On Sun, Jul 30, 2017 at 8:30 AM <npostavs@users.sourceforge.= net> wrote:
tags 27873 + pat= ch
quit

Eric Hanchrow <eric.hanchrow@gmail.com> writes:

> This displayed a *grep* buffer that looked something like I expected,<= br> > but:
>
> * instead of there being exactly one line with some underlining
> (indicating a "hit"), there were a bunch: the one I expected= , as well
> as a few before it like this:
>
> grep: git-repositories: Is a directory
> grep: guix: Is a directory
> grep: homedir: Is a directory
> grep: homework: Is a directory
> grep: iTunesDSM: Is a directory
> grep: jessie64: Is a directory
> grep: local: Is a directory
> grep: log: Is a directory
> grep: mygo: Is a directory
> grep: node_modules: Is a directory
> grep: perl5: Is a directory
> phonetic-alphabet.txt1:Stolen from http://ww= w.fourmilab.ch/documents/phoneticalphabet/
> grep: pprof: Is a directory
>
> You can't tell from what I've pasted above, but the 9 "Is= a directory"
> lines before the actual hit were red and underlined, just like the
> match was.
>
> * Hitting C-x `, instead of visiting the file with the hit, put a
> nine-line-high prompt in the minibuffer, as if it was asking me which<= br> > directory to find the file in a directory with a really weird name. > (You can see some evedince of this in the "Recent messages" = stuff below).

> https://debbugs.gnu.org/cgi/bugreport.cgi= ?bug=3D27840 is a similar report from a few days ago.

It's not a duplicate though, this bug is because I thought using --null=
would make it possible to get filenames containing newlines
unambiguously, but I was wrong.=C2=A0 Here's a patch, also covers a cou= ple of
minor issues that came up later in Bug#6843.

--001a113ed2beb8256a05558d5c44--