unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#16954: 24.3.50; desktop.el: messages for autosaved files unnoticeable when desktop is restored
@ 2014-03-06 18:43 lee
  2014-03-06 20:43 ` Drew Adams
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: lee @ 2014-03-06 18:43 UTC (permalink / raw)
  To: 16954

Dear Developers,

this is more like a feature request than a bug report:

Upon starting emacs and restoring a saved desktop, when there are files
for which autosave versions are being found, the messages in the
minibuffer suggesting that one may want to restore the autosaved version
are being overwritten by other messages fast enough to go unnoticed.

This leads to the non-autosaved versions of such files being loaded, and
by the time one might switch to a buffer visiting a file for which an
autosave version is available, the autosave version is likely to be
disregarded since one isn´t aware that it exists.  (It stays around and
may be outdated once the file is modified.)


I´m not sure what would be best to do about this.  Perhaps when
switching to a buffer visiting a file that has an autosave version,
there could be again a message in the minibuffer, pointing out that the
autosave version could be restored.

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.  Similar to dired
functionality, one functionality for this buffer would be to display a
diff between the loaded version and the autosaved version of the file on
demand.


In GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, X toolkit)
 of 2014-01-31 on yun.yagibdah.de
Repository revision: 116224 dgutov@yandex.ru-20140131173312-zjp23ffcjomzuxdv
Windowing system distributor `Fedora Project', version 11.0.11404000
Configured using:
 `configure --with-x-toolkit=lucid --without-toolkit-scroll-bars
 --without-gpm 'CFLAGS=-march=native -O2''


-- 
Knowledge is volatile and fluid.  Software is power.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#16954: 24.3.50; desktop.el: messages for autosaved files unnoticeable when desktop is restored
  2014-03-06 18:43 bug#16954: 24.3.50; desktop.el: messages for autosaved files unnoticeable when desktop is restored lee
@ 2014-03-06 20:43 ` Drew Adams
  2014-03-08  0:33 ` lee
  2021-07-15  4:49 ` Lars Ingebrigtsen
  2 siblings, 0 replies; 7+ messages in thread
From: Drew Adams @ 2014-03-06 20:43 UTC (permalink / raw)
  To: lee, 16954

> 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.  Similar to dired
> functionality, one functionality for this buffer would be to display a
> diff between the loaded version and the autosaved version of the file on
> demand.

+1





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#16954: 24.3.50; desktop.el: messages for autosaved files unnoticeable when desktop is restored
  2014-03-06 18:43 bug#16954: 24.3.50; desktop.el: messages for autosaved files unnoticeable when desktop is restored lee
  2014-03-06 20:43 ` Drew Adams
@ 2014-03-08  0:33 ` lee
  2021-07-15  4:49 ` Lars Ingebrigtsen
  2 siblings, 0 replies; 7+ messages in thread
From: lee @ 2014-03-08  0:33 UTC (permalink / raw)
  To: 16954

lee <lee@yun.yagibdah.de> 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.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#16954: 24.3.50; desktop.el: messages for autosaved files unnoticeable when desktop is restored
  2014-03-06 18:43 bug#16954: 24.3.50; desktop.el: messages for autosaved files unnoticeable when desktop is restored lee
  2014-03-06 20:43 ` Drew Adams
  2014-03-08  0:33 ` lee
@ 2021-07-15  4:49 ` Lars Ingebrigtsen
  2021-08-12 15:08   ` Lars Ingebrigtsen
  2 siblings, 1 reply; 7+ messages in thread
From: Lars Ingebrigtsen @ 2021-07-15  4:49 UTC (permalink / raw)
  To: lee; +Cc: 16954

lee <lee@yun.yagibdah.de> writes:

> Upon starting emacs and restoring a saved desktop, when there are files
> for which autosave versions are being found, the messages in the
> minibuffer suggesting that one may want to restore the autosaved version
> are being overwritten by other messages fast enough to go unnoticed.

(I'm going through old bug reports that unfortunately got little response at
the time.)

The way Emacs displays messages/prompts has changed a bit over the last
few years -- they overwrite each other less often than before.  Are you
still seeing this issue in more recent versions of Emacs?

If so, do you have a recipe to reproduce it, starting from "emacs -Q"?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#16954: 24.3.50; desktop.el: messages for autosaved files unnoticeable when desktop is restored
  2021-07-15  4:49 ` Lars Ingebrigtsen
@ 2021-08-12 15:08   ` Lars Ingebrigtsen
  2021-08-12 15:23     ` bug#16954: [External] : " Drew Adams
  0 siblings, 1 reply; 7+ messages in thread
From: Lars Ingebrigtsen @ 2021-08-12 15:08 UTC (permalink / raw)
  To: lee; +Cc: 16954

Lars Ingebrigtsen <larsi@gnus.org> writes:

> The way Emacs displays messages/prompts has changed a bit over the last
> few years -- they overwrite each other less often than before.  Are you
> still seeing this issue in more recent versions of Emacs?
>
> If so, do you have a recipe to reproduce it, starting from "emacs -Q"?

More information was requested, but no response was given within a
month, so I'm closing this bug report.  If the problem still exists,
please respond to this email and we'll reopen the bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#16954: [External] : bug#16954: 24.3.50; desktop.el: messages for autosaved files unnoticeable when desktop is restored
  2021-08-12 15:08   ` Lars Ingebrigtsen
@ 2021-08-12 15:23     ` Drew Adams
  2021-08-13 11:25       ` Lars Ingebrigtsen
  0 siblings, 1 reply; 7+ messages in thread
From: Drew Adams @ 2021-08-12 15:23 UTC (permalink / raw)
  To: Lars Ingebrigtsen, lee; +Cc: 16954@debbugs.gnu.org

> > The way Emacs displays messages/prompts has changed a bit over the last
> > few years -- they overwrite each other less often than before.  Are you
> > still seeing this issue in more recent versions of Emacs?
> > If so, do you have a recipe to reproduce it, starting from "emacs -Q"?
> 
> More information was requested, but no response was given within a
> month, so I'm closing this bug report.  If the problem still exists,
> please respond to this email and we'll reopen the bug report.

What about this enhancement-request part?

  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.  Similar to dired
  functionality, one functionality for this buffer would
  be to display a diff between the loaded version and
  the autosaved version of the file on demand.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#16954: [External] : bug#16954: 24.3.50; desktop.el: messages for autosaved files unnoticeable when desktop is restored
  2021-08-12 15:23     ` bug#16954: [External] : " Drew Adams
@ 2021-08-13 11:25       ` Lars Ingebrigtsen
  0 siblings, 0 replies; 7+ messages in thread
From: Lars Ingebrigtsen @ 2021-08-13 11:25 UTC (permalink / raw)
  To: Drew Adams; +Cc: lee, 16954@debbugs.gnu.org

Drew Adams <drew.adams@oracle.com> writes:

> What about this enhancement-request part?
>
>   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.

I'm not sure how generally useful that would be -- but perhaps it would
make sense in a desktop.el context?  

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-08-13 11:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-06 18:43 bug#16954: 24.3.50; desktop.el: messages for autosaved files unnoticeable when desktop is restored lee
2014-03-06 20:43 ` Drew Adams
2014-03-08  0:33 ` lee
2021-07-15  4:49 ` Lars Ingebrigtsen
2021-08-12 15:08   ` Lars Ingebrigtsen
2021-08-12 15:23     ` bug#16954: [External] : " Drew Adams
2021-08-13 11:25       ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).