GNU bug report logs - #7281
24.0.50; newline function inserts newline when the optional argument is 0

Previous Next

Package: emacs;

Reported by: Noorul Islam K M <noorul <at> noorul.com>

Date: Tue, 26 Oct 2010 05:29:02 UTC

Severity: normal

Found in version 24.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Noorul Islam <noorul <at> noorul.com>
Cc: 7281 <at> debbugs.gnu.org, rgm <at> gnu.org
Subject: Re: bug#7281: 24.0.50;
	newline function inserts newline when the optional argument is 0
Date: Tue, 26 Oct 2010 11:12:59 -0400
> Date: Tue, 26 Oct 2010 13:43:32 +0530
> From: Noorul Islam <noorul <at> noorul.com>
> Cc: 7281 <at> debbugs.gnu.org
> 
> On Tue, Oct 26, 2010 at 1:17 PM, Glenn Morris <rgm <at> gnu.org> 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.




This bug report was last modified 14 years and 214 days ago.

Previous Next


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