From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#66697: 30.0.50; [PATCH] desktop-save-mode with expiring remote buffers Date: Mon, 23 Oct 2023 15:47:36 +0300 Message-ID: <83jzrdo68n.fsf@gnu.org> References: <875y2xelsk.fsf@ledu-giraud.fr> <83o7gpo9bm.fsf@gnu.org> <87pm15h605.fsf@ledu-giraud.fr> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4117"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66697@debbugs.gnu.org To: Manuel Giraud Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 23 14:49:11 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 1quuMp-0000o4-3i for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 Oct 2023 14:49:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1quuMc-0005JR-Ll; Mon, 23 Oct 2023 08:49:00 -0400 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 1quuMF-00058n-CF for bug-gnu-emacs@gnu.org; Mon, 23 Oct 2023 08:48:41 -0400 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 1quuMD-00047g-JZ for bug-gnu-emacs@gnu.org; Mon, 23 Oct 2023 08:48:34 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1quuMg-0007tF-Gz for bug-gnu-emacs@gnu.org; Mon, 23 Oct 2023 08:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Oct 2023 12:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66697 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 66697-submit@debbugs.gnu.org id=B66697.169806529130003 (code B ref 66697); Mon, 23 Oct 2023 12:49:02 +0000 Original-Received: (at 66697) by debbugs.gnu.org; 23 Oct 2023 12:48:11 +0000 Original-Received: from localhost ([127.0.0.1]:49427 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1quuLq-0007np-Ga for submit@debbugs.gnu.org; Mon, 23 Oct 2023 08:48:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56102) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1quuLp-0007nB-0G for 66697@debbugs.gnu.org; Mon, 23 Oct 2023 08:48:09 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1quuLG-0003qH-HY; Mon, 23 Oct 2023 08:47:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=FWvQasyIIvgum/vsh8Ozr9XXXdB6+m3ASJV94iEQ/lM=; b=jJ10sJkvvRXp qG+UB50Bu20WGvSF7RAuwlDddkuU/F9oINBZsDELB9UUrgV3ammODieKyVoYpZzRls+9/AeIEW2NO 0RZA3r1p4LylxbRyozP3IcJosNrhm/nQp3e0dGSeWp57cnizw/cG8/pOl/eSp0GubqbB27gbETfCS kqZMlBSdSsYqhde9GF/f93oR8sWt0j/4ZkOK/ZjlSJbtFkHJxyq0zsR2kolwwzCK+OFJCTE14aP3f Msq4yNTX710rxdf0aFi/lzOF9LCO+2JAUswSbDc+VPry7BzIg7Mp/q0RzK8gK775BEi8rv4O9ZhCw uzeCyZ2L8qFWdpXGYk7P4g==; In-Reply-To: <87pm15h605.fsf@ledu-giraud.fr> (message from Manuel Giraud on Mon, 23 Oct 2023 14:34:34 +0200) 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:273015 Archived-At: > From: Manuel Giraud > Cc: 66697@debbugs.gnu.org > Date: Mon, 23 Oct 2023 14:34:34 +0200 > > Eli Zaretskii writes: > > >> Date: Mon, 23 Oct 2023 11:21:47 +0200 > >> From: Manuel Giraud via "Bug reports for GNU Emacs, > >> the Swiss army knife of text editors" > >> > >> I'm using desktop-save-mode and regularly open files via Tramp with a > >> method that asks for a password and that would eventually expire. By > >> default 'desktop-files-not-to-save' is "\\(\\`/[^/:]*:\\|(ftp)\\'\\)" so > >> I expect that those remote buffer are not saved by desktop-save. > >> > >> When such a remote buffer is opened (but not displayed nor used), Emacs > >> will keep asking me for this password and I find it annoying. > > > > Could you please clarify when does Emacs prompt you for a password? > > Is it when you restore desktop, save desktop, some other situation? > > Hi Eli, > > It is when 'desktop-save' is called. So it is also called in the > desktop-auto-save timer. So you are saying that, even though these buffers are in desktop-files-not-to-save value, Emacs still asks for a password for them when desktop.el saves the desktop? If so, can you set debug-on-quit non-nil and when Emacs prompts for the password, type C-g and post the backtrace here?