From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arsen =?UTF-8?Q?Arsenovi=C4=87?= via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#67937: 30.0.50; auth-source-pass relies on epa-file being enabled Date: Sun, 24 Dec 2023 11:25:24 +0100 Message-ID: <865y0nnb1i.fsf@aarsen.me> References: <8734vwq06i.fsf@aarsen.me> <83frzwhgre.fsf@gnu.org> <87jzp8of97.fsf@aarsen.me> <83bkakhe8s.fsf@gnu.org> <87msu4myau.fsf@aarsen.me> <83y1dnga7u.fsf@gnu.org> <87sf3vlqj1.fsf@aarsen.me> <871qbf4ocp.fsf@neverwas.me> <871qbflg53.fsf@aarsen.me> <87h6kbxgzl.fsf@neverwas.me> <87jzp6is0s.fsf@aarsen.me> <87ttoas466.fsf@neverwas.me> <878r5mm3el.fsf@gmx.de> <875y0qrmhj.fsf@neverwas.me> <871qbdmagw.fsf@gmx.de> <87bkahlzzp.fsf@neverwas.me> <868r5lszxm.fsf@aarsen.me> <87plywlus1.fsf@gmx.de> <86r0jcn100.fsf@aarsen.me> <87sf3sjuq7.fsf@neverwas.me> Reply-To: Arsen =?UTF-8?Q?Arsenovi=C4=87?= Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39726"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Damien Cassou , Eli Zaretskii , 67937@debbugs.gnu.org, Michael Albinus To: "J.P." Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 24 11:37:12 2023 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 1rHLr5-000A8s-MH for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Dec 2023 11:37:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rHLqt-0007uu-Cr; Sun, 24 Dec 2023 05:36:59 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rHLqr-0007tI-KZ for bug-gnu-emacs@gnu.org; Sun, 24 Dec 2023 05:36:57 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rHLqr-0000aM-Co for bug-gnu-emacs@gnu.org; Sun, 24 Dec 2023 05:36:57 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rHLqx-0001RX-5i for bug-gnu-emacs@gnu.org; Sun, 24 Dec 2023 05:37:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Arsen =?UTF-8?Q?Arsenovi=C4=87?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Dec 2023 10:37:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67937 X-GNU-PR-Package: emacs Original-Received: via spool by 67937-submit@debbugs.gnu.org id=B67937.17034141775469 (code B ref 67937); Sun, 24 Dec 2023 10:37:03 +0000 Original-Received: (at 67937) by debbugs.gnu.org; 24 Dec 2023 10:36:17 +0000 Original-Received: from localhost ([127.0.0.1]:51716 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rHLqC-0001Q4-9B for submit@debbugs.gnu.org; Sun, 24 Dec 2023 05:36:16 -0500 Original-Received: from mout-p-202.mailbox.org ([2001:67c:2050:0:465::202]:45110) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rHLqA-0001Pm-3m for 67937@debbugs.gnu.org; Sun, 24 Dec 2023 05:36:14 -0500 Original-Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4Sycrb09Kbz9sc8; Sun, 24 Dec 2023 11:35:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aarsen.me; s=MBO0001; t=1703414159; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=aDhH4nbqcPwXq55pjF80WP8aDfkyluXssJgMcRUzT0A=; b=fSLmtqvHEqg7eSTQa9v+Vbj00NfxTAT69Ieq3IDIxIGfe9GKmbm2egocsxZ9eQsl58C5FX I7VB0HySadVdxih0JoXhlb2Rj0W7IBmHD6GEFBZGxpQAcPnn4fbWumFfXq7KWkrVyZWfd/ vAARclTLLUaGUeHa/uhdgBfxecJT8IAdncIriNuIIzWgu6imnUZ8cGDeYRC2qKPcO+r5uS YZX12uoaTbocrGyQcEESt5EQoZCI1Z5q4pgmgPWEe1BBAHaJaTql6SDg+1VYmeFBbbK2Hj VlQHmo3XIkuGHZXpR/LoSRdMfnTqc9x/utDU1uOz9vT0e5F+//dn1jVkK3cHZw== In-reply-to: <87sf3sjuq7.fsf@neverwas.me> X-Rspamd-Queue-Id: 4Sycrb09Kbz9sc8 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:276796 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi J.P, "J.P." writes: > Arsen Arsenovi=C4=87 writes: > >> This patch/bug report addresses a real problem that exists independently >> of what triggered it in my case. >> >>> My gut feeling tells me that this could be the real problem, and we >>> need to solve this instead of bypassing the problem with another >>> patch, which could introduce further problems. >> >> Your gut's nearly certainly right here :-) I am still hunting for the >> cause of that issue. > > Perhaps it couldn't hurt to get that somewhat sorted before modifying > `auth-source-pass--read-entry'. I firmly believe that these are two separate bugs, one of which triggered the other. The reason for that is because I can reproduce this bug by simply running 'epa-file-disable', without invoking the original bug that revealed it to me. >> Regardless, what I said initially holds true ultimately: either epa-file >> should not be relied on, or a-s-p should ensure it is present. I >> gravitate towards the former, as it reduces the complexity of getting a >> password-store entry. >> >>> Hunting for this problem I recommend to use >>> (debug-on-variable-change 'file-name-handler-alist) >> >> That is too verbose. The following appears to work well, though: >> >> (add-variable-watcher >> 'file-name-handler-alist >> (lambda (symbol newval operation where) >> (cl-flet ((hefh (val) >> (seq-some (lambda (x) (equal (cdr x) 'epa-file-handler)) >> val))) >> (let ((hb (hefh file-name-handler-alist)) >> (ha (hefh newval))) >> (cond >> ((and hb (not ha)) >> (debug--implement-debug-watch symbol newval operation where)) >> ((and (not hb) ha) >> (message "epa-file added"))))))) > > I can't imagine > > (rassq 'epa-file-handler val) > > differing from > > (car (memq epa-file-handler val)) ; w/o the quote > > But if it somehow does, that could provide an insight into the cause as > well. Just a thought. Interesting, I didn't realize epa-file-handler is also a variable besides just being a function. I also didn't know rassq exists! Goes to show how novice I am in elisp :-) I will clean up that code above. You're right WRT those possibly different being interesting, I'll try to catch that, too. Thanks, have a lovely day! =2D- Arsen Arsenovi=C4=87 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iOYEARYKAI4WIQT+4rPRE/wAoxYtYGFSwpQwHqLEkwUCZYgJWV8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0RkVF MkIzRDExM0ZDMDBBMzE2MkQ2MDYxNTJDMjk0MzAxRUEyQzQ5MxAcYXJzZW5AYWFy c2VuLm1lAAoJEFLClDAeosSTUucA/iSAvzdCoYln0pyP8HSjYSnykEZRUPIGS/gV hls+lBvoAPwIyoYBwPu9HfrH6UfxeuruMgN06VP52MSRKg8ThgowDA== =unQr -----END PGP SIGNATURE----- --=-=-=--