From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [ox bug] batch export seems to be broken or have changed Date: Mon, 20 Jul 2015 11:11:03 +0200 Message-ID: <87pp3nurbs.fsf@gmx.us> References: <87h9pf4opz.fsf@gmx.us> <87h9p1ewdy.fsf@nicolasgoaziou.fr> <87bnf9jhw4.fsf@gmx.us> <871tg4v9qd.fsf@nicolasgoaziou.fr> <87vbdgil0j.fsf@gmx.us> <87io9f2twp.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51538) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZH76e-00019p-0U for emacs-orgmode@gnu.org; Mon, 20 Jul 2015 05:11:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZH76a-0002Fk-KU for emacs-orgmode@gnu.org; Mon, 20 Jul 2015 05:11:27 -0400 Received: from plane.gmane.org ([80.91.229.3]:33173) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZH76a-0002Dt-9b for emacs-orgmode@gnu.org; Mon, 20 Jul 2015 05:11:24 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZH76X-0000Mp-Us for emacs-orgmode@gnu.org; Mon, 20 Jul 2015 11:11:22 +0200 Received: from ip5b4025d5.dynamic.kabel-deutschland.de ([91.64.37.213]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Jul 2015 11:11:21 +0200 Received: from rasmus by ip5b4025d5.dynamic.kabel-deutschland.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Jul 2015 11:11:21 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Nicolas Goaziou 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 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 Date: Fri Jun 12 18:07:48 2015 -0400 * src/buffer.c (init_buffer): Add final newline to message. commit ebbc6a4782c279527c52d6b1d8b379517aeec2d5 Author: Glenn Morris 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 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 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