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: Tue, 16 Mar 2021 20:42:32 +0200

> Date: Tue, 16 Mar 2021 18:16:35 +0000
> From: Alan Mackenzie <acm@muc.de>
> 
> Does anybody have any objection to me making set-minibuffer-window
> obsolete?
> 
> It's defined in src/minibuf.c, but not used by any C function, and it's
> not used by any Lisp in Emacs itself - the nearest to a use is a
> commented out occurrence in lisp/textmodes/ispell.el.
> 
> This function just sets the C variable minibuf_window.  This variable is
> defined (by comment) to be the minibuffer window of the selected frame.
> So setting it to a random mini-window will cause nasty problems.
> 
> Actually, I'd prefer just to remove the function entirely - but there's
> always the chance it's being used by some external library.
> 
> So, any objections?

I'd object to obsoleting a command just because it can be dangerous
when used unwisely.  Emacs always gives you enough rope to hang
yourself, and trusts you that you won't.



reply via email to

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