From: Arch Mux <archmux@stemux.com>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Secondary filtering with occur
Date: Sat, 23 Jul 2022 08:32:09 -0500 [thread overview]
Message-ID: <87tu78t0o6.fsf@Mux.stemux.com> (raw)
In-Reply-To: <875yjtqg7f.fsf@web.de> (Michael Heerdegen's message of "Tue, 19 Jul 2022 17:23:32 +0200")
Michael Heerdegen <michael_heerdegen@web.de> writes:
> Archmux <archmux@stemux.com> 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
prev parent reply other threads:[~2022-07-23 13:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-13 17:51 Secondary filtering with occur Archmux
2022-07-13 20:22 ` Fwd: " Archmux
2022-07-14 22:32 ` Stephen Berman
2022-07-15 4:54 ` tomas
2022-07-19 15:23 ` Michael Heerdegen
2022-07-23 13:32 ` Arch Mux [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tu78t0o6.fsf@Mux.stemux.com \
--to=archmux@stemux.com \
--cc=help-gnu-emacs@gnu.org \
--cc=michael_heerdegen@web.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.