From: Glenn Morris <rgm@gnu.org>
To: Reuben Thomas <rrt@sc3d.org>
Cc: 11053@debbugs.gnu.org
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 [thread overview]
Message-ID: <p9vclzj78u.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <87bonrcaw6.fsf@sc3d.org>
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.
next prev parent reply other threads:[~2012-03-20 21:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-20 19:47 bug#11053: 24.0.94; When run with --batch, Emacs seems to start with point on the second line of the given file Reuben Thomas
2012-03-20 21:24 ` Glenn Morris [this message]
2012-03-20 21:29 ` Reuben Thomas
2012-04-18 7:04 ` Chong Yidong
2012-04-19 7:55 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=p9vclzj78u.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=11053@debbugs.gnu.org \
--cc=rrt@sc3d.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.