From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arch Mux Newsgroups: gmane.emacs.help Subject: Re: Secondary filtering with occur Date: Sat, 23 Jul 2022 08:32:09 -0500 Message-ID: <87tu78t0o6.fsf@Mux.stemux.com> References: <875yjtqg7f.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6944"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 23 15:35:18 2022 Return-path: Envelope-to: geh-help-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 1oFFHp-0001XJ-UO for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 23 Jul 2022 15:35:18 +0200 Original-Received: from localhost ([::1]:43860 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFFHo-0002DI-Hx for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 23 Jul 2022 09:35:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60558) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFFH7-0002D6-AW for help-gnu-emacs@gnu.org; Sat, 23 Jul 2022 09:34:33 -0400 Original-Received: from mail.stemux.com ([100.42.64.80]:57770) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFFH4-0005zM-QS for help-gnu-emacs@gnu.org; Sat, 23 Jul 2022 09:34:33 -0400 Original-Received: from localhost (072-182-154-233.res.spectrum.com [72.182.154.233]) by mail.stemux.com (Postfix) with ESMTPSA id C28173FC29; Sat, 23 Jul 2022 09:34:21 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=stemux.com; s=default; t=1658583262; bh=ZrFGY/wynsBfh2+o+x/ONaNBv9pz5KtmqML90kX5dJQ=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=ZGNhNtb7bnyTtC39kWnuYQAZRphVEc5xwkVDrf8gTq7LUDiClX9XI6ERbM52RENo6 9B9JArkzMlLMgEmivdcsN4FzXThESR6aw5hqU174YgbvDjuj+QHoGU5DxYuZehsp94 o9BGlhCAtzafufMB/sWnqv7KHVWBjdhSmX2IH0t+uIj0VhEd0s5/RW1YGjZB4Ih7C5 QC5gTIytn1D5X2Yr9FxHSY+1qyxgnbPJo8RtcTAJmMxY2BqX4dUHEuM1HOKx0vs720 eDu/oFhSQNIbgKEDyL0eCeT2xSuDRhjNZ6n4kONfbLI/Rj1jXI/r2hZcKlSFfl6G/m bnH1PTtO4AqjA== In-Reply-To: <875yjtqg7f.fsf@web.de> (Michael Heerdegen's message of "Tue, 19 Jul 2022 17:23:32 +0200") Received-SPF: pass client-ip=100.42.64.80; envelope-from=archmux@stemux.com; helo=mail.stemux.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, WEIRD_QUOTING=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:138573 Archived-At: Michael Heerdegen writes: > Archmux writes: > >> Dear Emacs Help, >> >> I need to filter the results of `find-name-dired' programmatically. > > May I ask how your use case looks like? Can you maybe just use > `find-dired' instead of `find-name-dired'? > > Michael. My apologies for the belated response. I have been intensively configuring GNU Emacs incorrectly. Thanks to your statement about `find-dired', I realized my usage of `find-name-dired' is unnecessary because it redundantly filters by name using `occur'. I need to locate a package file, for Exherbo Linux, with the extension of '.exheres-0' or '.exlib' within the directory '~/Internet/Git/Exherbo/Remote/'. The current implementation with `find-dired': """""" (defun archmux/exherbo-cd () "Find exheres." (interactive (let* ( (exherbo_directory "~/Internet/Git/Exherbo/Remote/") (exheres_user_input (read-from-minibuffer "Exheres to locate: ")) (find-pattern (concat "-name " exheres_user_input "*")) (find-ls-option '("-type f -ls" . "")) ) (find-dired exherbo_directory find-pattern) ) ) ) """""" Thank you, Archmux