unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: 11266@debbugs.gnu.org
Subject: bug#11266: emacs 23.4 with --batch and (next-line)
Date: Tue, 17 Apr 2012 21:05:04 -0600	[thread overview]
Message-ID: <jmlava$536$1@dough.gmane.org> (raw)
In-Reply-To: <B9DACE0D88F57F458EAEB9B2083FFE0D0450C8A021@cos-us-mb12.agilent.com>

On 4/17/12 11:11 AM, michael_rytting@agilent.com wrote:
> I recently upgraded to emacs 23.4 and found a rather obscure bug. When invoked
> with –batch emacs behaves differently with the command (next-line) compared to
> when it is invoked without batch. I had to switch to using (forward-line) in my
> code to work around this. This behavior can be easily seen by running.
>
> emacs –batch config.log --eval "(next-line 1)"
>
> And you’ll see and End of buffer message. While
>
> emacs -Q config.log --eval "(next-line 1)"
>
> Produces no such error.

`C-h f next-line' says:

	If you are thinking of using this in a Lisp program, consider
	using `forward-line' instead.  It is usually easier to use
	and more reliable (no dependence on goal column, etc.).

And `M-: (info "(emacs)Initial Options")' reminds:

      `--batch' implies `-q' (do not load an initialization file), but
      `site-start.el' is loaded nonetheless.  It also causes Emacs to
      exit after processing all the command options.  In addition, it
      disables auto-saving except in buffers for which it has been
      explicitly requested.

-- 
Kevin Rodgers
Denver, Colorado, USA






  reply	other threads:[~2012-04-18  3:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-17 17:11 bug#11266: emacs 23.4 with --batch and (next-line) michael_rytting
2012-04-18  3:05 ` Kevin Rodgers [this message]
2012-04-18 21:46 ` Stefan Monnier
2012-04-18 21:47   ` michael_rytting

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='jmlava$536$1@dough.gmane.org' \
    --to=kevin.d.rodgers@gmail.com \
    --cc=11266@debbugs.gnu.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 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).