Re: [O] Bug: CALL misbehavior with :results verbatim [8.3.4 (8.3.4-5-gdc68d2-elpaplus @ /Users/rossdonaldson/.emacs.d/elpa/org-plus-contrib-20160229/)]
Nicolas -- Oh! Apologies: didn't mean to be short or unhelpful. I misunderstood you -- my bad! So: by default (at least, for me, in my configuration), Org automatically tries to interpret the results of src blocks as Org values -- usually tables. For example, evaluating `ls -la` in a shell src block returns, by default, Org's best attempt to parse a table from the output of ls. `:results verbatim` skips this, inserting the values as an example block. Vis: #+BEGIN_SRC sh ls -la | head #+END_SRC #+RESULTS: | total | 360 | | | | || | || | | drwxr-xr-x@ | 17 | rossdonaldson | staff | 578 | Apr | 5 | 15:42 | . || | | lrwxr-xr-x | 1 | rossdonaldson | staff |39 | Apr | 5 | 15:42 | .#cotidienne.org | -> | rossdonaldson@RossDonaldson.local.53153 | | drwx--@ | 62 | rossdonaldson | staff | 2108 | Mar | 31 | 19:37 | .. || | | -rw-r--r--@ | 1 | rossdonaldson | staff | 5688 | Mar | 8 | 23:07 | Rplots.pdf || | | drwxr-xr-x@ | 3 | rossdonaldson | staff | 102 | Mar | 8 | 23:06 | auto || | | -rw-r--r--@ | 1 | rossdonaldson | staff |39 | May | 12 | 2015 | bookmarks.org|| | | -rw-r--r--@ | 1 | rossdonaldson | staff |31 | Feb | 25 | 09:32 | cotidienne.md|| | | -rw-r--r--@ | 1 | rossdonaldson | staff | 34538 | Apr | 5 | 15:33 | cotidienne.org || | #+BEGIN_SRC sh :results verbatim ls -la | head #+END_SRC #+RESULTS: #+begin_example total 360 drwxr-xr-x@ 17 rossdonaldson staff578 Apr 5 15:42 . lrwxr-xr-x 1 rossdonaldson staff 39 Apr 5 15:42 .#cotidienne.org -> rossdonaldson@RossDonaldson.local.53153 drwx--@ 62 rossdonaldson staff 2108 Mar 31 19:37 .. -rw-r--r--@ 1 rossdonaldson staff 5688 Mar 8 23:07 Rplots.pdf drwxr-xr-x@ 3 rossdonaldson staff102 Mar 8 23:06 auto -rw-r--r--@ 1 rossdonaldson staff 39 May 12 2015 bookmarks.org -rw-r--r--@ 1 rossdonaldson staff 31 Feb 25 09:32 cotidienne.md -rw-r--r--@ 1 rossdonaldson staff 34538 Apr 5 15:33 cotidienne.org #+end_example So. With call, I get values wrapped in quotes, often with a newline, if I use `verbatim`. Nicolas Goaziou writes: > Hello, > > Ross Donaldson <gast...@gmail.com> writes: > >> Nicolas -- >> >>> Isn't it the point of the "verbatim" parameter? >> >> I didn't think so, no. Certainly, it doesn't behave this way in any other >> context, nor does the documentation make me think it should. >> >>> What did you expect instead? >> >> I expect the results of a call block to be the same as from evaluating the >> named src block directly. Why would I expect anything else? > > I don't know. I am not sure about the meaning of "verbatim". I was > hoping for an explanation. > > Anyway, I investigated a bit. see > <http://permalink.gmane.org/gmane.emacs.orgmode/106015> for some more > information. > > > Regards, -- Cheers, Ross
Re: [O] Bug: CALL misbehavior with :results verbatim [8.3.4 (8.3.4-5-gdc68d2-elpaplus @ /Users/rossdonaldson/.emacs.d/elpa/org-plus-contrib-20160229/)]
Nicolas -- > Isn't it the point of the "verbatim" parameter? I didn't think so, no. Certainly, it doesn't behave this way in any other context, nor does the documentation make me think it should. > What did you expect instead? I expect the results of a call block to be the same as from evaluating the named src block directly. Why would I expect anything else? Nicolas Goaziou writes: > Hello, > > Ross Donaldson <gast...@gmail.com> writes: > >> When the header argument ~:results verbatim~ is set in a #+PROPERTY, >> the results of #+CALL blocks are surrounded by full quotes: > > Isn't it the point of the "verbatim" parameter? > >> * Good >> #+name: first-demo >> #+BEGIN_SRC sh >> echo 5 #+END_SRC >> >> #+RESULTS: first-demo >> : 5 >> #+call: first-demo() >> >> #+RESULTS: >> : 5 >> >> * Bad >> :PROPERTIES: >> :header-args: :results verbatim >> :END: >> >> #+name: second-demo >> #+BEGIN_SRC sh >> echo 5 #+END_SRC >> >> #+call: second-demo() >> >> #+RESULTS: : "5 : " > > What did you expect instead? > >> * Weird >> #+name: third-demo >> #+BEGIN_SRC sh :results verbatim >> echo 5 #+END_SRC >> >> #+call: third-demo() >> >> #+RESULTS: >> : 5 > > Also, what did you expect? Note that :results verbatim is applied to the > block, not to the call line. > > > Regards, -- Cheers, Ross
[O] Bug: CALL misbehavior with :results verbatim [8.3.4 (8.3.4-5-gdc68d2-elpaplus @ /Users/rossdonaldson/.emacs.d/elpa/org-plus-contrib-20160229/)]
-- Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. When the header argument ~:results verbatim~ is set in a #+PROPERTY, the results of #+CALL blocks are surrounded by full quotes: * Good #+name: first-demo #+BEGIN_SRC sh echo 5 #+END_SRC #+RESULTS: first-demo : 5 #+call: first-demo() #+RESULTS: : 5 * Bad :PROPERTIES: :header-args: :results verbatim :END: #+name: second-demo #+BEGIN_SRC sh echo 5 #+END_SRC #+call: second-demo() #+RESULTS: : "5 : " * Weird #+name: third-demo #+BEGIN_SRC sh :results verbatim echo 5 #+END_SRC #+call: third-demo() #+RESULTS: : 5 Related Stack Exchange post: http://emacs.stackexchange.com/questions/20652/org-babels-call-functionality-wraps-all-results-in-quotes/20683?noredirect=1#comment31845_20683 Best, Ross Donaldson Emacs : GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21) of 2015-04-10 on builder10-9.porkrind.org Package: Org-mode version 8.3.4 (8.3.4-5-gdc68d2-elpaplus @ /Users/rossdonaldson/.emacs.d/elpa/org-plus-contrib-20160229/) current state: == (setq org-export-backends '(beamer ascii md pandoc gfm deck html) org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-latex-classes '(("beamer" "\\documentclass[presentation]{beamer}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("article" "\\documentclass[11pt]{article}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ("report" "\\documentclass[11pt]{report}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("book" "\\documentclass[11pt]{book}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))) 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 'time 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-export-with-section-numbers nil org-export-with-toc nil org-export-with-sub-superscripts nil org-latex-format-headline-function 'org-latex-format-headline-default-function org-todo-keyword-faces '(("TODO" . org-todo) ("DOING" . org-todo) ("BACKLOG" . org-todo) ("BLOCKED" . org-warning) ("CANCELLED" . org-done) ("IMPOSSIBLE" . org-done) ("DONE" . org-done)) 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-from-is-user-regexp "\\" 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-mode-hook '((lambda nil (turn-on-auto-fill) (org-bullets-mode 1) (org-bindings) (add-pcomplete-to-capf)) text-settings er/add-org-mode-expansions #[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 (lambda nil (run-hooks (quote prelude-org-mode-hook))) org-eldoc-load) org-refile-targets '((org-agenda-files :maxlevel . 5)) org-archive-hook '(org-attach-archive-delete-maybe) org-ascii-format-drawer-function '(lambda (name cont
[O] Bug: Markdown backend does not appear in export dispatcher [8.2.10 (8.2.10-41-g42228a-elpa @ /Users/gastove/.emacs.d/elpa/org-20150525/)]
-- Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. Hallo! Recently started encountering a very strange thing: the `markdown` backend no longer appears in my export dispatcher. The other four I have listed (html, deck, ascii, and beamer) all appear; further, I can call the org-md-export functions directly using M-x. They're clearly being loaded, and behave perfectly normally. Even if the only two backends I configure are markdown and html, only html will appear in the dispatcher as an option. Emacs : GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21) of 2015-04-10 on builder10-9.porkrind.org Package: Org-mode version 8.2.10 (8.2.10-41-g42228a-elpa @ /Users/gastove/.emacs.d/elpa/org-20150525/) current state: == (setq org-export-backends '(html markdown deck ascii beamer) org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-latex-classes '((beamer \\documentclass[presentation]{beamer} (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s})) (article \\documentclass[11pt]{article} (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s}) (\\paragraph{%s} . \\paragraph*{%s}) (\\subparagraph{%s} . \\subparagraph*{%s})) (report \\documentclass[11pt]{report} (\\part{%s} . \\part*{%s}) (\\chapter{%s} . \\chapter*{%s}) (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s})) (book \\documentclass[11pt]{book} (\\part{%s} . \\part*{%s}) (\\chapter{%s} . \\chapter*{%s}) (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s})) ) 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 'ignore org-confirm-shell-link-function 'yes-or-no-p org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-startup-folded nil org-export-with-section-numbers nil org-export-with-toc nil org-export-with-sub-superscripts nil org-latex-format-headline-function 'org-latex-format-headline-default-function org-todo-keyword-faces '((TODO . org-todo) (DOING . org-todo) (BLOCKED . org-warning) (CANCELLED . org-done) (IMPOSSIBLE . org-done) (DONE . org-done)) org-startup-indented nil org-after-todo-state-change-hook '(org-clock-out-if-current) org-latex-format-drawer-function '(lambda (name contents) contents) org-from-is-user-regexp \\Ross Donaldson\\ 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-mode-hook '(org-bindings (lambda nil (turn-on-auto-fill)) text-settings #[nil \300\301!\207 [run-hooks prelude-org-mode-hook] 2] er/add-org-mode-expansions #[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-refile-targets '((org-agenda-files :maxlevel . 3)) org-ascii-format-drawer-function '(lambda (name contents width) contents) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-hide-inline-tasks org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-refile-allow-creating-parent-nodes 'confirm org-todo-keywords '((sequence TODO(t) DOING(o) | DONE(d)) (sequence BLOCKED(b) | UNBLOCKED (u) CANCELLED(c) IMPOSSIBLE(i))) org-hide-emphasis-markers t
Re: [O] Bug: Markdown backend does not appear in export dispatcher [8.2.10 (8.2.10-41-g42228a-elpa @ /Users/gastove/.emacs.d/elpa/org-20150525/)]
Finally figured it out: The backend is called md. Dang. ...keep up the good work. On Thu, May 28, 2015 at 11:24 PM, Ross Donaldson gast...@gmail.com wrote: -- Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. Hallo! Recently started encountering a very strange thing: the `markdown` backend no longer appears in my export dispatcher. The other four I have listed (html, deck, ascii, and beamer) all appear; further, I can call the org-md-export functions directly using M-x. They're clearly being loaded, and behave perfectly normally. Even if the only two backends I configure are markdown and html, only html will appear in the dispatcher as an option. Emacs : GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21) of 2015-04-10 on builder10-9.porkrind.org Package: Org-mode version 8.2.10 (8.2.10-41-g42228a-elpa @ /Users/gastove/.emacs.d/elpa/org-20150525/) current state: == (setq org-export-backends '(html markdown deck ascii beamer) org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-latex-classes '((beamer \\documentclass[presentation]{beamer} (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s})) (article \\documentclass[11pt]{article} (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s}) (\\paragraph{%s} . \\paragraph*{%s}) (\\subparagraph{%s} . \\subparagraph*{%s})) (report \\documentclass[11pt]{report} (\\part{%s} . \\part*{%s}) (\\chapter{%s} . \\chapter*{%s}) (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s})) (book \\documentclass[11pt]{book} (\\part{%s} . \\part*{%s}) (\\chapter{%s} . \\chapter*{%s}) (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s})) ) 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 'ignore org-confirm-shell-link-function 'yes-or-no-p org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-startup-folded nil org-export-with-section-numbers nil org-export-with-toc nil org-export-with-sub-superscripts nil org-latex-format-headline-function 'org-latex-format-headline-default-function org-todo-keyword-faces '((TODO . org-todo) (DOING . org-todo) (BLOCKED . org-warning) (CANCELLED . org-done) (IMPOSSIBLE . org-done) (DONE . org-done)) org-startup-indented nil org-after-todo-state-change-hook '(org-clock-out-if-current) org-latex-format-drawer-function '(lambda (name contents) contents) org-from-is-user-regexp \\Ross Donaldson\\ 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-mode-hook '(org-bindings (lambda nil (turn-on-auto-fill)) text-settings #[nil \300\301!\207 [run-hooks prelude-org-mode-hook] 2] er/add-org-mode-expansions #[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-refile-targets '((org-agenda-files :maxlevel . 3)) org-ascii-format-drawer-function '(lambda (name contents width) contents) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-hide-inline-tasks org-cycle-show-empty-lines org-optimize-window-after