GNU bug report logs - #31194
26.1; `display-buffer-in-major-side-window' was renamed without an alias.

Previous Next

Package: emacs;

Reported by: Phil Sainty <psainty <at> orcon.net.nz>

Date: Tue, 17 Apr 2018 13:10:01 UTC

Severity: minor

Merged with 24828

Found in versions 26.0.50, 26.1

Done: Óscar Fuentes <ofv <at> wanadoo.es>

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 31194 in the body.
You can then email your comments to 31194 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#31194; Package emacs. (Tue, 17 Apr 2018 13:10:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Phil Sainty <psainty <at> orcon.net.nz>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 17 Apr 2018 13:10:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Phil Sainty <psainty <at> orcon.net.nz>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.1; `display-buffer-in-major-side-window' was renamed without an
 alias.
Date: Wed, 18 Apr 2018 01:08:29 +1200
Changelog.3 records that `display-buffer-in-major-side-window' was
renamed to `window--make-major-side-window'; but no alias from the old
name to the new name was added for backwards-compatibility.

I have at least one library installed (which-key.el) which triggers an
error on this account.






In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll 
bars)
 of 2018-04-15 built on shodan
Windowing system distributor 'The X.Org Foundation', version 
11.0.11804000
System Description:	Ubuntu 16.04.4 LTS

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Configured using:
 'configure --prefix=/home/phil/emacs/26.1rc1/usr/local
 --with-x-toolkit=lucid --without-sound'

Configured features:
XAW3D XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK DBUS GSETTINGS NOTIFY
GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 THREADS
LCMS2

Important settings:
  value of $LANG: en_NZ.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv
bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs
format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg
epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils elec-pair time-date
mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar
dnd fontset image regexp-opt fringe tabulated-list replace newcomment
text-mode elisp-mode lisp-mode prog-mode register page menu-bar
rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core term/tty-colors frame cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese composite charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote dbusbind inotify lcms2
dynamic-setting system-font-setting font-render-setting x-toolkit x
multi-tty make-network-process emacs)

Memory information:
((conses 16 96629 11156)
 (symbols 48 20708 3)
 (miscs 40 52 168)
 (strings 32 29647 1508)
 (string-bytes 1 762488)
 (vectors 16 13980)
 (vector-slots 8 492622 10468)
 (floats 8 51 93)
 (intervals 56 239 0)
 (buffers 992 11)
 (heap 1024 26898 1103))





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31194; Package emacs. (Tue, 17 Apr 2018 15:53:02 GMT) Full text and rfc822 format available.

Message #8 received at 31194 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Phil Sainty <psainty <at> orcon.net.nz>
Cc: 31194 <at> debbugs.gnu.org
Subject: Re: bug#31194: 26.1;
 `display-buffer-in-major-side-window' was renamed without an alias.
Date: Tue, 17 Apr 2018 11:51:35 -0400
Phil Sainty wrote:

> I have at least one library installed (which-key.el) which triggers an
> error on this account.

Sounds like you need to update; ref https://debbugs.gnu.org/24828#19 .





Forcibly Merged 24828 31194. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 17 Apr 2018 16:31:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31194; Package emacs. (Tue, 17 Apr 2018 23:40:02 GMT) Full text and rfc822 format available.

Message #13 received at 31194 <at> debbugs.gnu.org (full text, mbox):

From: Phil Sainty <psainty <at> orcon.net.nz>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 31194 <at> debbugs.gnu.org,
 bug-gnu-emacs <bug-gnu-emacs-bounces+psainty=orcon.net.nz <at> gnu.org>
Subject: Re: bug#31194: 26.1; `display-buffer-in-major-side-window' was
 renamed without an alias.
Date: Wed, 18 Apr 2018 11:39:54 +1200
On 2018-04-18 03:51, Glenn Morris wrote:
>> I have at least one library installed (which-key.el) which triggers an
>> error on this account.
> 
> Sounds like you need to update; ref https://debbugs.gnu.org/24828#19 .

