From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#21633: 25.0.50; assertion failure, self-insert-command with negative argument Date: Tue, 06 Oct 2015 19:01:04 +0300 Message-ID: <83a8rwx9z3.fsf@gnu.org> References: <87k2r0cqe9.fsf@members.fsf.org> <878u7g2nev.fsf@members.fsf.org> <83bnccxcgo.fsf@gnu.org> <87vbak0zh5.fsf@members.fsf.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1444147520 3879 80.91.229.3 (6 Oct 2015 16:05:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Oct 2015 16:05:20 +0000 (UTC) Cc: schwab@suse.de, 21633@debbugs.gnu.org To: Nicolas Richard Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 06 18:05:09 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZjUji-0007e0-Rg for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Oct 2015 18:05:07 +0200 Original-Received: from localhost ([::1]:52486 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjUjc-0004Ss-K7 for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Oct 2015 12:05:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40660) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjUgo-0004GO-CR for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2015 12:02:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZjUgk-0007f5-Ut for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2015 12:02:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40071) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjUgk-0007f1-Rd for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2015 12:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZjUgk-0008PO-FS for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2015 12:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Oct 2015 16:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21633 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21633-submit@debbugs.gnu.org id=B21633.144414726732237 (code B ref 21633); Tue, 06 Oct 2015 16:02:02 +0000 Original-Received: (at 21633) by debbugs.gnu.org; 6 Oct 2015 16:01:07 +0000 Original-Received: from localhost ([127.0.0.1]:57270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZjUfr-0008Ns-Cz for submit@debbugs.gnu.org; Tue, 06 Oct 2015 12:01:07 -0400 Original-Received: from mtaout29.012.net.il ([80.179.55.185]:51846) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZjUfp-0008Nk-0I for 21633@debbugs.gnu.org; Tue, 06 Oct 2015 12:01:06 -0400 Original-Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0NVT00O002VLTY00@mtaout29.012.net.il> for 21633@debbugs.gnu.org; Tue, 06 Oct 2015 19:02:00 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NVT00LEQ37C6E60@mtaout29.012.net.il>; Tue, 06 Oct 2015 19:02:00 +0300 (IDT) In-reply-to: <87vbak0zh5.fsf@members.fsf.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:107380 Archived-At: > From: Nicolas Richard > Cc: schwab@suse.de, 21633@debbugs.gnu.org > Date: Tue, 06 Oct 2015 17:48:54 +0200 > > > 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)))) Yep. > to test/automated/core-elisp-tests.el. > > I didn't find a better place. WDYT ? I thought about cmds-tests.el, a new file for the stuff in cmds.c (a kind-of promise for the future ;-). But I don't insist, it's up to you. Thanks.