GNU bug report logs - #40056
26.3; `comment-padright' fails when `comment-padding' is an integer

Previous Next

Package: emacs;

Reported by: bruno cuconato <bcclaro <at> tutanota.com>

Date: Fri, 13 Mar 2020 21:50:02 UTC

Severity: normal

Tags: confirmed, fixed

Found in version 26.3

Fixed in version 28.1

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 40056 in the body.
You can then email your comments to 40056 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#40056; Package emacs. (Fri, 13 Mar 2020 21:50:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to bruno cuconato <bcclaro <at> tutanota.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 13 Mar 2020 21:50:02 GMT) Full text and rfc822 format available.

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

From: bruno cuconato <bcclaro <at> tutanota.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.3; `comment-padright' fails when `comment-padding' is an integer
Date: Fri, 13 Mar 2020 22:31:04 +0100 (CET)
Docstring of `comment-padding' variable says: Can also be an integer which will be automatically turned into a string of the corresponding number of spaces. 

I'm using Emacs 26, but by inspection I don't expect a different result in master.

% emacs -Q --batch --eval '(let ((comment-padding 0)) (comment-padright "-- " 1))'
Wrong type argument: sequencep, 0

In GNU Emacs 26.3 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.11)
of 2019-12-10 built on buildhw-10.phx2.fedoraproject.org
Windowing system distributor 'Fedora Project', version 11.0.12006000

Configured using:
'configure --build=x86_64-redhat-linux-gnu
--host=x86_64-redhat-linux-gnu --program-prefix=
--disable-dependency-tracking --prefix=/usr --exec-prefix=/usr
--bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
--datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64
--libexecdir=/usr/libexec --localstatedir=/var
--sharedstatedir=/var/lib --mandir=/usr/share/man
--infodir=/usr/share/info --with-dbus --with-gif --with-jpeg --with-png
--with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3
--with-gpm=no --with-xwidgets --with-modules
build_alias=x86_64-redhat-linux-gnu host_alias=x86_64-redhat-linux-gnu
'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions
-fstack-protector-strong -grecord-gcc-switches
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
LDFLAGS=-Wl,-z,relro
PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GSETTINGS GLIB NOTIFY
ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS LCMS2

Important settings:
  value of $LC_MONETARY: en_GB.UTF-8
  value of $LC_NUMERIC: en_GB.UTF-8
  value of $LC_TIME: en_GB.UTF-8
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix



-- bruno cuconato




Added tag(s) confirmed. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Sat, 14 Mar 2020 03:14:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#40056; Package emacs. (Thu, 28 Jan 2021 08:59:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: bruno cuconato <bcclaro <at> tutanota.com>
Cc: 40056 <at> debbugs.gnu.org
Subject: Re: bug#40056: 26.3; `comment-padright' fails when
 `comment-padding' is an integer
Date: Thu, 28 Jan 2021 09:58:04 +0100
bruno cuconato <bcclaro <at> tutanota.com> writes:

> Docstring of `comment-padding' variable says: Can also be an integer
> which will be automatically turned into a string of the corresponding
> number of spaces.
>
> I'm using Emacs 26, but by inspection I don't expect a different
> result in master.
>
> % emacs -Q --batch --eval '(let ((comment-padding 0))
> (comment-padright "-- " 1))'
> Wrong type argument: sequencep, 0

This should now be fixed in Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 28 Jan 2021 08:59:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 40056 <at> debbugs.gnu.org and bruno cuconato <bcclaro <at> tutanota.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 28 Jan 2021 08:59: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. (Thu, 25 Feb 2021 12:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 61 days ago.

Previous Next


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