From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#23219: 25.0.92; Find command cannot be customized for grep-find Date: Tue, 5 Apr 2016 00:16:32 +0300 Message-ID: <7bd3dc00-912e-48bf-e5ef-dc716b7ef49d@yandex.ru> References: <83a8l9nm99.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1459804643 4497 80.91.229.3 (4 Apr 2016 21:17:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Apr 2016 21:17:23 +0000 (UTC) To: Eli Zaretskii , 23219@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 04 23:17:13 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1anBry-00057h-In for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Apr 2016 23:17:10 +0200 Original-Received: from localhost ([::1]:33033 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anBrx-0004st-S7 for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Apr 2016 17:17:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44201) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anBrt-0004sE-MX for bug-gnu-emacs@gnu.org; Mon, 04 Apr 2016 17:17:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1anBrq-0004yV-GO for bug-gnu-emacs@gnu.org; Mon, 04 Apr 2016 17:17:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54335) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anBrq-0004yR-Ci for bug-gnu-emacs@gnu.org; Mon, 04 Apr 2016 17:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1anBrq-0005ZS-8u for bug-gnu-emacs@gnu.org; Mon, 04 Apr 2016 17:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Apr 2016 21:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23219 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23219-submit@debbugs.gnu.org id=B23219.145980460121384 (code B ref 23219); Mon, 04 Apr 2016 21:17:02 +0000 Original-Received: (at 23219) by debbugs.gnu.org; 4 Apr 2016 21:16:41 +0000 Original-Received: from localhost ([127.0.0.1]:51462 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1anBrV-0005Yq-8m for submit@debbugs.gnu.org; Mon, 04 Apr 2016 17:16:41 -0400 Original-Received: from mail-lf0-f51.google.com ([209.85.215.51]:33592) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1anBrU-0005Ye-Mc for 23219@debbugs.gnu.org; Mon, 04 Apr 2016 17:16:41 -0400 Original-Received: by mail-lf0-f51.google.com with SMTP id p188so163168435lfd.0 for <23219@debbugs.gnu.org>; Mon, 04 Apr 2016 14:16:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=ReaHSzeVqOBUeU5E4tnocCrylWoez2X8+ah7w4yrULE=; b=03cnut9fPxvxtuMCCF4wmpN52sjigFt16mOSfNXFfv8e1lkceF6wTGKH9O8o7myEEN HultTo0VnA1FasuE82dISD70H6xryIDMTcxeFoLUMfR7sU80DwuSaFQDdAxdS6AqOWWw yCdqs0qXdGs5u6Olhk4nc7Fh4l7uEd2EsKbwCD9s4jen7r18Qa/ePXmQcyw0kcF9r3Mk 0mi8T7lTXLA0IBGCBWGR11kVCrK9g3RlZ0a5006PoIvK1UYf9Ofpaa1rmumE7BRZauUW yusyb73hL5mks+gxlf7yW7zxkZUPXL0f9JdW38VOgSxfi4VDk0KUIWQm2e6c5Yg1SzGF 5i3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=ReaHSzeVqOBUeU5E4tnocCrylWoez2X8+ah7w4yrULE=; b=M3oL6VUosnsc8DUc43tk4wQk8p4nccBll+Hk7UVYQTx2U48U2qABcG+PJBTH8ub41X tAY4Pej7lRGORpcsZLLSQnt/9GGqTElh+vUdnN3R7vgOahPBkz5y2W43S/zHQtTydS/K f0U+xyCXZSoHhx6smKrQcnqOR6i8gihVGS7KAFrMc7oQUQ8VcUSy0I17giArLU6oFmsq MHILLOev8DnMl+wPy1WVtWFbl4a2Do7LLDu/r4YQaaOLfN7n0hlOhGYEdS+1p2AbuSGr CAqe8i7HCYpFgWC1JUAv0axIzrTLz6CoUm9WXBgxSzNh+sCWbK2JVvPiuRiBMGTh6+10 IXfA== X-Gm-Message-State: AD7BkJK0svjPl3frljvr/TY+P6uR12HFPzcz9y7/kvHRG64apTIh+/ND4X8Hr37hC8QpGw== X-Received: by 10.194.121.99 with SMTP id lj3mr16998984wjb.55.1459804594862; Mon, 04 Apr 2016 14:16:34 -0700 (PDT) Original-Received: from [192.168.1.2] ([185.105.175.24]) by smtp.googlemail.com with ESMTPSA id e80sm16312239wma.1.2016.04.04.14.16.33 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 04 Apr 2016 14:16:33 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 In-Reply-To: <83a8l9nm99.fsf@gnu.org> 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:116041 Archived-At: On 04/04/2016 11:37 PM, Eli Zaretskii wrote: > On one of my machines, the GNU Find utility's executable file is named > 'gfind'. To have xref-collect-matches work, I customized > grep-find-command to have the value "gfind", but the find-grep pipe > used after that still tried to invoke 'find', not 'gfind'. You need grep-find-template, not grep-find-command. > Looking > around, I see that grep-compute-defaults effectively ignores > grep-find-command and uses the value of find-program instead. Now, > find-program is a defvar, so it wasn't supposed to be customized. Its > value is never changed, no matter what are your customizations. Yes, it's a mess. Auto-computed custom variable values don't make much sense to me either, but maybe the idea is if you want to change the program to use as 'find', it'll likely have a slightly different syntax (not in your case, though), and grep-compute-defaults might fail to work, so you're better off customizing the end values. > How am I supposed to make this stuff work in this situation? If the > solution is to poke find-program, Probably. > it should be defcustom, *shrug* > and I > shouldn't need to customize 2 variables to begin with. Why isn't > find-program get the value from grep-find-command? It's the other way around: grep-compute-defaults sets grep-find-command using the value of find-program.