From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roman Kalinichenko Subject: hard header-args in org-babel-load-file Date: Sat, 15 Jun 2019 01:32:38 +0300 Message-ID: <3D96EA63-B14F-41AE-8C7C-5FD2B466C086@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_3BC87FE1-9ED3-4976-ACD0-501CA3484273" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:55455) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbukk-0004rd-Ax for emacs-orgmode@gnu.org; Fri, 14 Jun 2019 18:33:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbuke-0007X1-M7 for emacs-orgmode@gnu.org; Fri, 14 Jun 2019 18:32:55 -0400 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]:37366) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hbukY-0007KY-87 for emacs-orgmode@gnu.org; Fri, 14 Jun 2019 18:32:46 -0400 Received: by mail-lf1-x12a.google.com with SMTP id d11so2746099lfb.4 for ; Fri, 14 Jun 2019 15:32:42 -0700 (PDT) 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" To: emacs-orgmode@gnu.org Cc: Roman Kalinichenko --Apple-Mail=_3BC87FE1-9ED3-4976-ACD0-501CA3484273 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hello org-mode team ! I get the feature that make me so sad.=20 so I have settings.org file like this: =3D=3D=3D=3D=3D #+BEGIN_SRC elisp (setq mac-command-modifier 'meta) =20 #+END_SRC #+BEGIN_SRC elisp (provide 'settings) #+END_SRC #+PROPERTY: header-args:elisp :tangle ~/.emacs.d/elisp/settings.el #+PROPERTY: header-args :results silent :eval no-export = :comments org #+OPTIONS: num:nil toc:nil todo:nil tasks:nil tags:nil #+OPTIONS: skip:nil author:nil email:nil creator:nil timestamp:nil #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 = path:http://orgmode.org/org-info.js =3D=3D=3D=3D=3D =3D=3D=3D=3D=3D init.el - like this: (mapc #'org-babel-load-file (directory-files dotfiles-dir t "\\.org$")) =3D=3D=3D=3D=3D but in definition of the function org-babel-load-file in org.el in line = 243: =3D=3D 223 (defun org-babel-load-file (file &optional compile) 243 (car (last (org-babel-tangle-file file exported-file = "emacs-lisp"))))) =3D=3D So, we have so hard definition "emacs-lisp=E2=80=9D,=20 it have not allow us the custom header-args like -> #+PROPERTY: = header-args:elisp :tangle ~/.emacs.d/elisp/settings.el I think, It=E2=80=99s good idea to make that more flexible.=20 Thanking for fix it.=20 --Apple-Mail=_3BC87FE1-9ED3-4976-ACD0-501CA3484273 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hello= org-mode team !
I get the feature that make me so = sad. 
so I have settings.org file like = this:

=3D=3D=3D=3D=3D<= /div>
 #+BEGIN_SRC elisp
      (setq = mac-command-modifier 'meta)  
  = #+END_SRC

 #+BEGIN_SRC elisp
   (provide 'settings)
 #+END_SRC

#+PROPERTY:    header-args:elisp =  :tangle ~/.emacs.d/elisp/settings.el
#+PROPERTY:    header-args       =  :results silent   :eval no-export   :comments = org
#+OPTIONS:     num:nil toc:nil = todo:nil tasks:nil tags:nil
#+OPTIONS:   =   skip:nil author:nil email:nil creator:nil timestamp:nil
#+INFOJS_OPT:  view:nil toc:nil ltoc:t mouse:underline = buttons:0 path:http://orgmode.org/org-info.js
=3D=3D=3D=3D=3D

=3D=3D=3D=3D=3D
init.el - like this:
(mapc #'org-babel-load-file (directory-files dotfiles-dir t = "\\.org$"))
=3D=3D=3D=3D=3D

but in definition of the = function org-babel-load-file in org.el in line = 243:

=3D=3D
223 (defun org-babel-load-file (file &optional = compile)
243    (car (last = (org-babel-tangle-file file exported-file "emacs-lisp")))))
=3D=3D

So, we have so = hard definition "emacs-lisp=E2=80=9D, 
it have not allow us the custom header-args like -> #+PROPERTY:   =  header-args:elisp  :tangle = ~/.emacs.d/elisp/settings.el
I think, = It=E2=80=99s good idea to make that more flexible. 

Thanking for fix = it. 



= --Apple-Mail=_3BC87FE1-9ED3-4976-ACD0-501CA3484273--