From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: Secondary filtering with occur Date: Fri, 15 Jul 2022 06:54:34 +0200 Message-ID: References: <875yjzjpfl.fsf@gmx.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="abkLqYCio0NiqETq" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35399"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 15 06:55:16 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 1oCDMC-0008zs-EM for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 15 Jul 2022 06:55:16 +0200 Original-Received: from localhost ([::1]:42372 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oCDMB-0002uH-1V for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 15 Jul 2022 00:55:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33646) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCDLf-0002u5-1z for help-gnu-emacs@gnu.org; Fri, 15 Jul 2022 00:54:43 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:33322) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCDLd-0003Ql-2q for help-gnu-emacs@gnu.org; Fri, 15 Jul 2022 00:54:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=ML2C/KBjlYFHetW3FkWwvWGeVaz2P69cI9++VZVHAcA=; b=MTIW2RCePhW168hB7y//ZTh0ch Lrfv+HYoeHgQ8W0wJCiA2dF5MHrrtEA39wl8cmjrqgswgOx3FzP0NPcEw2H4NWiQsmlp9c6rZfdSJ Ny4S+n2kCm0zgYqlzEZv7C8dyJmA7yQqqLQ3N4QvT4eJM/ijfOIDVtsktXgLnaqImTSPDg/76WVB6 KRsTaObgT/UuCMVJim2a0+RV97pGGs1jsXNxXHewKcnV/CFWdCEVR5q/x5Gp2pRdCuDrO2nNB6xZC dZfVzOsAuSP+kDHeYPaAHTV/fG/WjtGaHnOe/guLRkIKgKr5SZ1fWVRys2oibaGxSVjB/gCzwlIKE wEhYfZlA==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1oCDLW-0005QZ-4S for help-gnu-emacs@gnu.org; Fri, 15 Jul 2022 06:54:34 +0200 Content-Disposition: inline In-Reply-To: <875yjzjpfl.fsf@gmx.net> Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de 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:138483 Archived-At: --abkLqYCio0NiqETq Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 15, 2022 at 12:32:30AM +0200, Stephen Berman wrote: > On Wed, 13 Jul 2022 12:51:31 -0500 Archmux wrote: >=20 > > Dear Emacs Help, > > > > I need to filter the results of `find-name-dired' programmatically. > > > > I am attempting it with this command-prototype: > > > > """"" > > > > (with-current-buffer (find-name-dired "~/Musica/" "*.flac") > > =C2=A0 (occur "Hunter") > > ) > > > > """"" > > > > It returns: > > > > """"" > > > > (wrong-type-argument stringp (":%s")) > > > > set-buffer((":%s")) > > > > ... > > > > """"" > > > > > > 1. How do I troubleshoot/discover the issue causing, `set-buffer((":%s"= ))' ? >=20 > One way is to look at the source of `find-name-dired' and you'll see it > contains no "(:%s)" but it calls `find-dired', which also contains no > "(:%s)" but it calls `find-dired-with-command', which indeed ends with > `(setq mode-line-process '(":%s"))', which means `(":%s")' is the return > value, and that's causing the error. Another useful tool for such things is setting up debug on error, by doing "M-x toggle-debug-on-error". This will lead you to the spot in the source where the error was caught. Cheers --=20 t --abkLqYCio0NiqETq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCYtDzAwAKCRAFyCz1etHa RqsFAJ4qrR+76LbIk9dzJufnmWZ1leV4ZgCfd/UqVEB6FMoslYbwR3mwpwZQPf0= =QPtB -----END PGP SIGNATURE----- --abkLqYCio0NiqETq--