Apologies, I should have found that myself.  That's certainly a 
different
situation to what I had thought.

FWIW I've confirmed that the old name doesn't crop up elsewhere in my
own config.

I think that cases like this need to have NEWS entries under the
"Incompatible Lisp Changes" section?  This was a function name which
was not obviously internal (no double-hyphen), so one does tend to
expect it to be documented if it no longer works (and the Changelog
entry is not addressing this aspect).

If the NEWS file mentioned the change and stated plainly that any
libraries using the old name need to be updated, I think it would
assist people who will run into this the way I did.


-Phil





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31194; Package emacs. (Wed, 18 Apr 2018 07:21:02 GMT) Full text and rfc822 format available.

Message #16 received at 31194 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Phil Sainty <psainty <at> orcon.net.nz>, Glenn Morris <rgm <at> gnu.org>
Cc: 31194 <at> debbugs.gnu.org,
 bug-gnu-emacs <bug-gnu-emacs-bounces+psainty=orcon.net.nz <at> gnu.org>
Subject: Re: bug#31194: 26.1; `display-buffer-in-major-side-window' was renamed
 without an alias.
Date: Wed, 18 Apr 2018 09:19:56 +0200
> I think that cases like this need to have NEWS entries under the
> "Incompatible Lisp Changes" section?  This was a function name which
> was not obviously internal (no double-hyphen), so one does tend to
> expect it to be documented if it no longer works (and the Changelog
> entry is not addressing this aspect).
>
> If the NEWS file mentioned the change and stated plainly that any
> libraries using the old name need to be updated, I think it would
> assist people who will run into this the way I did.

I've tried to do that now.  Please have a look.

Thanks, martin




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31194; Package emacs. (Wed, 18 Apr 2018 08:43:02 GMT) Full text and rfc822 format available.

Message #19 received at 31194 <at> debbugs.gnu.org (full text, mbox):

From: Phil Sainty <psainty <at> orcon.net.nz>
To: martin rudalics <rudalics <at> gmx.at>
Cc: Glenn Morris <rgm <at> gnu.org>, 31194 <at> debbugs.gnu.org,
 bug-gnu-emacs <bug-gnu-emacs-bounces+psainty=orcon.net.nz <at> gnu.org>
Subject: Re: bug#31194: 26.1; `display-buffer-in-major-side-window' was
 renamed without an alias.
Date: Wed, 18 Apr 2018 20:42:23 +1200
On 2018-04-18 19:19, martin rudalics wrote:
> I've tried to do that now.  Please have a look.

Cheers. NEWS now says:

> ** The function 'display-buffer-in-major-side-window' is now internal.
> This hitherto undocumented function which existed since Emacs 24.1 has
> been renamed to 'window--make-major-side-window' and its semantics
> changed.  Applications should use the now properly documented function
> 'display-buffer-in-side-window' with appropriate arguments instead.


"hitherto undocumented" isn't actually true?

In Emacs 25.3, describe-function tells me:

> display-buffer-in-major-side-window is a compiled Lisp function in
> ‘window.el’.
> 
> (display-buffer-in-major-side-window BUFFER SIDE SLOT &optional ALIST)
> 
> Display BUFFER in a new window on SIDE of the selected frame.
> SIDE must be one of ‘left’, ‘top’, ‘right’ or ‘bottom’.  SLOT
> specifies the slot to use.  ALIST is an association list of
> symbols and values as passed to ‘display-buffer-in-side-window’.
> This function may be called only if no window on SIDE exists yet.
> The new window automatically becomes the "major" side window on
> SIDE.  Return the new window, nil if its creation window failed.


which is very similar to the docstring of the new function:

