bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#7281: 24.0.50; newline function inserts newline when the optional ar


From: Eli Zaretskii
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

> From: Eli Zaretskii <eliz@gnu.org>
> 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 <noorul@noorul.com>
> > Cc: 7281@debbugs.gnu.org
> > 
> > On Tue, Oct 26, 2010 at 1:17 PM, Glenn Morris <rgm@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.

Should be fixed now (revno 102114).





reply via email to

[Prev in Thread] Current Thread [Next in Thread]