unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#24213: 25.1.50; Fishy use of delete-window in register.el
@ 2016-08-12 20:22 Andreas Politz
  2016-08-13  2:39 ` Leo Liu
  2016-08-13  8:24 ` martin rudalics
  0 siblings, 2 replies; 19+ messages in thread
From: Andreas Politz @ 2016-08-12 20:22 UTC (permalink / raw)
  To: 24213


The register.el commands display a preview of register contents, using
display-buffer in register-preview.  Later, when some register was
chosen by the user, the window showing this preview is closed via
delete-window.

It seems to me, that this call should be replaced by a call to
quit-window, because this function does the right thing: It only deletes
the window if it was previously created and otherwise shows the previous
buffer in that window.

If that analysis can be agreed upon: Grepping through lisp/*, I found 62
uses of delete-window outside window.el.  I assume that most of those
applications are problematic in the same way (e.g. finder.el).

-Andreas










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

end of thread, other threads:[~2019-10-13  3:09 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-12 20:22 bug#24213: 25.1.50; Fishy use of delete-window in register.el Andreas Politz
2016-08-13  2:39 ` Leo Liu
2016-08-13  6:43   ` Andreas Politz
2016-08-13  8:25     ` martin rudalics
2016-08-13 12:44       ` npostavs
2016-08-13 12:51         ` Eli Zaretskii
2016-08-13 13:30         ` martin rudalics
2016-08-13  9:50     ` Leo Liu
2016-08-13  8:24   ` martin rudalics
2016-08-13  9:50     ` Leo Liu
2016-08-13  8:24 ` martin rudalics
2016-08-13  8:47   ` Andreas Politz
2016-08-13 10:03     ` martin rudalics
2016-08-31 19:04       ` Andreas Politz
2016-09-01  7:40         ` martin rudalics
2016-09-01 11:22           ` Andreas Politz
2016-09-01 12:57             ` martin rudalics
2019-09-29 14:58         ` Lars Ingebrigtsen
2019-10-13  3:09           ` 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).