> window--make-major-side-window is a compiled Lisp function in
> ‘window.el’.
> 
> (window--make-major-side-window BUFFER SIDE SLOT &optional ALIST)
> 
> Display BUFFER in a new major side window on the selected frame.
> SIDE must be one of ‘left’, ‘top’, ‘right’ or ‘bottom’.  SLOT
> specifies the slot to use.  ALIST is an association list of
> symbols and values as passed to ‘display-buffer-in-side-window’.
> Return the new window, nil if its creation failed.
> 
> This is an auxiliary function of ‘display-buffer-in-side-window’
> and may be called only if no window on SIDE exists yet.


The main difference as far as the docstrings go seems to be:
"This function may be called only if no window on SIDE exists yet",
(and I don't know whether that's a difference in behaviour, or just
improved documentation).


This bit also seems wrong to me:

> the now properly documented function 'display-buffer-in-side-window'

As this function's docstring is unchanged between 25.3 and 26.1rc1.


I would suggest something more like:

** The function 'display-buffer-in-major-side-window' no longer exists.
It has been renamed as internal function 
'window--make-major-side-window',
however applications should instead call 'display-buffer-in-side-window'
(passing the SIDE and SLOT parameters as elements of ALIST).  This 
approach
is backwards-compatible with versions of Emacs in which the old function
is defined.


n.b. I don't know if that last statement is correct back to 24.1?  It's
the impression I have, but someone else would need to confirm it.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31194; Package emacs. (Wed, 18 Apr 2018 08:54:02 GMT) Full text and rfc822 format available.

Message #22 received at 31194 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Phil Sainty <psainty <at> orcon.net.nz>
Cc: rudalics <at> gmx.at, 31194 <at> debbugs.gnu.org
Subject: Re: bug#31194: 26.1;
 `display-buffer-in-major-side-window' was renamed without an alias.
Date: Wed, 18 Apr 2018 11:53:57 +0300
> Date: Wed, 18 Apr 2018 20:42:23 +1200
> From: Phil Sainty <psainty <at> orcon.net.nz>
> Cc: 31194 <at> debbugs.gnu.org,
> 	bug-gnu-emacs <bug-gnu-emacs-bounces+psainty=orcon.net.nz <at> gnu.org>
> 
> "hitherto undocumented" isn't actually true?
> 
> In Emacs 25.3, describe-function tells me:

I'm guessing Martin meant "documented" as in "in the ELisp manual".




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31194; Package emacs. (Wed, 18 Apr 2018 09:34:01 GMT) Full text and rfc822 format available.

Message #25 received at 31194 <at> debbugs.gnu.org (full text, mbox):

From: Phil Sainty <psainty <at> orcon.net.nz>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 31194 <at> debbugs.gnu.org,
 bug-gnu-emacs <bug-gnu-emacs-bounces+psainty=orcon.net.nz <at> gnu.org>
Subject: Re: bug#31194: 26.1; `display-buffer-in-major-side-window' was
 renamed without an alias.
Date: Wed, 18 Apr 2018 21:33:22 +1200
On 2018-04-18 20:53, Eli Zaretskii wrote:
> I'm guessing Martin meant "documented" as in "in the ELisp manual".

Right, that probably explains both of my points of confusion!

In that case, I would suggest including a direct reference to the node.

 ** The function 'display-⁠buffer-⁠in-⁠major-⁠side-⁠window' no longer 
exists.
It has been renamed as internal function 
'window--make-major-side-window',
however applications should instead call 
'display-⁠buffer-⁠in-⁠side-⁠window'
(passing the SIDE and SLOT parameters as elements of ALIST).  This 
approach
is backwards-⁠compatible with versions of Emacs in which the old 
function
exists.  See the node "(elisp) Displaying Buffers in Side Windows"
in the ELisp manual for more details.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31194; Package emacs. (Wed, 18 Apr 2018 12:22:01 GMT) Full text and rfc822 format available.

Message #28 received at 31194 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Phil Sainty <psainty <at> orcon.net.nz>, Eli Zaretskii <eliz <at> gnu.org>
Cc: 31194 <at> debbugs.gnu.org,
 bug-gnu-emacs <bug-gnu-emacs-bounces+psainty=orcon.net.nz <at> gnu.org>
