GNU bug report logs - #19211
25.0.50; move-end-of-line goes to start of buffer in -batch

Previous Next

Package: emacs;

Reported by: Oleh <ohwoeowho <at> gmail.com>

Date: Fri, 28 Nov 2014 19:21:02 UTC

Severity: normal

Found in version 25.0.50

Done: Eli Zaretskii <eliz <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: Oleh <ohwoeowho <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.50; move-end-of-line goes to start of buffer in -batch
Date: Fri, 28 Nov 2014 20:20:50 +0100
Hi,

To reproduce, create a file "test-eol.el" with:

#+begin_src elisp
(defun test-eol ()
  (message "%S"
           (with-temp-buffer
             (insert "foobar")
             (goto-char 1)
             (move-end-of-line nil)
             (point))))
#+end_src

Then test:

    emacs -batch -Q -l test-eol.el -f test-eol
    => 1

Works fine for the old one:

    emacs23 -batch -Q -l test-eol.el -f test-eol
    => 7

Also works fine without -batch.

regards,
Oleh




This bug report was last modified 10 years and 179 days ago.

Previous Next


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