emacs-devel
[Top][All Lists]
Advanced

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

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


From: Alan Mackenzie
Subject: Re: [External] : How about making `set-minibuffer-window' obsolete?
Date: Tue, 16 Mar 2021 23:04:55 +0000

Hello, Drew.

On Tue, Mar 16, 2021 at 19:42:11 +0000, Drew Adams wrote:
> > 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?

> Thanks for asking.  Hope anyone who uses it gets a
> chance to see the question and respond.  (How to know?)

I doubt there's anybody using it.  I don't think anybody's used it since
1998.

> I don't use it, so a priori no objection from me wrt
> my code.

> But is the _only_ reason to remove it that it's not
> being used in the vanilla Emacs code?  If so, what's
> the problem with keeping it?

It's an unnecessary function with no legitimate use which could be
damaging.

> If we keep it, maybe you'll want to add a comment
> saying "setting it to a random mini-window will cause
> nasty problems" or what you had in mind about that. 

That's an idea!

-- 
Alan Mackenzie (Nuremberg, Germany).



reply via email to

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