From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: lee Newsgroups: gmane.emacs.bugs Subject: bug#16954: 24.3.50; desktop.el: messages for autosaved files unnoticeable when desktop is restored Date: Sat, 08 Mar 2014 01:33:32 +0100 Organization: my virtual residence Message-ID: <87r46dzgn8.fsf@yun.yagibdah.de> References: <87d2hzjhgs.fsf@yun.yagibdah.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1394239029 19772 80.91.229.3 (8 Mar 2014 00:37:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Mar 2014 00:37:09 +0000 (UTC) To: 16954@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 08 01:37:17 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WM5GO-0004Zn-BE for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Mar 2014 01:37:16 +0100 Original-Received: from localhost ([::1]:38864 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WM5GN-00075A-Uh for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Mar 2014 19:37:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46454) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WM5GF-00074r-Es for bug-gnu-emacs@gnu.org; Fri, 07 Mar 2014 19:37:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WM5GA-0007Me-DS for bug-gnu-emacs@gnu.org; Fri, 07 Mar 2014 19:37:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54173) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WM5GA-0007MY-A2 for bug-gnu-emacs@gnu.org; Fri, 07 Mar 2014 19:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WM5G9-0001op-Nf for bug-gnu-emacs@gnu.org; Fri, 07 Mar 2014 19:37:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: lee Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Mar 2014 00:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16954 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16954-submit@debbugs.gnu.org id=B16954.13942389786919 (code B ref 16954); Sat, 08 Mar 2014 00:37:01 +0000 Original-Received: (at 16954) by debbugs.gnu.org; 8 Mar 2014 00:36:18 +0000 Original-Received: from localhost ([127.0.0.1]:55354 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WM5FS-0001nW-6G for submit@debbugs.gnu.org; Fri, 07 Mar 2014 19:36:18 -0500 Original-Received: from client-194-42-186-216.muenet.net ([194.42.186.216]:48693 helo=yun.yagibdah.de) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WM5FP-0001nL-Ha for 16954@debbugs.gnu.org; Fri, 07 Mar 2014 19:36:16 -0500 Original-Received: from lee by yun.yagibdah.de with local (Exim 4.80.1) (envelope-from ) id 1WM5FK-00064F-Aj; Sat, 08 Mar 2014 01:36:10 +0100 In-Reply-To: <87d2hzjhgs.fsf@yun.yagibdah.de> (lee@yun.yagibdah.de's message of "Thu, 06 Mar 2014 19:43:31 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:86646 Archived-At: lee writes: > It might also be nice to have a function that creates a buffer with a > listing of all loaded files that have an autosave version. One could > then refer to the listing to clean things up. FWIW: (defcustom desktop-buffer-auto-save-file-list-name "*auto-save-files*" "Name of buffer to create a list of files for which auto-save files exist. The contents of this buffer are deleted every time the list is created." :type '(string) :group 'desktop) (defun desktop-make-auto-save-list () "Replace, and thereby delete, all contents of buffer specified through desktop-buffer-auto-save-file-list-name with a list of files for which auto-save files exist and display the buffer. When the buffer does not exist, it is created. desktop-after-read-hook can be set to 'desktop-make-auto-save-list to call this function after restoring the desktop has successfully completed." (interactive) (pop-to-buffer desktop-buffer-auto-save-file-list-name) (delete-region (point-min) (point-max)) (dolist (buffer (buffer-list)) (with-current-buffer buffer (let ((filename buffer-auto-save-file-name)) (if filename (when (file-exists-p filename) (pop-to-buffer desktop-buffer-auto-save-file-list-name) (insert (concat filename "\n")))))))) (setq desktop-after-read-hook 'desktop-make-auto-save-list) Feel free to add this, or a modified version, to desktop.el, or to otherwise use it. -- Knowledge is volatile and fluid. Software is power.