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

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

bug#11053: 24.0.94; When run with --batch, Emacs seems to start with poi


From: Glenn Morris
Subject: bug#11053: 24.0.94; When run with --batch, Emacs seems to start with point on the second line of the given file
Date: Tue, 20 Mar 2012 17:24:33 -0400
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Reuben Thomas wrote:

> Here is an interactive test test.el:
>
> ; end-of-line backward-word backward-word a save-buffer 
> save-buffers-kill-emacs
> (execute-kbd-macro "\C-e\M-b\M-ba\C-x\C-s\C-x\C-c")

I think a clearer test case is:

(message "%s" (point))
(what-line)
(move-end-of-line 1)
(message "%s" (point))
(what-line)

which gives the same result for me in 22.1 through to the current trunk;

1
Line 1
45
Line 2

and the "right" result if inhibit-point-motion-hooks is non-nil:

1
Line 1
23
Line 1

> when run as:
>
> emacs --no-init-file input --load test.el --batch --quick
>
> but produces the correct output when run as:
>
> emacs --no-init-file input --load test.el --quick
>
> Up to Emacs 24.0.50, it produces the correct output either way.





reply via email to

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