emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How about making `set-minibuffer-window' obsolete?


From: Eli Zaretskii
Subject: Re: How about making `set-minibuffer-window' obsolete?
Date: Thu, 18 Mar 2021 14:01:36 +0200

> Date: Thu, 18 Mar 2021 11:46:57 +0000
> Cc: emacs-devel@gnu.org
> From: Alan Mackenzie <acm@muc.de>
> 
> > I don't think I agree, not in this general form anyway.  The C code
> > assigns values to minibuf_window in several places; this function is
> > the Lisp counterpart of that.  If the C code can assign that variable,
> > why cannot Lisp code do the same if it needs to?
> 
> The C code does it only under very carefully controlled circumstances
> (such as when iconising a frame).

If that's the real problem, then let's document that this function can
be dangerous and should only be used with extreme care.

> > > Could I ask you, please, to reconsider?
> 
> > I might -- if I see some specific reasoning.  I didn't see that yet.
> 
> OK.  set-minibuffer-window, as it stands, has no function.  Maybe as an
> alternative to obsoleting it, we could give it functionality - the
> function could move an open minibuffer from one frame to another frame,
> for example.  But I'm not sure what the use case is.  All the
> minibuffer-follows-selected-frame stuff is done internally in minibuf.c.

Martin suggested adding functionality, and I'm okay with doing that.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]