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#7281: 24.0.50; newline function inserts newline when the optional argument is 0 Date: Tue, 26 Oct 2010 20:04:45 +0200 Message-ID: <83mxq07ruq.fsf@gnu.org> References: <87ocahh7id.fsf@noorul.maa.corp.collab.net> <19654.34733.5867.925228@fencepost.gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1288125021 16348 80.91.229.12 (26 Oct 2010 20:30:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 26 Oct 2010 20:30:21 +0000 (UTC) Cc: 7281-done@debbugs.gnu.org To: noorul@noorul.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 26 22:30:19 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PAq9u-00040N-D4 for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Oct 2010 22:30:16 +0200 Original-Received: from localhost ([127.0.0.1]:59204 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PAq9q-0002WR-J5 for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Oct 2010 16:30:10 -0400 Original-Received: from [140.186.70.92] (port=38107 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PApgd-000334-3H for bug-gnu-emacs@gnu.org; Tue, 26 Oct 2010 16:00:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PAo15-00021B-G7 for bug-gnu-emacs@gnu.org; Tue, 26 Oct 2010 14:13:02 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55024) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PAo15-000215-DM for bug-gnu-emacs@gnu.org; Tue, 26 Oct 2010 14:12:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PAnrS-00046r-Bo for bug-gnu-emacs@gnu.org; Tue, 26 Oct 2010 14:03:02 -0400 Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Oct 2010 18:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 7281 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 7281@debbugs.gnu.org, eliz@gnu.org Original-Received: via spool by 7281-done@debbugs.gnu.org id=D7281.128811616815788 (code D ref 7281); Tue, 26 Oct 2010 18:03:02 +0000 Original-Received: (at 7281-done) by debbugs.gnu.org; 26 Oct 2010 18:02:48 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PAnrD-00046b-Q7 for submit@debbugs.gnu.org; Tue, 26 Oct 2010 14:02:47 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PAnrB-00046W-3O for 7281-done@debbugs.gnu.org; Tue, 26 Oct 2010 14:02:46 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LAW00000SSQJJ00@a-mtaout22.012.net.il> for 7281-done@debbugs.gnu.org; Tue, 26 Oct 2010 20:04:45 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.127.168.113]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LAW00NG8SVV3I50@a-mtaout22.012.net.il>; Tue, 26 Oct 2010 20:04:44 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 26 Oct 2010 14:03:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:41150 Archived-At: > From: Eli Zaretskii > Date: Tue, 26 Oct 2010 11:12:59 -0400 > Cc: 7281@debbugs.gnu.org > > > Date: Tue, 26 Oct 2010 13:43:32 +0530 > > From: Noorul Islam > > Cc: 7281@debbugs.gnu.org > > > > On Tue, Oct 26, 2010 at 1:17 PM, Glenn Morris wrote: > > > > > >> > On emacs 23 (insert 0) returns nil and cursor stays at the place where > > >> > the function is invoked. But in the case of bzr trunk (Emacs 24) the > > >> > same function call moves the cursor one line down from the current > > >> > position. > > >> > > >> I cannot reproduce this. Is this with `emacs -Q'? > > > > > > Maybe you meant to say (newline 0), like in your subject? > > > > > > > You are right. I am sorry about the typo. > > I think this happens because the modified function > internal_self_insert does not handle the case of n = 0. Should be fixed now (revno 102114).