Re: [O] problem with babel call with post action

2017-06-20 Thread Eric S Fraga

Hi Nicolas,

Thanks for the quick response!

On Tuesday, 20 Jun 2017 at 19:23, Nicolas Goaziou wrote:

[...]

> That is a serious babel call.

:-)

I think it's a symptom of being lazy and spending way too much time on
codes to make life easier...  as in "The tale of the man who was too
lazy to fail" by Robert Heinlein [1].

> I improved babel call arguments parsing. Could you confirm that your
> wizardry is in order now?

I got further but there's still an error.  See attached debug output.  I
don't understand as org-table-to-lisp does exist.  I don't think it's a
configuration problem but...

thanks,
eric

Footnotes: 
[1]  https://en.wikipedia.org/wiki/Time_Enough_for_Love

-- 
: Eric S Fraga via Emacs 26.0.50, Org release_9.0.8-568-ga615d3
Debugger entered--Lisp error: (void-function org-table-to-lisp)
  (org-table-to-lisp)
  (mapcar (function (lambda (row) (if (and (symbolp row) (equal row (quote 
hline))) row (mapcar (function (lambda (el) (org-babel-read el ...))) row 
(org-table-to-lisp))
  org-babel-read-table()
  (cond ((eq val (quote fixed-width)) (let ((v (org-trim (org-element-property 
:value element (or (org-babel--string-to-number v) v))) ((eq val (quote 
table)) (org-babel-read-table)) ((eq val (quote plain-list)) 
(org-babel-read-list)) ((eq val (quote example-block)) (let ((v 
(org-element-property :value element))) (if (or org-src-preserve-indentation 
(org-element-property :preserve-indent element)) v (org-remove-indentation 
v ((eq val (quote export-block)) (org-remove-indentation 
(org-element-property :value element))) ((eq val (quote paragraph)) 
(skip-chars-forward "  ") (if (and (looking-at org-bracket-link-regexp) 
(save-excursion (goto-char (match-end 0)) (skip-chars-forward " 
\n") (<= (org-element-property :end element) (point 
(org-babel-read-link) (buffer-substring-no-properties (org-element-property 
:contents-begin element) (org-element-property :contents-end element ((memq 
val (quote (special-block verse-block quote-block center-block))) 
(org-remove-indentation (buffer-substring-no-properties (org-element-property 
:contents-begin element) (org-element-property :contents-end element (t 
nil))
  (let* ((val (org-element-type element))) (cond ((eq val (quote fixed-width)) 
(let ((v (org-trim (org-element-property :value element (or 
(org-babel--string-to-number v) v))) ((eq val (quote table)) 
(org-babel-read-table)) ((eq val (quote plain-list)) (org-babel-read-list)) 
((eq val (quote example-block)) (let ((v (org-element-property :value 
element))) (if (or org-src-preserve-indentation (org-element-property 
:preserve-indent element)) v (org-remove-indentation v ((eq val (quote 
export-block)) (org-remove-indentation (org-element-property :value element))) 
((eq val (quote paragraph)) (skip-chars-forward " ") (if (and 
(looking-at org-bracket-link-regexp) (save-excursion (goto-char (match-end 0)) 
(skip-chars-forward " 
\n") (<= (org-element-property :end element) (point 
(org-babel-read-link) (buffer-substring-no-properties (org-element-property 
:contents-begin element) (org-element-property :contents-end element ((memq 
val (quote (special-block verse-block quote-block center-block))) 
(org-remove-indentation (buffer-substring-no-properties (org-element-property 
:contents-begin element) (org-element-property :contents-end element (t 
nil)))
  (save-restriction (widen) (goto-char (org-element-property :post-affiliated 
element)) (let* ((val (org-element-type element))) (cond ((eq val (quote 
fixed-width)) (let ((v (org-trim ...))) (or (org-babel--string-to-number v) 
v))) ((eq val (quote table)) (org-babel-read-table)) ((eq val (quote 
plain-list)) (org-babel-read-list)) ((eq val (quote example-block)) (let ((v 
(org-element-property :value element))) (if (or org-src-preserve-indentation 
(org-element-property :preserve-indent element)) v (org-remove-indentation 
v ((eq val (quote export-block)) (org-remove-indentation 
(org-element-property :value element))) ((eq val (quote paragraph)) 
(skip-chars-forward " ") (if (and (looking-at org-bracket-link-regexp) 
(save-excursion (goto-char ...) (skip-chars-forward " 
\n") (<= ... ...))) (org-babel-read-link) 
(buffer-substring-no-properties (org-element-property :contents-begin element) 
(org-element-property :contents-end element ((memq val (quote 
(special-block verse-block quote-block center-block))) (org-remove-indentation 
(buffer-substring-no-properties (org-element-property :contents-begin element) 
(org-element-property :contents-end element (t nil
  (save-excursion (save-restriction (widen) (goto-char (org-element-property 
:post-affiliated element)) (let* ((val (org-element-type element))) (cond ((eq 
val (quote fixed-width)) (let ((v ...)) (or (org-babel--string-to-number v) 
v))) ((eq val (quote table)) (org-babel-read-table)) ((eq val (quote 
plain-list)) (org-babel-read-list)) ((eq val (quote example-block)) (let 

[O] ob-haskell.el evaluation error.

2017-06-20 Thread numbch...@gmail.com
Confirmed with minimal Emacs config.
I'm using latest Emacs which build from source code, and latest version
Org-mode which load from source code.

Here is the steps to reproduce the issue:
1. emacs-minimal-init (command which load minimal init file)
2. [M-x run-haskell] ; load haskell inferior for `ob-haskell`.
3. press [C-c C-c] on haskell src block like this:

#+BEGIN_SRC haskell :session "*haskell*"
1 + 9
#+END_SRC

I got error:

#+BEGIN_EXAMPLE
Debugger entered--Lisp error: (error "‘org-babel-script-escape’ expects a
string")
  signal(error ("‘org-babel-script-escape’ expects a string"))
  error("`org-babel-script-escape' expects a string")
  org-babel-script-escape(nil)
  org-babel-execute:haskell("2 + 8" ((:colname-names) (:rowname-names)
(:result-params "replace") (:result-type . value) (:results . "replace")
(:exports . "code") (:session . "none") (:cache . "no") (:noweb . "no")
(:hlines . "no") (:tangle . "no") (:padlines . "no")))
  org-babel-execute-src-block(nil ("haskell" "2 + 8" ((:colname-names)
(:rowname-names) (:result-params "replace") (:result-type . value)
(:results . "replace") (:exports . "code") (:padlines . "no") (:tangle .
"no") (:hlines . "no") (:noweb . "no") (:cache . "no") (:session . "none"))
"" nil 110 "(ref:%s)"))
  org-ctrl-c-ctrl-c(nil)
  funcall-interactively(org-ctrl-c-ctrl-c nil)
  call-interactively(org-ctrl-c-ctrl-c nil nil)
  command-execute(org-ctrl-c-ctrl-c)
#+END_EXAMPLE

In ~*haskell*~ buffer:

#+BEGIN_EXAMPLE
GHCi, version 8.0.1: http://www.haskell.org/ghc/  :? for help
Loaded GHCi configuration from /home/stardiviner/.ghci
λ> 2 + 8
"org-babel-haskell-eoe"
10
λ> "org-babel-haskell-eoe"
λ> 2 + 8
"org-babel-haskell-eoe"
10
λ> "org-babel-haskell-eoe"
λ>
#+END_EXAMPLE

In other way: when I start haskell inferior process with command:
[M-x haskell-interactive-bring].

The error is:

#+BEGIN_EXAMPLE
Debugger entered--Lisp error: (error "Buffer *haskell* does not exist or
has no process")
  signal(error ("Buffer *haskell* does not exist or has no process"))
  error("Buffer %s does not exist or has no process" #)
  org-babel-execute:haskell("main :: IO ()\nmain = do\n  putStrLn \"Hello,
World!\"" ((:colname-names) (:rowname-names) (:result-params "replace")
(:result-type . value) (:results . "replace") (:exports . "code") (:session
. "none") (:cache . "no") (:noweb . "no") (:hlines . "no") (:tangle . "no")
(:padlines . "no")))
  org-babel-execute-src-block(nil ("haskell" "main :: IO ()\nmain = do\n
 putStrLn \"Hello, World!\"" ((:colname-names) (:rowname-names)
(:result-params "replace") (:result-type . value) (:results . "replace")
(:exports . "code") (:padlines . "no") (:tangle . "no") (:hlines . "no")
(:noweb . "no") (:cache . "no") (:session . "none")) "" nil 53 "(ref:%s)"))
  org-ctrl-c-ctrl-c(nil)
  funcall-interactively(org-ctrl-c-ctrl-c nil)
  call-interactively(org-ctrl-c-ctrl-c nil nil)
  command-execute(org-ctrl-c-ctrl-c)
#+END_EXAMPLE

 *Problem*:

 =haskell-interactive-bring= started =*haskell*= process buffer does not
work with
 Org-mode Babel ob-haskell's session =*haskell*=.


But I have process buffer ~*haskell*~ running.

This is weird.

I used to report error at here:
https://github.com/haskell/haskell-mode/issues/1429



[stardiviner] GPG key ID: 47C32433
IRC(freeenode): stardiviner Twitter:  @numbchild
Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/


Re: [O] ob-clojure evaluate error when Org-mode buffer has ns clojure code

2017-06-20 Thread numbch...@gmail.com
Hi, Tim,
Excuse my obstinacy, I still think the problem is in `ob-clojure.el`
Because when I:
```org
#+BEGIN_SRC clojure :session
(ns user-kk)
#+END_SRC

#+BEGIN_SRC clojure :session :results output
(print "hi")
(def  "hello")
#+END_SRC

#+RESULTS:
```
The second block does not return result.
when I remove the first block, the second block works.
Why `ob-clojure.el` don't evaluate the first block when I press [C-c C-c]
on the second block, but still respect the first block's Clojure namespace
definition?

If it is the way `ob-clojure.el` works. I think this should have an option
to disable "respecting babel clojure namespace definition". Because I use
"Literate Programming" a lot. I will add some src blcoks with `(ns ...)` as
example in Org-mode file.

[stardiviner] GPG key ID: 47C32433
IRC(freeenode): stardiviner Twitter:  @numbchild
Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/

On Sun, Jun 18, 2017 at 1:48 PM, numbch...@gmail.com 
wrote:

> I see, thanks very much.
>
> [stardiviner] GPG key ID: 47C32433
> IRC(freeenode): stardiviner Twitter:  @numbchild
> Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433
> Blog: http://stardiviner.github.io/
>
> On Sun, Jun 18, 2017 at 9:10 AM, Tim Cross  wrote:
>
>>
>> It looks like you have a combination of both clojure errors and possibly
>> org babel errors. You need to sort out the clojure errors before you can
>> verify there are any problems with org babel clojure support.
>>
>> You mention that
>>
>> > I start CIDER REPL session with `cider-jack-in` without project in
>> > Emacs.
>>
>> but then you say
>>
>> > But I require `incanter` works, I have `incanter` in Leiningen
>> > dependencies.
>>
>> However, if you don't have a project, then you don't have a project.clj
>> file and if you don't have a project.clj file, you don't have a
>> :dependencies block with incanter as a specified dependency, so incanter
>> is not in your classpath and therefore will not be found when you try to
>> require it.
>>
>> Note also that you have incorrect syntax for your require
>> statement. Also to be clear, (ns ... (:require ...)) does not define
>> dependencies. It simply loads the library into the namespace.
>>
>> The correct syntax for your first block is
>>
>> (ns my-kk
>>   (:require [incanter.core :as k]))
>>
>> There is no quote before the lib spec - this is also what the error
>> message is telling you. If you call require as a function, then you do
>> need to use the quote i.e.
>>
>> (require 'incanter.core :as k)
>>
>> You appear to have two main problems here and that is making things
>> 'muddy'. I'm guessing your learning clojure as well as using org babel
>> clojure support. You need to sort out the clojure problems first. Highly
>> recommend you suspend using org mode to do your clojure until your
>> across all the clojure specifics and have a good understanding of the
>> clojure environment. You will need a good understanding of how clojure
>> works to then be able to work out what you need to do to get it to work
>> with org mode. Trying to do both at the same time will just cause
>> confusion.
>>
>> HTH
>>
>> Tim
>>
>> numbch...@gmail.com writes:
>>
>> > I did configure `ob-clojure` with the following settings:
>> >
>> > ```elisp
>> > (require 'ob-clojure)
>> >
>> > ;; use CIDER as the Clojure execution backend
>> > (setq org-babel-clojure-backend 'cider)
>> >
>> > ;; Useful keybindings when using Clojure from Org
>> > ;; (org-defkey org-mode-map (kbd "C-x C-e") 'cider-eval-last-sexp)
>> > ;; (org-defkey org-mode-map (kbd "C-c C-d") 'cider-doc)
>> >
>> > ;; No timeout when executing calls on Cider via nrepl
>> > ;; (setq org-babel-clojure-sync-nrepl-timeout nil)
>> >
>> > ;; let `ob-clojure' babel src blocks allow evaluation.
>> > (add-to-list 'org-babel-default-header-args:clojure
>> >  '(:eval . "yes"))
>> > (add-to-list 'org-babel-default-header-args:clojure
>> >  '(:results . "output"))
>> > ;; (add-to-list 'org-babel-default-header-args:clojure
>> > ;;  '(:show-process . t))
>> > ```
>> >
>> > I start CIDER REPL session with `cider-jack-in` without project in
>> Emacs.
>> >
>> > I changed namespace to `user` in src blocks like this:
>> >
>> > ```org
>> > #+BEGIN_SRC clojure
>> > (ns user
>> >   (:require '[incanter.core :as kk]))
>> > #+END_SRC
>> >
>> > #+RESULTS:
>> >
>> > #+BEGIN_SRC clojure :session :results output
>> > (print "hi")
>> > (def  "hello")
>> > #+END_SRC
>> >
>> > #+RESULTS:
>> > : hi
>> > ```
>> >
>> > Then it works.
>> >
>> > Seems you're right, might my first src block can't work correctly. That
>> > caused second src block evaluation failed.
>> >
>> > But I require `incanter` works, I have `incanter` in Leiningen
>> dependencies.
>> > ```clojure
>> > (require '[incanter.core :as kk])
>> > ```
>> >
>> > 

Re: [O] How to use noweb reference with argument in other languages?

2017-06-20 Thread numbch...@gmail.com
This is correct now. Thanks very much. You're right.

[stardiviner] GPG key ID: 47C32433
IRC(freeenode): stardiviner Twitter:  @numbchild
Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/

On Wed, Jun 21, 2017 at 12:57 AM, Kaushal Modi 
wrote:

> On Mon, Jun 19, 2017 at 7:41 PM numbch...@gmail.com 
> wrote:
>
>> Which Org-mode version are you using? I'm using the latest Org-mode
>> version from source code branch `master`.
>>
>
> I am using the same.
>
>
>> When I use your `:noweb-ref` style like this:
>>
>> ```org
>> * noweb reference with argument
>>
>> #+BEGIN_SRC sh :var str="" :noweb-ref sh-print-something
>> echo "$str"
>> #+END_SRC
>>
>> #+BEGIN_SRC sh :results output :noweb yes
>> echo "hello, "
>> <>
>> #+END_SRC
>>
>> #+RESULTS:
>> ```
>>
>> Emacs reports error:
>>
>> org-babel-ref-resolve: Reference ‘sh-print-something’ not found in this
>> buffer.
>>
>> Org-mode version: Org mode version 9.0.8 (9.0.8-elpaplus @
>> /home/stardiviner/Code/Emacs/org-mode/lisp/)
>>
>
> I stand corrected; for the stuff that you are doing, I believe the code
> block name needs to go to #+NAME instead of to :noweb-ref.
>
> Below works (Hit C-c C-c in the second source block and approve evaluating
> that code block:
>
> * noweb reference with argument
>
> #+NAME: sh-print-something
> #+BEGIN_SRC shell :var str=""
> echo echo $str
> #+END_SRC
>
> #+BEGIN_SRC shell :results output :noweb yes
> echo "hello, "
> <>
> #+END_SRC
>
> #+RESULTS:
> : hello,
> : stardiviner
>
> Changes:
>
> (1) Switched back to #+NAME from :noweb-ref. Looks like if you need to
> pass args, the reference name needs to be a code block name because
> <> inserts the *results* of the code block "foo", not "foo" as
> it is.
> (2) So in the first block, you need to have code that *outputs* "echo
> $str" with $str set to your set arg.
> (3) Use shell instead of sh.
>
> To stress the point of "<> inserts the *results*", even the
> below would work the same way as we care about the results output by the
> first block, not how those results are obtained.
>
> * noweb reference with argument
>
> #+NAME: sh-print-something
> #+BEGIN_SRC python :var str="foo" :results output
> print('echo "' + str + '"')
> #+END_SRC
>
> #+RESULTS: sh-print-something
> : echo "foo"
>
> #+BEGIN_SRC shell :results output :noweb yes
> echo "hello, "
> <>
> #+END_SRC
>
> #+RESULTS:
> : hello,
> : stardiviner
>
> --
>
> Kaushal Modi
>


Re: [O] How do you organize a project and its related sub-tasks

2017-06-20 Thread Giacomo M
Does anybody have thoughts on using a PROJECT todo keyword (in a different
sequence set from the TODO NEXT one)?

On Jun 20, 2017 4:35 AM, "Samuel Wales"  wrote:

> i have long thought it would be useful to dim entries in the agenda
> that are ancestors of entries in the same agenda view.  regardless of
> sort order.  similar to dim blocked.
>
> --
> The Kafka Pandemic: 
>
> The disease DOES progress. MANY people have died from it. And ANYBODY
> can get it at any time.
>
> "You’ve really gotta quit this and get moving, because this is murder
> by neglect." ---
>  being-murdered-by-neglect>.
>
>


Re: [O] problem with babel call with post action

2017-06-20 Thread Nicolas Goaziou
Hello,

Eric S Fraga  writes:

> the following single line command (may be wrapped in email) used to work
> a while back (maybe last year?):
>
>   #+call:
>   
> graph-from-tables(options="rankdir=LR;",nodes=subtasks-table[2:-1],graph=dependency-table[2:-1])
>  :exports
>   results :results file :post plot-graph[:results file :exports
>   results :file dependency-graph.pdf](graph=*this*)

That is a serious babel call.

> This now gives this error message if I evaluate it:
>
>   org-babel-ref-resolve: Reference ‘file dependency-graph.pdf](graph=*this*’ 
> not found in this buffer
>
> I've tried this with an up to date org (on another system) with same
> outcome.  I have not yet tried emacs -Q.

I improved babel call arguments parsing. Could you confirm that your
wizardry is in order now?

Regards,

-- 
Nicolas Goaziou



Re: [O] Moving and resetting attachments

2017-06-20 Thread Florian Lindner
Am 13.06.2017 um 23:41 schrieb Nicolas Goaziou:
> Hello,
> 
> Florian Lindner  writes:
> 
>> What is the use of (and org-attach-allow-inheritance t)? Doesn't it always 
>> returns org-attach-allow-inheritance?
> 
> It return nil if `org-attach-allow-inheritance' is nil, t otherwise. In
> particular, if `org-attach-allow-inheritance' is set to `selective', the
> S-exp returns t.

Ok, so it's basically a conversion to bool.

>> Anyways, I'm not really sure if I understand the doc of org-entry-get 
>> correctly. Does org-entry-get not automatically
>> take inheritance into account, based on the the per-entry or global
>> setting?
> 
> No it doesn't. The caller choose if it should ignore inheritance (the
> default), use it unconditionally (a non-nil INHERIT argument), or let
> the user decide (`selective' INHERIT argument).
>>> ;; FIXME: Need a special case for directory reset (non-nil ARG).
>>
>> Why that? Aren't old and new holding the appropriate dirs in that case
>> and copy over / delete as they should?
> 
> Probably. I was thinking to some special case that may not exist, after
> all. Never mind then.
> 
>> Latest version:
>>
>> (defun flo/org-attach-move ( arg)
>>   "Move current attachements to another directory.
>>   When ARG is non-nil, reset attach directory.  Create directory if
>>   needed."
>>   (interactive "P")
>>   (let ((old (org-attach-dir))
>> (new
>>  (progn
>>(if arg (org-entry-delete nil "ATTACH_DIR")
>>  (let ((dir (read-directory-name
>>  "Attachment directory: "
>>  (org-entry-get nil
>> "ATTACH_DIR"
>> (and org-attach-allow-inheritance 
>> t)
>>(org-entry-put nil "ATTACH_DIR" dir)))
>>(org-attach-dir t
>> (unless (or (string= old new)
>> (not old))
>>   ;; FIXME: Need a special case for directory reset (non-nil ARG).
>>   (when (yes-or-no-p "Copy over attachments from old directory? ")
>> (copy-directory old new t nil t))
>>   (when (yes-or-no-p (concat "Delete " old))
>> (delete-directory old t)
> 
> It looks good.
> 
> Could you provide a patch for that, and an entry in ORG-NEWS? Also, it

Sure, I will do that.

> would be nice to provide test for the feature.

That I'm not so sure of. I try to get myself aquainted to ert, but my elisp 
knowledge, you surely know, is very limited.

Do I understand correctly, that there is no test for any org-attach stuff so 
far? I've found lisp/test-org-attach-annex.el, but that's for git-annex
stuff.

Best,
Florian



Re: [O] How to use noweb reference with argument in other languages?

2017-06-20 Thread Kaushal Modi
On Mon, Jun 19, 2017 at 7:41 PM numbch...@gmail.com 
wrote:

> Which Org-mode version are you using? I'm using the latest Org-mode
> version from source code branch `master`.
>

I am using the same.


> When I use your `:noweb-ref` style like this:
>
> ```org
> * noweb reference with argument
>
> #+BEGIN_SRC sh :var str="" :noweb-ref sh-print-something
> echo "$str"
> #+END_SRC
>
> #+BEGIN_SRC sh :results output :noweb yes
> echo "hello, "
> <>
> #+END_SRC
>
> #+RESULTS:
> ```
>
> Emacs reports error:
>
> org-babel-ref-resolve: Reference ‘sh-print-something’ not found in this
> buffer.
>
> Org-mode version: Org mode version 9.0.8 (9.0.8-elpaplus @
> /home/stardiviner/Code/Emacs/org-mode/lisp/)
>

I stand corrected; for the stuff that you are doing, I believe the code
block name needs to go to #+NAME instead of to :noweb-ref.

Below works (Hit C-c C-c in the second source block and approve evaluating
that code block:

* noweb reference with argument

#+NAME: sh-print-something
#+BEGIN_SRC shell :var str=""
echo echo $str
#+END_SRC

#+BEGIN_SRC shell :results output :noweb yes
echo "hello, "
<>
#+END_SRC

#+RESULTS:
: hello,
: stardiviner

Changes:

(1) Switched back to #+NAME from :noweb-ref. Looks like if you need to pass
args, the reference name needs to be a code block name because
<> inserts the *results* of the code block "foo", not "foo" as
it is.
(2) So in the first block, you need to have code that *outputs* "echo $str"
with $str set to your set arg.
(3) Use shell instead of sh.

To stress the point of "<> inserts the *results*", even the
below would work the same way as we care about the results output by the
first block, not how those results are obtained.

* noweb reference with argument

#+NAME: sh-print-something
#+BEGIN_SRC python :var str="foo" :results output
print('echo "' + str + '"')
#+END_SRC

#+RESULTS: sh-print-something
: echo "foo"

#+BEGIN_SRC shell :results output :noweb yes
echo "hello, "
<>
#+END_SRC

#+RESULTS:
: hello,
: stardiviner

-- 

Kaushal Modi


[O] problem with babel call with post action

2017-06-20 Thread Eric S Fraga
Hello,

the following single line command (may be wrapped in email) used to work
a while back (maybe last year?):

  #+call: 
graph-from-tables(options="rankdir=LR;",nodes=subtasks-table[2:-1],graph=dependency-table[2:-1])
 :exports results :results file :post plot-graph[:results file :exports results 
:file dependency-graph.pdf](graph=*this*)

This now gives this error message if I evaluate it:

  org-babel-ref-resolve: Reference ‘file dependency-graph.pdf](graph=*this*’ 
not found in this buffer

I've tried this with an up to date org (on another system) with same
outcome.  I have not yet tried emacs -Q.

For background, this call is to an elisp code block which converts two
tables describing a task network into dot/graphviz code which is then
fed to a skeleton dot code block.

I can post codes if required but I think the problem is with the actual
call line somehow.  Some change to links along the way?  Any suggestions
most welcome!

Thanks,
eric

-- 
: Eric S Fraga via Emacs 26.0.50, Org release_9.0.7-531-g530113


signature.asc
Description: PGP signature


[O] bug?

2017-06-20 Thread John Kitchin
I think there is a bug with invisible edits.

In org 8.2.10 if I set this:

(setq org-catch-invisible-edits 'smart) ; or show

and have org-toggle-pretty-entities active, then if there is no headline
before point, with the point here:

NH^{3}
  ^

I get outline-back-to-heading: Before first heading if I try to type anything.

I also get this same error in org 9.0.7. It only happens with the 3
wrapped in {}.

That seems like a bug to me.


--
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] Hanging indents in paragraphs just appeared

2017-06-20 Thread Nicolas Goaziou
Hello,

William Denton  writes:

> I was away on vacation last week, and when I got back I refreshed my
> Org source code and recompiled the latest version.  (I'm sure many of
> you do the same.)
>
> Text paragraphs now have hanging indents.  What used to look like this
> (I have both visual-line-mode and org-startup-indented turned on):
>
> This is a paragraph, and I will make the line length
> shorter so that it looks like it would look, except
> normally the line length would be much longer.
>
> Now looks like this:
>
> This is a paragraph, and I will make the line length
> shorter so that it looks like it would look, except
> normally the line length would be much longer.
>
> I think this was introduced earlier today or yesterday in this commit:
>
> 002e2a072cc org-indent: Fix line and wrap prefixes
>
> I can't figure out how to make it look like it used to.  How could
> I do this?

This is a bug, which is now fixed. Thank you.

Regards,

-- 
Nicolas Goaziou