Subject: Re: bug#31194: 26.1; `display-buffer-in-major-side-window' was renamed
 without an alias.
Date: Wed, 18 Apr 2018 14:20:49 +0200
>   ** The function 'display-⁠buffer-⁠in-⁠major-⁠side-⁠window' no longer exists.
> It has been renamed as internal function 'window--make-major-side-window',
> however applications should instead call 'display-⁠buffer-⁠in-⁠side-⁠window'
> (passing the SIDE and SLOT parameters as elements of ALIST).  This approach
> is backwards-⁠compatible with versions of Emacs in which the old function
> exists.  See the node "(elisp) Displaying Buffers in Side Windows"
> in the ELisp manual for more details.

Installed.

Thank you, martin







Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31194; Package emacs. (Thu, 19 Apr 2018 00:49:01 GMT) Full text and rfc822 format available.

Message #31 received at 31194 <at> debbugs.gnu.org (full text, mbox):

From: Phil Sainty <psainty <at> orcon.net.nz>
To: martin rudalics <rudalics <at> gmx.at>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 31194 <at> debbugs.gnu.org,
 bug-gnu-emacs <bug-gnu-emacs-bounces+psainty=orcon.net.nz <at> gnu.org>
Subject: Re: bug#31194: 26.1; `display-buffer-in-major-side-window' was
 renamed without an alias.
Date: Thu, 19 Apr 2018 12:48:48 +1200
On 2018-04-19 00:20, martin rudalics wrote:
> Installed.

Thanks Martin.  I've just reviewed #24828 and noted that it was you
who made the original code changes, so I'm taking this as confirmation
that I didn't write anything invalid in that NEWS entry :) in which
case this bug can be closed.

cheers,
-Phil





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31194; Package emacs. (Thu, 19 Apr 2018 06:55:02 GMT) Full text and rfc822 format available.

Message #34 received at 31194-done <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Phil Sainty <psainty <at> orcon.net.nz>
Cc: Eli Zaretskii <eliz <at> gnu.org>,
 bug-gnu-emacs <bug-gnu-emacs-bounces+psainty=orcon.net.nz <at> gnu.org>,
 31194-done <at> debbugs.gnu.org
Subject: Re: bug#31194: 26.1; `display-buffer-in-major-side-window' was renamed
 without an alias.
Date: Thu, 19 Apr 2018 08:54:26 +0200
> Thanks Martin.  I've just reviewed #24828 and noted that it was you
> who made the original code changes, so I'm taking this as confirmation
> that I didn't write anything invalid in that NEWS entry :) in which
> case this bug can be closed.

Done.

Thanks again for the NEWS entry, martin





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31194; Package emacs. (Thu, 19 Apr 2018 23:29:01 GMT) Full text and rfc822 format available.

Message #37 received at 31194 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Phil Sainty <psainty <at> orcon.net.nz>
Cc: martin rudalics <rudalics <at> gmx.at>, 31194 <at> debbugs.gnu.org,
 bug-gnu-emacs <bug-gnu-emacs-bounces+psainty=orcon.net.nz <at> gnu.org>
