unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#19211: 25.0.50; move-end-of-line goes to start of buffer in -batch
@ 2014-11-28 19:20 Oleh
  2014-11-30 16:08 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Oleh @ 2014-11-28 19:20 UTC (permalink / raw)
  To: 19211

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





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#19211: 25.0.50; move-end-of-line goes to start of buffer in -batch
  2014-11-28 19:20 bug#19211: 25.0.50; move-end-of-line goes to start of buffer in -batch Oleh
@ 2014-11-30 16:08 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2014-11-30 16:08 UTC (permalink / raw)
  To: Oleh; +Cc: 19211-done

> Date: Fri, 28 Nov 2014 20:20:50 +0100
> From: Oleh <ohwoeowho@gmail.com>
> 
> (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.

Thanks, this is now fixed by commit 59c4d5f on the emacs-24 branch.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-11-30 16:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-28 19:20 bug#19211: 25.0.50; move-end-of-line goes to start of buffer in -batch Oleh
2014-11-30 16:08 ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).