all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Gregory Heytings <gregory@heytings.org>
Cc: "Basil L. Contovounesios" <contovob@tcd.ie>,
	acm@muc.de, 48249@debbugs.gnu.org,
	Dima Kogan <dima@secretsauce.net>
Subject: bug#48249: 28.0.50; Regression: emacs confused about window configuration due to ido-mode and/or winner-mode
Date: Fri, 7 May 2021 12:43:16 +0000	[thread overview]
Message-ID: <YJU15HaKfYs6KiQ2@ACM> (raw)
In-Reply-To: <9d2af8183143b4650b2a@heytings.org>

Hello, Gregory.

On Fri, May 07, 2021 at 12:02:14 +0000, Gregory Heytings wrote:

> >
> > diff --git a/lisp/winner.el b/lisp/winner.el
> > index f30fa6cf5c..a60ef44662 100644
> > --- a/lisp/winner.el
> > +++ b/lisp/winner.el
> > @@ -212,7 +212,7 @@ winner-set-conf
> >          (minisize (window-height miniwin)))
> >     (cl-letf (((window-buffer miniwin))
> >               ((window-point  miniwin)))
> > -      (set-window-configuration winconf))
> > +      (set-window-configuration winconf nil t))
> >     (cond
> >      ((window-live-p chosen) (select-window chosen))
> >      ((window-minibuffer-p) (other-window 1)))
> >

> This cannot be the right way to fix the bug.  That line was last changed 
> more than 20 years ago (commit 2a92dc2540 by RMS).

I agree it isn't the best way to fix the bug, because that fix isn't
robust enough.  But it's hopefully good enough to relieve the irritation
of the original poster for a short while, while I work on something
better.  It's also good enough to check whether the cause of the bug has
actually been found.  That the source line was last changed so long ago
is neither here nor there.

> Or does that mean that from now on each occurrence of 
> 'set-window-configuration' (there are 98 occurrences in the Emacs core 
> only) should take an additional dont-set-miniwindow t argument to avoid 
> that bug?

That is the problem.  Some of these calls might need the extra argument,
most of them won't.  Such a requirement would be a poor abstraction,
since the typical caller of set-window-configuration shouldn't have to
worry about such details.

By the way, thanks for the service you're providing of identifying bugs
connected with the recent minibuffer changes.  It's appreciated!

-- 
Alan Mackenzie (Nuremberg, Germany).





  reply	other threads:[~2021-05-07 12:43 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-06  3:50 bug#48249: 28.0.50; Regression: emacs confused about window configuration due to ido-mode and/or winner-mode Dima Kogan
2021-05-06  7:30 ` Gregory Heytings
2021-05-06  8:04   ` Eli Zaretskii
2021-05-06  8:17     ` Gregory Heytings
2021-05-06  9:39       ` Eli Zaretskii
2021-05-06  9:57         ` Gregory Heytings
2021-05-06 10:15           ` Eli Zaretskii
2021-05-06 11:48             ` Gregory Heytings
2021-05-06 12:30 ` Basil L. Contovounesios
2021-05-06 12:39   ` Gregory Heytings
2021-05-06 13:25     ` Basil L. Contovounesios
2021-05-06 13:38       ` Gregory Heytings
2021-05-06 13:58         ` Gregory Heytings
2021-05-06 14:22         ` Basil L. Contovounesios
2021-05-06 14:49     ` Basil L. Contovounesios
2021-05-06 19:25   ` Alan Mackenzie
2021-05-07  9:49   ` Alan Mackenzie
2021-05-07 10:24     ` Basil L. Contovounesios
2021-05-07 12:02     ` Gregory Heytings
2021-05-07 12:43       ` Alan Mackenzie [this message]
2021-05-07 20:30     ` Dima Kogan
2021-05-08 12:30       ` Alan Mackenzie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YJU15HaKfYs6KiQ2@ACM \
    --to=acm@muc.de \
    --cc=48249@debbugs.gnu.org \
    --cc=contovob@tcd.ie \
    --cc=dima@secretsauce.net \
    --cc=gregory@heytings.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.