From: Rasmus <rasmus@gmx.us>
To: 21095@debbugs.gnu.org
Cc: samer@samertm.com
Subject: bug#21095: [bug] buffer-file-name is nil in batch run
Date: Mon, 20 Jul 2015 17:19:37 +0200 [thread overview]
Message-ID: <87y4iaua9i.fsf@gmx.us> (raw)
Hi,
Commit d3605ed7d17 breaks org-mode batch export since buffer-file-name is
now nil. Is this a feature?
commit d3605ed7d173aa1c23ad8944cf92e7b810330cb8
Author: Samer Masterson <samer@samertm.com>
Date: Thu May 28 14:30:31 2015 -0700
Show files when `initial-buffer-choice' is non-nil
* startup.el (command-line-1): When Emacs is given a file as an
argument and `initial-buffer-choice' is non-nil, display both the file
and `initial-buffer-choice'. For more than one file, show
`initial-buffer-choice' and *Buffer List*. Refactor display-changing
commands out of the command line arg parser.
(initial-buffer-choice): Clarify docstring.
Minimal test
$ emacs --no-init-file --batch --file foo.org --eval="(let ((name (buffer-file-name))) (with-temp-file \"report.txt\" (insert (message \"%S\n\" name))))"
$ cat report.txt
Before the mentioned commit buffer-file-name would not be nil when --file
is given.
Bug report on Org ML: http://permalink.gmane.org/gmane.emacs.orgmode/98926
Rasmus
Emacs
In GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.5)
of 2015-07-17 on W530
Repository revision: 0e12f4d4a59394cd1d943b24e53c67f0e20f31e7
Windowing system distributor `The X.Org Foundation', version 11.0.11702000
Configured using:
`configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
--libexecdir=/usr/lib --mandir=/usr/share/man --without-sound --with-xft
--with-xwidgets --with-x-toolkit=gtk3 'CFLAGS=-march=x86-64
-mtune=generic -O2 -pipe -fstack-protector-strong
--param=ssp-buffer-size=4' 'LDFLAGS=-lMagickWand-6.Q16HDRI
-lMagickCore-6.Q16HDRI ' CPPFLAGS=-D_FORTIFY_SOURCE=2'
--
Hvor meget poesi tror De kommer ud af et glas isvand?
reply other threads:[~2015-07-20 15:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=87y4iaua9i.fsf@gmx.us \
--to=rasmus@gmx.us \
--cc=21095@debbugs.gnu.org \
--cc=samer@samertm.com \
/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).