From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Howard Melman Newsgroups: gmane.emacs.bugs Subject: bug#54962: 28.1; insert-directory-program should be ls-program Date: Fri, 15 Apr 2022 17:35:38 -0400 Message-ID: References: <83r15y15yp.fsf@gnu.org> <83o81214r4.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9149"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 54962@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 15 23:36:12 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 1nfTbv-0002GY-Nq for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Apr 2022 23:36:11 +0200 Original-Received: from localhost ([::1]:48394 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nfTbu-0004mD-9K for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Apr 2022 17:36:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40230) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfTbm-0004jX-Jt for bug-gnu-emacs@gnu.org; Fri, 15 Apr 2022 17:36:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38303) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nfTbm-0003IV-8w for bug-gnu-emacs@gnu.org; Fri, 15 Apr 2022 17:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nfTbm-0002Cr-6J for bug-gnu-emacs@gnu.org; Fri, 15 Apr 2022 17:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Howard Melman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Apr 2022 21:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54962 X-GNU-PR-Package: emacs Original-Received: via spool by 54962-submit@debbugs.gnu.org id=B54962.16500585478457 (code B ref 54962); Fri, 15 Apr 2022 21:36:02 +0000 Original-Received: (at 54962) by debbugs.gnu.org; 15 Apr 2022 21:35:47 +0000 Original-Received: from localhost ([127.0.0.1]:60433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nfTbW-0002CL-Qo for submit@debbugs.gnu.org; Fri, 15 Apr 2022 17:35:47 -0400 Original-Received: from mail-qk1-f171.google.com ([209.85.222.171]:38782) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nfTbV-0002C9-F2 for 54962@debbugs.gnu.org; Fri, 15 Apr 2022 17:35:45 -0400 Original-Received: by mail-qk1-f171.google.com with SMTP id 204so1396912qkg.5 for <54962@debbugs.gnu.org>; Fri, 15 Apr 2022 14:35:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Kls0yvKmEjrh3VDGPqv1BlOcFlPytkjt61a4I/hFmR4=; b=ILhoOe3zTFIzwHERO0+62P1UBDdDjrjolZG2fLsHqGGHsZNfGY6crnagokH0d1LEYx ZtXtVwzyT93TV6UejNeZ6hHgzmSotkwQ6n3+dWgH3H47hlqEk9yViLiNSWPKLlieZjRl RQdgtjfBFjRZZ4wiCj6RL2uQrxfV5HETh4RJ2TcV4WoS20WN9eI1wz2gVqSWmCZfqyez KjPt6Ds9lqlCeVVr0puw76PryzKL9ICSkpXxy5WZmIrleGy8vWWle/1Zew+Lc/4qGbRU qmt2kSqfxmJOakta/nqxf8eb+PMSlCnIz4nABc1H1DLK2qkvFuuvU0QsHGSjh29Y1uYg NJcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Kls0yvKmEjrh3VDGPqv1BlOcFlPytkjt61a4I/hFmR4=; b=sD6ErUyPQ4XbUcMVgaX86Stb+KmbUnusVE3ksxqFQmD8HluDWHFFg5uaLfGqi0p9E8 ppdRgTcEKiuEIk8R/cN0+SG5w5XzyIMWbsexCV1tpbIw33almbtG9NOkJHfJLgYeWBPj bj8aTwxBhwmYwyaCVJ8Or5be7Vh0xn9pq9y9aYnjG0Vb0Qq3MraZ49vGOR32kaq10Ygc Nq8OcFcHYnOXQzfVdmBR1TW80dUSnEx8oijhrWevQDUh7Ex+GHe/TckpF93jbkS7i+Tv ojKf0umAoJrXYBpIudvdVCkWS1i04BA6RkjlVLtvhZFcTSxztKWZ9YQaT6AwbcU+ZaB4 hnFA== X-Gm-Message-State: AOAM533D9Q/JUc1lu/HejWCQ/YW7pvlj8AlYqP61K6+JpuAN9yd0pLmo DUnXrGYRgInvRka80LuIiTzqnPhv9n1PZA== X-Google-Smtp-Source: ABdhPJy51G0mYdoWav0nvT5ZI5WUp+FAYwDUEwB+ogpP4dJo0/ggA6rmQGcxzV85wJjo9S6klTU0yA== X-Received: by 2002:a37:aa8e:0:b0:69e:5dfc:f919 with SMTP id t136-20020a37aa8e000000b0069e5dfcf919mr573905qke.132.1650058539827; Fri, 15 Apr 2022 14:35:39 -0700 (PDT) Original-Received: from smtpclient.apple (pool-108-26-204-101.bstnma.fios.verizon.net. [108.26.204.101]) by smtp.gmail.com with ESMTPSA id x13-20020a05620a258d00b0069c7468e123sm2999542qko.122.2022.04.15.14.35.38 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Apr 2022 14:35:39 -0700 (PDT) In-Reply-To: <83o81214r4.fsf@gnu.org> X-Mailer: Apple Mail (2.3654.120.0.1.13) 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:229951 Archived-At: > On Apr 15, 2022, at 4:16 PM, Eli Zaretskii wrote: > > I've now added a reference to insert-directory-program in the doc > string of Dired, and vice versa. I think this addresses the problems > you had in finding the variable. Yes that helps. > The distinction is that there's only one program that can be used in > the other examples of these variables, and the variable exists only to > support different installation directories for that program, and > sometimes popular renames like 'gfind' instead of 'find'. This is exactly my case. > That's not the case with 'ls'. Some systems call this 'dir', for example. I don't see why that system couldn't just as easily do (setq ls-program "dir") On the mac I configure locate-command to use mdfind, which seems similar. > Besides, insert-directory-program is used not just by dired, it is > also used by a function names 'insert-directory'. Which I think is just used by dired and list-directory the latter of which says in the first line of its docstring: Display a list of files in or matching DIRNAME, a la ls. And there's ls-lisp-use-insert-directory-program which is also very ls centric. So I still don't get your distinction and think a variable alias would break nothing and help findability. In my case I changed my system configuration and knew I had to tell emacs about "gls" and knew about setting grep-program and find-program and locate-command and thought this one would be called ls-program in part because those others weren't called something like search-files-for-regexp-program. Howard