Subject: Re: bug#31194: 26.1;
 `display-buffer-in-major-side-window' was renamed without an alias.
Date: Fri, 20 Apr 2018 00:24:55 +0300
>>>   ** The function 'display-⁠buffer-⁠in-⁠major-⁠side-⁠window' no longer exists.
>>> It has been renamed as internal function 'window--make-major-side-window',
>>> however applications should instead call 'display-⁠buffer-⁠in-⁠side-⁠window'
>>> (passing the SIDE and SLOT parameters as elements of ALIST).  This approach
>>> is backwards-⁠compatible with versions of Emacs in which the old function
>>> exists.  See the node "(elisp) Displaying Buffers in Side Windows"
>>> in the ELisp manual for more details.
>>
>> Installed.
>
> Thanks Martin.  I've just reviewed #24828 and noted that it was you
> who made the original code changes, so I'm taking this as confirmation
> that I didn't write anything invalid in that NEWS entry :) in which
> case this bug can be closed.

Unfortunately, you wrote something invalid in that NEWS entry.
When point is on existing function names, ‘C-h f’ can't find them.
Also coping them causes problems.  This is because there are
many special Unicode characters in your text, namely, “WORD JOINER”.
I can see these hidden characters because I customized the face
‘glyphless-char’ to background "red".




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31194; Package emacs. (Thu, 19 Apr 2018 23:51:02 GMT) Full text and rfc822 format available.

Message #40 received at 31194 <at> debbugs.gnu.org (full text, mbox):

From: Phil Sainty <psainty <at> orcon.net.nz>
To: Juri Linkov <juri <at> linkov.net>
Cc: 31194 <at> debbugs.gnu.org,
 bug-gnu-emacs <bug-gnu-emacs-bounces+psainty=orcon.net.nz <at> gnu.org>
Subject: Re: bug#31194: 26.1; `display-buffer-in-major-side-window' was
 renamed without an alias.
Date: Fri, 20 Apr 2018 11:49:58 +1200
On 2018-04-20 09:24, Juri Linkov wrote:
> Unfortunately, you wrote something invalid in that NEWS entry.
> When point is on existing function names, ‘C-h f’ can't find them.
> Also coping them causes problems.  This is because there are
> many special Unicode characters in your text, namely, “WORD JOINER”.
> I can see these hidden characters because I customized the face
> ‘glyphless-char’ to background "red".

Yikes.  Thank you for catching that.  I'm trying and failing to fathom
how that could have happened.  I thought this webmail client must have
been at fault, but I've also found counter-examples to that, so I'm at
a loss.

Is that glyphless-char face background something you use as standard?
If it doesn't show itself in any normal circumstances, I'd be inclined
to start using it as a safety measure.


-Phil





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31194; Package emacs. (Fri, 20 Apr 2018 01:24:01 GMT) Full text and rfc822 format available.

Message #43 received at 31194 <at> debbugs.gnu.org (full text, mbox):

From: Phil Sainty <psainty <at> orcon.net.nz>
To: Juri Linkov <juri <at> linkov.net>
Cc: 31194 <at> debbugs.gnu.org,
 bug-gnu-emacs <bug-gnu-emacs-bounces+psainty=orcon.net.nz <at> gnu.org>
Subject: Re: bug#31194: 26.1; `display-buffer-in-major-side-window' was
 renamed without an alias.
Date: Fri, 20 Apr 2018 13:23:19 +1200
I take it back -- it's definitely this webmail client.  It's just
automatically inserting WORD JOINER after hyphens in hyphenated words
when it renders email, and seemingly provides no option to control
that behaviour.  I'd obviously copied the previous version of that
NEWS entry from one of the email messages, in order to compose the
final version.

I was never going to notice that on my own, so thanks again for that
and for the glyphless-char pointer.  I'll keep that customized.






Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31194; Package emacs. (Fri, 20 Apr 2018 06:29:01 GMT) Full text and rfc822 format available.

Message #46 received at 31194 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Juri Linkov <juri <at> linkov.net>, Phil Sainty <psainty <at> orcon.net.nz>
Cc: 31194 <at> debbugs.gnu.org,
 bug-gnu-emacs <bug-gnu-emacs-bounces+psainty=orcon.net.nz <at> gnu.org>
Subject: Re: bug#31194: 26.1; `display-buffer-in-major-side-window' was renamed
 without an alias.
Date: Fri, 20 Apr 2018 08:27:32 +0200
> Unfortunately, you wrote something invalid in that NEWS entry.
> When point is on existing function names, ‘C-h f’ can't find them.
> Also coping them causes problems.  This is because there are
> many special Unicode characters in your text, namely, “WORD JOINER”.
> I can see these hidden characters because I customized the face
> ‘glyphless-char’ to background "red".

Hopefully fixed now.  Thanks for the heads-up.

martin







bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 18 May 2018 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 36 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.