GNU bug report logs - #22490
24.5; (newline 0) fails when point not after newline

Previous Next

Package: emacs;

Reported by: Dan Torop <dant <at> pnym.net>

Date: Fri, 29 Jan 2016 20:32:02 UTC

Severity: normal

Found in version 24.5

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

Bug is archived. No further changes may be made.

Full log


Message #12 received at 22490-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Dan Torop <dant <at> pnym.net>
Cc: 22490-done <at> debbugs.gnu.org
Subject: Re: 24.5; (newline 0) fails when point not after newline
Date: Sat, 19 Mar 2016 21:35:07 +0200
> From: Dan Torop <dant <at> pnym.net>
> Date: Fri, 29 Jan 2016 13:46:47 -0500
> 
> The function "newline" with an argument of 0 will fail unless called
> when the character before the point is a newline. To test, start a new
> Emacs session, type space, then evaluate "(newline 0)". It should
> fail with a backtrace:
> 
> Debugger entered--Lisp error: (cl-assertion-failed (eq 10
> (char-before)))

Thanks, I fixed this for the upcoming Emacs 25.1.




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

Previous Next


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