GNU bug report logs - #11266
emacs 23.4 with --batch and (next-line)

Previous Next

Package: emacs;

Reported by: <michael_rytting <at> agilent.com>

Date: Tue, 17 Apr 2012 17:16:01 UTC

Severity: normal

Tags: notabug

Merged with 11053

Found in version 24.0.94

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: <michael_rytting <at> agilent.com>
To: <bug-gnu-emacs <at> gnu.org>
Subject: emacs 23.4 with --batch and (next-line)
Date: Tue, 17 Apr 2012 11:11:45 -0600
[Message part 1 (text/plain, inline)]
I recently upgraded to emacs 23.4 and found a rather obscure bug.  When invoked with -batch emacs behaves differently with the command (next-line) compared to when it is invoked without batch.  I had to switch to using (forward-line) in my code to work around this.  This behavior can be easily seen by running.

emacs -batch config.log --eval "(next-line 1)"

And you'll see and End of buffer message.  While

emacs -Q config.log --eval "(next-line 1)"

Produces no such error.


Michael Rytting
Agilent Technologies
michael_rytting <at> agilent.com<mailto:michael_rytting <at> agilent.com>
719-590-3708

[Message part 2 (text/html, inline)]

This bug report was last modified 13 years and 34 days ago.

Previous Next


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