Re: [O] [BUG] R src blocks untabify literal constant TABs
"Charles C. Berry" writes: >>> Apart from that, the documentation needs to reverse this in 14.2: >>> >>> "may replace sequences of spaces with tab characters" >>> >>> as it is spaces that replace tab characters. >> >> OK. So with the new behaviour, this is the only necessary change to >> documentation? > > Yes. Actually, I think neither is true because `indent-line-to' inserts tab characters if indentation goes past `tab-width' and `indent-tabs-mode' is non-nil. What about the following: ‘org-src-preserve-indentation’ By default, the value is ‘nil’, which means that code blocks evaluated during export or tangled are indented according to context, possibly altering leading sequences of spaces and tab characters in the process. When non-nil, indentation is relative to left column, and therefore, not modified during export or tangling. This variable is especially useful for tangling languages such as Python, in which whitespace indentation in the output is critical. Regards,
Re: [O] Suggestion about org-babel: executing source block asynchronously
Hello, kuangdash writes: > Sometime I will run source block (such as python) which take a long time > before I get the final result. > Then I thought about whether or not the source block can be executed > asynchronously, and the answer is ‘YES’. > But it seems to be difficult for me to hack the code, so I just talk about > the process of it: > > 1) When execute source block, cover it up with the “executing” overlay. > 2) When get the final result, get the “executing” overlay position. > 3) Add the result below the “executing” overlay position, and then > remove the overly. > > It can be done! How about it? It could be a start. However, "add the result" in not simple, because you need to maintain a queue in order to insert results back during idle time. Also, insertion should preserve current window visibility so as to prevent jumping around. You may also need to cover the results part of the code block, if any. Regards, -- Nicolas Goaziou
Re: [O] [PATCH] ox-extra.el: Fix filtering of latex header blocks
And of course, the previous patch contains a bug. I should have tested it with multiple latex header blocks. Sorry for the inconvenience. The attached patch should (hopefully) fix that. Best wishes, Sebastian >From d9890ab84c92ec60e76913d2a1b3967353819500 Mon Sep 17 00:00:00 2001 From: Sebastian Christ Date: Fri, 9 Oct 2015 17:37:39 +0200 Subject: [PATCH] ox-extra.el: Fix filtering of latex header blocks * ox-extra.el (org-latex-header-blocks-filter): Use `org-element' API to find begin and end of latex header blocks. `org-latex-header-blocks-filter' still called `org-edit-src-find-region-and-lang' and raised an undefined function error because the funtion was removed from org-mode. This is fixed by determining the begin and end of the latex block via `org-element'. --- contrib/lisp/ox-extra.el | 30 ++ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/contrib/lisp/ox-extra.el b/contrib/lisp/ox-extra.el index e6d45cc..669d54f 100644 --- a/contrib/lisp/ox-extra.el +++ b/contrib/lisp/ox-extra.el @@ -71,18 +71,24 @@ (org-element-property :end block) (org-element-property :post-affiliated block))) (mapc (lambda (pos) - (goto-char (nth 2 pos)) - (destructuring-bind - (beg end &rest ignore) - (org-edit-src-find-region-and-lang) - (let ((contents-lines (split-string - (buffer-substring-no-properties beg end) - "\n"))) - (delete-region (nth 0 pos) (nth 1 pos)) - (dolist (line contents-lines) - (insert (concat "#+latex_header: " -(replace-regexp-in-string "\\` *" "" line) -"\n")) + (let* ((beg (first pos)) + (end (second pos)) + (post-affiliated (third pos)) + (contents-lines (split-string + (buffer-substring-no-properties beg + end) + "\n"))) +(goto-char post-affiliated) +(delete-region beg end) +(dolist (line (remove-if (lambda (line) + (or +(string-prefix-p "#+HEADER:" line) +(string-prefix-p "#+BEGIN_LaTeX" line) +(string-prefix-p "#+END_LaTeX" line))) + contents-lines)) + (insert (concat "#+latex_header: " + (replace-regexp-in-string "\\` *" "" line) + "\n") ;; go in reverse, to avoid wrecking the numeric positions ;; earlier in the file (reverse positions) -- 2.6.1
[O] [BUG] COMMENT-ed sections are tangled, if preceded by an org-todo keyword
Hello, sections or subtrees commented with org-comment-string in the headline should not be tangled. This works fine. However, if a tag defined in org-todo-keywords (other than TODO or DONE) precedes the comment (as the official syntax has it), commenting is no longer respected such that source-blocks in the section/subtree are tangled. I think this cannot be intentional and is probably a bug. Best regards, mc For example: * TODO COMMENT this headline should not be tangled #+begin_src emacs-lisp (message "I am COMMENT-ed and thus I am not tangled - OK") #+end_src * WATCH COMMENT this headline should not be tangled #+begin_src emacs-lisp (message "I am COMMENT-ed but a I still tangled - FALSE") #+end_src -- Fetch my gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 7E3CA33F smime.p7s Description: S/MIME cryptographic signature
Re: [O] First steps in customizing org-mode
On Saturday, 10 Oct 2015 at 10:08, Giulio Petrucci wrote: [...] > In some sense I strongly disagree with this idea. > Let me explain: it is true that reading the docs for > 'org-agenda-custom-commands' helps me more than googling here and > there. > But *first* I have to know that such a variable exists. > So my actual problem is the following: which is the easiest entry > point for the org universe? Tom has already pointed you to the tutorial and the online guide. Another route is the Emacs built-in help system. You can find commands containing any word using C-h a, e.g. for agenda commands: C-h a agenda RET. You can see the description of any variable using C-h v variable RET. If you don't know the name of the variable, you can search for variables that contain the word using the TAB key but noting that TAB completion has some interesting options for variable searches: C-h v word TAB :: show list of variables starting with word. C-h v -word TAB :: show list of variables containing word and combinations such as C-h v org-agenda TAB C-h v org--agenda TAB Play and see. -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.2-161-gd2ac25
Re: [O] [wish] Execute preparation-function before getting base files
On Saturday, 10 Oct 2015 at 22:25, Arun Isaac wrote: > In org-publish-projects, it would be good if the preparation-function is > executed before getting base files using org-publish-get-base-files. I'm not sure of the actual order of execution but it could be that one or other of the org-export-before-{processing,parsing}-hook hooks could do what you want? -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.2-161-gd2ac25
[O] [PATCH] ob-clojure: cider api change
Hello, This patch makes ob-clojure compatible with latest cider. more details can be found here: https://github.com/clojure-emacs/cider/issues/1302 Best Regards, Feng Zhou From 0de9742a6f1f1e41880a215a46278f6c56daf645 Mon Sep 17 00:00:00 2001 From: Feng Zhou Date: Sun, 11 Oct 2015 20:18:08 +0800 Subject: [PATCH] ob-clojure: cider api change --- lisp/ob-clojure.el | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lisp/ob-clojure.el b/lisp/ob-clojure.el index af94beb..7631419 100644 --- a/lisp/ob-clojure.el +++ b/lisp/ob-clojure.el @@ -44,7 +44,8 @@ (require 'cl)) (declare-function nrepl-dict-get "ext:nrepl-client" (dict key)) -(declare-function nrepl-sync-request:eval "ext:nrepl-client" (input &optional ns session)) +(declare-function nrepl-sync-request:eval "ext:nrepl-client" + (input connection session &optional ns)) (declare-function slime-eval "ext:slime" (sexp &optional package)) (defvar org-babel-tangle-lang-exts) @@ -91,7 +92,8 @@ (let ((result-params (cdr (assoc :result-params params (setq result (nrepl-dict-get - (nrepl-sync-request:eval expanded) + (nrepl-sync-request:eval + expanded (cider-current-connection) (cider-current-session)) (if (or (member "output" result-params) (member "pp" result-params)) "out" -- 1.9.1
Re: [O] [RFC] Draft mode
Nicolas Goaziou writes: > Here's another take on this, which is quite different from the original > draft mode. Now, behaviour on broken links is controlled with > `org-export-with-broken-links' or its OPTIONS counterpart > "broken-links". > > It is possible to either error on a broken link, ignore it, or mark it > with an obnoxious string in the output. > > > Feedback welcome. That sounds awesome, though I haven't had time to test it yet. Thanks, Rasmus -- Hvor meget poesi tror De kommer ud af et glas isvand?
[O] Bug: org-babel-clojure broken due to cider-nrepl API update [8.3.2 (release_8.3.2-164-g50a182.dirty @ /usr/share/emacs/site-lisp/org/)]
Due to a recent change in the cider-nrepl API, org-babel integration with Clojure broke. This can be seen here (https://github.com/clojure-emacs/cider/issues/1302) and here (https://github.com/clojure-emacs/cider/issues/1295#issuecomment-137052682). To use the function declaration as an example, this: (declare-function nrepl-sync-request:eval "ext:nrepl-client" (input &optional ns session)) needs to be swapped for this: (declare-function nrepl-sync-request:eval "ext:nrepl-client" (input connection session &optional ns)) As a workaround in the meantime, I modified the nrepl-sync-request:eval call in org-babel-execute:clojure as follows: (nrepl-sync-request:eval expanded (cider-current-connection) (cider-current-session) (cider-current-ns)) That got my system working properly. On a tangential note, I wonder if it might be acceptable to drop the option to use SLIME for Clojure execution. If I'm remembering correctly, I don't believe SLIME is supported by Clojure anymore. All Emacs integration these days goes through CIDER and nREPL. It's likely safe to abandon ob-clojure's SLIME support, at this point. See the first paragraph of the CIDER Github page (https://github.com/clojure-emacs/cider). Thanks, Elliott "Seylerius" Seyler Emacs : GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.6) of 2015-09-09 on foutrelis Package: Org-mode version 8.3.2 (release_8.3.2-164-g50a182.dirty @ /usr/share/emacs/site-lisp/org/) current state: == (setq org-export-backends '(odt md latex icalendar html ascii) org-hide-leading-stars t org-reveal-mathjax t org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-html-format-drawer-function '(lambda (name contents) contents) org-log-done t org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-function org-confirm-shell-link-function 'yes-or-no-p org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-latex-format-headline-function 'org-latex-format-headline-default-function org-startup-indented t org-after-todo-state-change-hook '(org-clock-out-if-current) org-latex-format-drawer-function '(lambda (name contents) contents) org-odt-format-headline-function 'org-odt-format-headline-default-function org-from-is-user-regexp nil org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-trigger-hook '(org-depend-trigger-todo) org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil "\300\301\302\303\304$\207" [org-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-minor-modes-hook) org-archive-hook '(org-attach-archive-delete-maybe) org-ascii-format-drawer-function '(lambda (name contents width) contents) org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-function org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-enforce-todo-dependencies t org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-reveal-mathjax-url "file:///home/emhs/MathJax/MathJax.js" org-babel-tangle-lang-exts '(("clojure" . "clj") ("emacs-lisp" . "el") ("elisp" . "el")) org-confirm-elisp-link-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-odt-format-drawer-function '(lambda (name contents) contents) org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent org-depend-block-todo) org-html-format-headline-function 'org-html-format-headline-default-function org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function org-clock-out-hook '(org-clock-remove-empty-clock-drawer) )
[O] multi letter agenda commands
Hi all im wondering if anyone knows a way (or if its possible at all) to have multi letter agenda commands, for example ("fc" "to cook" tags "Cuisine=\"American\"" ( (org-agenda-files '("~/org/files/agenda/food.org")) (org-agenda-sorting-strategy '(priority-down)) ;; Sort by priority where priority goes first. ) ) ("fa" "to cook" tags "Cuisine=\"Asian\"" ( (org-agenda-files '("~/org/files/agenda/food.org")) (org-agenda-sorting-strategy '(priority-down)) ;; Sort by priority where priority goes first. ) ) where i would press f then a or c to launch the appropriate agenda command thx so much Z
Re: [O] multi letter agenda commands
On Sunday, 11 Oct 2015 at 19:00, Xebar Saram wrote: > Hi all > > im wondering if anyone knows a way (or if its possible at all) to have > multi letter agenda commands, for example I don't know. Try it and see? More often than not, when it comes to org, what you want is already possible! :-) -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.2-161-gd2ac25
Re: [O] multi letter agenda commands
I didn't try Eric's advice but it is probably a good idea ;) This is pretty easy to do with a hydra menu. Here is a super simple example. See https://github.com/abo-abo/hydra. (defhydra hydra-agenda (:color red :hint nil) "Agenda hydra" ("fd" (org-tags-view nil "TODO=\"DONE\"") "DONE") ("ft" (org-tags-view nil "TODO=\"TODO\"") "TODO") ("fa" (org-tags-view nil "TODO=\"ASSIGNED\"") "ASSIGNED")) This creates a command hydra-agenda/body that will give you a menu with hints. I love hydras for this kind of thing. Xebar Saram writes: > Hi all > > im wondering if anyone knows a way (or if its possible at all) to have > multi letter agenda commands, for example > > ("fc" "to cook" tags "Cuisine=\"American\"" > ( > (org-agenda-files '("~/org/files/agenda/food.org")) > (org-agenda-sorting-strategy '(priority-down)) ;; Sort by priority > where priority goes first. > > ) > ) > > ("fa" "to cook" tags "Cuisine=\"Asian\"" > ( > (org-agenda-files '("~/org/files/agenda/food.org")) > (org-agenda-sorting-strategy '(priority-down)) ;; Sort by priority > where priority goes first. > > ) > ) > > where i would press f then a or c to launch the appropriate agenda command > > thx so much > > Z -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu
Re: [O] [BUG] R src blocks untabify literal constant TABs
On Sun, 11 Oct 2015, Nicolas Goaziou wrote: What about the following: ‘org-src-preserve-indentation’ By default, the value is ‘nil’, which means that code blocks evaluated during export or tangled are indented according to context, possibly altering leading sequences of spaces and tab characters in the process. When non-nil, indentation is relative to left column, and therefore, not modified during export or tangling. This variable is especially useful for tangling languages such as Python, in which whitespace indentation in the output is critical. I think that is correct. Chuck
Re: [O] multi letter agenda commands
How did i forget about hydra :) perfect, thx so much! Z
[O] (no subject)
I have multiple savings accounts, some of which I want to partition into mutiple virtual "subaccounts" that don't merit their own savings account. I want to use org-mode tables to keep track how much money is each subaccount. Given the following table: #+TBLNAME: trans-150925 | ! | Amount | From | To | Subacct | |---++++-| | | 50 | Short Term | Inbox | Bond| | |200 | Inbox | Short Term | Bond| | |120 | Gifts | Inbox | Baby Gifts | | | 75 | Short Term | Inbox | Furnishings | In this example, I have accounts "Inbox", "Short Term", and "Gifts". Of these accounts, "Short Term" has two subaccounts "Bond" and "Furnishings", and "Gifts" has a subaccount "Baby Gifts". I want to create a function that given a subaccount name, calculates the net amount to be withdrawn/deposited to the subaccount. Note that "Inbox" doesn't have any subaccounts, which I want to use to determine if a given transaction is a withdrawal or deposit to the subaccount. I have created the following two functions to implement this: (defun sbr/org-lookup-trans (category date s-name r-name) (let* ((table (concat "trans-" date)) (s-range (format "@I%s..@>%s" s-name s-name)) (s-col (org-table-get-remote table s-range)) (r-range (format "@I%s..@>%s" r-name r-name)) (r-col (org-table-get-remote table r-range))) (org-lookup-all category s-col r-col))) (defun sbr/get-net-subacct (category date) (let* ((from-vec (sbr/org-lookup-trans category date "$Subacct" "$From")) (to-vec (sbr/org-lookup-trans category date "$Subacct" "$To")) (amount-vec (sbr/org-lookup-trans category date "$Subacct" "$Amount")) (from-inbox-ind ) ; A (to-inbox-ind ) ; B (adds amount-vec[from-inbox-ind]) ; C (subs amount-vec[to-inbox-ind])) ; D (calc-eval (if (zerop (length subs)) adds (concat adds "-" subs) I need help filling in the pseudo code in lines A through D, namely: 1. how to get a list of all indices of elements in a vector that satisfy a predicate? 2. how to reference a vector by a list of indices? In this example the function should return the following values: (sbr/get-net-subacct "Bond" "150925") ==> 150 (sbr/get-net-subacct "Furnishings" "150925") ==> -75 (sbr/get-net-subacct "Baby Gifts" "150925") ==> -120 How do I implement the above pseudocode functions? Is there a simpler way to accomplish this task?
Re: [O] How to cross reference more than two table columns?
Sorry forgot to put in a subject On Sun, Oct 11, 2015 at 12:51 PM, Shankar Rao wrote: > I have multiple savings accounts, some of which I want to partition into > mutiple virtual "subaccounts" that don't merit their own savings account. I > want to use org-mode tables to keep track how much money is each > subaccount. Given the following table: > > #+TBLNAME: trans-150925 > | ! | Amount | From | To | Subacct | > |---++++-| > | | 50 | Short Term | Inbox | Bond| > | |200 | Inbox | Short Term | Bond| > | |120 | Gifts | Inbox | Baby Gifts | > | | 75 | Short Term | Inbox | Furnishings | > > In this example, I have accounts "Inbox", "Short Term", and "Gifts". Of > these accounts, "Short Term" has two subaccounts "Bond" and "Furnishings", > and "Gifts" has a subaccount "Baby Gifts". I want to create a function that > given a subaccount name, calculates the net amount to be > withdrawn/deposited to the subaccount. Note that "Inbox" doesn't have any > subaccounts, which I want to use to determine if a given transaction is a > withdrawal or deposit to the subaccount. > > I have created the following two functions to implement this: > > (defun sbr/org-lookup-trans (category date s-name r-name) > (let* ((table (concat "trans-" date)) > (s-range (format "@I%s..@>%s" s-name s-name)) > (s-col (org-table-get-remote table s-range)) > (r-range (format "@I%s..@>%s" r-name r-name)) > (r-col (org-table-get-remote table r-range))) > (org-lookup-all category s-col r-col))) > > (defun sbr/get-net-subacct (category date) > (let* ((from-vec (sbr/org-lookup-trans category date "$Subacct" "$From")) > (to-vec (sbr/org-lookup-trans category date "$Subacct" "$To")) > (amount-vec (sbr/org-lookup-trans category date "$Subacct" > "$Amount")) > (from-inbox-ind "Inbox">) ; A >(to-inbox-ind "Inbox">) ; B >(adds amount-vec[from-inbox-ind]) ; C >(subs amount-vec[to-inbox-ind])) ; D > (calc-eval (if (zerop (length subs)) > adds > (concat adds "-" subs) > > I need help filling in the pseudo code in lines A through D, namely: > > 1. how to get a list of all indices of elements in a vector that satisfy a > predicate? > 2. how to reference a vector by a list of indices? > > In this example the function should return the following values: > > (sbr/get-net-subacct "Bond" "150925") ==> 150 > (sbr/get-net-subacct "Furnishings" "150925") ==> -75 > (sbr/get-net-subacct "Baby Gifts" "150925") ==> -120 > > How do I implement the above pseudocode functions? Is there a simpler way > to accomplish this task? >
Re: [O] [BUG] R src blocks untabify literal constant TABs
"Charles C. Berry" writes: >> What about the following: >> >> ‘org-src-preserve-indentation’ By default, the value is ‘nil’, which >> means that code blocks evaluated during export or tangled are >> indented according to context, possibly altering leading >> sequences of spaces and tab characters in the process. When >> non-nil, indentation is relative to left column, and therefore, >> not modified during export or tangling. This variable is >> especially useful for tangling languages such as Python, in which >> whitespace indentation in the output is critical. >> > > > I think that is correct. Applied, then. Thank you. Regards,
Re: [O] [PATCH] ob-clojure: cider api change
Hello, Feng Zhou writes: > This patch makes ob-clojure compatible with latest cider. > more details can be found here: > https://github.com/clojure-emacs/cider/issues/1302 Applied. Thank you. As I didn't know your status wrt to FSF papers, I added "TINYCHANGE" at the end of the commit message. Regards, -- Nicolas Goaziou
Re: [O] [BUG] COMMENT-ed sections are tangled, if preceded by an org-todo keyword
Hello, Martin Carlé writes: > sections or subtrees commented with org-comment-string in the headline > should not be tangled. This works fine. > > However, if a tag defined in org-todo-keywords (other than TODO or DONE) > precedes the comment (as the official syntax has it), commenting is no > longer respected such that source-blocks in the section/subtree are tangled. > > I think this cannot be intentional and is probably a bug. > > Best regards, > mc > > > For example: > > * TODO COMMENT this headline should not be tangled > #+begin_src emacs-lisp > (message "I am COMMENT-ed and thus I am not tangled - OK") > #+end_src > > * WATCH COMMENT this headline should not be tangled > #+begin_src emacs-lisp > (message "I am COMMENT-ed but a I still tangled - FALSE") > #+end_src I cannot reproduce the problem. Did you properly activate new TODO keyword, e.g., using C-c C-c on the #+TODO: WATCH line? Also, what is Org's version ? Regards, -- Nicolas Goaziou
Re: [O] multi letter agenda commands
It's already built in to custom agendas. See http://pages.sachachua.com/.emacs.d/Sacha.html#unnumbered-80 for excellent agenda examples. Sacha is a great resource for most things org On Sun, Oct 11, 2015, 10:35 AM Xebar Saram wrote: > How did i forget about hydra :) > > perfect, thx so much! > > Z >
Re: [O] SOLVED: LaTeX equation align in orgmode?
Eric S Fraga writes: > On Friday, 9 Oct 2015 at 09:25, Enzo Chi wrote: >> I tried that "\begin{align}...\end{align}" code with "C-c C-x C-l", it >> generate a very back quality image like this: > > What settings do you have for image creation in org? What is > org-latex-create-formula-image-program? > > For instance, I have the following settings: > > #+begin_src emacs-lisp :results none > (setq org-format-latex-options '(:foreground "white" :background "black" > :scale 3 :html-foreground "Black" :html-background "Transparent" :html-scale > 1.0 :matchers ("begin" "$1" "$" "$$" "\\(" "\\[")) > org-latex-create-formula-image-program 'imagemagick > ) > #+end_src > > and I get something along these lines: > > > > > You'll probably not want to change the foreground and background colours > if you have a light background emacs theme. > > The quality of the image may also be a function of your LaTeX default > packages and fonts. Thanks Eric, that solved the preview issue. But when export it to ODT file, the image is still as bad as the one I post before. (Export to PDF is fine).
Re: [O] [BUG] COMMENT-ed sections are tangled, if preceded by an org-todo keyword
Thank you for looking into that issue! I trace the git repo of org-mode (current commit is 50a18201). My todo-keywords are not defined file-local but during emacs startup like this: ,--- | (setq org-todo-keywords | '((sequence "TODO(t)" "|" "DONE(d)") | (sequence "DOIT(i!)" "FEEDBACK(e@/!)" "LINGER(l@/!)" "VERIFY(v!)" "|" "OVER(o!)" "DELEGATED(g@/!)") | (sequence "BUG(b!)" "ASK(a)" "REPORT(r)" "KNOWNCAUSE(k!)" "WATCH(w!)" "|" "STRANGE(s!)" "FIXED(f@/!)") | (sequence "|" "CANCELED(c@)") | (sequence "THINKof(T)" "CHECK(K)" "OPTIMIZE(O)" "CONTINUE(C)" "REPEAT(R)" "MAYBE(M)" "|" "PERFECTED(P)") | (sequence "TODOs" "|" "DONEs") | )) `--- Maybe that's the reason why it couldn't be reproduced. Or do I missed something while setting the var "org-todo-keywords"? Best regards, mc On 2015-10-12T00:39:41+0300, spake thus: > Hello, > Martin Carlé writes: > > sections or subtrees commented with org-comment-string in the headline > > should not be tangled. This works fine. > > > > However, if a tag defined in org-todo-keywords (other than TODO or DONE) > > precedes the comment (as the official syntax has it), commenting is no > > longer respected such that source-blocks in the section/subtree are tangled. > > > > I think this cannot be intentional and is probably a bug. > > > > Best regards, > > mc > > > > > > For example: > > > > * TODO COMMENT this headline should not be tangled > > #+begin_src emacs-lisp > > (message "I am COMMENT-ed and thus I am not tangled - OK") > > #+end_src > > > > * WATCH COMMENT this headline should not be tangled > > #+begin_src emacs-lisp > > (message "I am COMMENT-ed but a I still tangled - FALSE") > > #+end_src > I cannot reproduce the problem. Did you properly activate new TODO > keyword, e.g., using C-c C-c on the #+TODO: WATCH line? > Also, what is Org's version ? > Regards, > -- > Nicolas Goaziou -- Fetch my gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 7E3CA33F smime.p7s Description: S/MIME cryptographic signature