From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gennady Uraltsev Subject: Bug: org-babel-tangle sometimes does not respect header-args property [9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emacs/26.1/lisp/org/)] Date: Sun, 10 Jun 2018 08:42:03 +0300 Message-ID: <238a34f8-f00b-cf01-ca71-cbc6c2c3d85f@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="FHuCIHUXJJjn4b2tf220hG1RMkhxkbraQ" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRt7L-00030E-6T for emacs-orgmode@gnu.org; Sun, 10 Jun 2018 01:42:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fRt7G-00052r-9p for emacs-orgmode@gnu.org; Sun, 10 Jun 2018 01:42:19 -0400 Received: from mail-lf0-x236.google.com ([2a00:1450:4010:c07::236]:44796) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fRt7F-00052M-RB for emacs-orgmode@gnu.org; Sun, 10 Jun 2018 01:42:14 -0400 Received: by mail-lf0-x236.google.com with SMTP id 36-v6so25765437lfr.11 for ; Sat, 09 Jun 2018 22:42:13 -0700 (PDT) Received: from [192.168.7.180] ([93.92.203.145]) by smtp.gmail.com with ESMTPSA id 4-v6sm6296249ljc.1.2018.06.09.22.42.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 Jun 2018 22:42:10 -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 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --FHuCIHUXJJjn4b2tf220hG1RMkhxkbraQ Content-Type: multipart/mixed; boundary="f6DGVLM7FbatPNBdFLhMwpTX1Qp06IUdf"; protected-headers="v1" From: Gennady Uraltsev To: emacs-orgmode@gnu.org Message-ID: <238a34f8-f00b-cf01-ca71-cbc6c2c3d85f@gmail.com> Subject: Bug: org-babel-tangle sometimes does not respect header-args property [9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emacs/26.1/lisp/org/)] --f6DGVLM7FbatPNBdFLhMwpTX1Qp06IUdf Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Running =3D(org-babel-tangle)=3D from inside a =3Dsrc=3D block ignores =3Dheader-args=3D properties Consider the following org-mode file set for tangling. This code should run the command =3Dorg-babel-tangle=3D #+BEGIN_SRC emacs-lisp :results silent (org-babel-tangle) #+END_SRC that should tangle the stuff in the next header. ** Observed behaviour Running the first code block tangles only the first code block below Running =3Dorg-babel-tangle=3D tangles both code blocks below ** Expected behaviour Running the above code block or =3Dorg-babel-tangle=3D tangles both code blocks below * Code to tangle ** Because of =3D:tangle=3D parameter This block gets tangled both by executing =3Dorg-babel-tangle=3D from the= =3Dsrc=3D code block or directly via M-x. #+BEGIN_SRC emacs-lisp :tangle yes (message "This should be tangled because of :tangle parameter") #+END_SRC ** Because of properties :PROPERTIES: :header-args: :tangle yes :END: This block gets tangled only by executing =3Dorg-babel-tangle=3D directl= y via M-x but it *doesn't* get tangled by executing =3Dorg-babel-tangle=3D from the =3Dsrc=3D code block. #+BEGIN_SRC emacs-lisp (message "This should be tangled because of property list") #+END_SRC -------------------------- Emacs : GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.= 30) of 2018-05-29 Package: Org mode version 9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emacs/26.1/lisp/org/) current state: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-after-todo-state-change-hook '(org-clock-out-if-current) org-metadown-hook '(org-babel-pop-to-session-maybe) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-mode-hook '(#[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-show-block-all append local] 5] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-archive-hook '(org-attach-archive-delete-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-agenda-before-write-hook '(org-agenda-add-entry-text) org-metaup-hook '(org-babel-load-in-session-maybe) org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 "\n\n(fn ENTRY)"] org-babel-pre-tangle-hook '(save-buffer) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-occur-hook '(org-first-headline-recenter) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers= org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-confirm-shell-link-function 'yes-or-no-p org-link-parameters '(("id" :follow org-id-open) ("rmail" :follow org-rmail-open :store org-rmail-store-link) ("mhe" :follow org-mhe-open :store org-mhe-store-link) ("irc" :follow org-irc-visit :store org-irc-store-link) ("info" :follow org-info-open :export org-info-export :store org-info-store-link) ("gnus" :follow org-gnus-open :store org-gnus-store-link) ("docview" :follow org-docview-open :export org-docview-export :store org-docview-store-link) ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link) ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete org-bbdb-complete-link :store org-bbdb-store-link) ("w3m" :store org-w3m-store-link) ("file+sys") ("file+emacs") ("doi" :follow org--open-doi-link) ("elisp" :follow org--open-elisp-link) ("file" :complete org-file-complete-link) ("ftp" :follow (lambda (path) (browse-url (concat "ftp:" path)))) ("help" :follow org--open-help-link) ("http" :follow (lambda (path) (browse-url (concat "http:" path)))) ("https" :follow (lambda (path) (browse-url (concat "https:" path)))) ("mailto" :follow (lambda (path) (browse-url (concat "mailto:" path)))) ("news" :follow (lambda (path) (browse-url (concat "news:" path)))) ("shell" :follow org--open-shell-link)) ) --f6DGVLM7FbatPNBdFLhMwpTX1Qp06IUdf-- --FHuCIHUXJJjn4b2tf220hG1RMkhxkbraQ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEJQQMgTpmrxMi2uL37hfeU97djTEFAlscuisACgkQ7hfeU97d jTHcWxAA3iYjaM2/qBrLVuRbuPZ65Wa/MZGGBtystjOPF6bSs0Q5Yg7KCuyiebBs djKOxy0eg3wK50XNwwXII07GPHE/ZWW+NqSAFlGNAVvjvsw7OzVe1Vxp7L8L5Ty1 SZAc0Pb6W1oTvU9xU3ZOCDOL0rv7Ff/bkI2yATJcv0a9GTcnxOuDlUnsQXbDZTOH +K/X3h4Muya5uYDcI+7q226T6Z6iOCy5fUxQpcJYe8n6/cYP3SGip5R4dBIc+/Mk LZJFLvlM2HERtdt55NjwyuyPWApyb5b27fXkBkn3EpHqDu2hZP60bGaqJ42UFcuM 27FxgemmljcjT+6kbWFWMWjJj9zSThyIb4HudmKaag+Bj4NcRMxWI0qxKaxP9AAN baf5NpOr5y7hUuL2ZdnwE6W9227z0IZnbz1hB0U7Nl3ty4ImTTrBjl8xrDZ8lQQq DHS6i1Zan877prKPdx/9t5cDVyQ18PvM9GnGhymry2nvNo9NPyTQGG4sBSz0kz8h 3UvdL0nOfs2/ABsK9+crI5y7+ma5I2Ke25DWxRrxqSzZgLL04999ZCeN4j8aPdej KejCtiq6t+CzW1jy8g91U1oW9Ffcq2o8mSsMv0FUgb1ZN/QezQ5cpGd9N637gsgf nvEoxzlfkVRyfJoP2BIbwZ5E3Pp2PChSpShiGRVGe0hcv1NzlBE= =56uk -----END PGP SIGNATURE----- --FHuCIHUXJJjn4b2tf220hG1RMkhxkbraQ--