[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: |
Wed, 17 Mar 2021 15:17:33 +0200 |
> From: martin rudalics <rudalics@gmx.at>
> Date: Wed, 17 Mar 2021 09:44:37 +0100
>
> Rather `set-minibuffer-window' should take as argument a frame to set
> the 'minibuffer-window' parameter of that frame. This way it would
> become the counterpart of `minibuffer-window' which takes as argument a
> frame and returns that frame's minibuffer window.
I'm okay with extending this function that way (assuming the
additional parameter is made &optional).
> The current semantics of `set-minibuffer-window' is of no practical use.
Why not? how is it different from the C code doing the same?
> Lisp code should never deal with minibuf_window directly.
This seems to contradict what you propose above, doesn't it? Or what
am I missing?
> However, every minibuffer interaction should be aware of the fact
> that any frame's minibuffer window might change via
> fset_minibuffer_window under its feet.
Yes, using these facilities is not for the faint at heart. But that
doesn't mean it can never be useful, IMO.
- Re: How about making `set-minibuffer-window' obsolete?, (continued)
- RE: [External] : How about making `set-minibuffer-window' obsolete?, Drew Adams, 2021/03/16
- Re: How about making `set-minibuffer-window' obsolete?, Stefan Monnier, 2021/03/16
- Re: How about making `set-minibuffer-window' obsolete?, Dmitry Gutov, 2021/03/16
- Re: How about making `set-minibuffer-window' obsolete?, Stefan Monnier, 2021/03/16
- Re: How about making `set-minibuffer-window' obsolete?, martin rudalics, 2021/03/17
- Re: How about making `set-minibuffer-window' obsolete?,
Eli Zaretskii <=