GNU bug report logs - #31966
27.0.50; auto-complete candidates aren't aligned properly

Previous Next

Package: emacs;

Reported by: John Shahid <jvshahid <at> gmail.com>

Date: Mon, 25 Jun 2018 17:10:02 UTC

Severity: minor

Tags: notabug

Found in version 27.0.50

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: John Shahid <jvshahid <at> gmail.com>
Cc: 31966 <at> debbugs.gnu.org
Subject: bug#31966: 27.0.50; auto-complete candidates aren't aligned properly
Date: Mon, 25 Jun 2018 22:16:39 +0300
> From: John Shahid <jvshahid <at> gmail.com>
> Cc: 31966 <at> debbugs.gnu.org
> Date: Mon, 25 Jun 2018 19:10:45 +0000
> 
> >   (line-number-display-width 'columns)
> 
> Thanks for the explanation. I opened a PR on the popup-el github
> repository https://github.com/auto-complete/popup-el/pull/116. The PR
> does something similar to the following
> 
>      (if (functionp 'line-number-display-width) (setq column ...))
> 
> is that an acceptable approach or should I use the emacs-major-version
> instead ?

Testing for features is better than testing for Emacs versions.
However, I would also suggest to call line-number-display-width only
of display-line-numbers is non-nil (in addition to the fboundp test).




This bug report was last modified 5 years and 279 days ago.

Previous Next


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