GNU bug report logs -
#32628
26; Rename `window-setup-hook'
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Mon, 3 Sep 2018 20:32:01 UTC
Severity: wishlist
Tags: wontfix
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 32628 in the body.
You can then email your comments to 32628 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32628
; Package
emacs
.
(Mon, 03 Sep 2018 20:32:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Drew Adams <drew.adams <at> oracle.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 03 Sep 2018 20:32:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
The doc string even admits that this name is bad:
(The name of this hook is due to historical reasons, and does not
reflect its purpose very well.)
Why not rename it now, and deprecate the old name, aliasing it to the
new name?
What should the new name be? Maybe something like
`after-set-frame-parameters-startup-hook'?
In GNU Emacs 26.1 (build 1, x86_64-w64-mingw32)
of 2018-05-30
Repository revision: 07f8f9bc5a51f5aa94eb099f3e15fbe0c20ea1ea
Windowing system distributor `Microsoft Corp.', version 10.0.16299
Configured using:
`configure --without-dbus --host=x86_64-w64-mingw32
--without-compress-install 'CFLAGS=-O2 -static -g3''
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32628
; Package
emacs
.
(Tue, 04 Sep 2018 21:43:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 32628 <at> debbugs.gnu.org (full text, mbox):
> The doc string even admits that this name is bad:
>
> (The name of this hook is due to historical reasons, and does not
> reflect its purpose very well.)
>
> Why not rename it now, and deprecate the old name, aliasing it to the
> new name?
>
> What should the new name be? Maybe something like
> `after-set-frame-parameters-startup-hook'?
This is the clear winner of the contest for the longest hook name.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32628
; Package
emacs
.
(Tue, 04 Sep 2018 22:14:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 32628 <at> debbugs.gnu.org (full text, mbox):
> > What should the new name be? Maybe something like
> > `after-set-frame-parameters-startup-hook'?
>
> This is the clear winner of the contest for the longest hook name.
So far... ;-) Please suggest a good name.
I'm probably OK with nearly any name that tries to suggest what this is really for.
`*-startup-hook' makes sense, I think, given the context and the other `*-startup-hook'.
`after-*' is conventional.
Not sure how to shorten `set-frame-parameters', to get across what is done. Maybe `set-frame-params'?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32628
; Package
emacs
.
(Wed, 05 Sep 2018 22:24:03 GMT)
Full text and
rfc822 format available.
Message #14 received at 32628 <at> debbugs.gnu.org (full text, mbox):
>> > What should the new name be? Maybe something like
>> > `after-set-frame-parameters-startup-hook'?
>>
>> This is the clear winner of the contest for the longest hook name.
>
> So far... ;-) Please suggest a good name.
>
> I'm probably OK with nearly any name that tries to suggest what this is really for.
>
> `*-startup-hook' makes sense, I think, given the context and the other `*-startup-hook'.
>
> `after-*' is conventional.
>
> Not sure how to shorten `set-frame-parameters', to get across what is done. Maybe `set-frame-params'?
Looking at the existing hooks in startup.el:
before-init-hook
after-init-hook
emacs-startup-hook
term-setup-hook
inhibit-startup-hooks
window-setup-hook
maybe a better rename for window-setup-hook would be
after-init-frames-hook
or even
after-frames-setup-hook
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32628
; Package
emacs
.
(Wed, 05 Sep 2018 22:37:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 32628 <at> debbugs.gnu.org (full text, mbox):
>> > `after-set-frame-parameters-startup-hook'
> > I'm probably OK with nearly any name that tries to suggest what this is really for.
>
> Looking at the existing hooks in startup.el:
> before-init-hook
> after-init-hook
> emacs-startup-hook
> term-setup-hook
> inhibit-startup-hooks
> window-setup-hook
>
> maybe a better rename for window-setup-hook would be after-init-frames-hook
> or even after-frames-setup-hook
The frame settings involved are user settings; it's not about the init frame without user settings.
The latter name is OK: after-frames-setup-hook.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32628
; Package
emacs
.
(Thu, 06 Sep 2018 22:25:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 32628 <at> debbugs.gnu.org (full text, mbox):
>>> > `after-set-frame-parameters-startup-hook'
>> > I'm probably OK with nearly any name that tries to suggest what this is really for.
>>
>> Looking at the existing hooks in startup.el:
>> before-init-hook
>> after-init-hook
>> emacs-startup-hook
>> term-setup-hook
>> inhibit-startup-hooks
>> window-setup-hook
>>
>> maybe a better rename for window-setup-hook would be after-init-frames-hook
>> or even after-frames-setup-hook
>
> The frame settings involved are user settings; it's not about the init frame without user settings.
>
> The latter name is OK: after-frames-setup-hook.
Actually the prefix after- implies there is its counterpart before- like in
before-init-hook and after-init-hook. So we don't need the prefix after-,
that leaves just frames-setup-hook. Is it better than window-setup-hook?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32628
; Package
emacs
.
(Fri, 07 Sep 2018 00:32:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 32628 <at> debbugs.gnu.org (full text, mbox):
> >> maybe a better rename for window-setup-hook would be after-init-frames-hook
> >> or even after-frames-setup-hook
> >
> > The frame settings involved are user settings; it's not about the init frame without user settings. The latter name is OK: after-frames-setup-hook.
>
> Actually the prefix after- implies there is its counterpart before-
I don't think it does.
> like in before-init-hook and after-init-hook.
The existence of some such pairs doesn't at all suggest, let alone
imply, that either before or after must be paired with the other.
The point of before and after is to signify occurrence relative to
some other action/time.
There is after-change-major-mode-hook. No such before hook.
There is after-setting-font-mode-hook. No such before hook.
There is bookmark-after-jump-hook. No such before hook.
There is change-major-mode-after-body-hook. No such before hook.
There is dframe-after-select-attached-frame-hook. No such before hook.
There is ediff-after-quit-hook-internal. No such before hook.
There is find-function-after-hook. No such before hook.
There is imenu-after-jump-hook. No such before hook.
There is input-method-after-insert-chunk-hook. No such before hook.
There is rmail-after-get-new-mail-hook. No such before hook.
There is speedbar-after-create-hook. No such before hook.
There is before-hack-local-variables-hook. No such after hook.
There is before-make-frame -hook. No such after hook.
There is ediff-before-setup-hook. No such after hook.
There is speedbar-before-delete-hook. No such after hook.
There is speedbar-before- popup-hook. No such after hook.
There is speedbar-before-visiting-file-hook. No such after hook.
There is speedbar-before-visiting-tag-hook. No such after hook.
There is vc-before-checkin-hook. No such after hook.
> So we don't need the prefix after-,
I think we do. Or rather, I think it helps.
> that leaves just frames-setup-hook. Is it better than window-setup-hook?
I prefer after-frames-setup-hook. But I've already said that I'm probably OK with whatever you decide. I'm OK with it.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32628
; Package
emacs
.
(Wed, 12 Sep 2018 00:12:02 GMT)
Full text and
rfc822 format available.
Message #26 received at 32628 <at> debbugs.gnu.org (full text, mbox):
> I prefer after-frames-setup-hook.
Not a bad name. There is also the prefix post- used for some hooks
like post-command-hook, so post-frames-setup-hook is another variant.
It's difficult to choose a good name, but I agree that the current
window-setup-hook is misleading. I guess it was meant to be named
window-system-setup-hook.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32628
; Package
emacs
.
(Sat, 29 Jan 2022 15:27:02 GMT)
Full text and
rfc822 format available.
Message #29 received at 32628 <at> debbugs.gnu.org (full text, mbox):
Drew Adams <drew.adams <at> oracle.com> writes:
> The doc string even admits that this name is bad:
>
> (The name of this hook is due to historical reasons, and does not
> reflect its purpose very well.)
>
> Why not rename it now, and deprecate the old name, aliasing it to the
> new name?
I think that would disconvenience users too much, so I don't think we
should do that, and I'm therefore closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) wontfix.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sat, 29 Jan 2022 15:27:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
32628 <at> debbugs.gnu.org and Drew Adams <drew.adams <at> oracle.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sat, 29 Jan 2022 15:27:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 27 Feb 2022 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 56 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.