GNU bug report logs - #21633
25.0.50; assertion failure, self-insert-command with negative argument

Previous Next

Package: emacs;

Reported by: Nicolas Richard <youngfrog <at> members.fsf.org>

Date: Tue, 6 Oct 2015 09:19:02 UTC

Severity: normal

Found in version 25.0.50

Done: Andreas Schwab <schwab <at> suse.de>

Bug is archived. No further changes may be made.

Full log


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

From: Nicolas Richard <youngfrog <at> members.fsf.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: schwab <at> suse.de, 21633 <at> debbugs.gnu.org
Subject: Re: bug#21633: 25.0.50;
 assertion failure, self-insert-command with negative argument
Date: Tue, 06 Oct 2015 17:48:54 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Nicolas Richard <youngfrog <at> members.fsf.org>
>> Date: Tue, 06 Oct 2015 14:26:32 +0200
>> Cc: 21633 <at> debbugs.gnu.org
>> 
>> Thanks for the information and for fixing the bug.
>
> Would you like to write a test for this bug?

I would add

(ert-deftest core-elisp-self-insert-command-with-negative-argument ()
  "Test `self-insert-command' with a negative argument."
  (let ((last-command-event ?a))
    (should-error (self-insert-command -1))))

to test/automated/core-elisp-tests.el.

I didn't find a better place. WDYT ?

-- 
Nico.




This bug report was last modified 9 years and 229 days ago.

Previous Next


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