From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#57856: 28.2; bookmark context strings in encrypted files Date: Mon, 19 Sep 2022 14:16:47 +0200 Message-ID: <87zgevimog.fsf@gmx.de> References: <87bkrfh77i.fsf@gmail.com> <87mtaz8quf.fsf@gnus.org> <877d23h4df.fsf@gmail.com> <87czbv8od3.fsf@gnus.org> <87y1ujsbjp.fsf@gmx.de> <874jx56l2v.fsf@gnus.org> <87mtaxx8s7.fsf@gmx.de> <87leqfzu6j.fsf@gnus.org> <878rmfkaco.fsf@gmx.de> <87mtavvafd.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2464"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Gustavo Barros , 57856@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 19 14:19:16 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 1oaFk4-0000WI-0k for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 19 Sep 2022 14:19:16 +0200 Original-Received: from localhost ([::1]:33126 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oaFk2-0003L5-Ki for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 19 Sep 2022 08:19:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42728) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oaFhv-0001jW-3O for bug-gnu-emacs@gnu.org; Mon, 19 Sep 2022 08:17:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53543) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oaFhu-0002av-2V for bug-gnu-emacs@gnu.org; Mon, 19 Sep 2022 08:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oaFht-0004ab-Mv for bug-gnu-emacs@gnu.org; Mon, 19 Sep 2022 08:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Sep 2022 12:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57856 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 57856-submit@debbugs.gnu.org id=B57856.166358981817629 (code B ref 57856); Mon, 19 Sep 2022 12:17:01 +0000 Original-Received: (at 57856) by debbugs.gnu.org; 19 Sep 2022 12:16:58 +0000 Original-Received: from localhost ([127.0.0.1]:52621 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oaFhq-0004aG-Bt for submit@debbugs.gnu.org; Mon, 19 Sep 2022 08:16:58 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:36145) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oaFhn-0004a2-CM for 57856@debbugs.gnu.org; Mon, 19 Sep 2022 08:16:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1663589808; bh=AgqtXCh7a91hrAaUrr8SvDQjLD8eemJXdpne/zYb98M=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=MVFAKHQQ+UCBw9ZC2znPWOHm5eIlYU5qdoQvU0peb26O5hwcOvY5wfxCqVaaWipDf sYWUfINxUTCDSe/JN8cd2oZNgp1uqavvJF7ce/YO5rhJfhpHYPqJ3CsIvfueXha2nK 38I65r+ci3svVdt+VOEeTfd+0CvBLaM0MqGZC3rE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([213.220.159.44]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MfpOd-1pC2ED2Q9J-00gFLd; Mon, 19 Sep 2022 14:16:48 +0200 In-Reply-To: <87mtavvafd.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 19 Sep 2022 14:03:02 +0200") X-Provags-ID: V03:K1:Tkm9icbU+qzGUvO1s1sit3KRlpPCb32wwML7OevHWgWU8OOFwPv +mrhVLP19XB+v/PCZtHz3NH5DuCK6poiLsWWnoByHI4weh/iOVOG7hIIlnzC5irD3RDBUNX zjUSqaczejbQ6GZl/0I81Ql3zv8IVjG9Ea9AeBz+NAREfH+4zv39qvSzq/fW9S4YEn7ZJGm h8S05Flls5MELKrrICCtQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:js65KjivFYU=:4ZXTrNR+fF3xdfj5O82bNK cbT6FxTBG2LURxgm8iaBpOsSvZe/uT3ZrJWafPzdAiCey3qhU/2gp1GIoszj0u4pC/Ysi42o2 ilTHZ7SOLwoaOsXuyzeaSfOkHKFO6wEeEr2WNsRPCqmZk3YqA00tLUlLlJ4ktWZBueyknrHYL g0luS4XhLVpldt60SgLuCReOLA07+6wL9xg281jOZy2gEYGSPN3bqkDu8aSQ81jvyE7uiVXux rZ5pLw81CRfYpiM2tRFbj9ladvrOwMl0kR1b1OJlf3MiUnjvjFpN19UPe84A+ecsr2TmTx7Km LXTs1cSXnc9TV1RK6UajeWg8A7wN/26lGbcrOQLidI4d1aG7nq1Hyjo+RQ671YagIYDQ3dAU/ sC/5/X74Pd6bb17KP+tSAfwFlxVw8ajSxQ3+qO5OQAS9CxOWSk2e3jaBG2Sz/OfTzfYsxhTt/ Z6/x8FlB14lBc+zSyCVYNms1ra+zSfxxUNq1Vj/skSl5O8lqMB25XwzKwryFgZGbS0DcnbylO an7zaQgF3NEEX5RlxUdjlvxwhJ75kUEgntHBM2qwVM8iclGOON50frfsMDpLBdDGd1vMxwK6p Yqb29GZAo18BEjbkfhVrUYkP3d04QYZFV1f6imLh/WT5kB7ajGD72AcS4vuvgLq/MqCRoI1ad owxEehCrRSVhzrdau2Fhq6s2UG8ZLSWbHJJ2y9pdmEytqmTd5wjEcPRBYZaCdKsbHNqaeWFhY T88fnG2KVP6EpI0gjzZhCgCENhwdiop2YJBzukNtscdlNzS0UO57GJ/zzB5eIROd5FOsJ1W4 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:243074 Archived-At: Lars Ingebrigtsen writes: Hi Lars, > Michael Albinus writes: > >> Thinking further about, there are also other files which shouldn't >> expose snippets to bookmarks. Think about .authinfo / .netrc (more >> general, all files used as auth-sources backend). And perhaps other >> files. >> >> Wouldn't it be better, if packages like Tramp, epa, auth-sources, you >> name it, could mark files to be excluded from bookmark-make-record? For >> example, a hook a package could contribute to. In Tramp, we would run >> >> (add-hook 'bookmark-inhibit-bookmark-hook #'tramp-crypt-file-name-p) > > Yes, that's true, but we don't really have a way to define > auth-source-file-p except by heuristics -- a netrc file may be called > anything. > > So I'm not sure how that'd look... auth-source-file-name-p could scan the auth-sources declarations for a file based backend, and return t for such files. Shouldn't be too hard to implement (oops, do I offer to volunteer?) Let's start with bookmark-inhibit-bookmark-hook, adding tramp-crypt-file-name-p and epa-file-name-p, and see, who else wants to be added. Best regards, Michael.