From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: [ox bug] batch export seems to be broken or have changed
Date: Mon, 20 Jul 2015 11:11:03 +0200 [thread overview]
Message-ID: <87pp3nurbs.fsf@gmx.us> (raw)
In-Reply-To: 87io9f2twp.fsf@nicolasgoaziou.fr
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> You may write the output of (buffer-file-name) to a temporary file,
> e.g.,
>
> emacs --batch --file foo.org --eval="(let ((name (buffer-file-name))) (with-temp-file \"report.txt\" (insert (message \"%S\n\" name))))"
$ emacs --batch --file foo.org --eval="(let ((name (buffer-file-name))) (with-temp-file \"report.txt\" (insert (message \"%S\n\" name))))"
$ cat report.txt
nil
C-h v mentions no change. Fortunately there are not too many changes to
buffer.c
$ git log --since=emacs-24.5 -- buffer.c
commit 3213d7707026573ca425ba1c865b7fa1a8b46639
Author: Paul Eggert <eggert@cs.ucla.edu>
Date: Tue Jun 30 15:06:31 2015 -0700
In strings, prefer plain ` and ' to \` and \'
* lisp/allout.el (allout-insert-listified):
* lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode):
* lisp/ls-lisp.el (ls-lisp-UCA-like-collation)
(ls-lisp-string-lessp):
* lisp/menu-bar.el (menu-bar-open):
* lisp/obsolete/otodo-mode.el (todo-top-priorities):
* lisp/progmodes/compile.el (compile):
* lisp/progmodes/etags.el (tags-loop-scan):
* lisp/progmodes/make-mode.el (makefile-browser-insert-continuation):
* lisp/subr.el (posn-actual-col-row):
* lisp/term/pc-win.el (x-list-fonts):
* lisp/textmodes/texinfmt.el (texinfmt-version):
* lisp/textmodes/texnfo-upd.el (texinfo-master-menu):
* lisp/time.el (display-time-world-list):
* lisp/tmm.el (tmm-menubar):
* src/buffer.c (syms_of_buffer):
* src/fileio.c (syms_of_fileio):
Omit unnecessary and confusing backslash before quote.
* lisp/erc/erc.el (erc-cmd-LASTLOG):
* lisp/progmodes/flymake.el (flymake-fix-file-name):
* lisp/progmodes/vhdl-mode.el (vhdl-in-extended-identifier-p):
Fix string that was intended to escape a backslash and not a quote.
commit f8e26cd3af6b48428c3199f3f9c2a08c4f359234
Author: Glenn Morris <rgm@gnu.org>
Date: Fri Jun 12 18:07:48 2015 -0400
* src/buffer.c (init_buffer): Add final newline to message.
commit ebbc6a4782c279527c52d6b1d8b379517aeec2d5
Author: Glenn Morris <rgm@gnu.org>
Date: Thu Jun 11 20:34:54 2015 -0400
Some progress towards starting with PWD deleted. (Bug#18851)
* src/buffer.c (init_buffer): Handle get_current_dir_name failures.
* lisp/startup.el (normal-top-level, command-line-1):
* lisp/minibuffer.el (read-file-name-default):
Handle default-directory being nil.
commit 2c656f7deb3b192a5063151368782c2715e81051
Author: Paul Eggert <eggert@cs.ucla.edu>
Date: Sun May 31 23:52:09 2015 -0700
Avoid grave accent quoting in stderr diagnostics
A few Emacs diagnostics go directly to stderr, and so can't easily
contain curved quotes (as non-UTF-8 locales might mishandle them).
Instead of bothering to add support for this rarity, reword the
diagnostics so that they don't use grave accent to quote.
* src/alloc.c (mark_memory): Fix comment.
* src/buffer.c (init_buffer):
* src/dispnew.c (init_display):
* src/emacs.c (main, sort_args):
* src/lread.c (dir_warning):
* src/term.c (init_tty):
* src/unexmacosx.c (unexec):
* src/xfns.c (select_visual):
* src/xterm.c (cvt_string_to_pixel, x_io_error_quitter):
Reword stderr diagnostics to avoid quoting `like this'.
* src/unexmacosx.c: Include errno.h.
* src/xfns.c (select_visual): Encode value for locale.
commit d90a3b186d57ac700a32988b720f76f289740ece
Author: Paul Eggert <eggert@cs.ucla.edu>
Date: Sat May 30 15:29:41 2015 -0700
Remove format2
* src/editfns.c, src/lisp.h (format2): Remove.
It is more trouble than it's worth, now that we have CALLN.
This is just a minor refactoring.
* src/buffer.c (Fkill_buffer):
* src/dbusbind.c (XD_OBJECT_TO_STRING):
* src/fileio.c (barf_or_query_if_file_exists):
Adjust to format2 going away.
>> Weird. Cl-struct is what is used for holding backends, right?
>
> Correct. But AFAICT, `cl-struct-define' doesn't exist in Emacs 24.
The stable Emacs version I've got is 24.5. Why is Org git trying to pull
it in when exporting if it doesn't exist? Probably I missed something.
Rasmus
--
May the Force be with you
next prev parent reply other threads:[~2015-07-20 9:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-07 21:55 [ox bug] batch export seems to be broken or have changed Rasmus
2015-07-18 7:51 ` Nicolas Goaziou
2015-07-18 21:05 ` Rasmus
2015-07-19 8:21 ` Nicolas Goaziou
2015-07-19 8:55 ` Rasmus
2015-07-20 7:02 ` Nicolas Goaziou
2015-07-20 9:11 ` Rasmus [this message]
2015-07-20 9:45 ` Nicolas Goaziou
2015-07-20 13:54 ` Rasmus
2015-07-20 15:21 ` Rasmus
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.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pp3nurbs.fsf@gmx.us \
--to=rasmus@gmx.us \
--cc=emacs-orgmode@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/org-mode.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).