From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Peter Povinec Newsgroups: gmane.emacs.bugs Subject: bug#55016: 28.1; xref-find-references finds no matches if project dir contains a space Date: Tue, 19 Apr 2022 10:06:28 -0700 Message-ID: References: <83o80xv944.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1269"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55016@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 19 19:10:39 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ngrN9-0000GC-Jm for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 Apr 2022 19:10:39 +0200 Original-Received: from localhost ([::1]:57206 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngrN8-0005fB-7s for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 Apr 2022 13:10:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33742) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngrJf-0002Vg-3b for bug-gnu-emacs@gnu.org; Tue, 19 Apr 2022 13:07:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50135) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngrJe-0004OU-PA for bug-gnu-emacs@gnu.org; Tue, 19 Apr 2022 13:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ngrJe-0002TN-DV for bug-gnu-emacs@gnu.org; Tue, 19 Apr 2022 13:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Peter Povinec Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Apr 2022 17:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55016 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 55016-submit@debbugs.gnu.org id=B55016.16503880059478 (code B ref 55016); Tue, 19 Apr 2022 17:07:02 +0000 Original-Received: (at 55016) by debbugs.gnu.org; 19 Apr 2022 17:06:45 +0000 Original-Received: from localhost ([127.0.0.1]:44032 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngrJN-0002Sn-7f for submit@debbugs.gnu.org; Tue, 19 Apr 2022 13:06:45 -0400 Original-Received: from mail-vs1-f49.google.com ([209.85.217.49]:36690) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngrJM-0002Sc-Bp for 55016@debbugs.gnu.org; Tue, 19 Apr 2022 13:06:44 -0400 Original-Received: by mail-vs1-f49.google.com with SMTP id a127so16278061vsa.3 for <55016@debbugs.gnu.org>; Tue, 19 Apr 2022 10:06:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=isziPi7rclq/F1QFFX/XjfLlzg9a0tapoPyGJ1Y7X3c=; b=c22re5QWRWOQ6ae/D4uj+McJXGasSUkcOnVdSvJ1VRZhZ0NVjIssvK7Bcz9S9/6fzy kPp3044cBOVRYN//FEUwIgorPX7xQvcnzg90+5S8/knWDFkendFiuVz9WVPT2/9LZTEe zwRuJiva2DWkc63qsFweU8y3sRw22UegpB12T1hyKDIgxjPoV4Y0YYdWfEp0VmV7sbEw hpfWRUoAAgvRwZkl5xYgNVrnFUuKFz5tpJfb3SG17823LGQzXKiqvfpxhM2KFuMNcPVt hxivePXDLF72BDDR6olvDSGcab0pXHnLR4gTjdcjF2WNMTRP6XRS363+xfbZDJqR47ld acbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=isziPi7rclq/F1QFFX/XjfLlzg9a0tapoPyGJ1Y7X3c=; b=61DcnWLhuSp0R9dsoTqHe2XkLZ3yBz4gasISQ2jxTYM8giwK6ffuplCmAKsG9V+CLC f1rs33bWLxOORgpcAFAevxa1OB5ZEvcZQ834aOmf1pIKQJeZ1DOKAnf+mBdKhhEzpSRl JwRTWKMrWAcP+B/kqhaA6+qBPsRrQK3cgqK/e2VPTrBzITj+qXjuX2p0KD6QdRp2h85Y P2P5crHxNEgfKkClh4uGAN4kLMYfOdCiFh0lT15viRZ8KDzFMdD2T5eBM9qIESMb69lX QWi7Y3NO7jPTO8RFU8wK46aMTiMTNdnq5LYXriXuePgRmvpsT6L48r74QrN3JUdIzbiR xuOg== X-Gm-Message-State: AOAM530Azg41WABxSmDjQ3NXoYCVtq0tYGUfXiVOGrGRlLeb6tbJKSau 9g+UMTMiArWicTQgebdQc3SyxBvRsi1TORHE4fI= X-Google-Smtp-Source: ABdhPJzcuu+HLvk/B/m0x5W71fglhCemEPvMTyEwmZ3JJtidIcxZX5NrpLmt5aiE5NRWKTp1cCPVCHvNlTZrRf1cQx8= X-Received: by 2002:a67:ea51:0:b0:320:c3a9:414b with SMTP id r17-20020a67ea51000000b00320c3a9414bmr5408243vso.81.1650387998857; Tue, 19 Apr 2022 10:06:38 -0700 (PDT) In-Reply-To: <83o80xv944.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:230251 Archived-At: On Tue, Apr 19, 2022 at 12:13 AM Eli Zaretskii wrote: > > I'm running half-blind here, because you didn't tell which Xref > backend is being used for this (do you have ID Utils or GNU Global or > Cscope installed and used for the above recipe?). My guess is that Sorry, should have mentioned that the recipe is with 'emacs -Q', no special backends. I believe it is just doing find+grep underneath. > Emacs uses the default "find | grep" to do the search, in which case > the patch below should help; does it? > > diff --git a/lisp/cedet/semantic/symref/grep.el b/lisp/cedet/semantic/symref/grep.el > index 27ea80f..bc96505 100644 > --- a/lisp/cedet/semantic/symref/grep.el > +++ b/lisp/cedet/semantic/symref/grep.el > @@ -124,7 +124,7 @@ semantic-symref-grep-use-template > grep-find-template) > pattern > filepattern > - rootdir))) > + (shell-quote-argument rootdir)))) > cmd)) > > (defcustom semantic-symref-grep-shell shell-file-name The patch actually makes it worse. Now even the 'nospacedir' case fails the same way (steps 6 and 7 in my recipe).