GNU bug report logs - #11053
batch mode line motion

Previous Next

Package: emacs;

Reported by: Reuben Thomas <rrt <at> sc3d.org>

Date: Tue, 20 Mar 2012 20:19:02 UTC

Severity: normal

Tags: notabug

Merged with 11266

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 #11 received at 11053 <at> debbugs.gnu.org (full text, mbox):

From: Reuben Thomas <rrt <at> sc3d.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 11053 <at> debbugs.gnu.org
Subject: Re: 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 21:29:07 +0000
On 20 March 2012 21:24, Glenn Morris <rgm <at> gnu.org> wrote:
> 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)

Thanks for that!

> 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
>
>> Up to Emacs 24.0.50, it produces the correct output either way.

I was going on a single report that the expected result was obtained
in 24.0.50, which I didn't verify.

-- 
http://rrt.sc3d.org




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.