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.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: bruno cuconato <bcclaro <at> tutanota.com>
Cc: 40056 <at> debbugs.gnu.org
Subject: 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




This bug report was last modified 4 years and 112 days ago.

Previous Next


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