emacs-devel
[Top][All Lists]
Advanced

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

Re: "after" variable watchers


From: Eli Zaretskii
Subject: Re: "after" variable watchers
Date: Thu, 27 May 2021 19:51:50 +0300

> Cc: npostavs@gmail.com, emacs-devel@gnu.org
> From: martin rudalics <rudalics@gmx.at>
> Date: Mon, 24 May 2021 10:47:29 +0200
> 
>  >> (1) The desired width of W's left fringe as set by `set-window-fringes'
>  >>       and stored in a slot w->nominal_left_fringe_width where a value of
>  >>       -1 stands for "take the width from W's buffer",
>  >
>  > Side note: could we please NOT call these "nominal" values?  "Nominal"
>  > means "standard", whereas these aren't.  How about "desired" or
>  > "requested"?
> 
> I've been using "nominal" in the sense expressed by Wikipedia as "From a
> philosophical viewpoint, nominal value represents an accepted condition,
> which is a goal or an approximation, as opposed to the real value, which
> is always present.".  That sentence expresses well what I'm trying to do
> here IMHO.

Well, I'm asking you to use a different terminology, because it always
trips me, Wikipedia notwithstanding.

More to the point: the more I think about what you want to do the less
I like it.  So I'm going to stop thinking and just say that I don't
think we should do it.  I understand the motivation, but I think it's
a slippery slope towards much more complex and hard to maintain code,
with a goal that I believe cannot be reached, only approximated.  We
will complicate the heck out of the window-resizing functions, and in
the end will not be able to promise that any change will be
immediately visible through the accessors and variables.  E.g., what
happens if redisplay decides to resize the mini-window -- you end up
with at least one window whose dimensions are not what was before.

We don't make such promises now, and with frames AFAIU we cannot even
try promising that (because WMs get in the way).  So why complicate
Emacs so much for such ephemeral reasons?  I say let's document that
not every change is immediately reflected, until the next redisplay,
and move on to more important developments.

Having said that, you are the expert on this, so if you decide to do
this anyway, I won't fight you or forbid doing that.  I just think we
shouldn't do this.



reply via email to

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