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: Sun, 18 Sep 2022 12:43:20 +0200 Message-ID: <87mtaxx8s7.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36920"; 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 Sun Sep 18 12:44:29 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 1oZrmn-0009QZ-Ci for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Sep 2022 12:44:29 +0200 Original-Received: from localhost ([::1]:46238 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZrmm-0002HW-Dd for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Sep 2022 06:44:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36026) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZrmO-0002H9-6M for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2022 06:44:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48833) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oZrmM-0006I5-Is for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2022 06:44:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oZrmM-0004iQ-BW for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2022 06:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Sep 2022 10:44:02 +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.166349781218077 (code B ref 57856); Sun, 18 Sep 2022 10:44:02 +0000 Original-Received: (at 57856) by debbugs.gnu.org; 18 Sep 2022 10:43:32 +0000 Original-Received: from localhost ([127.0.0.1]:47911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZrlr-0004hV-Sz for submit@debbugs.gnu.org; Sun, 18 Sep 2022 06:43:32 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:51449) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZrlp-0004h9-2D for 57856@debbugs.gnu.org; Sun, 18 Sep 2022 06:43:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1663497802; bh=kACv38Sn/LPa2c6JjAchirhwRzcWYkb/5uIX6OErAvo=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=T9l2d2jD3/3To6qq5JRyvS5dD9BeYIprH6anj5FgIGKNFtOG++ZaBB6sGO/9sJBt5 qV37Cxi6S7kEU8hXqmoRWKO5u4mUaM2KkBcggD1V1KuGF1sqRYQDn+y81UGjOjPFRT nSEJ5qbh8IO5jsUIFxKOyrKi9XxUcRNJEcWbmrDM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([213.220.159.44]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MfpOT-1pFnIO48Iz-00gGdJ; Sun, 18 Sep 2022 12:43:22 +0200 In-Reply-To: <874jx56l2v.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 18 Sep 2022 12:19:52 +0200") X-Provags-ID: V03:K1:dJiFqfZbjmm2M4srHqDseVEehjsNiREwgtqkzoNBOdrC7OuxDjS 1Gli3PQ6jc9OcTCsxcLATdpFGLg3F478hS0qWW6hxBPinbzEMKB1+KeHM03o1yJd+paAy/D DO8YsXAdZSkVJB7JE89b53hZlhY60kLArB1PJrJalOc0Yjl7ET5hU3MU0DBqCpE6gtkV4/a gDLrtlzKvtXHXqotqAHew== X-UI-Out-Filterresults: notjunk:1;V03:K0:UdXvifVcPWM=:MT8Q4nGkZEyu1hpL9PRemd HNPhTYSgT87fvJoeHoBfAv8iFj/h/UeJeoj64cvnYKIgoZwb+u3mfI6wxb4382dIM/qL9QwUp efzob5TGboVipNIYmKWqZ53YaQ89HVRq2rZk0UQj+mpqYv2WLtXR9+tyB38Ftd8Kk2efDWeUO fVFgrqPKfehkJqSOer9HDLGCex6WdDybJVnHBRSjQVPXFXXTLLE5bop95eGeRe7jdN+ZcT3Lo mJhhhD6rsms4pKE8BzXBrdxlNBIWOrYQw5P1kJ1Q7lExjXsu+gtqYlurNkDhgwoz62CO9/4XS CTEaHUDp/q22Xh6UeinmRGMn4ZC4Dh4YCZHiSvKGn7xrDYkv38a55VplkpE6ZBp9r3WrIAbfe zRtfckrT0B54ufiwIpX8r7+yCKYjujABCmRHuQwxwPdZLmR4Gk5hvib5GXU9rFQJnHlAmxhut TPn8lqRXngfmN9NHFeQrUlzaWX3twhFn5Y3v+XlbjC53xG5Ocpb+lCyQhsQ9wcv0Bo659Zhh7 CKDkmpEFsVEaIqg9akvG76Q+Bsb7HEQKz4ClRpThhxFtWDwXPaTC/0klMgc9a4+d53Wk2MKbI oGqg4JsUzL2eS7b0ha2iQJ10jTciTqQ7ZSQ6iViIWV3//cgAGpJ2rdhsh+yCGK3IpQQvB/5zo 5PCF/57fIcgH2n/pOfVv9oPDObJnoeJCqywO2Jhuh/Vy3gdkIYrq29q2h9GFqZ1scgifSdz1o 2yL8UE4/XrXtln4cA3SCydHDUTwbEaxEAnw8yNoWK98/NWaFPV3ZJMGG6Kn9li9GCkhiMV3t 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:242949 Archived-At: Lars Ingebrigtsen writes: Hi Lars, >> JFTR, there's not only gpg encryption. We have also tramp-crypt.el, >> which let users encrypt all their files on a remote host. Those files >> shall be handled similar, when it comes to implementation. >> >> See (info "(tramp) Keeping files encrypted") > > Right... switching off bookmark context lines would go into > `epa-file-insert-file-contents' in the gpg case, I think -- where would > we do that in the Tramp case? There is `tramp-handle-insert-file-contents'. Since this is used for several Tramp backends, we need a check, whether Tramp encryption is active. Something like --8<---------------cut here---------------start------------->8--- (when (tramp-crypt-file-name-p filename) ...) --8<---------------cut here---------------end--------------->8--- OTOH, this would expose the "tramp-crypt-" namespace to tramp.el. Hmm, maybe I will adapt the solution, but you could start with this. Best regards, Michael.