Re: issue tracker?

2020-05-25 Thread Roland Everaert
No, I was not aware of it.  Yet, if I understand the objective of the Emacs
ML and Debbugs, it is for, when you have a crash with emacs or, at least,
an error stack trace when evaluating some lisp code. This is different from
the intent here to define how to switch a thread started as a simple
conversation to a tracked conversation, as a bug, feature request or
suggestion, an the other way around.

Sorry if I was not clear about it or if I misunderstand the purpose of
Debbugs and the Emacs ML.

Regards,

Roland.

On Sat, May 23, 2020 at 3:16 PM Russell Adams 
wrote:

>
> On Sat, May 23, 2020 at 02:57:26PM +0200, Roland Everaert wrote:
> > There must be also some kind of "protocol" to transition between the
> > various discussions, like
> > - from bug to a normal question
> > - normal question to a feature request
> >
>
> You are aware this is how the Emacs bug mailing list works? They run
> Debbugs. Org is part of the Emacs mailing list, and so a tracker is
> already in
> place. Emails with keywords open and close tickets.
>
> https://debbugs.gnu.org/Emacs.html
>
> You can view them online, search, and submit reports directly from Emacs.
>
> Bastien sometimes CC's the Org list with Emacs bugs by number for
> discussion.
>
>
> --
> Russell Adamsrlad...@adamsinfoserv.com
>
> PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/
>
> Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3
>
>


Re: Fwd: Support compilation of Haskell in org mode babel blocks.

2020-05-23 Thread Roland Coeurjoly
Sorry, I was working on the emacs git repo, which seems to be a bit behind
the org mode one.
Please find patch attached.

On Sat, May 23, 2020 at 4:02 PM Bastien  wrote:

> Hi Roland,
>
> Roland Coeurjoly  writes:
>
> > I have done a clean clone and I still don't see a 9.4 section in
> > master.
> > Is it in another branch?
>
> It is here in the master branch:
>
> https://code.orgmode.org/bzg/org-mode/src/master/etc/ORG-NEWS#L13
>
> --
>  Bastien
>
From 4d8660eea35ea13809914271562f0ff73507f967 Mon Sep 17 00:00:00 2001
From: Roland Coeurjoly 
Date: Sat, 23 May 2020 16:46:26 +0200
Subject: [PATCH 1/1] ob-haskell: introduce :compile header argument

  * lisp/ob-haskell (org-babel-haskell-compiler):
  (org-babel-header-args:haskell): new variables.
  (org-babel-haskell-execute):
  (org-babel-haskell-interpret): new functions.
  (org-babel-execute:haskell): use new functions.
---
 etc/ORG-NEWS   |  6 
 lisp/ob-haskell.el | 80 +++---
 2 files changed, 81 insertions(+), 5 deletions(-)

diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS
index f8bddb613..21c5e3d71 100644
--- a/etc/ORG-NEWS
+++ b/etc/ORG-NEWS
@@ -453,6 +453,12 @@ equations producing inconsistent output. New option
 ~org-html-equation-reference-format~ sets the command used in HTML
 export.
 
+*** ob-haskell: add support for compilation with :compile header argument
+
+By default, Haskell blocks are interpreted. By adding ~:compile yes~
+to a Haskell source block, it will be compiled, executed and
+the results will be displayed.
+
 * Version 9.3
 
 ** Incompatible changes
diff --git a/lisp/ob-haskell.el b/lisp/ob-haskell.el
index bea162528..466344ac0 100644
--- a/lisp/ob-haskell.el
+++ b/lisp/ob-haskell.el
@@ -23,12 +23,13 @@
 
 ;;; Commentary:
 
-;; Org-Babel support for evaluating haskell source code.  This one will
-;; be sort of tricky because haskell programs must be compiled before
+;; Org Babel support for evaluating Haskell source code.
+;; Haskell programs must be compiled before
 ;; they can be run, but haskell code can also be run through an
 ;; interactive interpreter.
 ;;
-;; For now lets only allow evaluation using the haskell interpreter.
+;; By default we evaluate using the Haskell interpreter.
+;; To use the compiler, specify :compile yes in the header.
 
 ;;; Requirements:
 
@@ -45,6 +46,7 @@
 (declare-function run-haskell "ext:inf-haskell" ( arg))
 (declare-function inferior-haskell-load-file
 		  "ext:inf-haskell" ( reload))
+(declare-function org-entry-get "org" (pom property  inherit literal-nil))
 
 (defvar org-babel-tangle-lang-exts)
 (add-to-list 'org-babel-tangle-lang-exts '("haskell" . "hs"))
@@ -58,8 +60,66 @@
 
 (defvar haskell-prompt-regexp)
 
-(defun org-babel-execute:haskell (body params)
-  "Execute a block of Haskell code."
+(defcustom org-babel-haskell-compiler "ghc"
+  "Command used to compile a Haskell source code file into an executable.
+May be either a command in the path, like \"ghc\"
+or an absolute path name, like \"/usr/local/bin/ghc\".
+The command can include a parameter, such as \"ghc -v\""
+  :group 'org-babel
+  :package-version '(Org "9.4")
+  :type 'string)
+
+(defconst org-babel-header-args:haskell '(compile . :any)
+  "Haskell-specific header arguments.")
+
+(defun org-babel-haskell-execute (body params)
+  "This function should only be called by `org-babel-execute:haskell'"
+  (let* ((tmp-src-file (org-babel-temp-file
+			"Haskell-src-"
+".hs"))
+ (tmp-bin-file
+  (org-babel-process-file-name
+   (org-babel-temp-file "Haskell-bin-" org-babel-exeext)))
+ (cmdline (cdr (assq :cmdline params)))
+ (cmdline (if cmdline (concat " " cmdline) ""))
+ (flags (cdr (assq :flags params)))
+ (flags (mapconcat #'identity
+		   (if (listp flags)
+   flags
+ (list flags)) " "))
+ (libs (org-babel-read
+	(or (cdr (assq :libs params))
+	(org-entry-get nil "libs" t))
+	nil))
+ (libs (mapconcat #'identity
+		  (if (listp libs) libs (list libs))
+		  " ")))
+(with-temp-file tmp-src-file (insert body))
+(org-babel-eval
+ (format "%s -o %s %s %s %s"
+ org-babel-haskell-compiler
+	 tmp-bin-file
+	 flags
+	 (org-babel-process-file-name tmp-src-file)
+	 libs)
+ "")
+(let ((results
+	   (org-babel-eval
+	(concat tmp-bin-file cmdline) "")))
+  (when results
+(setq results (org-trim (org-remove-indentation results)))
+(org-babel-reassemble-table
+ (org-babel-result-cond (cdr (assq :result-params params))
+	

Re: emacs + org-mode in virtual machine/docker/...

2020-05-23 Thread Roland Everaert
Thank you for the suggestions, but my main problem is to define the network
interface correctly, and, probably, the firewall correctly.

With regard to nomachine, it seems more about accessing remote hosts than
the guest OS of a host OS. So it seems more of an overkill to me, anyway,
can still be useful at time.

On Fri, May 22, 2020 at 11:00 AM briangpowell . 
wrote:

> Would like to "allow the windows host to access the guest using SSH to run
> Emacs Org-Mode" suggestions:
>
> * Install Cygwin on Windows and use Cygwin's SSH tools & run X on Cygwin &
> login to your Linux virtual machine desktop
>
> ** Then can use X11VNC and/or TightVNC client if you run a VNC server of
> some sort on your VirtualBox virtual machine
>
> *  Possibly you could install a NOMACHINE server {
> https://www.nomachine.com} on the Linux virtual machine & a windows
> NOMACHINE client on your Windows host machine & login to your Linux virtual
> machine desktop
>
>
>
>
>
>
>
>
> https://www.nomachine.com/
>
> On Fri, May 22, 2020 at 4:08 AM Roland Everaert 
> wrote:
>
>> I am a user of emacs on virtual machines at work, and the environment
>> works pretty well. I use virtual box as the provided workstation host
>> windows, but the virtual machine host a linux os though. The only thing I
>> didn't manage to do yet, is to allow the windows host to access the guest
>> using SSH. I have read many articles, but none of them seems to work :(
>>
>> Any suggestion for the latter topic, (off this list), is welcomed
>>
>> Regards,
>>
>> Roland.
>>
>> On Fri, May 22, 2020 at 7:27 AM Jens Lechtenboerger <
>> lech...@wi.uni-muenster.de> wrote:
>>
>>> On 2020-05-21, John Kitchin wrote:
>>>
>>> > What do you do with this image? I would be happy to continue this
>>> off-list
>>> > if it seems better.
>>>
>>> I generate self-study HTML presentations with audio as OER based on
>>> reveal.js.  See there for a course about to start in two weeks:
>>> https://oer.gitlab.io/OS/
>>>
>>> Material generated from this:
>>> https://gitlab.com/oer/OS/-/blob/master/.gitlab-ci.yml
>>>
>>> A howto: https://oer.gitlab.io/emacs-reveal-howto
>>>
>>> Best wishes
>>> Jens
>>>
>>>


Re: issue tracker?

2020-05-23 Thread Roland Everaert
I have to admit that I am kind of a state tracking freak, so, your proposal
is welcomed to keep that tendency at bay.

However, I would add a "category" for bugs/issues and feature requests, in
the subject, else, the bot, the readers and the maintainer will have still
to dig deep into threads to know which one was a feature and which one was
actually a bug report.

There must be also some kind of "protocol" to transition between the
various discussions, like
- from bug to a normal question
- normal question to a feature request

We must avoid that to much bugs ends up as simple discussion, without a
proper sanitation of the thread subject. * I am not sure this is clear even
for me :/*


On Fri, May 22, 2020 at 4:54 PM Anthony Carrico 
wrote:

> On 5/22/20 4:17 AM, Roland Everaert wrote:
> > Example of message states:
> > [QUESTION] -> [ANSWER]
> > [BUG] -> ( [CONFIRMED] | [WONTFIX] | [SOLVED] )
> > [CONFIRMED] -> ( [SOLVED] | [PLANNED] )
> > [FEATURE] -> ( [WONTDO] | [PLANNED] | [IMPLEMENTED] )
> > [PLANNED] -> ( [IMPLEMENTED] | [SOLVED] )
>
> I love your enthusiasm. A mailing list has no means to type check
> messages, so I think it does call for a more simplified mechanism,
> especially as a first pass (note that the machine is necessarily
> nondeterministic, since different people can cause it to transition at
> the same time by sending a message).
>
> I'd argue that questions and answers are just normal threads, that don't
> need a state, and issues just need an open state, and a closed state.
> /The details of the of those states are in the threads for anyone who
> cares to look/. So, OPEN/CLOSED and let the threads speak for themselves.
>
> In this way, there are just two kinds of discussions: tracked, and
> untracked. Newbies can quickly pick up the OPEN/CLOSED grammar. People
> can meander threads between the richer states in their discussion,
> hopefully with good subject lines, and 'bots just need to look for one
> pair of keywords, ignoring threads without those keywords. I don't
> actually use emacs for email, but I'm guessing it wouldn't be too hard
> for someone to write an elisp script to scan a mailbox/maildir to gather
> a list of subject lines--is this true?
>
> --
> Anthony Carrico
>
>


Re: Fwd: Support compilation of Haskell in org mode babel blocks.

2020-05-23 Thread Roland Coeurjoly
I have done a clean clone and I still don't see a 9.4 section in master.
Is it in another branch?

On Sat, May 23, 2020 at 7:12 AM Kyle Meyer  wrote:

> Hi Roland,
>
> Roland Coeurjoly writes:
>
> > I added version 9.4 to ORG-NEWS.
> > Please tell me if that's OK or I should instead put it in 9.3.
>
> I don't think you managed to place your patch correctly on top of the
> current master (5adfb533c at the time of writing) because ...
>
> > --- a/etc/ORG-NEWS
> > +++ b/etc/ORG-NEWS
> > @@ -10,6 +10,15 @@ See the end of the file for license conditions.
> >
> >  Please send Org bug reports to mailto:emacs-orgmode@gnu.org.
> >
> > +* Version 9.4
> > +
> > +** Incompatible changes
> > +** New features
> > +** New functions
> > +** Removed functions and variables
> > +** Miscellaneous
> > +*** ob-haskell: introduce :compile header argument
>
> ... ORG-NEWS in master already has a section for 9.4.
>
> You can correct the situation by fetching and then rebasing onto master.
>


Re: Fwd: Support compilation of Haskell in org mode babel blocks.

2020-05-22 Thread Roland Coeurjoly
I added version 9.4 to ORG-NEWS.
Please tell me if that's OK or I should instead put it in 9.3.

On Fri, May 22, 2020 at 5:30 PM Nicolas Goaziou 
wrote:

> Hello,
>
> Roland Coeurjoly  writes:
>
> > The assignment process with the FSF is complete.
>
> Great news!
>
> Unfortunately, now I cannot your patch anymore. Would you mind rebasing
> it on top of master, and add an entry in ORG-NEWS, probably in
> "Miscellaneous" function.
>
> Regards,
>
> --
> Nicolas Goaziou
>
From daa91128ae38ffa47831c840b399144dd07c0b4a Mon Sep 17 00:00:00 2001
From: Roland Coeurjoly 
Date: Sat, 25 Apr 2020 20:35:22 +0200
Subject: [PATCH 1/1] ob-haskell: introduce :compile header argument

* lisp/ob-haskell (org-babel-haskell-compiler):
(org-babel-header-args:haskell): new variables.
(org-babel-haskell-execute):
(org-babel-haskell-interpret): new functions.
(org-babel-execute:haskell): use new functions.
---
 etc/ORG-NEWS   |  9 +
 lisp/org/ob-haskell.el | 78 +++---
 2 files changed, 82 insertions(+), 5 deletions(-)

diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS
index ce08496b20..2ac4315aa4 100644
--- a/etc/ORG-NEWS
+++ b/etc/ORG-NEWS
@@ -10,6 +10,15 @@ See the end of the file for license conditions.
 
 Please send Org bug reports to mailto:emacs-orgmode@gnu.org.
 
+* Version 9.4
+
+** Incompatible changes
+** New features
+** New functions
+** Removed functions and variables
+** Miscellaneous
+*** ob-haskell: introduce :compile header argument
+
 * Version 9.3
 
 ** Incompatible changes
diff --git a/lisp/org/ob-haskell.el b/lisp/org/ob-haskell.el
index e004a3405e..55989adba1 100644
--- a/lisp/org/ob-haskell.el
+++ b/lisp/org/ob-haskell.el
@@ -23,12 +23,13 @@
 
 ;;; Commentary:
 
-;; Org-Babel support for evaluating haskell source code.  This one will
-;; be sort of tricky because haskell programs must be compiled before
+;; Org Babel support for evaluating Haskell source code.
+;; Haskell programs must be compiled before
 ;; they can be run, but haskell code can also be run through an
 ;; interactive interpreter.
 ;;
-;; For now lets only allow evaluation using the haskell interpreter.
+;; By default we evaluate using the Haskell interpreter.
+;; To use the compiler, specify :compile yes in the header.
 
 ;;; Requirements:
 
@@ -47,6 +48,7 @@
 (declare-function run-haskell "ext:inf-haskell" ( arg))
 (declare-function inferior-haskell-load-file
 		  "ext:inf-haskell" ( reload))
+(declare-function org-entry-get "org" (pom property  inherit literal-nil))
 
 (defvar org-babel-tangle-lang-exts)
 (add-to-list 'org-babel-tangle-lang-exts '("haskell" . "hs"))
@@ -60,8 +62,66 @@ org-babel-haskell-eoe
 
 (defvar haskell-prompt-regexp)
 
-(defun org-babel-execute:haskell (body params)
-  "Execute a block of Haskell code."
+(defcustom org-babel-haskell-compiler "ghc"
+  "Command used to compile a Haskell source code file into an executable.
+May be either a command in the path, like \"ghc\"
+or an absolute path name, like \"/usr/local/bin/ghc\".
+The command can include a parameter, such as \"ghc -v\""
+  :group 'org-babel
+  :package-version '(Org "9.4")
+  :type 'string)
+
+(defconst org-babel-header-args:haskell '(compile . :any)
+  "Haskell-specific header arguments.")
+
+(defun org-babel-haskell-execute (body params)
+  "This function should only be called by `org-babel-execute:haskell'"
+  (let* ((tmp-src-file (org-babel-temp-file
+			"Haskell-src-"
+".hs"))
+ (tmp-bin-file
+  (org-babel-process-file-name
+   (org-babel-temp-file "Haskell-bin-" org-babel-exeext)))
+ (cmdline (cdr (assq :cmdline params)))
+ (cmdline (if cmdline (concat " " cmdline) ""))
+ (flags (cdr (assq :flags params)))
+ (flags (mapconcat #'identity
+		   (if (listp flags)
+   flags
+ (list flags)) " "))
+ (libs (org-babel-read
+	(or (cdr (assq :libs params))
+	(org-entry-get nil "libs" t))
+	nil))
+ (libs (mapconcat #'identity
+		  (if (listp libs) libs (list libs))
+		  " ")))
+(with-temp-file tmp-src-file (insert body))
+(org-babel-eval
+ (format "%s -o %s %s %s %s"
+ org-babel-haskell-compiler
+	 tmp-bin-file
+	 flags
+	 (org-babel-process-file-name tmp-src-file)
+	 libs)
+ "")
+(let ((results
+	   (org-babel-eval
+	(concat tmp-bin-file cmdline) "")))
+  (when results
+(setq results (org-trim (org-remove-indentation results)))
+(org-babel-reassemble-table
+ (org-babel-result-cond (cdr (assq :result-params params))
+	   (org-babel-r

Re: issue tracker?

2020-05-22 Thread Roland Everaert
I will surely state the obvious, but the output of this discussion is that
ther4e is a need for everybody, what ever our relationship to org-mode or
emacs, needs a way to filter the various conversation about org-mode on the
various communication channel used by the project.

This mainly imply this ML and if there is a way to pre-format messages we
want to send to the ML it will make filtering easier.

In fact, a good approach would be the same as for todo state.

Example of message states:
[QUESTION] -> [ANSWER]
[BUG] -> ( [CONFIRMED] | [WONTFIX] | [SOLVED] )
[CONFIRMED] -> ( [SOLVED] | [PLANNED] )
[FEATURE] -> ( [WONTDO] | [PLANNED] | [IMPLEMENTED] )
[PLANNED] -> ( [IMPLEMENTED] | [SOLVED] )

Of Course, nothing should prevent moving a message from [BUG] to [QUESTION]
for example.

Hope this will help go on with a solution and an actual implementation, I
suppose mainly documentation on the org website and configuration for all
of us.

Regards,

Roland.


On Thu, May 21, 2020 at 6:32 PM Eric Abrahamsen 
wrote:

> Kévin Le Gouguec  writes:
>
> > Nicolas Goaziou  writes:
> >
> >> - As pointed out, Org has a bug tracker : Emacs' Debbugs. See
> >>   <https://debbugs.gnu.org/Emacs.html>. Org users do not send bugs
> >>   through it much.
> >
> > (In the event that they do, should whoever follows bug-gnu-emacs refer
> > these users to emacs-orgmode?)
>
> Maybe a first step would be changing `org-submit-bug-report' to submit
> the bug to debbugs, not to this mailing list?
>
> I know I'd be happy to help with bug triage, but I don't go wading
> through this mailing list like I used to. I do use debbugs for other
> stuff, though, and it would be easy to add an extra filter that I check
> regularly.
>
> 2¢...
>
>


Re: emacs + org-mode in virtual machine/docker/...

2020-05-22 Thread Roland Everaert
I am a user of emacs on virtual machines at work, and the environment works
pretty well. I use virtual box as the provided workstation host windows,
but the virtual machine host a linux os though. The only thing I didn't
manage to do yet, is to allow the windows host to access the guest using
SSH. I have read many articles, but none of them seems to work :(

Any suggestion for the latter topic, (off this list), is welcomed

Regards,

Roland.

On Fri, May 22, 2020 at 7:27 AM Jens Lechtenboerger <
lech...@wi.uni-muenster.de> wrote:

> On 2020-05-21, John Kitchin wrote:
>
> > What do you do with this image? I would be happy to continue this
> off-list
> > if it seems better.
>
> I generate self-study HTML presentations with audio as OER based on
> reveal.js.  See there for a course about to start in two weeks:
> https://oer.gitlab.io/OS/
>
> Material generated from this:
> https://gitlab.com/oer/OS/-/blob/master/.gitlab-ci.yml
>
> A howto: https://oer.gitlab.io/emacs-reveal-howto
>
> Best wishes
> Jens
>
>


Re: Fwd: Support compilation of Haskell in org mode babel blocks.

2020-05-22 Thread Roland Coeurjoly
The assignment process with the FSF is complete.

Best regards,

Roland

On Tue, May 5, 2020 at 11:31 PM Nicolas Goaziou 
wrote:

> Hello,
>
> Roland Coeurjoly  writes:
>
> > Please see attached patch.
>
> Great!
>
> It seems that this is a patch that needs to be applied on top of the
> previous one. Could you merge them into a single patch and send it
> again?
>
> Please let me know when the FSF registers you.
>
> Regards,
>
> --
> Nicolas Goaziou
>


Re: issue tracker?

2020-05-19 Thread Roland Everaert
Sourcehut seams interesting. Did you know if importing github/gitlab
projects, with issues and merge requests (opened and closed) is supported
at the moment?

I noticed it is in alpha, so I don't expect to see all the features of any
of those forges yet.

Before I forget, Does magit+forge works well with sourcehut, especially the
latter, as the former shouldn't have any problem?


Regards,

Roland.


On Tue, May 19, 2020 at 9:43 PM Eric Abrahamsen 
wrote:

> "James R Miller"  writes:
>
> > So, I definitely agree that using Github / Gitlab does expose you to
> > tracking messes and that is something to shun. I figured a self-hosted
> > Gogs instance (which is already being hosted at
> > https://code.orgmode.org/bzg/org-mode) would fix the "tracking" issue.
> >
> > I think an actual issue tracker has merit to large projects.
>
> I've been going around doing proselytizing for sr.ht (sourcehut, aka
> "Sir Hat"), which is a forge-like site that is very much in line with
> Emacs' principles. No tracking (barely any javascript at all),
> everything can be driven via email -- it's pretty nice. Could be a good
> solution here.
>
> (Not affiliated, though I do give them money.)
>
> Eric
>
>


Re: Fwd: Support compilation of Haskell in org mode babel blocks.

2020-05-05 Thread Roland Coeurjoly
Sorry about that. This attached patch should be good.

On Tue, May 5, 2020 at 11:31 PM Nicolas Goaziou 
wrote:

> Hello,
>
> Roland Coeurjoly  writes:
>
> > Please see attached patch.
>
> Great!
>
> It seems that this is a patch that needs to be applied on top of the
> previous one. Could you merge them into a single patch and send it
> again?
>
> Please let me know when the FSF registers you.
>
> Regards,
>
> --
> Nicolas Goaziou
>
From 35d637fdad355787ce739d9b42997d3ba781a64f Mon Sep 17 00:00:00 2001
From: Roland Coeurjoly 
Date: Sat, 25 Apr 2020 20:35:22 +0200
Subject: [PATCH 1/1] ob-haskell: introduce :compile header argument

* lisp/ob-haskell (org-babel-haskell-compiler):
(org-babel-header-args:haskell): new variables.
(org-babel-haskell-execute):
(org-babel-haskell-interpret): new functions.
(org-babel-execute:haskell): use new functions.
---
 lisp/org/ob-haskell.el | 78 ++
 1 file changed, 73 insertions(+), 5 deletions(-)

diff --git a/lisp/org/ob-haskell.el b/lisp/org/ob-haskell.el
index e004a34..55989ad 100644
--- a/lisp/org/ob-haskell.el
+++ b/lisp/org/ob-haskell.el
@@ -23,12 +23,13 @@
 
 ;;; Commentary:
 
-;; Org-Babel support for evaluating haskell source code.  This one will
-;; be sort of tricky because haskell programs must be compiled before
+;; Org Babel support for evaluating Haskell source code.
+;; Haskell programs must be compiled before
 ;; they can be run, but haskell code can also be run through an
 ;; interactive interpreter.
 ;;
-;; For now lets only allow evaluation using the haskell interpreter.
+;; By default we evaluate using the Haskell interpreter.
+;; To use the compiler, specify :compile yes in the header.
 
 ;;; Requirements:
 
@@ -47,6 +48,7 @@
 (declare-function run-haskell "ext:inf-haskell" ( arg))
 (declare-function inferior-haskell-load-file
 		  "ext:inf-haskell" ( reload))
+(declare-function org-entry-get "org" (pom property  inherit literal-nil))
 
 (defvar org-babel-tangle-lang-exts)
 (add-to-list 'org-babel-tangle-lang-exts '("haskell" . "hs"))
@@ -60,8 +62,66 @@ org-babel-haskell-eoe
 
 (defvar haskell-prompt-regexp)
 
-(defun org-babel-execute:haskell (body params)
-  "Execute a block of Haskell code."
+(defcustom org-babel-haskell-compiler "ghc"
+  "Command used to compile a Haskell source code file into an executable.
+May be either a command in the path, like \"ghc\"
+or an absolute path name, like \"/usr/local/bin/ghc\".
+The command can include a parameter, such as \"ghc -v\""
+  :group 'org-babel
+  :package-version '(Org "9.4")
+  :type 'string)
+
+(defconst org-babel-header-args:haskell '(compile . :any)
+  "Haskell-specific header arguments.")
+
+(defun org-babel-haskell-execute (body params)
+  "This function should only be called by `org-babel-execute:haskell'"
+  (let* ((tmp-src-file (org-babel-temp-file
+			"Haskell-src-"
+".hs"))
+ (tmp-bin-file
+  (org-babel-process-file-name
+   (org-babel-temp-file "Haskell-bin-" org-babel-exeext)))
+ (cmdline (cdr (assq :cmdline params)))
+ (cmdline (if cmdline (concat " " cmdline) ""))
+ (flags (cdr (assq :flags params)))
+ (flags (mapconcat #'identity
+		   (if (listp flags)
+   flags
+ (list flags)) " "))
+ (libs (org-babel-read
+	(or (cdr (assq :libs params))
+	(org-entry-get nil "libs" t))
+	nil))
+ (libs (mapconcat #'identity
+		  (if (listp libs) libs (list libs))
+		  " ")))
+(with-temp-file tmp-src-file (insert body))
+(org-babel-eval
+ (format "%s -o %s %s %s %s"
+ org-babel-haskell-compiler
+	 tmp-bin-file
+	 flags
+	 (org-babel-process-file-name tmp-src-file)
+	 libs)
+ "")
+(let ((results
+	   (org-babel-eval
+	(concat tmp-bin-file cmdline) "")))
+  (when results
+(setq results (org-trim (org-remove-indentation results)))
+(org-babel-reassemble-table
+ (org-babel-result-cond (cdr (assq :result-params params))
+	   (org-babel-read results t)
+	   (let ((tmp-file (org-babel-temp-file "Haskell-")))
+	 (with-temp-file tmp-file (insert results))
+	 (org-babel-import-elisp-from-file tmp-file)))
+ (org-babel-pick-name
+	  (cdr (assq :colname-names params)) (cdr (assq :colnames params)))
+ (org-babel-pick-name
+	  (cdr (assq :rowname-names params)) (cdr (assq :rownames params
+
+(defun org-babel-interpret-haskell (body params)
   (require 'inf-haskell)
   (add-hook 'inferior-haskell-hook
 (lambda ()
@@ -96,6 +156,14 @@ 

Re: Fwd: Support compilation of Haskell in org mode babel blocks.

2020-05-05 Thread Roland Coeurjoly
I have sent the form.
Thank you.

On Mon, May 4, 2020 at 11:52 PM Nicolas Goaziou 
wrote:

> Roland Coeurjoly  writes:
>
> > I have read the page about signing FSF papers, but I am unclear about how
> > to proceed.
> > Could you give some pointers?
>
> Certainly. See
>
>   https://orgmode.org/worg/org-contribute.html#copyright-issues
>
> You basically need to fill a form and send it to ass...@gnu.org.
>
> Thank you for considering signing it.
>


Re: Fwd: Support compilation of Haskell in org mode babel blocks.

2020-05-05 Thread Roland Coeurjoly
Please see attached patch.
Regards.

On Mon, May 4, 2020 at 11:50 PM Nicolas Goaziou 
wrote:

> Roland Coeurjoly  writes:
>
> > I am confused about the last point:
> > Use a let-binding instead of setq.
> >
> > If I use:
> >
> > (let* compile (string= (cdr (assq :compile params)) "yes"))
>
> I meant:
>
>   (let ((compile (string= "yes" (cdr (assq :compile params)
>...)
>
From 2c05ba85bffac4019432fa461c0e4f75cd24a0f6 Mon Sep 17 00:00:00 2001
From: Roland Coeurjoly 
Date: Tue, 5 May 2020 23:09:58 +0200
Subject: [PATCH 1/1] ob-haskell: introduce :compile header argument

* lisp/ob-haskell (org-babel-haskell-compiler):
(org-babel-header-args:haskell): new variables.
(org-babel-haskell-execute):
(org-babel-haskell-interpret): new functions.
(org-babel-execute:haskell): use new functions.
---
 lisp/org/ob-haskell.el | 38 --
 1 file changed, 20 insertions(+), 18 deletions(-)

diff --git a/lisp/org/ob-haskell.el b/lisp/org/ob-haskell.el
index d32a2f7bc0..55989adba1 100644
--- a/lisp/org/ob-haskell.el
+++ b/lisp/org/ob-haskell.el
@@ -23,7 +23,7 @@
 
 ;;; Commentary:
 
-;; Org-Babel support for evaluating Haskell source code.
+;; Org Babel support for evaluating Haskell source code.
 ;; Haskell programs must be compiled before
 ;; they can be run, but haskell code can also be run through an
 ;; interactive interpreter.
@@ -62,19 +62,19 @@ org-babel-haskell-eoe
 
 (defvar haskell-prompt-regexp)
 
-(defcustom org-babel-Haskell-compiler "ghc"
+(defcustom org-babel-haskell-compiler "ghc"
   "Command used to compile a Haskell source code file into an executable.
-May be either a command in the path, like ghc
-or an absolute path name, like /usr/local/bin/ghc
-parameter may be used, like ghc -v"
+May be either a command in the path, like \"ghc\"
+or an absolute path name, like \"/usr/local/bin/ghc\".
+The command can include a parameter, such as \"ghc -v\""
   :group 'org-babel
-  :version "27.0"
+  :package-version '(Org "9.4")
   :type 'string)
 
-(defconst org-babel-header-args:haskell '((compile . :any))
+(defconst org-babel-header-args:haskell '(compile . :any)
   "Haskell-specific header arguments.")
 
-(defun org-babel-Haskell-execute (body params)
+(defun org-babel-haskell-execute (body params)
   "This function should only be called by `org-babel-execute:haskell'"
   (let* ((tmp-src-file (org-babel-temp-file
 			"Haskell-src-"
@@ -85,8 +85,10 @@ org-babel-Haskell-execute
  (cmdline (cdr (assq :cmdline params)))
  (cmdline (if cmdline (concat " " cmdline) ""))
  (flags (cdr (assq :flags params)))
- (flags (mapconcat 'identity
-		   (if (listp flags) flags (list flags)) " "))
+ (flags (mapconcat #'identity
+		   (if (listp flags)
+   flags
+ (list flags)) " "))
  (libs (org-babel-read
 	(or (cdr (assq :libs params))
 	(org-entry-get nil "libs" t))
@@ -97,11 +99,12 @@ org-babel-Haskell-execute
 (with-temp-file tmp-src-file (insert body))
 (org-babel-eval
  (format "%s -o %s %s %s %s"
- org-babel-Haskell-compiler
+ org-babel-haskell-compiler
 	 tmp-bin-file
 	 flags
 	 (org-babel-process-file-name tmp-src-file)
-	 libs) "")
+	 libs)
+ "")
 (let ((results
 	   (org-babel-eval
 	(concat tmp-bin-file cmdline) "")))
@@ -116,10 +119,9 @@ org-babel-Haskell-execute
  (org-babel-pick-name
 	  (cdr (assq :colname-names params)) (cdr (assq :colnames params)))
  (org-babel-pick-name
-	  (cdr (assq :rowname-names params)) (cdr (assq :rownames params)
-  )))
+	  (cdr (assq :rowname-names params)) (cdr (assq :rownames params
 
-(defun org-babel-interpret-Haskell (body params)
+(defun org-babel-interpret-haskell (body params)
   (require 'inf-haskell)
   (add-hook 'inferior-haskell-hook
 (lambda ()
@@ -157,10 +159,10 @@ org-babel-interpret-Haskell
 
 (defun org-babel-execute:haskell (body params)
   "Execute a block of Haskell code."
-  (setq compile (string= (cdr (assq :compile params)) "yes"))
+  (let ((compile (string= "yes" (cdr (assq :compile params)
   (if (not compile)
-  (org-babel-interpret-Haskell body params)
-(org-babel-Haskell-execute body params)))
+  (org-babel-interpret-haskell body params)
+(org-babel-haskell-execute body params
 
 (defun org-babel-haskell-initiate-session ( _session _params)
   "Initiate a haskell session.
-- 
2.20.1



Re: Fwd: Support compilation of Haskell in org mode babel blocks.

2020-05-04 Thread Roland Coeurjoly
I am confused about the last point:
Use a let-binding instead of setq.

If I use:

(let* compile (string= (cdr (assq :compile params)) "yes"))

I get the following error:
ob-haskell.el:158:1: Error: Wrong type argument: listp, compile

If I leave with set:
(setq compile (string= (cdr (assq :compile params)) "yes"))
I get the following warnings:
ob-haskell.el:161:12: Warning: assignment to free variable ‘compile’
ob-haskell.el:161:12: Warning: reference to free variable ‘compile’

Upon searching the web, I find a relevant this relevant post
<https://emacs.stackexchange.com/questions/21245/dealing-with-warning-assignment-to-free-variable-when-certain-libraries-can-b>,
whose conclusion (if I understand it correctly) is that we could live with
those warning raised by setq.

Apart from this issue I am ready to submit a fixed patch.

What do you recommend?

On Mon, May 4, 2020 at 5:26 PM Nicolas Goaziou 
wrote:

> Hello,
>
> Roland Coeurjoly  writes:
>
> > From 091f470a278561a60fac1ee3ee658f6823bc2503 Mon Sep 17 00:00:00 2001
> > From: Roland Coeurjoly 
> > Date: Sat, 25 Apr 2020 20:35:22 +0200
> > Subject: [PATCH] Add Haskell specific header argument compile, to compile
> >  instead of interpret the body of source block
>
> Thank you!
>
> Could you rewrite the commit message so that it is on par with our
> conventions?
>
> It could be something like:
>
>   ob-haskell: introduce :compile header argument
>
>   * lisp/ob-haskell (org-babel-haskell-compiler):
>   (org-babel-header-args:haskell): new variables.
>   (org-babel-haskell-execute):
>   (org-babel-haskell-interpret): new functions.
>   (org-babel-execute:haskell): use new functions.
>
> > -;; Org-Babel support for evaluating haskell source code.  This one will
> > -;; be sort of tricky because haskell programs must be compiled before
> > +;; Org-Babel support for evaluating Haskell source code.
> > +;; Haskell programs must be compiled before
>
> "Org Babel" would be even better, while you're changing this line.
>
> > +(defcustom org-babel-Haskell-compiler "ghc"
>
> No need to capitalize Haskell here.
>
> > +  "Command used to compile a Haskell source code file into an
> executable.
> > +May be either a command in the path, like ghc
>
> like "ghc"
>
> > +or an absolute path name, like /usr/local/bin/ghc
>
> like "/usr/local/bin/ghc".
>
> > +parameter may be used, like ghc -v"
>
> The command can include a parameter, such as "ghc -v".
>
> > +  :group 'org-babel
> > +  :version "27.0"
>
> It should be :package-version '(Org "9.4") instead.
>
> > +  :type 'string)
> > +
> > +(defconst org-babel-header-args:haskell '((compile . :any))
> > +  "Haskell-specific header arguments.")
> > +
> > +(defun org-babel-Haskell-execute (body params)
> > +  "This function should only be called by `org-babel-execute:haskell'"
> > +  (let* ((tmp-src-file (org-babel-temp-file
> > + "Haskell-src-"
> > +".hs"))
>
> Indentation seems a bit off.
>
> > + (tmp-bin-file
> > +  (org-babel-process-file-name
> > +   (org-babel-temp-file "Haskell-bin-" org-babel-exeext)))
> > + (cmdline (cdr (assq :cmdline params)))
> > + (cmdline (if cmdline (concat " " cmdline) ""))
> > + (flags (cdr (assq :flags params)))
> > + (flags (mapconcat 'identity
>
> Nitpick: #'identity
>
> > +(if (listp flags) flags (list flags)) " "))
> > + (libs (org-babel-read
> > + (or (cdr (assq :libs params))
> > + (org-entry-get nil "libs" t))
> > + nil))
>
> Ditto, mind the indentation.
>
> > + (libs (mapconcat #'identity
> > +   (if (listp libs) libs (list libs))
> > +   " ")))
> > +(with-temp-file tmp-src-file (insert body))
> > +(org-babel-eval
> > + (format "%s -o %s %s %s %s"
> > + org-babel-Haskell-compiler
> > +  tmp-bin-file
> > +  flags
> > +  (org-babel-process-file-name tmp-src-file)
> > +  libs) "")
>
> Please move the empty string below.
>
> > +(let ((results
> > +(org-babel-eval
> > + (concat tmp-bin-file cmdline) "")))
> > +  (when results
> > +(setq results (org-trim (org-remove-indentation 

Re: Babel Haskell. Print all results when header has :results output

2020-05-04 Thread Roland Coeurjoly
No, I haven't yet. As it is required to firm them for the other patch, I am
willing to firm them but unsure how to proceed.
Please advise.

On Mon, May 4, 2020, 17:01 Nicolas Goaziou  wrote:

> Hello,
>
> Roland Coeurjoly  writes:
>
> > Right now, when executing the following source block
> >
> > #+begin_src haskell :results output
> > [1..10]
> > "hello" == "hello"
> >#+end_src
> >
> > I get the following output:
> >
> > #+RESULTS:
> >: True
> >
> > Whereas (for me) the desired result would be
> >
> > #+RESULTS:
> >: [1,2,3,4,5,6,7,8,9,10]
> >: True
> >
> > I created the attached patch that achieves the desired result.
>
> I added a proper commit message and applied your patch. Thank you!
>
> Have you signed FSF papers? If you haven't, you need to add TINYCHANGE
> cookie in your commit messages (and consider signing them, of course!).
>
> Regards,
>
> --
> Nicolas Goaziou
>


Re: Fwd: Support compilation of Haskell in org mode babel blocks.

2020-05-04 Thread Roland Coeurjoly
I have read the page about signing FSF papers, but I am unclear about how
to proceed.
Could you give some pointers?
Thank you.

On Mon, May 4, 2020 at 5:29 PM Nicolas Goaziou 
wrote:

> Roland Coeurjoly  writes:
>
> >  lisp/org/ob-haskell.el | 76 +++---
> >  1 file changed, 71 insertions(+), 5 deletions(-)
>
> I forgot to say a change of this size requires you to sign FSF papers.
> Please consider doing so if that's not already the case.
>
> Thank you.
>


Babel Haskell. Print all results when header has :results output

2020-04-28 Thread Roland Coeurjoly
Right now, when executing the following source block

#+begin_src haskell :results output
[1..10]
"hello" == "hello"
   #+end_src

I get the following output:

#+RESULTS:
   : True

Whereas (for me) the desired result would be

#+RESULTS:
   : [1,2,3,4,5,6,7,8,9,10]
   : True

I created the attached patch that achieves the desired result.

Please notice that the default behaviour (without :results output) remains
unchanged.
From 0e7d2ac22a028507eaf5ecc85623b62572ee3de8 Mon Sep 17 00:00:00 2001
From: Roland Coeurjoly 
Date: Tue, 28 Apr 2020 18:06:50 +0200
Subject: [PATCH] Print all results

---
 lisp/org/ob-haskell.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org/ob-haskell.el b/lisp/org/ob-haskell.el
index d32a2f7bc0..e5ef0999e0 100644
--- a/lisp/org/ob-haskell.el
+++ b/lisp/org/ob-haskell.el
@@ -145,7 +145,7 @@ org-babel-interpret-Haskell
 (org-babel-reassemble-table
  (let ((result
 (pcase result-type
-  (`output (mapconcat #'identity (reverse (cdr results)) "\n"))
+  (`output (mapconcat #'identity (reverse results) "\n"))
   (`value (car results)
(org-babel-result-cond (cdr (assq :result-params params))
 	 result (org-babel-script-escape result)))
-- 
2.20.1



Fwd: Support compilation of Haskell in org mode babel blocks.

2020-04-28 Thread Roland Coeurjoly
-- Forwarded message -
From: Roland Coeurjoly 
Date: Sat, Apr 25, 2020 at 9:04 PM
Subject: Support compilation of Haskell in org mode babel blocks.
To: 


Haskell code can be both compiled (for example with ghc), or interpreted
(with ghci).

Until now, org babel had only support for interpretation.

Haskell is weird in that some code for the interpreter cannot be compiled
and viceversa.
For example, in ghci (the interpreter) you are required to use let to
declare functions
<https://stackoverflow.com/questions/28927716/org-babel-for-haskell-not-works-of-eval-haskell-block/40920873>
.

In this patch I add support for compilation with the header argument
:compile yes.
The function to compile haskell is almost a copy paste of the C funcion in
ob-C.el.

By default I retain the original behavior, i.e. interpreting the block.

I have tested this patch in emacs-27.0.91.


It is my first patch to GNU Emacs and I am a newbie with both elisp and
haskell.
From 091f470a278561a60fac1ee3ee658f6823bc2503 Mon Sep 17 00:00:00 2001
From: Roland Coeurjoly 
Date: Sat, 25 Apr 2020 20:35:22 +0200
Subject: [PATCH] Add Haskell specific header argument compile, to compile
 instead of interpret the body of source block

---
 lisp/org/ob-haskell.el | 76 +++---
 1 file changed, 71 insertions(+), 5 deletions(-)

diff --git a/lisp/org/ob-haskell.el b/lisp/org/ob-haskell.el
index e004a3405e..d32a2f7bc0 100644
--- a/lisp/org/ob-haskell.el
+++ b/lisp/org/ob-haskell.el
@@ -23,12 +23,13 @@
 
 ;;; Commentary:
 
-;; Org-Babel support for evaluating haskell source code.  This one will
-;; be sort of tricky because haskell programs must be compiled before
+;; Org-Babel support for evaluating Haskell source code.
+;; Haskell programs must be compiled before
 ;; they can be run, but haskell code can also be run through an
 ;; interactive interpreter.
 ;;
-;; For now lets only allow evaluation using the haskell interpreter.
+;; By default we evaluate using the Haskell interpreter.
+;; To use the compiler, specify :compile yes in the header.
 
 ;;; Requirements:
 
@@ -47,6 +48,7 @@
 (declare-function run-haskell "ext:inf-haskell" ( arg))
 (declare-function inferior-haskell-load-file
 		  "ext:inf-haskell" ( reload))
+(declare-function org-entry-get "org" (pom property  inherit literal-nil))
 
 (defvar org-babel-tangle-lang-exts)
 (add-to-list 'org-babel-tangle-lang-exts '("haskell" . "hs"))
@@ -60,8 +62,64 @@ org-babel-haskell-eoe
 
 (defvar haskell-prompt-regexp)
 
-(defun org-babel-execute:haskell (body params)
-  "Execute a block of Haskell code."
+(defcustom org-babel-Haskell-compiler "ghc"
+  "Command used to compile a Haskell source code file into an executable.
+May be either a command in the path, like ghc
+or an absolute path name, like /usr/local/bin/ghc
+parameter may be used, like ghc -v"
+  :group 'org-babel
+  :version "27.0"
+  :type 'string)
+
+(defconst org-babel-header-args:haskell '((compile . :any))
+  "Haskell-specific header arguments.")
+
+(defun org-babel-Haskell-execute (body params)
+  "This function should only be called by `org-babel-execute:haskell'"
+  (let* ((tmp-src-file (org-babel-temp-file
+			"Haskell-src-"
+".hs"))
+ (tmp-bin-file
+  (org-babel-process-file-name
+   (org-babel-temp-file "Haskell-bin-" org-babel-exeext)))
+ (cmdline (cdr (assq :cmdline params)))
+ (cmdline (if cmdline (concat " " cmdline) ""))
+ (flags (cdr (assq :flags params)))
+ (flags (mapconcat 'identity
+		   (if (listp flags) flags (list flags)) " "))
+ (libs (org-babel-read
+	(or (cdr (assq :libs params))
+	(org-entry-get nil "libs" t))
+	nil))
+ (libs (mapconcat #'identity
+		  (if (listp libs) libs (list libs))
+		  " ")))
+(with-temp-file tmp-src-file (insert body))
+(org-babel-eval
+ (format "%s -o %s %s %s %s"
+ org-babel-Haskell-compiler
+	 tmp-bin-file
+	 flags
+	 (org-babel-process-file-name tmp-src-file)
+	 libs) "")
+(let ((results
+	   (org-babel-eval
+	(concat tmp-bin-file cmdline) "")))
+  (when results
+(setq results (org-trim (org-remove-indentation results)))
+(org-babel-reassemble-table
+ (org-babel-result-cond (cdr (assq :result-params params))
+	   (org-babel-read results t)
+	   (let ((tmp-file (org-babel-temp-file "Haskell-")))
+	 (with-temp-file tmp-file (insert results))
+	 (org-babel-import-elisp-from-file tmp-file)))
+ (org-babel-pick-name
+	  (cdr (assq :colname-names params)) (cdr (assq :colnames params)))
+ (org-babel-pick-name
+	  (cdr (assq :rowname-names params)) (cdr (assq :rownam

Re: [PATCH] Skip entries with no ID when updating ID locations

2020-02-21 Thread Roland Everaert
A note related to duplicate IDs, the messages only shows one of the
duplicate, so it is not easy to know which one to change.

This have implication when creating links to headline using their IDs.

And does the current algorithm for finding duplicates check their
reference through the "org db"? 

Regards,

Roland.

Bastien writes:

> Hi Eric,
>
> Eric Abrahamsen  writes:
>
>> Would the attached patch be acceptable? It's no big deal, just skips
>> entries with no ID property when updating all ID locations. I couldn't
>> figure out why I had several thousand "Duplicate ID "nil"" warnings in
>> the *Messages* buffer after updating ID locations.
>
> A welcome enhancement - applied, thanks!


-- 
Luke, use the FOSS

Sent from Emacs



Error running timer ‘org-alert-check’: (args-out-of-range "" 0)

2020-01-10 Thread Roland Everaert
Hello,

First, best wishes.

Currently emacs is hanging during startup.

In a terminal, running the following command unblock the init phase and
emacs finish loading up properly.

kill -USR2 

In the *Messages* buffer, I see the message shown in the subject line of this
mail. Removing my org-alert configuration avoid emacs from hanging, but
I have this activated since a year or two and it is the first time I
encounter the problem.

Emacs version: GNU Emacs 26.3 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 
3.24.13) of 2019-12-10
Org-Mode version: Org mode version 9.3.1 (9.3.1-elpaplus 
@/home/roland/.emacs.d/elpa/org-plus-contrib-20191230/)
Configuration repository: https://github.com/montaropdf/reve-emacs-config

Any Idea wht could lead to that problem or how to go further in my 
investigation?


Regards,

Roland.
-- 
Luke, use the FOSS

Sent from Emacs



Re: [Idea] Org Collections

2019-12-23 Thread Roland Everaert


Gustav Wikström writes:

> Hi!
>
>> -Original Message-
>> From: Emacs-orgmode  On Behalf
>> Of Roland Everaert
>> Sent: den 16 december 2019 12:26
>> To: emacs-orgmode@gnu.org
>> Subject: Re: [Idea] Org Collections
>> 
>> +1 for this idea.
>> 
>> You speak about one document used by multiple collections, how do you
>> plan to manage that from a file system point of view?
>
> The idea was to let the user define the scope of each collection herself. 
> Similar to how an agenda is defined today (Maybe in the same way even?). Most 
> simple configuration would be to let a collection be one folder. But in the 
> end it would be up to the imagination of and usefulness for the user. Having 
> one document in multiple collections wouldn't be any issue because the 
> collections are only pointing to locations of files in the filesystem. And if 
> creating overlap between collections sounds dumb then it's a simple choice by 
> the user to not do it!

Have you had a look at org-brain. I don't use is much, but there are
some overlapping functionnality to merge, maybe.

>
>> How will be organized a collection, still from the FS point of view?
>
> Maybe the comments above answer that as well?
>
>> As some are delving into the abyss of sementic, I propose aspects
>> instead of collections or contexts. Ultimately we are trying to manage
>> various aspects of our life, by splitting those aspects into files or
>> diretories and what not. So, if it is the intent of your idea, the term
>> aspect seems more appropriate than collection or context IMHO.
>
> Many words could work. Context, Project, Group, Aspect, Areas, etc. I first 
> thought of the name "project" to match the Projectile package. But I think 
> collection is a better concept here. It lets the user think not of how it 
> should be used but rather of what it consists. Which is a collection of files 
> (and settings). That collection can ofc. be used for project, as aspects, or 
> be seen as contexts or areas. So in my mind collection is the broader, more 
> applicable term. It has less subjective meaning attached to how this 
> functionality could be used. It IS a collection but can be USED as aspects, 
> for projects, etc. What do you say? 

I think I can live with it ;)

>
>> 
>> Did you think about the specific UI of aspects management?
>> Proposal of UI I particularly like:
>> - Mu4E
>> - forge/magit
>
> Not really.. Except I agree with you on magit. The other I haven't used.

Mu4E is a major mode for managing e-mails using the mu index. it
provides a main view with bookmarks and entries to perform searches and
composing message, among othe thing, but what I find more useful are the
header view, which displays a multi-columns list of e-mails with
associated meta-data and a message view allowing to view the content of
an e-mail. The header view allows for bulk actions while the message
view act, obiously, on the current message and permit replying and
transfering the current e-mail.

>
>> 
>> How to keep track of all those aspects?
>
> My first thought was to define them in a simple list.
>
>> 
>> I will surely have more to say, but, as of know I am at work.
>> 
>> Regards,
>> 
>> Roland.
>
> Thanks for your comments!
>
> Regards
> Gustav


-- 
Luke, use the FOSS

Sent from Emacs



Re: Help me secure some free time for org-mode in 2020

2019-12-17 Thread Roland Everaert
Hello Bastien,

Nice to see you are still alive ;)

Sad to read that you plan to stepdown, but, happy to finally have a way
to support your work on a regular basis.

I hope you will continue to be part of this community even as an humble
user ;).

And I hope, everything will be better for you in the coming years.

I am really grateful to you, Nicolas, Carsten and all the maintainers of
this amazing tool, which, with emacs preserve my sanity in this crazy
life that is the IT.

Regards,

Roland.
Bastien writes:

> Dear all,
>
> I have been involved in Org-mode development when Carsten offered me
> to take over maintainance, back in 2010.
>
> I still feel grateful for the opportunity he gave me: his dedication
> to make Org a useful tool for Emacs users was examplary and I did my
> very best to give to the community as much as I received from it.
>
> Over the last years, Nicolas de facto took over maintainance and it
> was a real relief for me: I was struggling with my finances and this
> was eating up all my free time.  Nicolas steadily played the role I
> played for years, reassuring users that someone was on board, that
> bugs would be fixed and new features discussed on this mailing list.
>
> My plan for 2020 is to ensure a smooth transition while I step down
> as the maintainer---at least by the end of 2020, probably by July.
>
> As my timetable (and family life) has become more stable, I am more
> confident I can dedicate some of my free time again to maintaining
> until the transition is done: also because there are many ideas I
> would like to try, discuss and implement---Org possibilities still
> feel endless!
>
> If you want to help me secure some free time, please go ahead!
>
> I recommend using https://liberapay.com/bzg
>
> If you cannot, there are also these services:
>
> https://github.com/sponsors/bzg
> https://www.paypal.me/bzg
>
> You can also help by sharing the messages I sent:
> https://mastodon.etalab.gouv.fr/@bzg/103318485790068452
> https://twitter.com/bzg2/status/1206617096462983169
>
> I would love stepping down while releasing Org 10 and making this
> one of the best release ever.  Thanks!


--
Luke, use the FOSS

Sent from Emacs



Re: [Idea] Org Collections

2019-12-16 Thread Roland Everaert
I do agree that "aspect" is a very abstract term and all depends on the
scope of this proposal, I suppose.

Reading the proposal again, it seems that my proposal could apply, as
the intent seems to define a per "aspect" configuration. On the other
end as aspects are quite abstract, an aspect can be part of another one
and aspects can have different "implementations" (collections,
documents, headlines and TODOs???, ...).

Tim Cross writes:

> I would have to say the hardest thing I ever have to do as a developer
> is naming things. It is hard enough to do within a context of a single
> group, even harder when speaking about something with a global user base
> (language, social/cultural differences etc). Despite this, it is so very
> important as it defines expectations, which will in turn determine
> satisfaction.
>
> As an example, 'aspects' for me is more like a different view into a
> 'thing' while collections are more like distinct, separate collections of
> 'things'. To some extent, aspects feels like a 'virtual collection'
> where collection is more like a concrete separation. I can see pros
> and cons with both.
>
> Roland Everaert  writes:
>
>> +1 for this idea.
>>
>> You speak about one document used by multiple collections, how do you
>> plan to manage that from a file system point of view?
>>
>> How will be organized a collection, still from the FS point of view?
>>
>> As some are delving into the abyss of sementic, I propose aspects
>> instead of collections or contexts. Ultimately we are trying to manage
>> various aspects of our life, by splitting those aspects into files or
>> diretories and what not. So, if it is the intent of your idea, the term
>> aspect seems more appropriate than collection or context IMHO.
>>
>> Did you think about the specific UI of aspects management?
>> Proposal of UI I particularly like:
>> - Mu4E
>> - forge/magit
>>
>> How to keep track of all those aspects?
>>
>> I will surely have more to say, but, as of know I am at work.
>>
>> Regards,
>>
>> Roland.
>>
>> Gustav Wikström writes:
>>
>>> Hi list and all honored readers!
>>>
>>> I have an idea. One that I've mentioned before in side notes. And I want to 
>>> emphasize that this still only is an idea. But I want to present this idea 
>>> to you. As a way to gather feedback and get input. Maybe the idea is 
>>> stupid!? Maybe you think it's already solved? Or maybe it's not, and lots 
>>> of you resonate with it as well. In any case, please let me know what you 
>>> think on the piece below!
>>>
>>> 
>>>
>>>  ORG MODE: COLLECTIONS/PROJECTS
>>>
>>> Gustav Wikström
>>> 
>>>
>>>
>>> Table of Contents
>>> _
>>>
>>> 1. Motivation
>>> 2. Idea
>>> 3. Benefit
>>> .. 1. For the user
>>> .. 2. For the developer
>>> 4. Example use cases
>>> .. 1. Separate actions from reference
>>> .. 2. Work / Personal separation
>>> .. 3. Separated book library
>>> .. 4. More?
>>> 5. Risks and challenges
>>> .. 1. Which configuration to use?
>>> .. 2. Should project config allow local variables?
>>> . 1. How to initialize the local variables?
>>> .. 3. Conflict with other customizations
>>> .. 4. Files that belong to multiple collections
>>> .. 5. Dynamic lists of files and folders for a collection?
>>> 6. Alternatives
>>> 7. References
>>>
>>>
>>> 1 Motivation
>>> 
>>>
>>>   Org mode is more than a major mode for emacs buffers. That has been
>>>   clear for quite some time. Org mode can operate on sets of files.
>>>   Consolidate TODO's and calendar information into custom views. Publish
>>>   sets of files. To do this Org mode assumes that the user has a
>>>   configuration for each of those features. Each feature is responsible
>>>   for maintaining its own context. And almost all of that context has
>>>   to be set globally. So even though Org mode has commands and features
>>>   that operate on sets of files and folders it has not yet developed
>>>   that in a congruent, extensible and composable way. Thus, for the
>>>   sanity of our users and developers I think it's time to ... introduce
>>>   another concept! One that hopefully

Re: [Idea] Org Collections

2019-12-16 Thread Roland Everaert
+1 for this idea.

You speak about one document used by multiple collections, how do you
plan to manage that from a file system point of view?

How will be organized a collection, still from the FS point of view?

As some are delving into the abyss of sementic, I propose aspects
instead of collections or contexts. Ultimately we are trying to manage
various aspects of our life, by splitting those aspects into files or
diretories and what not. So, if it is the intent of your idea, the term
aspect seems more appropriate than collection or context IMHO.

Did you think about the specific UI of aspects management?
Proposal of UI I particularly like:
- Mu4E
- forge/magit

How to keep track of all those aspects?

I will surely have more to say, but, as of know I am at work.

Regards,

Roland.

Gustav Wikström writes:

> Hi list and all honored readers!
>
> I have an idea. One that I've mentioned before in side notes. And I want to 
> emphasize that this still only is an idea. But I want to present this idea to 
> you. As a way to gather feedback and get input. Maybe the idea is stupid!? 
> Maybe you think it's already solved? Or maybe it's not, and lots of you 
> resonate with it as well. In any case, please let me know what you think on 
> the piece below!
>
> 
>
>  ORG MODE: COLLECTIONS/PROJECTS
>
> Gustav Wikström
> 
>
>
> Table of Contents
> _
>
> 1. Motivation
> 2. Idea
> 3. Benefit
> .. 1. For the user
> .. 2. For the developer
> 4. Example use cases
> .. 1. Separate actions from reference
> .. 2. Work / Personal separation
> .. 3. Separated book library
> .. 4. More?
> 5. Risks and challenges
> .. 1. Which configuration to use?
> .. 2. Should project config allow local variables?
> . 1. How to initialize the local variables?
> .. 3. Conflict with other customizations
> .. 4. Files that belong to multiple collections
> .. 5. Dynamic lists of files and folders for a collection?
> 6. Alternatives
> 7. References
>
>
> 1 Motivation
> 
>
>   Org mode is more than a major mode for emacs buffers. That has been
>   clear for quite some time. Org mode can operate on sets of files.
>   Consolidate TODO's and calendar information into custom views. Publish
>   sets of files. To do this Org mode assumes that the user has a
>   configuration for each of those features. Each feature is responsible
>   for maintaining its own context. And almost all of that context has
>   to be set globally. So even though Org mode has commands and features
>   that operate on sets of files and folders it has not yet developed
>   that in a congruent, extensible and composable way. Thus, for the
>   sanity of our users and developers I think it's time to ... introduce
>   another concept! One that hopefully can simplify things both for users
>   and developers.
>
>
> 2 Idea
> ==
>
>   I propose to introduce `Collection' as a concept in the realm of Org
>   mode. [1]
>
>   An Org mode collection is defined as the combination of:
>   1. A short name and description
>   2. A collection of Org mode documents
>   3. A collection of files and/or folders called attachments and
>  attachment-locations for the project
>   4. A collection of configurations for the given project
>
>   Globally available collections are defined in a list,
>   `org-collections'. Org mode should include a safe parameter that can
>   be set as a folder customization to the local active project,
>   `org-collections-active'. The default should be to the first entry in
>   `org-collections' unless customized. This local parameter would be
>   used to instruct Emacs and Org mode on which collection is active.
>   Only one collection at a time can be active.
>
>   Org agenda should use `org-collections-active' as default for the
>   collection of Org mode documents to operate on. Org agenda should get
>   a new command to switch between active projects.
>
>   I'm thinking that there could be a special Emacs major mode for the
>   collection as well, called "Org collections mode". Not sure exactly
>   what to display and how to represent the project there... But
>   certainly some kind of list of included documents and attachments.
>   When in that mode there should possibly be single key
>   keyboard-shortcuts to the most important features that operate on the
>   collection. And switch between them.
>
>
> 3 Benefit
> =
>
> 3.1 For the user
> 
>
>   A user would gain mainly two benefits as I can see right now:
>   1. The ability to clearly define (multiple

Re: Anyone use 3rd party search tools w/org-mode?

2019-11-13 Thread Roland Everaert
It is not a question of searching and replacing strings in one file, but
searching for a document or a set of documents among tenth of document or
even more, possibly in various format.

Roland.
briangpowell . writes:

> Emacs (shortened name from "Editor Macros") has the fastest Regular
> Expression engine in the world--when you compare the engines that are
> programmed to find and display character strings AS YOU TYPE THEM.
>
> So, just hoping you keep that in mind: As far as editing documents and
> searching documents and in some cases replacing strings, there is nothing
> faster than Emacs and its native regular expression engine, which is built
> for editing tasks--editing tasks that are especially related to and
> programmed for searching strings and/or regular expressions as you type
> them in
>
> In many other ways, of course other engines are faster; but, not for
> editing and searching and replacing tasks
>
> And even when you talk about editing multi-gigabyte and even multi-terabyte
> files--suggest you look into and try out vlf-mode (i.e. "Very Large File
> Mode") for that, just for the fun and excitement of it, if for nothing else.
>
> So, again, GNU Emacs is by far the world's most powerful editor, and it has
> been for many, many years--there is no need for 3rd party tools, maybe
> there's a need to investigate the "engines under the hood" and why they
> work the way they do.
>
> On Tue, Nov 12, 2019 at 8:04 AM Russell Adams 
> wrote:
>
>> To further explain my setup, I have three libraries of files Personal,
>> Technical
>> and Business. Personal is all personal data including Org files, Technical
>> is
>> all whitepapers and vendor documentation, and Business is Org projects and
>> other
>> matters. Recoll is used to search all of them.
>>
>> In my shell profile I have a few functions to access each library, and to
>> file
>> away new documents (ie: I downloaded a whitepaper, and just want to slap
>> it into
>> a unique directory in the library).
>>
>> #+BEGIN_EXAMPLE
>>   # For recoll and library
>>   func _FileRecoll()  { DEST="$HOME/Library/$1/$(date +%Y/%m/%d)" ; mkdir
>> -p $DEST ; mv -i "$2" $DEST ; }
>>   func FileTech() { _FileRecoll "Technical" "$1" ; }
>>   func FilePersonal() { _FileRecoll "Personal"  "$1" ; }
>>   func FileBiz()  { _FileRecoll "Business"  "$1" ; }
>>
>>   func recollt() { RECOLL_CONFDIR=~/Library/.recoll-Technical
>> ~/scripts/recolltui.sh $@ ; }
>>   func recollp() { RECOLL_CONFDIR=~/Library/.recoll-Personal
>> ~/scripts/recolltui.sh $@ ; }
>>   func recollb() { RECOLL_CONFDIR=~/Library/.recoll-Business
>> ~/scripts/recolltui.sh $@ ; }
>> #+END_EXAMPLE
>>
>> I have a daily cronjob to index those directories:
>>
>> #+BEGIN_EXAMPLE
>>   # Recoll
>>   00 2  * * * /usr/bin/recollindex -c ${HOME}/Library/.recoll-Personal/
>> >> "${HOME}/Library/.recoll-Personal/recollindex.log" 2>&1
>>   00 3  * * * /usr/bin/recollindex -c ${HOME}/Library/.recoll-Technical/
>> >> "${HOME}/Library/.recoll-Technical/recollindex.log" 2>&1
>>   00 4  * * * /usr/bin/recollindex -c ${HOME}/Library/.recoll-Business/
>> >> "${HOME}/Library/.recoll-Business/recollindex.log" 2>&1
>> #+END_EXAMPLE
>>
>> Then I have a simple TUI shell script which wraps dialog around recoll's
>> CLI. This puts the filename in my clip board for command line pasting, and
>> opens
>> PDFs in Firefox.
>>
>> #+BEGIN_EXAMPLE
>>   #!/bin/sh
>>   # ~/scripts/recolltui.sh
>>
>>   # requires recollq optional cli binary to be present from recoll package
>>   # uses base64, xsel, and dialog
>>
>>   DB=$(mktemp)
>>   MENU=$(mktemp)
>>   trap 'rm -f -- "${DB}" "${MENU}"' INT TERM HUP EXIT
>>
>>   # Make sure to customize RECOLL_CONFDIR (ie:
>> ~/Library/.recoll-Technical) if needed
>>
>>   # query recoll, save the base64 output to $DB as 3 space separated
>> columns: row #, title, url
>>   recollq -e -F "title url" $@ 2>/dev/null | nl > $DB
>>
>>   # copy header into menu
>>   head -n 2 $DB | while read num rest ; do
>>   echo "= \"$rest\"" >> $MENU
>>   done
>>
>>   # Convert results to dialog menu using row # and title + filename as
>> list item
>>   # skip first two lines of results, they are not base64
>>   tail -n +3 $DB | while read num title url ; do

Re: Anyone use 3rd party search tools w/org-mode?

2019-11-12 Thread Roland Everaert
I had a quick look at the recoll and I notice that there is a python API
to update/create index.

Maybe something could be developped using the python package recently
released by Karl Voit, to feed a recoll index with org data.

Roland.

Roland Everaert writes:

> Good to know, I will have a look at it when time permit.
> Russell Adams writes:
>
>> Recoll is xaipan based.
>>
>> On Fri, Nov 08, 2019 at 08:28:22AM -0500, John Kitchin wrote:
>>> It could be dead. At the time I worked with it, the project had already
>>> switched to a library form that was not directly useful to me, and the
>>> original swish project was not being further developed. These days, I would
>>> look to something like xapian or postgresql I think (assuming sqlite is not
>>> sufficient for your needs).
>>>
>>> John
>>>
>>> ---
>>> 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
>>>
>>>
>>>
>>> On Fri, Nov 8, 2019 at 8:13 AM Roland Everaert  wrote:
>>>
>>> > Is it me or Swish-e is dead?
>>> >
>>> > The url www.swish-e.org, leads to a whisky e-shop oO.
>>> > Eric Abrahamsen writes:
>>> >
>>> > > John Kitchin  writes:
>>> > >
>>> > >> The way I got Swish to index org files was to create a script that
>>> > >> generated an xml file
>>> > >> (
>>> > https://kitchingroup.cheme.cmu.edu/blog/2015/07/06/Indexing-headlines-in-org-files-with-swish-e-with-laser-sharp-results/
>>> > )
>>> > >> or html
>>> > >> (
>>> > http://kitchingroup.cheme.cmu.edu/blog/2015/07/03/Using-swish-e-to-index-org-files-as-html/
>>> > )
>>> > >> that it could index. This is probably a general strategy for these
>>> > tools.
>>> > >
>>> > > That seems unfortunately roundabout, but I don't know enough about the
>>> > > various FTS engines to know if they could be taught to read Org files
>>> > directly...
>>> >
>>> >
>>> > --
>>> > Luke, use the FOSS
>>> >
>>> > Sent from Emacs
>>> >
>>> >
>>
>>
>> --
>> Russell Adamsrlad...@adamsinfoserv.com
>>
>> PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/
>>
>> Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3


-- 
Luke, use the FOSS

Sent from Emacs



Re: Anyone use 3rd party search tools w/org-mode?

2019-11-08 Thread Roland Everaert
Good to know, I will have a look at it when time permit.
Russell Adams writes:

> Recoll is xaipan based.
>
> On Fri, Nov 08, 2019 at 08:28:22AM -0500, John Kitchin wrote:
>> It could be dead. At the time I worked with it, the project had already
>> switched to a library form that was not directly useful to me, and the
>> original swish project was not being further developed. These days, I would
>> look to something like xapian or postgresql I think (assuming sqlite is not
>> sufficient for your needs).
>>
>> John
>>
>> ---
>> 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
>>
>>
>>
>> On Fri, Nov 8, 2019 at 8:13 AM Roland Everaert  wrote:
>>
>> > Is it me or Swish-e is dead?
>> >
>> > The url www.swish-e.org, leads to a whisky e-shop oO.
>> > Eric Abrahamsen writes:
>> >
>> > > John Kitchin  writes:
>> > >
>> > >> The way I got Swish to index org files was to create a script that
>> > >> generated an xml file
>> > >> (
>> > https://kitchingroup.cheme.cmu.edu/blog/2015/07/06/Indexing-headlines-in-org-files-with-swish-e-with-laser-sharp-results/
>> > )
>> > >> or html
>> > >> (
>> > http://kitchingroup.cheme.cmu.edu/blog/2015/07/03/Using-swish-e-to-index-org-files-as-html/
>> > )
>> > >> that it could index. This is probably a general strategy for these
>> > tools.
>> > >
>> > > That seems unfortunately roundabout, but I don't know enough about the
>> > > various FTS engines to know if they could be taught to read Org files
>> > directly...
>> >
>> >
>> > --
>> > Luke, use the FOSS
>> >
>> > Sent from Emacs
>> >
>> >
>
>
> --
> Russell Adamsrlad...@adamsinfoserv.com
>
> PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/
>
> Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3


-- 
Luke, use the FOSS

Sent from Emacs



Re: Anyone use 3rd party search tools w/org-mode?

2019-11-08 Thread Roland Everaert
Is it me or Swish-e is dead?

The url www.swish-e.org, leads to a whisky e-shop oO.
Eric Abrahamsen writes:

> John Kitchin  writes:
>
>> The way I got Swish to index org files was to create a script that
>> generated an xml file
>> (https://kitchingroup.cheme.cmu.edu/blog/2015/07/06/Indexing-headlines-in-org-files-with-swish-e-with-laser-sharp-results/)
>> or html
>> (http://kitchingroup.cheme.cmu.edu/blog/2015/07/03/Using-swish-e-to-index-org-files-as-html/)
>> that it could index. This is probably a general strategy for these tools.
>
> That seems unfortunately roundabout, but I don't know enough about the
> various FTS engines to know if they could be taught to read Org files 
> directly...


-- 
Luke, use the FOSS

Sent from Emacs



Re: Anyone use 3rd party search tools w/org-mode?

2019-11-06 Thread Roland Everaert
Hello all,

I am interested in a search/indexing engine targeting the org format,
too.

My interest comes from the fact that I have a growing number of org
files and as org-mode has no file archiving feature, AFAIK, searching
needs more and more time to complete.

Moving files, that are no more necessary, outside of my org-directories,
can be tedious and prone to moving the wrong file to the wrong location.

Hence, an indexer could comes in handy, especially if it is optimised
for the Org format (i.e.: it knows what are categories, tags,
properties, etc in an Org file).


Regards,

Roland.

Nathan Neff writes:

> Hello all,
>
> I'm considering "indexing" my org-mode files and haven't done any research
> into
> this.  I'm sure there's 100 different ways to do this but wanted to ask the
> list if anyone
> is indexing their org-mode files and using a search tool like Solr, Elastic
> or smaller indexing engines to search their org-files.
>
> Emacs integration obviously would be a plus.
>
> Thanks for any feedback,
> --Nate


-- 
Luke, use the FOSS

Sent from Emacs



[O] bug#35419: bug#35419: [Proposal] Buffer Lenses and the Case of Org-Mode (also, Jupyter)

2019-05-03 Thread Roland Everaert
For what I understand of eev (which I discover following this thread),
the idea is to create "notebooks" (à la Jupyter) of commands that can be 
executed in
any orders the user want. So, lenses could be useful to apply the
correct mode the block of code at point.

Dmitrii Korobeinikov writes:

>> I see lens to be useful for the eev mode, too.
>
> Never heard of eev, but judging by some demos, it's a way to execute elisp
> commands interactively.
> Something like stitching blocks of commands together, or the data to
> operate on, or embedding a target such as a shell in the same buffer is the
> use-case idea then?


-- 
Luke, use the FOSS

Sent from Emacs





Re: [O] bug#35419: [Proposal] Buffer Lenses and the Case of Org-Mode (also, Jupyter)

2019-04-26 Thread Roland Everaert
I see lens to be useful for the eev mode, too.

Roland.

Dmitrii Korobeinikov writes:

>> Have you looked at Phil Lord's lentic package?  I think it implements a
>> lot of what you're talking about.
>
>> https://github.com/phillord/lentic
>
> This is nice to see!
> Indeed, except for embedding, there is a large overlap with what I
> described as buffer lenses.
>
> BTW, judging by this description: "changes percolation now happens
> incrementally, so only those parts of the buffer are updated. As a result,
> lentic now cope with long files with little noticable delay", the buffers
> don't share any data and need to sync with the master [linked] buffer.
> Is this the best solution? I have imagined that at the low level there is
> an actual data structure that keeps the raw textual data and it could be
> directly shared by multiple buffers. I mean, when a buffer is saved to a
> file, the text doesn't need to be stripped of properties beforehand, right?
>
> чт, 25 апр. 2019 г. в 07:37, Noam Postavsky :
>
>> Dmitrii Korobeinikov  writes:
>>
>> > * Implementation
>> >
>> >   I am not familiar with Emacs internals to say what's feasible of the
>> > proposed structure.
>>
>> Have you looked at Phil Lord's lentic package?  I think it implements a
>> lot of what you're talking about.
>>
>> https://github.com/phillord/lentic
>>


-- 
Luke, use the FOSS

Sent from Emacs



Re: [O] Regresssion in org-capture?

2019-04-11 Thread Roland Everaert
Hello,

With the last version from org ELPA, I can confirm that the bug is fixed.

Thanks,

Roland.


Nicolas Goaziou writes:

> Hello,
>
> Roland Everaert  writes:
>
>> Since a few weeks, the following template didn't work anymore.
>>
>> (setq org-capture-templates
>>   `(("b" "Add url to bookmarks DB" entry (file+headline 
>> "~/org/private/bookmarks.org" "URLs")
>>  "** %i\n" :immediate-finish t))
>>   )
>>
>> Anytime I execute it I got this error:
>>
>> org-capture: Capture template ‘b’: Template is not a valid Org entry
>> or tree
>
> Fixed. Thank you.
>
> Regards,


-- 
Luke, use the FOSS

Sent from Emacs



[O] Regresssion in org-capture?

2019-04-02 Thread Roland Everaert
Hi,

Since a few weeks, the following template didn't work anymore.

(setq org-capture-templates
  `(("b" "Add url to bookmarks DB" entry (file+headline 
"~/org/private/bookmarks.org" "URLs")
"** %i\n" :immediate-finish t))
  )

Anytime I execute it I got this error:

org-capture: Capture template ‘b’: Template is not a valid Org entry or tree

Org-mode and Emacs version

Org mode version 9.2.3 (9.2.3-elpa @ /home/roland/.emacs.d/elpa/org-20190402/)
GNU Emacs 26.1 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.22.30) of 
2018-06-26


Minimal configuration I have used to reproduce the problem:

(require 'package)
(setq package-enable-at-startup nil)
(add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/;) t)

(package-initialize);; Initialize & Install Package

; Bootstrap `use-package'
(unless (package-installed-p 'use-package)
  (package-refresh-contents)
  (package-install 'use-package))

(use-package org
   :ensure org-plus-contrib
   :pin org
   :mode (("\\.org$" . org-mode)
  ("\\.org_archive$" . org-mode))
   :bind (("C-c l" . org-store-link)
  ("C-c b" . org-iswitchb)
  ("C-c c" . org-capture))
  )

(setq org-capture-templates
  `(("b" "Add url to bookmarks DB" entry (file+headline 
"~/org/private/bookmarks.org" "URLs")
"** %i\n" :immediate-finish t))
  )

Does anything has changed in the syntax of org-capture-templates?

Regards,

Roland Everaert.
-- 
Luke, use the FOSS

Sent from Emacs



Re: [O] New bug in org-agenda?

2019-03-04 Thread Roland Everaert
Thanks, then I will try it later today.

Regards,

Roland.
Nicolas Goaziou writes:

> Hello,
>
> Roland Everaert  writes:
>
>> I am facing the same issue with that version on emacs 25.2.2 (Ubuntu
>> 18.04.2 LTS).
>>
>>
>> When will it be available throu the Org Mode ELPA repo?
>
> I think it already is. Otherwise, it should happen today: IIRC, Org is
> automatically updated every Monday.
>
> Anyway, it is time for an Org 9.2.2 release. I'm Cc'ing Bastien about
> it.
>
> Bastien, WDYT?
>
> Regards,


-- 
Luke, use the FOSS

Sent from Emacs



Re: [O] New bug in org-agenda?

2019-03-04 Thread Roland Everaert
Hi,

I am facing the same issue with that version on emacs 25.2.2 (Ubuntu
18.04.2 LTS).


When will it be available throu the Org Mode ELPA repo?

Regards,

Roland.


Nicolas Goaziou writes:

> Hello,
>
> Richard Stanton  writes:
>
>> Using Org mode version 9.2.1 (9.2.1-33-g029cf6-elpaplus), I get an error 
>> message when I run org-agenda:
>>
>> Debugger entered--Lisp error: (error "Wrong number of arguments")
>>   propertize("WAITING" nil face org-warning)
>>   org-agenda-get-restriction-and-command(nil)
>>   org-agenda(nil)
>>   funcall-interactively(org-agenda nil)
>>   call-interactively(org-agenda record nil)
>>   command-execute(org-agenda record)
>>   execute-extended-command(nil "org-agenda" #("org-agenda"
>> 0 1 (fontified t) 1 2 (fontified t) 2 3 (fontified t) 3 4 (fontified
>> t) 4 5 (fontified t) 5 6 (fontified t) 6 7 (fontified t)
>> 7 8 (fontified t) 8 9 (fontified t) 9 10 (fontified nil)))
>>   funcall-interactively(execute-extended-command nil "org-agenda"
>> #("org-agenda" 0 1 (fontified t) 1 2 (fontified t) 2 3 (fontified t)
>> 3 4 (fontified t) 4 5 (fontified t) 5 6 (fontified t) 6 7 (fontified
>> t) 7 8 (fontified t) 8 9 (fontified t) 9 10 (fontified nil)))
>>   call-interactively(execute-extended-command nil nil)
>>   command-execute(execute-extended-command)
>>
>> This has only started in the last few days and my init.el file has not
>> changed, so it seems to be something in the latest update.
>
> This was fixed a few days ago.
>
> Regards,


-- 
Luke, use the FOSS

Sent from Emacs



Re: [O] URL storage and search - Bookmark+ vs Org Mode

2019-02-22 Thread Roland Everaert
I have discovered récently, the extension "Export Tabs URLs". I suppose I
could build a function to read the data from the produced file and convert
all the entry to org. The only hard part is to check for duplicates, I
suppose.


On Thu, Feb 21, 2019 at 5:05 AM Samuel Wales  wrote:

> org agenda search can find urls, as can isearch, all, occur, etc.
>
> org-capture extension can save to org from gui browser.
>
> copy all urls extension used to save all tabs from firefox in org link
> format.  idk what teh best replacement is for webextension.
>
> in principle, it should be possible to create a gui browser extension
> in which you can open all selected headers' urls in the gui browser.
> and also mark tabs in gui browser save to org headers with a tag.
> thus, you could have a topic dedicated to researching food processors
> [or whatever topic], and load up a set of tabs, then edit those tabs
> in firefox, then save back to org.  optionally deleting the ones with
> that tag that are not being saved.  however, it's just an idea.
>
>
> On 2/20/19, stardiviner  wrote:
> >
> > I use Org Mode to store all bookmarks. I save it as "Bookmarks.org",
> > then use helm-org-rifle to quick locate the category headline, if failed
> > find wanted bookmarks, then use Isearch to search text. You can create a
> > helper command to quickly auto open bookmarks org file, and auto toggle
> > quick locating and search. All in one command. Using Org, you can add
> > extra info anything you want to take note about bookmarks, not just URL
> > and title.
> >
> > Roland Everaert  writes:
> >
> >> Hello,
> >>
> >> I am still debating with myself which one is the most appropriate to
> store
> >> and
> >> search for URLs.
> >>
> >> The bookmark(+) feature is interesting because it provides a dedicate
> >> interface for bookmarking any kind of resources including URLs, but I
> >> find the interface to search for bookmarks and to jump between different
> >> bookmark file strange if not inefficient.
> >>
> >> On the other hand, Org-mode don't provide any dedicated interface
> >> for storing and searching URLs, but switching from Org Mode file to the
> >> next one and searching for data is much more intuitive.
> >>
> >> Hence, what is the experience of the community with both tools and how
> >> you store your internet bookmarks, both to store a particular article or
> >> the
> >> home page of a website?
> >>
> >>
> >> Thanks for your time,
> >>
> >> Roland Everaert.
> >
> >
> > --
> > [ stardiviner ]
> >I try to make every word tell the meaning what I want to express.
> >
> >Blog: https://stardiviner.github.io/
> >IRC(freenode): stardiviner, Matrix: stardiviner
> >GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
> >
> >
>
>
> --
> The Kafka Pandemic: <http://thekafkapandemic.blogspot.com>
>
> What is misopathy?
>
> https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html
>
> The disease DOES progress. MANY people have died from it. And ANYBODY
> can get it at any time.
>
>


[O] URL storage and search - Bookmark+ vs Org Mode

2019-02-20 Thread Roland Everaert
Hello,

I am still debating with myself which one is the most appropriate to store and
search for URLs.

The bookmark(+) feature is interesting because it provides a dedicate
interface for bookmarking any kind of resources including URLs, but I
find the interface to search for bookmarks and to jump between different
bookmark file strange if not inefficient.

On the other hand, Org-mode don't provide any dedicated interface
for storing and searching URLs, but switching from Org Mode file to the
next one and searching for data is much more intuitive.

Hence, what is the experience of the community with both tools and how
you store your internet bookmarks, both to store a particular article or the
home page of a website?


Thanks for your time,

Roland Everaert.

-- 
Luke, use the FOSS

Sent from Emacs



[O] Bug: Exporting dash to html gives hexadecimal code [8.2.10 (release_8.2.10 @ /usr/share/emacs/24.5/lisp/org/)]

2018-11-11 Thread Roland Coeurjoly
I publish (M+x org-publish-project) the following to html:

#+OPTIONS: toc:nil num:nil

#+BEGIN_EXPORT html
---
layout: post
title: "A beginner's Emacs config"
subtitle: "First steps into the Emacs universe"
tags: [hacking, emacs]
category: blog
---
#+END_EXPORT

I get the following:




layout: post
title: "A beginner's Emacs config"
subtitle: "First steps into the Emacs universe"
tags: [hacking, emacs]
category: blog



I expect the following:

---
layout: post
title: "A beginner's Emacs config"
subtitle: "First steps into the Emacs universe"
tags: [hacking, emacs]
category: blog
---

I learn that  is the hexadecimal code for a dash (-).
As a result of the previously described behaviour, my blog doesn't
display the html. Like a all.

Emacs  : GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
 of 2017-09-20 on lcy01-07, modified by Debian
Package: Org-mode version 8.2.10 (release_8.2.10 @
/usr/share/emacs/24.5/lisp/org/)

current state:
==
(setq
 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-speed-command-hook '(org-speed-command-default-hook
  org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-export-show-temporary-export-buffer nil
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-html-format-drawer-function '(lambda (name contents) contents)
 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-latex-format-headline-function
'org-latex-format-headline-default-function
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-latex-format-drawer-function '(lambda (name contents) contents)
 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 '(#[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-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-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-html-format-headline-function 'ignore
 org-html-format-inlinetask-function 'ignore
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-publish-project-alist '(("https://rcoeurjoly.github.io/posts;
  :base-directory
  "~/RCoeurjoly.github.io/_org/posts"
  :base-extension "org" :publishing-directory
  "~/RCoeurjoly.github.io/_posts" :recursive t
  :publishing-function org-html-publish-to-html
  :headline-levels 4 :html-extension "html"
  :body-only t)
 )
 )


Re: [O] electric-pair, autopair, smartparens, etc in org-mode

2018-10-24 Thread Roland Everaert


I will borrow your config for the emphasis symbols, but for all the
paren-related symbols, I will keep the global mapping, so it will still
work when writing codes and the like ;)

Pleased to see it was helpful. The funny thing is that I use that config
for, maybe, 10 years and never think about changing it.

stardiviner writes:

> Roland Everaert  writes:
>
>> Hi,
>>
>> I use the following configuration:
>>
>>  parenthèses, accolades et brackets ;;
>> (setq skeleton-pair t)
>> (global-set-key "[" 'skeleton-pair-insert-maybe)
>> (global-set-key "{" 'skeleton-pair-insert-maybe)
>> (global-set-key "(" 'skeleton-pair-insert-maybe)
>> (global-set-key "\"" 'skeleton-pair-insert-maybe)
>> (global-set-key "'" 'skeleton-pair-insert-maybe)
>>
>> This will only close the defined characters.
>>
>>
>> Hope this will help.
>>
>> Roland.
>>
>
> This is really helpful for me, I use smartparens before, but it is a little 
> heavy. So I disabled it. I found your solution is simple and fast. I modified 
> a little:
>
> #+begin_src emacs-lisp
> (require 'skeleton)
> (setq skeleton-pair t)
>
> (define-key org-mode-map (kbd "~") 'skeleton-pair-insert-maybe)
> (define-key org-mode-map (kbd "=") 'skeleton-pair-insert-maybe)
> (define-key org-mode-map (kbd "*") 'skeleton-pair-insert-maybe)
> (define-key org-mode-map (kbd "+") 'skeleton-pair-insert-maybe)
>
> (define-key org-mode-map (kbd "[") 'skeleton-pair-insert-maybe)
> (define-key org-mode-map (kbd "{") 'skeleton-pair-insert-maybe)
> (define-key org-mode-map (kbd "(") 'skeleton-pair-insert-maybe)
> (define-key org-mode-map (kbd "\"") 'skeleton-pair-insert-maybe)
> (define-key org-mode-map (kbd "'") 'skeleton-pair-insert-maybe)
> #+end_src


-- 
Luke, use the FOSS

Sent from Emacs



Re: [O] electric-pair, autopair, smartparens, etc in org-mode

2018-10-23 Thread Roland Everaert
Hi,

I use the following configuration:

 parenthèses, accolades et brackets ;;
(setq skeleton-pair t)
(global-set-key "[" 'skeleton-pair-insert-maybe)
(global-set-key "{" 'skeleton-pair-insert-maybe)
(global-set-key "(" 'skeleton-pair-insert-maybe)
(global-set-key "\"" 'skeleton-pair-insert-maybe)
(global-set-key "'" 'skeleton-pair-insert-maybe)

This will only close the defined characters.


Hope this will help.

Roland.

Matt Price writes:

> wow, I learned a whole lot from your answer Nicholas, but still not quite
> enough to make this work for me.  After some puzzling over the syntax for
> character values, I believe that what I want should be something like this:
>
> (add-function :before-until electric-pair-inhibit-predicate
>   (lambda (c)
> (and (eq ?\[ c)
>  (eq major-mode 'org-mode)
>  (memq (char-before (1- (point))) '(?\[ ?\])
>
> The manual says to use advice-add instead of add-function for these cases,
> so this could be written like this instead:
>
> (defun mwp-org-mode-electric-inhibit (c)
>   (and
>(eq ?\[ c)
>(eq major-mode 'org-mode)
>(memq (char-before (1- (point))) '(?\[ ?\]) )))
>
> (advice-add electric-pair-inhibit-predicate :before-until
> #'mwp-org-mode-electric-inhibit)
>
> it seems to sort of work.  That is, the code is effective, but it doesn't
> do what I want, so I had to think about the desired behaviour, which is
> maybe too complex for this modification:
>
> when I start a link [
> go ahead and add pair to
> []
> when I add a second [, don't complete
> [[]
> this is what my code does!
>
> but what I really want is, when I finish adding a link reference, somehow
> allow me to stay inside the link to add the link text:
> [[https://google.com]] --> [[https://google.com][]]
> with point between the final [ and ].
> This seems like it needs a more complex intervention.
>
> For now I've just turned off pairing of brackets entirely:
>
> (defun mwp-org-mode-electric-inhibit (c)
>   (and
>(eq ?\[ c)
>(eq major-mode 'org-mode))
>
> This works fine, though I'd still like the other :-/
>
> Thanks Nicholas!
> On Sun, Oct 21, 2018 at 3:28 AM Nicolas Goaziou 
> wrote:
>
>> Hello,
>>
>> Matt Price  writes:
>>
>> > - electric-pair and autopair complete [[ immediately, and don't seem to
>> > allow me to skip past the closing brackets, so if I try to type [[
>> > https://link.to.somewhere][link text]] I end up with
>> > [[link.to.somewhere]][link-text] .
>>
>> I use C-c C-l to insert links with description. However, electric
>> pairing does get in the way when writing sub/superscript. I use the
>> following snippet to work around the issue:
>>
>>(add-function :before-until electric-pair-inhibit-predicate
>>  (lambda (c)
>>(and (eq ?\{ c)
>> (eq major-mode 'org-mode)
>> (memq (char-before (1- (point))) '(?_ ?^)
>>
>> I guess you could do something similar to disable pairing when entering
>> a bracket link.
>>
>> Regards,
>>
>> --
>> Nicolas Goaziou
>>


-- 
Luke, use the FOSS

Sent from Emacs



Re: [O] An Org-based productivity tool

2018-10-11 Thread Roland Everaert


Ihor Radchenko writes:

>> To motivate people focusing on there work, something like the link below 
>> could be
>> an idea, especially for gamers ;)
>>
>> https://habitica.com/static/home
>
> It would be great to integrate it with Org.

What do you mean, create an interface to the service or duplicating the
service in Emacs/Org Mode?

>
>
> Roland Everaert  writes:
>
>> Regarding auto-clocking, you should look at what norang did.
>>
>> http://doc.norang.ca/org-mode.html
>>
>> To motivate people focusing on there work, something like the link below 
>> could be
>> an idea, especially for gamers ;)
>>
>> https://habitica.com/static/home
>>
>> Samuel Wales writes:
>>
>>> auto-clocking might be interesting.
>>>
>>> there would be a concept of a dominating clocking entry similar to
>>> dominating file.  i.e. if where you are is not a clocking entry, go up
>>> until you find one that is.  if you find none at top level, you create
>>> a clock entry in the logbook there.
>>>
>>> if you switch buffers or move around, you clock out and in where you
>>> were and are.  every few minutes, you try to clock in where you are,
>>> or the dominating clocking entry.  this is done with timers.  idle
>>> time might go to a special clocking entry.
>>>
>>> or something like that.  the idea is that you don't have to remember
>>> to clock in and out.
>>>
>>> On 10/10/18, Marcin Borkowski  wrote:
>>>>
>>>> On 2018-10-10, at 18:50, William Denton  wrote:
>>>>
>>>>> On 10 October 2018, Marcin Borkowski wrote:
>>>>>
>>>>>> I am making an Org-mode-based tool to help boost my productivity.
>>>>>> ...
>>>>>> - is anyone interested in something like this?
>>>>>
>>>>> I am---I'd love to see what you come up with.  I'm doing something
>>>>> similar, but much less fancy, with clock tables and some R:
>>>>>
>>>>> https://www.miskatonic.org/2017/11/16/clocktableii/
>>>>>
>>>>> I need to do one more post about that to wrap it up.  It's working
>>>>> well for me, but warnings about not being clocked in to something, and
>>>>> better understanding of what I'm doing based on headings or tags,
>>>>> would be useful.
>>>>
>>>> Thanks for your kind words!
>>>>
>>>> It's not that fancy (yet?), but has one big advantage over clock tables:
>>>> it updates dynamically (using org-clock-out-hook), so it's fast.  Also,
>>>> as you could see, it does some simple calculations.
>>>>
>>>> And for the record: it's based on properties, not tags - but that is
>>>> a minor issue.
>>>>
>>>> Best,
>>>>
>>>> --
>>>> Marcin Borkowski
>>>> http://mbork.pl
>>>>
>>>>
>>
>>
>> -- 
>> Luke, use the FOSS
>>
>> Sent from Emacs
>>


-- 
Luke, use the FOSS

Sent from Emacs



Re: [O] An Org-based productivity tool

2018-10-11 Thread Roland Everaert
Regarding auto-clocking, you should look at what norang did.

http://doc.norang.ca/org-mode.html

To motivate people focusing on there work, something like the link below could 
be
an idea, especially for gamers ;)

https://habitica.com/static/home

Samuel Wales writes:

> auto-clocking might be interesting.
>
> there would be a concept of a dominating clocking entry similar to
> dominating file.  i.e. if where you are is not a clocking entry, go up
> until you find one that is.  if you find none at top level, you create
> a clock entry in the logbook there.
>
> if you switch buffers or move around, you clock out and in where you
> were and are.  every few minutes, you try to clock in where you are,
> or the dominating clocking entry.  this is done with timers.  idle
> time might go to a special clocking entry.
>
> or something like that.  the idea is that you don't have to remember
> to clock in and out.
>
> On 10/10/18, Marcin Borkowski  wrote:
>>
>> On 2018-10-10, at 18:50, William Denton  wrote:
>>
>>> On 10 October 2018, Marcin Borkowski wrote:
>>>
 I am making an Org-mode-based tool to help boost my productivity.
 ...
 - is anyone interested in something like this?
>>>
>>> I am---I'd love to see what you come up with.  I'm doing something
>>> similar, but much less fancy, with clock tables and some R:
>>>
>>> https://www.miskatonic.org/2017/11/16/clocktableii/
>>>
>>> I need to do one more post about that to wrap it up.  It's working
>>> well for me, but warnings about not being clocked in to something, and
>>> better understanding of what I'm doing based on headings or tags,
>>> would be useful.
>>
>> Thanks for your kind words!
>>
>> It's not that fancy (yet?), but has one big advantage over clock tables:
>> it updates dynamically (using org-clock-out-hook), so it's fast.  Also,
>> as you could see, it does some simple calculations.
>>
>> And for the record: it's based on properties, not tags - but that is
>> a minor issue.
>>
>> Best,
>>
>> --
>> Marcin Borkowski
>> http://mbork.pl
>>
>>


-- 
Luke, use the FOSS

Sent from Emacs



Re: [O] Org mode + Solid = collaborative, privacy-respecting future

2018-10-03 Thread Roland Everaert
I would also like to see something developped in ths direction.
Karl Voit writes:

> Hi!
>
> I stubled over Tim Berners-Lee Solid:
> https://www.fastcompany.com/90243936/exclusive-tim-berners-lee-tells-us-his-radical-new-plan-to-upend-the-world-wide-web
> https://www.inrupt.com/blog/one-small-step-for-the-web
> https://en.wikipedia.org/wiki/Solid_(web_decentralization_project)
>
> On https://github.com/solid/solid-apps I'd like to see something
> that combines the awesome (local) power of Org mode with the
> privacy-respecting soon-to-be platform Solid which adds
> collaborative notions to the story.
>
> Are there any actions going on already?
>
> This just feels right to be combined with the power of Org/Emacs.


-- 
Luke, use the FOSS

Sent from Emacs



Re: [O] clocktable - Wrong type argument: plistp - after upgrade

2018-08-27 Thread Roland Everaert
I seems that with version Org mode version 9.1.13 (9.1.13-elpa @
/cygdrive/c/Users/re/.emacs.d/elpa/org-20180730/), the  problem has
disappeared.

Regards,

Roland.

On Mon, Aug 20, 2018 at 12:38 PM Nicolas Goaziou 
wrote:

> Hello,
>
> Roland Everaert  writes:
>
> > After some search, I have found this option causing the error. It is
> > :fileskip0. If I remove it from the #+BEGIN line, the clocktable is
> > computed and displayed.
>
> Could you provide an ECM? The example you send is neither complete (very
> important) nor minimal (less important).
>
> Regards,
>
> --
> Nicolas Goaziou
>


[O] Clocktable - Grouping time per property instead of headline

2018-08-06 Thread Roland Everaert
Hi,

I have a clock table that displays the accumulated time for each entry for
the previous week with a step of a day.

I would like to have modify it so that the accumulated time is grouped
based  the value of a property instead of the headline.

If the property is not present, the clock table should show the data as
usual, thou.

How can I achieve that?

Regards,

Roland.


Re: [O] clocktable - Wrong type argument: plistp - after upgrade

2018-07-23 Thread Roland Everaert
After some search, I have found this option causing the error. It is
:fileskip0. If I remove it from the #+BEGIN line, the clocktable is
computed and displayed.




On Mon, Jul 23, 2018 at 8:23 AM, Roland Everaert 
wrote:

> Hi,
>
> After an upgrade of both cygwin and org-mode, I am not able to refresh my
> clock table.
>
> Here is the clocktable declaration:
>
> #+COLUMNS: %60ITEM %7imputation %TODO %3PRIORITY %TAGS#
> +BEGIN: clocktable :block thisweek-1 :maxlevel 5 :scope
> agenda-with-archives :properties ("imputation") :inherit-props t :step day
> :fileskip0 :link t
>
>
> The full error message:
>
> org-prepare-dblock: Wrong type argument: plistp, (:name "clocktable"
> :block thisweek-1 :maxlevel 5 :scope agenda-with-archives :properties
> ("imputation") ...)
>
>
> Version of emacs and org-mode:
>
> Org mode version 9.1.13 (9.1.13-elpa @ /cygdrive/c/Users/re/.emacs.d/
> elpa/org-20180716/)
> GNU Emacs 26.1 (build 1, x86_64-unknown-cygwin) of 2018-05-28
>
> Does the syntax changed in clocktable?
>
> Roland.
>


[O] clocktable - Wrong type argument: plistp - after upgrade

2018-07-23 Thread Roland Everaert
Hi,

After an upgrade of both cygwin and org-mode, I am not able to refresh my
clock table.

Here is the clocktable declaration:

#+COLUMNS: %60ITEM %7imputation %TODO %3PRIORITY %TAGS#
+BEGIN: clocktable :block thisweek-1 :maxlevel 5 :scope
agenda-with-archives :properties ("imputation") :inherit-props t :step day
:fileskip0 :link t


The full error message:

org-prepare-dblock: Wrong type argument: plistp, (:name "clocktable" :block
thisweek-1 :maxlevel 5 :scope agenda-with-archives :properties
("imputation") ...)


Version of emacs and org-mode:

Org mode version 9.1.13 (9.1.13-elpa @
/cygdrive/c/Users/re/.emacs.d/elpa/org-20180716/)
GNU Emacs 26.1 (build 1, x86_64-unknown-cygwin) of 2018-05-28

Does the syntax changed in clocktable?

Roland.


Re: [O] Connecting to Org ELPA via an HTTP proxy from Emacs 25 and older

2018-03-21 Thread Roland Everaert
The problem is solved for me.

Thank you,


Roland.

On Wed, Mar 21, 2018 at 12:27 AM, Bastien <b...@gnu.org> wrote:

> Hi Keshav and Roland,
>
> I was not aware the redirection could cause such a problem.
>
> Both http://orgmode.org and https://orgmode.org should now
> work, let me know if this fixes your issue.
>
> Thanks for reporting this,
>
> --
>  Bastien
>


[O] Creating mu4e-like screens for org-mode

2018-03-19 Thread Roland Everaert
Hi,

I would like to create a set of screens for dealing with org-mode like mu
and notmuch does with maildir.

So I am searching good resources, like guidelines, that explain how to
build that can of features.

I could look directly into the code of those projects or the agenda view,
but I would prefer something more structured than trial-and-error.


Regards,


Roland.


Re: [O] Connecting to Org ELPA via an HTTP proxy from Emacs 25 and older

2018-03-15 Thread Roland Everaert
I also face the same problem, which forces me to download and install
manually the package instead of using the ELPA repo.

I would also appreciate a change in behavior of the webserver.


Thanks,

Roland.


On Wed, Mar 14, 2018 at 11:14 PM, Keshav Kini <keshav.k...@oracle.com>
wrote:

> Hi,
>
> This mail is about the Org ELPA repository, not Org itself.  Please
> let me know if I've mailed the wrong list.
>
> Inside my corporate network, I must connect to external hosts such as
> orgmode.org via an HTTP proxy.  Most programs on my machine are able
> to access both HTTP and HTTPS URLs through the proxy without any
> problem.
>
> However, it seems that Emacs's URL package, used by many Emacs tools
> including package.el, has been unable to properly establish HTTPS
> connections over an HTTP proxy for a long time:
>
>   https://debbugs.gnu.org/11788
>
> A patch which fixes this problem was written in 2015 by Tao Fang but
> is not currently present in any released Emacs version.  (It will be
> incorporated into Emacs 26, according to the NEWS.26 file in the Emacs
> development repository.)
>
> Meanwhile, the orgmode.org web server is currently responding to HTTPS
> requests with an HTTP 301 status, redirecting the client to the
> corresponding HTTPS URL, i.e. it tries to force the client to use
> HTTPS.  This is in contrast with a couple of other major ELPA
> repositories, MELPA and GNU ELPA:
>
> | $ curl -Is http://orgmode.org/elpa/archive-contents | head -1
> | HTTP/1.1 301 Moved Permanently
> | $ curl -Is http://melpa.org/packages/archive-contents | head -1
> | HTTP/1.1 200 OK
> | $ curl -Is http://elpa.gnu.org/packages/archive-contents | head -1
> | HTTP/1.1 200 OK
>
> This would seem to mean that anyone using an unpatched non-development
> version of Emacs today is unable to connect to the Org ELPA from
> behind an HTTP proxy.  I gather that this must be a recent change in
> behavior, because I have been able to download packages from the Org
> ELPA in the past without any trouble.
>
> Would it be possible for whoever maintains the orgmode.org web server
> to reconfigure it so that it responds to HTTP requests directly as it
> used to do, instead of redirecting to HTTPS?
>
> Thanks,
> Keshav
>
>


Re: [O] Fwd: how do you compose mails in Gnus with org-mode

2018-03-01 Thread Roland Everaert
I also want to thank you for the last link, notmuch seems waht I was search
for too.


Regards,


Roland.

On Thu, Mar 1, 2018 at 8:01 PM, Brian Shine <briansh...@mac.com> wrote:

> Thank you so much.  This looks like a great website.  I’ll have a read and
> see whether I can get it to work.  I may well call on you!
>
> Best wishes,
> Brian
>
> On 1 Mar 2018, at 18:46, Joseph Vidal-Rosset <
> joseph.vidal.ros...@gmail.com> wrote:
>
> Le jeu. 01 mars 2018 à 06:17:48 , Brian Shine <briansh...@mac.com> a
> envoyé ce message:
> > This is a wonderful resource, but I wonder if I can ask how to set up
> > email using emacs? I’ve failed multiple times to do this using
> > several solutions that are suggested. My main accounts are with iCloud
> > and Exchange and I have never managed to log in through the suggested
> > methods. I’m obviously doing something basic incorrectly.
> >
> > Is there a really simple guide to setting this up?
> >
> > Best wishes,
> > Brian
>
> Hello,
>
> It is difficult to give you and advice, because as you know there are
> many email clients for emacs.
>
> Maybe you can read this web page first, that could help you to make a
> choice:
>
> https://wwwtech.de/articles/2016/jul/my-personal-mail-setup
>
> I am using Gnus with Gmail, and it works smoothly. I do not believe
> that I will change now. But it is time consuming to get the convenient
> setup.
>
> If Gnus can be you choice, I will be happy to help you, as I can,
> because there many people in this list that are more experts than me
> (Eric Fraga for example).
>
> Best wishes,
>
> Jo.
>
>
>


[O] Question about org-id-update-id-locations

2018-02-02 Thread Roland Everaert
Hello,

I am currently writing a function to remove duplicated Ids reported
by org-id-update-id-locations, but as of now I am using the output in
*Messages*, which is far from ideal.

Is there another way to get that list?

Would it be possible to have all occurrences of each IDs instead of just
one?

Does the function take into consideration references to IDs?


Regards,


Roland.


Re: [O] Keeping outline after reverting buffer

2018-01-20 Thread Roland Fehrenbacher
Hi Nicolas,

>>>>> "N" == Nicolas Goaziou <m...@nicolasgoaziou.fr> writes:

N> Hello, Roland Fehrenbacher <r...@q-leap.de> writes:

>> is there any option or other customization to keep the outline of
>> an org buffer (uncollapsed parts of the tree) after the buffer
>> has been reverted (org-mode 9.0.1, emacs 25.3.2)? In my case only
>> the top headings are displayed after reverting. This is quite
>> annoying and time-consuming in a setup, where one constantly
>> switches between git branches e.g.

N> Org provides two functions to save and restore visibility (and a
N> macro that does both, but isn't useful in your case):
N> `org-outline-overlay-data' and `org-set-outline-overlay-data'.

N> You may want to use them within `before-revert-hook' and
N> `after-revert-hook'.

this was spot on, Thanks a lot. The following link

https://stackoverflow.com/questions/862/org-mode-go-back-from-sparse-tree-to-previous-visibility/44158824#44158824

had a ready-to-use implementation for this. Excellent, makes life a lot
easier :)

Best,

Roland

---
http://www.q-leap.com / http://qlustar.com
  --- HPC / Storage / Cloud Linux Cluster OS ---



[O] Keeping outline after reverting buffer

2018-01-15 Thread Roland Fehrenbacher
Hi,

is there any option or other customization to keep the outline of an org
buffer (uncollapsed parts of the tree) after the buffer has been
reverted (org-mode 9.0.1, emacs 25.3.2)? In my case only the top
headings are displayed after reverting. This is quite annoying and
time-consuming in a setup, where one constantly switches between git
branches e.g.

Thanks,

Roland



Re: [O] How to include diary anniversary entries into default org-agenda?

2017-12-20 Thread Roland Everaert
I don't know for the agenda, but if you install calfw and calfw-cal, you
can see your diary entries in a "more graphical" calendar.

On Wed, Dec 20, 2017 at 4:21 AM, stardiviner  wrote:

> I have an org-mode file:
>
> #+begin_src org
> ,* Anniversary
>
> ,** my first child anniversary
>
> %%(diary-anniversary 10 26 2017)
>
> ,** Funeral Arrangement
>
> ,*** kk
>
> %%(diary-anniversary 12 8 2007)
> #+end_src
>
> How to include and show them in default org-agenda day view by configuring
> org-mode?
>
>
>


[O] File name format in ARCHIVE property

2017-11-21 Thread Roland Everaert
Hi,

I would like to archive subtree in an archive file with the format:

%s-_archive

Where  is the current year and month. Is this possible and if yes
how?

Where can I find the possible formatting option for that property?


Regards,


Roland.


Re: [O] Deprecating BBDB 2.x support [in EUDC] for Emacs 26.1

2017-10-29 Thread Roland Winkler
On Sat, Oct 28 2017, Thomas Fitzsimmons wrote:
> For EUDC in the Emacs 26.1 release, I'd like to deprecate backward
> compatibility support for BBDB versions less than 3, and then
> subsequently remove that support, maybe as soon as Emacs 27.1.  Doing so
> would simplify eudcb-bbdb.el and allow it to take advantage of new
> features that Roland has been adding in BBDB 3.x, like UUIDs.

I am cross-posting this to the org-mode mailing list.  If there is more
to be said about the following from the perspective of org-mode, let's
continue the discussion on that list only.

I believe org mode interacts with BBDB, too.  Yet I know little to
nothing about the details.  From the org-mode perspective, is there a
similar issue with BBDB 2 vs. BBDB 3, as mentioned by Thomas about EUDC?

The long-term goal is to make at least the core of BBDB 3 part of GNU
Emacs to provide a more coherent framework for other packages like EUDC
and Org mode, see

https://lists.gnu.org/archive/html/emacs-devel/2015-11/msg01888.html

Are there any thoughts about this from the org community?

Here I am thinking also about the code in BBDB: my re-write of BBDB
mostly focused on BBDB "by itself" and its interface with MUAs like
Gnus, Rmail, etc.  Is there anything you would like to see to facilitate
the interaction of BBDB with other packages like Org mode (or EUDC)?

Roland




[O] Multi-layer ergonomic keyboard and org-mode

2017-10-26 Thread Roland Everaert
Hi,

I am considering buying this quite expensive ergonomic keyboard.

https://ergodox-ez.com/

This device can manage up to 32 layers and I wonder how a regular emacs and
org-mode user would organize the layers.

This organization depends on your workflow, but their is surely some
standard key arrangement to improve our typing with our favorite editor an
module.


Regards,


Roland.


Re: [O] Ruby or Python or Something

2017-07-17 Thread Roland Everaert
I guess it depends if you need to access external resources or not (DB,
webservices) or if you need to do heavy computations, for exemple. If not
and if you know lisp well, then, I think, it is better to stick with it.

As a dev/sysadmin, I tend to use whatever language suites my needs when
writing documents or adding data to some TODO item with emacs and org-mode.

On Sun, Jul 16, 2017 at 2:19 PM, Byung-Hee HWANG (황병희, 黃炳熙) <
soyeo...@doraji.xyz> wrote:

> Somewaht it is foolish question. Suddenly i get interested in other
> languages such as Ruby, Python, ... By the way these computing languages
> help to understand of org mode?
>
> My position is a writer, not programmer. To make HTML/LaTeX documents
> with Emacs is my goal. Any comments welcome!!!
>
> --
> ^고맙습니다 _地平天成_ 감사합니다_^))//
>
>


[O] Agenda View - Table report - Granularity of time computed

2017-06-01 Thread Roland Everaert
Hi,

I have noticed that the computation of time in the agenda report (key 'R')
is based on the granularity of the functions to increment or decrements
time in a clock entry inside a logbook.

I know that this granularity can be changed and that I could set it to 1,
but why the time computation in the agenda report is influenced by that
granularity?


Regards,


Roland.


[O] clock-table property column empty

2017-05-17 Thread Roland Everaert
Hi,

In a clocktable I have a column that must show the content of a property I
fill in each of my tasks. Since version 9.0.6, at least, this column is
empty.

Any idea where this comes from?

Emacs and Org-mode versions:
GNU Emacs 25.2.1 (x86_64-unknown-cygwin) of 2017-04-21
Org mode version 9.0.7 (9.0.7-elpaplus @
/cygdrive/c/Users/re/.emacs.d/elpa/org-plus-contrib-20170515/)


Thanks for your help,

Roland.


Re: [O] 9.0.6 and clock tables

2017-05-08 Thread Roland Everaert
I just see this.

Since this morning my clocktable doesn't fill a column related to a
property, any known issue and workaround/fix for this?


Regards,

On Mon, May 8, 2017 at 10:37 AM, Eric S Fraga  wrote:

> On Sunday,  7 May 2017 at 10:16, Nicolas Goaziou wrote:
> > Would you happen to have any news on it?
>
> Had no time but ...
>
> > BTW, you may need to remove any TBLFM: entry related to % since this is
> > no longer necessary when using :formula %.
>
> ... removing the existing TBLFM line fixes the problem!  Many thanks!
>
> --
> : Eric S Fraga (0xFFFCF67D), Emacs 26.0.50, Org release_9.0.6-407-gc28ec3
>


[O] No contrib directory in org-plus-contrib package

2017-05-03 Thread Roland Everaert
Hi,

I have installed org-mode from ELPA and choose to install the version with
the contribution, but the directory is missing in the org-plus-contrib
package directory, and the docs directory as well.

Have I missed something or is their something screwed in the build of the
package?

I use Emacs 25.2.1 on cygwin 64bit.

Regards,


Roland.


Re: [O] Plone?

2017-04-10 Thread Roland Everaert
After reading again the article, it seems more related to development
documentation and not blogging.

On Mon, Apr 10, 2017 at 1:10 PM, Michael Welle <mwe012...@gmx.net> wrote:

> Hello,
>
> Roland Everaert <reveatw...@gmail.com> writes:
>
> > Maybe you can have a look at this page:
> >
> > https://docs.plone.org/about/helper_tools.html
> hm, aren't that all specialised editors for ReStructuredText? Now that I
> have an rst file, I fail to import it into the CMS ;(. But that's more
> of a question for the plone people, I guess.
>
> Regards
> hmw
>
>


Re: [O] Plone?

2017-04-10 Thread Roland Everaert
Maybe you can have a look at this page:

https://docs.plone.org/about/helper_tools.html

On Mon, Apr 10, 2017 at 11:56 AM, Michael Welle  wrote:

> Hello,
>
> it happens to me that I now have to use a CMS named plone to document
> things I do ;). Has anyone tried to export to plone? Or wants to share
> experiences?
>
> I can use standard html export, change the id of the content div and c
> that to the plone content editor. That works OKish. But it would be
> nice, if, for instance, the sections of the Org file would occur in
> plone's navigation (without too much manual labour of course ;)).
>
> Regards
> hmw
>
>


Re: [O] org babel table header sent to awk code block

2017-02-17 Thread Roland Everaert
I see that more or less 30 seconds after posting to the ML :/

So the problem of this script is solved.

But anyway, why are column headers sent to the script, even with :hlines
and/or :colnames set approriately?

Thanks.

On Fri, Feb 17, 2017 at 2:08 PM, Eric S Fraga <e.fr...@ucl.ac.uk> wrote:

> On Friday, 17 Feb 2017 at 12:33, Roland Everaert wrote:
> > Hi,
> >
> > I am trying to filter a table using the following awk code block.
>
> I think your problem is an error in the awk script; specifically, the
> match is outputting all lines because you need to have the { on the same
> line as the match expression.  Try this:
>
> #+BEGIN_SRC awk :stdin list-example :var fstcol=1 :var seccol=3 :results
> output org
>   BEGIN {
>   print "|Host|Result"
>   print "|-"
>   }
>   $seccol ~ /[0-9]{1,3}(\.[0-9]\{1,3\}){3}/ {
>   print "|"$fstcol"|"$seccol
>   }
> #+END_SRC
>
> You may have noticed that the second line (which had an empty third
> column so should not have matched) was also being output when it
> shouldn't have.
>
> In any case, the above works for me.
>
> HTH,
> eric
>
> --
> : Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.4-242-g2c27b8
>


[O] org babel table header sent to awk code block

2017-02-17 Thread Roland Everaert
Hi,

I am trying to filter a table using the following awk code block.
#+BEGIN_SRC awk :stdin list-example :var fstcol=1 :var seccol=3 :results
output org
  BEGIN {
  print "|Host|Result"
  print "|-"
  }
  $seccol ~ /[0-9]{1,3}(\.[0-9]\{1,3\}){3}/
  {
  print "|"$fstcol"|"$seccol
  }
#+END_SRC

The input table:

#+NAME: list-example
| A  |B |C |
|+--+--|
| blabla |  12.147.5.74 | 10.23.31.189 |
| test   |  147.12.5.74 |  |
| hello  | 79.147.64.74 | 10.23.31.189 |


And the result is:


#+RESULTS:
#+BEGIN_SRC org
| Host   |   Result |
|+--|
| A  |C |
| blabla | 10.23.31.189 |
| test   |  |
| hello  | 10.23.31.189 |
#+END_SRC


Why the column names of the table are sent to awk?

I have tried to set :colnames and :hlines, but that doesn't change the
behavior.


Regards.


[O] Tables not converted to markdown format with markdown exporter

2017-02-08 Thread Roland Everaert
Hi,

Since a few weeks we use mattermost at work and I had recently to post a
table to a team channel. I have created my table with org-mode, but when I
export it to markdown format, the table is converted to html instead of
markdown.

Is there any reason to that, except the simple fact that table conversion
is not implemented yet?

As the markdown format is quite similar to the org-mode format regarding
tables, I don't really see where could lie the difficulty.

Example:
- org format

| column 1  | column 2   | column 3|
|---++-|
| some text | some more text | event more text |
| blah  | 45 | fgf |

- markdown format
| column 1  | column 2   | column 3|
|---||-|
| some text | some more text | event more text |
| blah  | 45 | fgf |


This is obviously a very simple example, but usually, with mattermost, one
doesn't post very complex messages.

Regards.


[O] Modifying keys in the export dispatch menu

2017-02-02 Thread Roland Everaert
Hello,

I have activated the mediawiki exporter, unfortunately it uses the same
keys than the markdown export in the dispatcher menu.

Is it possible to change those keys through configuration or is it the
responsibility of the developers to choose wisely there keys?

Regards,


[O] org-use-sub-superscripts not used in HTML export

2017-01-31 Thread Roland Everaert
Hi,

During HTML export, whatever is the value of org-use-sub-superscripts, the
undescore in the middle of a word is alway interpreted as subscript.

Example:

_F_irst _L_evel

In this case, if org-use-sub-superscripts has the value {} or nil, I would
expect to see the first letter of both words to be underlined.  However,
the rest of each word is displayed as a subscript and the leading _
character is displayed.

Is this variable for latex only?

Software Version:
GNU Emacs 25.1.1 (x86_64-unknown-cygwin) of 2016-09-17
Org mode version 9.0.4 (9.0.4-dist @
/cygdrive/c/Users/re/.emacs.d/site-lisp/org-9.0.4/lisp/)


Regards,


[O] Unable to run ditaa on cygwin emacs

2017-01-31 Thread Roland Everaert
Hi,

I use Cygwin emacs with Windows UI. I have just installed java 8 (but java
6 is still present for some legacy application) and updated my
.bash_profile with the following:

export JAVA_HOME=/cygdrive/c/tools/java8
export PATH=$PATH:$JAVA_HOME/bin

Org is configured to run ditaa code blocks, but when I evaluate a code
block, I see the following in the *Message* buffer

executing Ditaa code block (TEST)...
java -Dfile.encoding=UTF-8 -jar
/cygdrive/c/Users/re/.emacs.d/site-lisp/org-9.0.4/contrib/scripts/ditaa.jar
/tmp/babel-6316MOI/ditaa-63168iW /cygdrive/c/Users/re/pics/test.png
Error: Unable to access jarfile
/cygdrive/c/Users/re/.emacs.d/site-lisp/org-9.0.4/contrib/scripts/ditaa.jar

Code block evaluation complete.


I am using Org 9.0.4 downloaded today.

The ditaa.jar file has been unblocked in the properties of the file in the
file explorer.

Any idea why I get that error message?


[O] Bug: Emacs hangs with badly defined multi characters key hierarchy in org-capture-templates [9.0 (9.0-dist @ /cygdrive/c/Users/re/.emacs.d/site-lisp/org-9.0/lisp/)]

2017-01-27 Thread Roland Everaert
Hi,

When using multicharacters keys, if a key definition entry is missing,
emacs hangs and must be killed.

Example of an offending org-capture-templates definition:

(setq org-capture-templates
  '(("t" "Todo" entry (file+headline "~/somefile.org" "Tâches")
 "* TODO %?\n  %i\n"  :clock-in t :clock-resume t)
("l" "Mail" entry (file+datetree "~/somefile.org" "Divers")
 "* EMAIL %?\n  %i\n" :clock-in t :clock-resume t)
("fm" "some Menu - level 2")
("fmm" "template defintion - level 3 " entry (file+olp "~/somefile.org"
"Level 1" "level 2")
 "* MEETING %?\n  %i\n" :clock-in t :clock-resume t)
("fmt" "another template definition - level 3" entry (file+olp "~/
somefile.org" "Level 1" "level 2")
 "*** TODO %?\n  %i\n" :clock-in t :clock-resume t)))

The definition of the "f" key is missing.

In such case, org-mode should display a message and, do nothing or ignore
the offending tree.

Emacs  : GNU Emacs 25.1.1 (x86_64-unknown-cygwin)
 of 2016-09-17
Package: Org mode version 9.0 (9.0-dist @
/cygdrive/c/Users/re/.emacs.d/site-lisp/org-9.0/lisp/)


Regards,


[O] org-capture-templates with multi charachter keys

2017-01-18 Thread Roland Everaert
Hello,

Is there somewhere in the org documentation or on the internet a complete
example of using multi-character keys in org-capture.

This excerpt from the documentation is not clear to me :/

"The keys that will select the template, as a string, characters only, for
example "a" for a template to be selected with a single key, or "bt" for
selection with two keys. When using several keys, keys using the same
prefix key must be sequential in the list and preceded by a 2-element entry
explaining the prefix key, for example

   ("b" "Templates for marking stuff to buy")

"

Moreover, can a prefix be composed of multiple characters or only one?

Thanks for your help.


Re: [O] Using code block function as formula in tables

2017-01-12 Thread Roland Everaert
It works. But I had to set some headers  in the code block itself as
following:

 :exports results :results value

I suppose, I can specify them directly in the org-sbe call, like with
inline calls or call through #+CALL?

This feature really needs to be documented and extensively.


Thanks,

On Wed, Jan 11, 2017 at 3:51 PM, Nicolas Goaziou <m...@nicolasgoaziou.fr>
wrote:

> Hello,
>
> Roland Everaert <reveatw...@gmail.com> writes:
>
> > Is it possible to call a code block from a table field as it is a
> formula?
> >
> > I have tried the following syntax from a field in a table, but none of
> them
> > is interpreted as expected:
> >
> > - #+CALL: function(parameters)
> > - call_function(parameters)
> >
> > The goal is to use the result of the call in other formulas of the
> > table.
>
> It is called org-sbe(parameters). Unfortunately, it is not documented in
> the
> manual. There is <http://orgmode.org/worg/org-contrib/babel/intro.html>
> however. Search for "org-sbe" there.
>
> Regards,
>
> --
> Nicolas Goaziou
>


[O] Using code block function as formula in tables

2017-01-11 Thread Roland Everaert
Hi,

Is it possible to call a code block from a table field as it is a formula?

I have tried the following syntax from a field in a table, but none of them
is interpreted as expected:

- #+CALL: function(parameters)
- call_function(parameters)

The goal is to use the result of the call in other formulas of the table.


Regards,


Roland.


[O] Unable to access the org-mode ELPA repo

2016-11-04 Thread Roland Everaert
Hi,

I am using emacs on a Windows 7 machine at work. I have decided, today, to
switch to ELPA to install org-mode (or any other package), but I am totally
unable to configure emacs properly to reach the repositories.

I have the following errors when emacs starts or when I ask emacs to
refresh the ELPA packages list:

"You can run the command ‘package-list-packages’ with M-x pa-l- RET
Mark saved where search started
error in process sentinel: Error retrieving:
http://elpa.gnu.org/packages/archive-contents (error connection-failed
"failed with code 10060
" :host "elpa.gnu.org" :service 80)
error in process sentinel: Error retrieving:
http://elpa.gnu.org/packages/archive-contents (error connection-failed
"failed with code 10060
" :host "elpa.gnu.org" :service 80)
Making completion list...
Package refresh done
error in process sentinel: Error retrieving:
http://orgmode.org/elpa/archive-contents (error connection-failed "failed
with code 10060
" :host "orgmode.org" :service 80)
error in process sentinel: Error retrieving:
http://orgmode.org/elpa/archive-contents (error connection-failed "failed
with code 10060
" :host "orgmode.org" :service 80)
read-number: Command attempted to use minibuffer while in minibuffer
Contacting host: elpa.gnu.org:80
Failed to download ‘gnu’ archive.
Contacting host: orgmode.org:80
Failed to download ‘org’ archive.
You can run the command ‘package-refresh-contents’ with M-x pa-r- RET
Failed to download ‘org’ archive."

Below is the configuration at the beginning of my .emacs init file:

"(eval-after-load "url"
  '(progn
 (require 'w32-registry)
 (defadvice url-retrieve (before
  w32-set-proxy-dynamically
  activate)
   "Before retrieving a URL, query the IE Proxy settings, and use them."
   (let ((proxy (w32reg-get-ie-proxy-config)))
 (setq url-using-proxy proxy
   url-proxy-services proxy)

(require 'package)
(add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/;) t)

;; Added by Package.el.  This must come before configurations of
;; installed packages.  Don't delete this line.  If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)"

As you  can see in the error messages, the problem appears even with the
gnu archive. I suspect a proxy settings issue, but I don't know how to
diagnose the problem and find the solution.

Any help appreciated,

Roland.


[O] clocktable - summing time on a property instead of headline

2016-09-16 Thread Roland Everaert
Hi,

I am treating multiple tasks that can belong to the same project or
different project, but as I have an (almost) infinite number of projects
and I am working on many projects throughout the day, I prefer to define a
property that will contain the project code instead of a tree for each
project.

Thus, is it possible to configure a clock table to display time spend on a
property instead of a headline.


Thanks,


Roland.


Re: [O] Using org-mode as a personal help desk tool

2016-06-22 Thread Roland Everaert
org-attach was the feature I needed.

Thank you.

On Mon, Jun 20, 2016 at 4:10 PM, Eric Abrahamsen <e...@ericabrahamsen.net>
wrote:

> Roland Everaert <reveatw...@gmail.com> writes:
>
> > Hi,
> >
> > I am working as a sysadmin, In the organization, we use 2 tools to
> > keep track of requests sent by the customers/users. As you can expect,
> > those tools are not meant to be used to track all the gritty details
> > of a sysadmin's job.
> >
> > So I am turning to org-mode (that I used for years) and its community
> > to find a way to organize my job and being able to track what I have
> > done and store the hundreds of lines of output from a command-line.
> >
> > I was wondering if it was possible to create directories and files
> > with org-capture, based on data given interactively by the user.
>
> You can use org-attach in conjunction with org-capture, to create a
> directory connected to an Org heading.
>
> > My intention would be to work this way:
> >
> > 1. Create a directory for a request or a group of tasks or a project,
> > in short, an aspect of my job.
> > 2. Create a file that will contain the information related to the
> > request in addition to a journal allowing me to keep track of what I
> > have done and store all the data that are useful to me.
>
> I'd say you don't need a separate file for this, simply the subtree of
> the heading you're using to track this job.
>
> > 3. Store anything that is related to that request or aspect of my job
> > into the related directory.
>
> That's org-attach again.
>
> > 4. Being able to search for a particular aspect or getting a list of
> > them and access it.
>
> I actually don't think there's any built-in way of searching files in an
> org-attach directory.
>
> > 5. When the job is done for an aspect, archive the directory.
>
> I think that would happen automatically with org-attach.
>
> > So far, I was using the configuration of norang, but I don't thing it
> > is really adapted to my work-flow anymore.
> >
> > I know that org-mode is capable of a lot of things, but I was
> > wondering if this is not a little bit to broad for org-mode to be an
> > efficient tool. I was even thinking that all of this should be done
> > through a server, with emacs being the interface to communicate with
> > it.
>
> Beats me!
>
>
>


[O] Using org-mode as a personal help desk tool

2016-06-20 Thread Roland Everaert
Hi,

I am working as a sysadmin, In the organization, we use 2 tools to keep
track of requests sent by the customers/users. As you can expect, those
tools are not meant to be used to track all the gritty details of a
sysadmin's job.

So I am turning to org-mode (that I used for years) and its community to
find a way to organize my job and being able to track what I have done and
store the hundreds of lines of output from a command-line.

I was wondering if it was possible to create directories and files with
org-capture, based on data given interactively by the user.

My intention would be to work this way:

1. Create a directory for a request or a group of tasks or a project, in
short, an aspect of my job.
2. Create a file that will contain the information related to the request
in addition to a journal allowing me to keep track of what I have done and
store all the data that are useful to me.
3. Store anything that is related to that request or aspect of my job into
the related directory.
4. Being able to search for a particular aspect or getting a list of them
and access it.
5. When the job is done for an aspect, archive the directory.

So far, I was using the configuration of norang, but I don't thing it is
really adapted to my work-flow anymore.

I know that org-mode is capable of a lot of things, but I was wondering if
this is not a little bit to broad for org-mode to be an efficient tool. I
was even thinking that all of this should be done through a server, with
emacs being the interface to communicate with it.

I would like to ear from others, how they are dealing with a similar job
than mine using org-mode.

Hope everything is clear, and don't hesitate to ask for clarification.


Regards.


[O] [bug suspected] Org tangles #+HEADER in the source code when using :comments org

2014-09-10 Thread Roland Donat
Dear orgmode community,

My problem is very simple. I have the following piece of org buffer :

 My piece of org buffer 
* Exemple : =hello_world=

Some very explicit comments...

#+HEADER: :tangle ./hello_world.py
#+HEADER: :padline yes
#+HEADER: :eval no
#+HEADER: :comments org
#+HEADER: :exports none
#+BEGIN_SRC python
a = Hello World!
#+END_SRC
 end of org buffer 

When I tangle the file, I would have expected this :

 expected hello_world.py 
## Exemple : hello_world

## Some very explicit comments

a = Hello World
 end of expected hello_world.py 

But instead, I get :

 hello_world.py 
## Exemple : hello_world

## Some very explicit comments

## #+HEADER: :tangle ./hello_world.py
## #+HEADER: :padline yes
## #+HEADER: :eval no
## #+HEADER: :comments org
## #+HEADER: :exports none
a = Hello World
 end of hello_world.py 

I can imagine my question : Why org keeps the ## #+HEADER lines when 
tangling? Is it possible to remove it? Is it a bug?

I use org-mode 8.2.5h on Linux.

Thank you very much for your help!

Cheers,

Roland.





[O] Tangle source block with options :comments org

2014-09-06 Thread Roland Donat
Dear orgmode community,

My problem is very simple. I have the following piece of org buffer :

 My piece of org buffer 
* Exemple : =hello_world=

Some very explicit comments...

#+HEADER: :tangle ./hello_world.py
#+HEADER: :padline yes
#+HEADER: :eval no
#+HEADER: :comments org
#+HEADER: :exports none
#+BEGIN_SRC python
a = Hello World!
#+END_SRC
 end of org buffer 

When I tangle the file, I would have expected this :

 expected hello_world.py 
## Exemple : hello_world

## Some very explicit comments

a = Hello World
 end of expected hello_world.py 

But instead, I get :

 hello_world.py 
## Exemple : hello_world

## Some very explicit comments

## #+HEADER: :tangle ./hello_world.py
## #+HEADER: :padline yes
## #+HEADER: :eval no
## #+HEADER: :comments org
## #+HEADER: :exports none
a = Hello World
 end of hello_world.py 

I can imagine my question : Why org keeps the ## #+HEADER lines when 
tangling? Is it possible to remove it?

I use org-mode 8.2.5h on Linux.

Thank you very much for your help!

Cheers,

Roland.











Re: [O] :RESULTS: drawer exported in LaTeX

2014-07-16 Thread Roland DONAT
Hello,

Nicolas Goaziou mail at nicolasgoaziou.fr writes:

 
 Hello,
 
 Roland DONAT roland.donat at gmail.com writes:
 
  You're right, there is something wrong between the parser and the 
  headlines... I hope it's a bug because I can't think of a reason to 
prevent 
  user from inserting headlines between drawers, and I pointed, I haven't 
  other non-dirty solution ;)
 
 Only headlines can contain headlines. This is the top-most syntax
 element in Org, you cannot put it into something smaller.
 
 Regards,
 

Ok, I understand... That I'm dead :(.
Thanks anyway for the explanation, 
Regards,
Roland.






Re: [O] Babel : python generate org source block with an extra comma before * characters

2014-07-15 Thread Roland DONAT
Thorsten Jolitz tjolitz at gmail.com writes:

 
 Roland DONAT roland.donat at gmail.com writes:
 
  To do so, I tried to use de drawer option. It gives me the good result 
  with a drawer but then when I export my org buffer to latex, the drawers 
  :RESULTS: is also exported which is not cool...
 
 Did you try header args ':exports code ' or ':exports none'?
 

Sorry for the late reply and thanks for your post.

Yes I did and it does't work since these options do exactly what they are 
supposed to. So :  
- :exports code just exports my python source code.
- :exports none exports nothing.

But unfortunately I realised that the BEGIN_ORG drawer was also exported 
which is not what I want.

So, I will create another post on that specific subject.

Cheers.






[O] :RESULTS: drawer exported in LaTeX

2014-07-15 Thread Roland DONAT
Dear Orgmode community,

I have this piece of python code that generate Orgmode text :

#+NAME: test
#+HEADER: :session test1
#+HEADER: :results value drawer
#+BEGIN_SRC python   
a = ** H1\nblabla\n** H2\nbloblo
a
#+END_SRC

#+RESULTS: test
:RESULTS:
** H1
blabla
** H2
bloblo
:END:

But when I export my document in LaTeX, the :RESULTS: drawer appears in the 
final pdf which it's not cool...

I have a d:nil in my OPTIONS header.

My configuration :
- Org 8.2.5h on Linux Mint 16. 
- Python 3

Any help would be much appreciated! Thanks.

Roland.





Re: [O] :RESULTS: drawer exported in LaTeX

2014-07-15 Thread Roland DONAT
Nick Dokos ndokos at gmail.com writes:

 
 Roland DONAT roland.donat at gmail.com writes:
 
  Dear Orgmode community,
 
  I have this piece of python code that generate Orgmode text :
 
  #+NAME: test
  #+HEADER: :session test1
  #+HEADER: :results value drawer
  #+BEGIN_SRC python   
  a = ** H1\nblabla\n** H2\nbloblo
  a
  #+END_SRC
 
  #+RESULTS: test
  :RESULTS:
  ** H1
  blabla
  ** H2
  bloblo
  :END:
 
  But when I export my document in LaTeX, the :RESULTS: drawer appears in 
the 
  final pdf which it's not cool...
 
  I have a d:nil in my OPTIONS header.
 
 
 There is either a bug in the parser or a drawer cannot contain headlines
 (probably the latter): running org-element-parse-buffer on the following:
 
 --8---cut here---start-8---
 #+STARTUP: noindent
 #+OPTIONS: toc:nil
 
 * foo
 :RESULTS:
 
 ** foo1
 blabla
 bloblo
 :END:
 
 * Local variables 
   
:noexport:
 
 # Local Variables:
 # org-export-with-drawers: (RESULTS)
 # End:
 --8---cut here---end---8---
 
 gives me:
 
 --8---cut here---start-8---
 (org-data nil
 (section
  (:begin 1 :end 41 :contents-begin 1 :contents-end 40 :post-blank 
1 :parent #0)
  (keyword
   (:key \STARTUP\ :value \noindent\ :begin 1 :end 21 :post-
blank 0 :post-affiliated 1 :parent #1))
  (keyword
   (:key \OPTIONS\ :value \toc:nil\ :begin 21 :end 40 :post-
blank 0 :post-affiliated 21 :parent #1)))
 (headline
  (:raw-value \foo\ :begin 41 :end 87 :pre-blank 0 :contents-
begin 47 :contents-end 86 :level 1
 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 1 
:footnote-section-p nil
 :archivedp nil :commentedp nil :title
  (#(\foo\ 0 3
 (:parent #1)))
  :parent #0)
  (section
   (:begin 47 :end 58 :contents-begin 47 :contents-end 57 :post-
blank 1 :parent #1)
   (paragraph
(:begin 47 :end 57 :contents-begin 47 :contents-end 57 :post-
blank 0 :post-affiliated 47 :parent #2)
#(\:RESULTS:\\n\ 0 10
  (:parent #3
  (headline
   (:raw-value \foo1\ :begin 58 :end 86 :pre-blank 0 :contents-
begin 66 :contents-end 86 :level 2
 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 
:footnote-section-p nil
 :archivedp nil :commentedp nil :title
   (#(\foo1\ 0 4
  (:parent #2)))
   :parent #1)
   (section
(:begin 66 :end 87 :contents-begin 66 :contents-end 86 :post-
blank 1 :parent #2)
(paragraph
 (:begin 66 :end 80 :contents-begin 66 :contents-end 80 :post-
blank 0 :post-affiliated 66 :parent #3)
 #(\blabla\\nbloblo\\n\ 0 14
   (:parent #4)))
(drawer
 (:begin 80 :end 86 :drawer-name \END\ :contents-begin nil 
:contents-end nil :post-blank 0
 :post-affiliated 80 :parent #3)
 (headline
  (:raw-value \Local variables\ :begin 87 :end 198 :pre-blank 1 
:contents-begin 133 :contents-end 198
 :level 1 :priority nil :tags
  (\noexport\)
  :todo-keyword nil :todo-type nil :post-blank 0 
:footnote-section-p nil :archivedp nil :commentedp
 nil :title
  (#(\Local variables\ 0 15
 (:parent #1)))
  :parent #0)
  (section
   (:begin 133 :end 198 :contents-begin 133 :contents-end 198 
:post-blank 0 :parent #1)
   (comment
(:begin 133 :end 198 :value \Local
 Variables:\\norg-export-with-drawers:
 (\\\RESULTS\\\)\\nEnd:\ :post-blank 0 :post-affiliated 133
 :parent #2)
 
 --8---cut here---end---8---
 
 so :RESULTS: is somehow misinterpreted as a paragraph and :END: as an
 empty drawer, instead of as the end of the RESULTS drawer.
 
 If there is no headline inside the drawer, then there is no
 misinterpretation, IOW the following works:
 
 --8---cut here---start-8---
 #+STARTUP: noindent
 #+OPTIONS: toc:nil
 
 * foo
 :RESULTS:
 
 blabla
 bloblo
 :END:
 
 * Local variables 
   
:noexport:
 
 # Local Variables:
 # org-export-with-drawers: (RESULTS)
 # End:
 --8---cut here---end---8---
 
 The final verdict has to be issued by Nicolas however. If it's not a
 bug, then you will have to modify your method (I would have said that
 raw is the best solution, but since you have already rejected that,
 I'm not sure what else to suggest).
 
 --
 Nick
 
 

Thank you very much for your analysis!

You're right, there is something wrong between the parser

Re: [O] Problem with org-mode after upgradiing to org 8

2014-07-14 Thread Roland Everaert
org-mode will makes me crazy. After a deep review (well rewrite my entire
configuration based on norang's one) org-mode is working again, but its the
version bundled with emacs that seems to be loaded and not the one I
downloaded from the git repository.


My emacs configuration is structured like so:

~/.emacs.d/init.el
~/.emacs.d/site-lisp/ -- contains alot of lisp codes including the
directory of org.


At the top of the init.el file I put the following:

(let ((default-directory ~/.emacs.d/site-lisp/))
  (normal-top-level-add-to-load-path '(.))
  (normal-top-level-add-subdirs-to-load-path))


I, later, load a file containing all my org-mode configuration. That file
is located in ~/.emacs.d/site-lisp/. I load that file in this way:

(load-library my-org-mode-config)

 At the top of that configuration file is written:

(add-to-list 'load-path (expand-file-name
~/.emacs.d/site-lisp/org-mode/lisp))
(add-to-list 'load-path (expand-file-name
~/.emacs.d/site-lisp/org-mode/contrib/lisp))
(add-to-list 'auto-mode-alist '(\\.\\(org\\|org_archive\\)$ . org-mode))

(require 'org)


So I don't understand why M-x org-version gives me:

Org-mode version 7.9.3f (release_7.9.3f-17-g7524ef @
/usr/share/emacs/24.3/lisp/org/)


Any help welcomed,


Roland.

On Fri, Jul 4, 2014 at 4:21 PM, John Hendy jw.he...@gmail.com wrote:

 On Fri, Jul 4, 2014 at 5:55 AM, Roland Everaert reveatw...@gmail.com
 wrote:
  Hi,
 
  After further investigation, it is the call to the function
  (org-agenda-to-appt) inside the function bh/org-agenda-to-appt that is
  causing the error.
 
  The body of the function:
 
  ; Erase all reminders and rebuilt reminders for today from the agenda
  (defun bh/org-agenda-to-appt ()
(interactive)
(setq appt-time-msg-list nil)
   (org-agenda-to-appt)
  )

 I know approximately nothing about elisp... but my intuitive
 interpretation is that it's setting the variable appt-time-msg-list to
 the value nil. When I do M-x help RET appt-msg-[TAB], I don't get any
 completions listed. Does that variable still exist?

 When googling that variable, I find evidence of people referring to
 it, but I'm not sure it's built into emacs -- are you sure you don't
 need to add something else, such as appt.el?
 - http://www.emacswiki.org/emacs-en/appt.el


 John

 
 
  I will deactivate the call to bh/org-agenda-to-appt, so I can have a
 normal
  life again and use emacs and org-mode without any problem. I will review
 and
  clean my configuration when times permit.
 
  I am anyway curious to know why that function call generate such error.
 
  Thanks for your help,
 
 
  Roland.
 
 
 
 
  On Thu, Jul 3, 2014 at 10:10 AM, Roland Everaert reveatw...@gmail.com
  wrote:
 
  Hi John,
 
  I am using Bernt's configuration (at least a part of it) for years
 without
  problems until I switch to org 8.
 
  I hame commented most of my init.el file and uncomment bits of
  configuration lines one at a time. and I have found where is located the
  problem. I have know to investigate why it is a problem.
 
  The offending line is (bh/org-agenda-to-appt), this is one of the
 function
  from the configuration of Bernt, so I have now to check my version
 against
  the one on his page to see if he doesn't update it.
 
  And to answer your question, the loaded version of org-mode is Org-mode
  version beta_8.3 (beta_8.3-16-g16c71d6 @
  /home/reveatwork/.emacs.d/site-lisp/org-mode/lisp/)
 
  I will also perform a make clean  make of my installation of org-mode
  just in case some their is some garbage left from previous version.
 
 
  Thanks for your help,
 
 
  Roland.
 
 
 
 
 
  On Tue, Jul 1, 2014 at 5:55 PM, John Hendy jw.he...@gmail.com wrote:
 
  On Tue, Jul 1, 2014 at 5:04 AM, Roland Everaert reveatw...@gmail.com
  wrote:
   I have upgraded using git on a Linux fedora 20 64 bit.
  
   I perform the following commands from the directory of org-mode:
  
   make clean
   git pull
   make
 
  I usually do git pull  make clean  make, but don't know if that
  makes a difference, so that's probably fine.
 
   I have also read the following page:
   http://orgmode.org/worg/org-8.0.html
  
   And search for all variables in my configuration that start with
   org-export,
   but I have none of them.
 
  Well, I'm interested in the original error, Autoloading failed to
  define function org-element-cache-reset, not anything to do with
  org-export. You should be able to start emacs without any errors, and
  I think that's the primary thing to troubleshoot first.
 
   My configuration is heavily inspired by this article:
   http://doc.norang.ca/org-mode.html
 
  Bernt's page is one of the most advanced orgmode setups documented
  that I've ever seen. I wouldn't get too deep into that before figuring
  out what's going on at the basic level.
 
  
   I have quickly browsed it in case some specific changes needs to be
   done,
   but the only ones concernes the exporters that I have not configured
   yet.
  
   Which lines from the my

[O] Babel : python generate org source block with an extra comma before * characters

2014-07-13 Thread Roland DONAT
Dear Orgmode community,

Thanks in advance to take some time to help me with my problem...

Here is what is making me very sad :

I have a python (python 3 interpreter) source block that I use to generate 
parts of a report written in Orgmode. Suppose we have this little example :

#+NAME: test
#+BEGIN_SRC python :results value org :session test

report = *** header 1
My pretty report

*** header 2
Ah ah! With that stuff, I will increase my *productivity*!!!


report
#+END_SRC

What I get is :
#+RESULTS: test
#+BEGIN_SRC org
,*** header 1
My pretty report

,*** header 2
Ah ah, with that stuff, I will increase my *productivity*!!!
#+END_SRC

My question : Why Orgmode adds the comma before the star character???

In the manual, I read some things about comma-escaping in Org source block 
so my intuition tells me that my problem has something to do with that but I 
wasn't able to solve it for now.

My configuration :
- Org 8.2.5h on Linux Mint 16. 
- Python 3

Any help would be much appreciated! Thanks.

Roland.









Re: [O] Babel : python generate org source block with an extra comma before * characters

2014-07-13 Thread Roland DONAT
Thorsten Jolitz tjolitz at gmail.com writes:


 
 This is because this function was applied to the results
 
 ,[ C-h f org-escape-code-in-region RET ]
 | org-escape-code-in-region is an interactive compiled Lisp function in
 | `org-src.el'.
 | 
 | (org-escape-code-in-region BEG END)
 | 
 | Escape lines between BEG and END.
 | Escaping happens when a line starts with *, #+, ,* or
 | ,#+ by appending a comma to it.
 | 
 | [back]
 `
 
 Not sure how to get rid of this, maybe via :results raw? I'm not aware
 of a configuration variable for this, but it surely exists. 
 

Thank you. It helps me much!

Based on your answer, I copy-paste the code of the function org-escape-
code-in-region in a source block in my org buffer and modify the code to 
prevent it from inserting the comma. It's a little bit dirty but it works.

Using the raw option produces a correct result but I need the generated code 
to be decorated with a drawer to automatically replace the result at each 
code execution.

To do so, I tried to use de drawer option. It gives me the good result 
with a drawer but then when I export my org buffer to latex, the drawers 
:RESULTS: is also exported which is not cool...

Well, thanks again!

Roland.




 





Re: [O] Problem with org-mode after upgradiing to org 8

2014-07-04 Thread Roland Everaert
Hi,

After further investigation, it is the call to the function
(org-agenda-to-appt) inside the function bh/org-agenda-to-appt that is
causing the error.

The body of the function:

; Erase all reminders and rebuilt reminders for today from the agenda
(defun bh/org-agenda-to-appt ()
  (interactive)
  (setq appt-time-msg-list nil)
 (org-agenda-to-appt)
)


I will deactivate the call to bh/org-agenda-to-appt, so I can have a normal
life again and use emacs and org-mode without any problem. I will review
and clean my configuration when times permit.

I am anyway curious to know why that function call generate such error.

Thanks for your help,


Roland.




On Thu, Jul 3, 2014 at 10:10 AM, Roland Everaert reveatw...@gmail.com
wrote:

 Hi John,

 I am using Bernt's configuration (at least a part of it) for years without
 problems until I switch to org 8.

 I hame commented most of my init.el file and uncomment bits of
 configuration lines one at a time. and I have found where is located the
 problem. I have know to investigate why it is a problem.

 The offending line is (bh/org-agenda-to-appt), this is one of the function
 from the configuration of Bernt, so I have now to check my version against
 the one on his page to see if he doesn't update it.

 And to answer your question, the loaded version of org-mode is Org-mode
 version beta_8.3 (beta_8.3-16-g16c71d6 @
 /home/reveatwork/.emacs.d/site-lisp/org-mode/lisp/)

 I will also perform a make clean  make of my installation of org-mode
 just in case some their is some garbage left from previous version.


 Thanks for your help,


 Roland.





 On Tue, Jul 1, 2014 at 5:55 PM, John Hendy jw.he...@gmail.com wrote:

 On Tue, Jul 1, 2014 at 5:04 AM, Roland Everaert reveatw...@gmail.com
 wrote:
  I have upgraded using git on a Linux fedora 20 64 bit.
 
  I perform the following commands from the directory of org-mode:
 
  make clean
  git pull
  make

 I usually do git pull  make clean  make, but don't know if that
 makes a difference, so that's probably fine.

  I have also read the following page:
  http://orgmode.org/worg/org-8.0.html
 
  And search for all variables in my configuration that start with
 org-export,
  but I have none of them.

 Well, I'm interested in the original error, Autoloading failed to
 define function org-element-cache-reset, not anything to do with
 org-export. You should be able to start emacs without any errors, and
 I think that's the primary thing to troubleshoot first.

  My configuration is heavily inspired by this article:
  http://doc.norang.ca/org-mode.html

 Bernt's page is one of the most advanced orgmode setups documented
 that I've ever seen. I wouldn't get too deep into that before figuring
 out what's going on at the basic level.

 
  I have quickly browsed it in case some specific changes needs to be
 done,
  but the only ones concernes the exporters that I have not configured
 yet.
 
  Which lines from the my ~/.emacs.d/init.el, would you like to see?

 How are you telling Emacs where Orgmode lives? My suggestion would be
 the following:

 Create a minimal .emacs file with just the following (change path to
 wherever your orgmode git repo is):

 (add-to-list 'load-path ~/path/to/org.git/lisp/)

 From a command line, run:

 $ emacs -Q

 Then from Emacs, run:

 M-x load-file [press enter] /path/to/minimal-config/from/above [press
 enter]

 Then run:

 M-x org-version

 You should get something like this:

 Org-mode version 8.2.6 (release_8.2.6-950-ge599e8 @
 /home/jwhendy/.elisp/org.git/lisp/)

 If you don't get any errors, close emacs, copy some lines from your
 real config into that minimal config, and repeat the process (emacs
 -Q - M-x load-file...) until you get the error again. Then you'll
 know what's causing it. Doing it this way helps know that you've at
 least got the right Org-mode loaded (not the one built in to your
 Emacs), and from there we can track the issue.

 Once that's all set, getting exporters going is a pretty simple
 matter. I have this in my .emacs:

 (require 'ox-latex)
 (require 'ox-html)
 (require 'ox-beamer)
 (require 'ox-md)
 (require 'ox-odt)
 (require 'ox-taskjuggler)

 (add-to-list 'org-latex-classes
  '(beamer
\\documentclass\[presentation\]\{beamer\}
(\\section\{%s\} . \\section*\{%s\})
(\\subsection\{%s\} . \\subsection*\{%s\})
(\\subsubsection\{%s\} . \\subsubsection*\{%s\})))

 That handles it all for me.

 Also, please keep cc'ing the Org list. They know much more than I do,
 and as you provide more information can probably help you better than
 I can as well.


 Good luck!
 John


 
 
  Roland.
 
 
 
 
 
 
  On Mon, Jun 30, 2014 at 1:39 PM, John Hendy jw.he...@gmail.com wrote:
 
 
  On Jun 30, 2014 4:48 AM, Roland Everaert reveatw...@gmail.com
 wrote:
  
   Second part of the message:
  
   Information from M-x org-version:
  
   Org-mode version beta_8.3 (beta_8.3-16-g16c71d6 @
   /home/reveatwork

Re: [O] Problem with org-mode after upgradiing to org 8

2014-07-03 Thread Roland Everaert
Hi John,

I am using Bernt's configuration (at least a part of it) for years without
problems until I switch to org 8.

I hame commented most of my init.el file and uncomment bits of
configuration lines one at a time. and I have found where is located the
problem. I have know to investigate why it is a problem.

The offending line is (bh/org-agenda-to-appt), this is one of the function
from the configuration of Bernt, so I have now to check my version against
the one on his page to see if he doesn't update it.

And to answer your question, the loaded version of org-mode is Org-mode
version beta_8.3 (beta_8.3-16-g16c71d6 @
/home/reveatwork/.emacs.d/site-lisp/org-mode/lisp/)

I will also perform a make clean  make of my installation of org-mode
just in case some their is some garbage left from previous version.


Thanks for your help,


Roland.





On Tue, Jul 1, 2014 at 5:55 PM, John Hendy jw.he...@gmail.com wrote:

 On Tue, Jul 1, 2014 at 5:04 AM, Roland Everaert reveatw...@gmail.com
 wrote:
  I have upgraded using git on a Linux fedora 20 64 bit.
 
  I perform the following commands from the directory of org-mode:
 
  make clean
  git pull
  make

 I usually do git pull  make clean  make, but don't know if that
 makes a difference, so that's probably fine.

  I have also read the following page:
  http://orgmode.org/worg/org-8.0.html
 
  And search for all variables in my configuration that start with
 org-export,
  but I have none of them.

 Well, I'm interested in the original error, Autoloading failed to
 define function org-element-cache-reset, not anything to do with
 org-export. You should be able to start emacs without any errors, and
 I think that's the primary thing to troubleshoot first.

  My configuration is heavily inspired by this article:
  http://doc.norang.ca/org-mode.html

 Bernt's page is one of the most advanced orgmode setups documented
 that I've ever seen. I wouldn't get too deep into that before figuring
 out what's going on at the basic level.

 
  I have quickly browsed it in case some specific changes needs to be done,
  but the only ones concernes the exporters that I have not configured yet.
 
  Which lines from the my ~/.emacs.d/init.el, would you like to see?

 How are you telling Emacs where Orgmode lives? My suggestion would be
 the following:

 Create a minimal .emacs file with just the following (change path to
 wherever your orgmode git repo is):

 (add-to-list 'load-path ~/path/to/org.git/lisp/)

 From a command line, run:

 $ emacs -Q

 Then from Emacs, run:

 M-x load-file [press enter] /path/to/minimal-config/from/above [press
 enter]

 Then run:

 M-x org-version

 You should get something like this:

 Org-mode version 8.2.6 (release_8.2.6-950-ge599e8 @
 /home/jwhendy/.elisp/org.git/lisp/)

 If you don't get any errors, close emacs, copy some lines from your
 real config into that minimal config, and repeat the process (emacs
 -Q - M-x load-file...) until you get the error again. Then you'll
 know what's causing it. Doing it this way helps know that you've at
 least got the right Org-mode loaded (not the one built in to your
 Emacs), and from there we can track the issue.

 Once that's all set, getting exporters going is a pretty simple
 matter. I have this in my .emacs:

 (require 'ox-latex)
 (require 'ox-html)
 (require 'ox-beamer)
 (require 'ox-md)
 (require 'ox-odt)
 (require 'ox-taskjuggler)

 (add-to-list 'org-latex-classes
  '(beamer
\\documentclass\[presentation\]\{beamer\}
(\\section\{%s\} . \\section*\{%s\})
(\\subsection\{%s\} . \\subsection*\{%s\})
(\\subsubsection\{%s\} . \\subsubsection*\{%s\})))

 That handles it all for me.

 Also, please keep cc'ing the Org list. They know much more than I do,
 and as you provide more information can probably help you better than
 I can as well.


 Good luck!
 John


 
 
  Roland.
 
 
 
 
 
 
  On Mon, Jun 30, 2014 at 1:39 PM, John Hendy jw.he...@gmail.com wrote:
 
 
  On Jun 30, 2014 4:48 AM, Roland Everaert reveatw...@gmail.com
 wrote:
  
   Second part of the message:
  
   Information from M-x org-version:
  
   Org-mode version beta_8.3 (beta_8.3-16-g16c71d6 @
   /home/reveatwork/.emacs.d/site-lisp/org-mode/lisp/)
  
   I have downloaded the last version using git.
 
  Can you elaborate on your exact procedure for upgrading as well as
 posting
  relevant lines from .emacs?
 
  John
 
  
   How can I switch to a stable branch instead of the last beta, to check
   if that solves the problem?
  
  
   Thanks for your help.
  
  
  
   On Mon, Jun 30, 2014 at 11:24 AM, Roland Everaert 
 reveatw...@gmail.com
   wrote:
  
   Hi,
  
   I have recently upgraded to org-mode version 8. Each time I start
 emacs
   I see the folloinwg error:
  
   error Autoloading failed to define function org-element-cache-reset
  
  
   And some functionnality of org-mode doesn't seems to work anymore.
  
  
   Informa
  
  
 
 



[O] Problem with org-mode after upgradiing to org 8

2014-06-30 Thread Roland Everaert
Hi,

I have recently upgraded to org-mode version 8. Each time I start emacs I
see the folloinwg error:

error Autoloading failed to define function org-element-cache-reset


And some functionnality of org-mode doesn't seems to work anymore.


Informa


Re: [O] Problem with org-mode after upgradiing to org 8

2014-06-30 Thread Roland Everaert
Second part of the message:

Information from M-x org-version:

Org-mode version beta_8.3 (beta_8.3-16-g16c71d6 @
/home/reveatwork/.emacs.d/site-lisp/org-mode/lisp/)

I have downloaded the last version using git.

How can I switch to a stable branch instead of the last beta, to check if
that solves the problem?


Thanks for your help.



On Mon, Jun 30, 2014 at 11:24 AM, Roland Everaert reveatw...@gmail.com
wrote:

 Hi,

 I have recently upgraded to org-mode version 8. Each time I start emacs I
 see the folloinwg error:

 error Autoloading failed to define function org-element-cache-reset


 And some functionnality of org-mode doesn't seems to work anymore.


 Informa



Re: [O] How to pass named table reference in source block variable

2013-08-08 Thread Roland Donat
Thomas S. Dye tsd at tsdye.com writes:

 
 Roland Donat roland.donat at gmail.com writes:
 
  
  Perhaps this can help:
  
  http://orgmode.org/worg/org-contrib/babel/examples/lob-table-
  operations.html
  
  Alternatively, you might pass the table to a code block of a language
  that understands tables, such as an R data frame, and use that language
  to retrieve values by name.
  
  hth,
  Tom
  
 
  Thank you for the link, I'll check it but seems that it won't solve the 
  problem. But anyway, I found a workaround that doesn't involve to insert 
  table reference. 
 
 What is the workaround?
 
 All the best,
 Tom

Well, my main objective was to write piece of code in a given language X 
including information stored in some org-table. 

So my solution for now was to create some python functions able to generate 
my code. I use babel to pass my org-table as input to the python function 
and the result is another source block of language X containing the code 
taking into account the information of my org-table.

I recognized that the solution seems quite heavy but I have already 
developped some python wrapper for my language X so It takes me only 2 hours 
to do the job.

All the best.

Roland. 











Re: [O] How to pass named table reference in source block variable

2013-08-08 Thread Roland Donat
Eric Schulte schulte.eric at gmail.com writes:

 
 It sounds like you want to use tables like key-value stores.  I think
 adding such behavior directly to Org-mode would overly complicate the
 data structures passed between code blocks (which currently only
 consists of scalars and tables).  However, maybe the following could
 work.
 
 
 Attachment (key-value.org): text/x-org, 776 bytes
 
 
 Cheers,
 

Thanks for the attachment. It works fine indeed!
But should it be so complicated to add this behavior to Org-mode?

I can rewrite your table as follows :

#+name: table
|   | keys | values |
|---+--+|
|   | foo  | 1  |
| ^ |  | foo|
|   | bar  | 2  |
| ^ |  | bar|

Now I can refer to bar value as $bar in org-table. 

So, my suggestion is only to mimic this feature to assign value of source 
block variable like :

#+headers: :results verbatim
#+begin_src sh :var foo=table$foo :var bar=table$bar
  cat EOF
  Pulling the data from the above table we find
  that foo is $foo and baz is $bar.
  EOF
#+end_src

But anyway, thanks for the solution.

Cheers.

Roland.









Re: [O] How to pass named table reference in source block variable

2013-08-07 Thread Roland Donat
Thorsten Jolitz tjolitz at gmail.com writes:

 
 This does the job in Emacs Lisp:
 
  #+TBLNAME: T
  |   | x | 1 |
  | ^ |   | varx  |
 
 #+begin_src emacs-lisp :var x=T[0,-1]
  x
 #+end_src
 
 #+results:
 : 1
 

Thanks for the answer but in fact, my objective is precisely to avoid using 
the indices of the value I want to pass as input of the code block.

My goal is to use the cell name reference varx which would make the code 
block simpler to maintain. Indeed, if I add new data on the top of table T, 
I wouldn't have to change the reference in the code block since the name 
reference is fixed.










Re: [O] How to pass named table reference in source block variable

2013-08-07 Thread Roland Donat
Thomas S. Dye tsd at tsdye.com writes:


 
 Perhaps this can help:
 
 http://orgmode.org/worg/org-contrib/babel/examples/lob-table-
operations.html
 
 Alternatively, you might pass the table to a code block of a language
 that understands tables, such as an R data frame, and use that language
 to retrieve values by name.
 
 hth,
 Tom
 

Thank you for the link, I'll check it but seems that it won't solve the 
problem. But anyway, I found a workaround that doesn't involve to insert 
table reference. 

It's a pity that I am so bad at Lisp because I feel this feature wouldn't be 
too complicated to code, especially if the reference mechanism is already 
implemented.

Thank you again!

Cheers,

Roland.
 




[O] Insert variable into tangled source code

2013-08-06 Thread Roland
Hello!

I use orgmode to write code in a IA language developped by the company I 
work for. Everything was just nice when I attempted to insert in the source 
code a value set up in my org buffer.

Here is the real situation :


#+TBLNAME: tab_x
| x | 1 |

#+begin_src own_lang :tangle ./tangle_file :var x=x[0,1]
TYPE OBJ;

CONSTANTE 
var_x DOMAIN INTEGER DEFAULT $x
#+end_src

and I would except in tangle_file :
TYPE OBJ;

CONSTANTE 
var_x DOMAIN INTEGER DEFAULT 1

But unfortunately, I get 
TYPE OBJ;

CONSTANTE 
var_x DOMAIN INTEGER DEFAULT $x

Any ideas???

Thanks in advance.

Roland.








Re: [O] Insert variable into tangled source code

2013-08-06 Thread Roland
Sebastien Vauban sva-news@... writes:

 
 First, x[0,1] can't be resolved (unlike tab_x[0,1]).
 
 For the rest, I'd guess you must add the proper replacemen method for
 `own_lang'. Is this the case?
 
 I mean: depending on the Babel language, variables must or must not be
 prefixed by a $ sign to be replaced in the code block. For example, in 
Emacs
 Lisp, you won't prefix vars with $.
 
 Maybe have a look at `sh' or `sql' Babel languages for inspiration.
 
 Best regards,
   Seb
 

Thank you very much!!!

I've just adapted the SQL expand variable function in ob-sql.el to my 
language and it works perfectly!

Best regards.

Roland.










[O] How to pass named table reference in source block variable

2013-08-06 Thread Roland Donat
Hello,

I have the following table :
#+TBLNAME: T
|   | x | 1 |
| ^ |   | varx  |

And I would like to use the reference T$var_x (=1) as input in a source block 
variable. 
For example, I would have expected the following behavior for this source 
code :
#+begin_src python :var x=T$varx  :return x
x
#+end_src

#+RESULTS:
: 1

But instead, I get the emacs message : org-babel-ref-resolve: Reference 
'T$varx' not found in this
buffer

Any idea to produce the desired result would be much appreciated!

Thanks you in advance.

Roland.
 




Re: [O] org-babel, python, encoding and table

2013-05-29 Thread Roland DONAT
Andreas Röhler andreas.roehler at easy-emacs.de writes:

 
 Am 07.05.2013 18:41, schrieb Eric Schulte:
  #+NAME: test2
  #+begin_src python :results value :preamble # -*- coding: utf-8 -*- 
:return
  a
  a = ( ( é, a ), ( a, à ) )
  b = é
  #+end_src
 
  #+RESULTS: test2
  | \303\251 | a|
  | a| \303\240 |
 
 
  Maybe this isn't an execution problem, but is rather a buffer encoding
  problem.  I executed your example above in a small buffer (attached).  I
  then saved this buffer and was forced to specify an encoding, I selected
  utf8.  If I cat the resulting file from disk, the accented characters
  appear correctly.
 
 
 Confirming this.
 
 BTW also return a[0][0] displays correct so far.
 
 Cheers,
 
 Andreas
 
 

Hello,

Just an update about this post.

I've kept on digging on the problem of org-babel python results that 
produces encoding problems in
the emacs buffer when the requested results is turned into a org table.

To remind and illustrate the problem, here is an example :
#+name: pytab-test
#+begin_src python :results value :session :preamble # -*- coding: utf-8 -*- 
:return a
a = ( ( é, a ), ( a, à ) )
a
#+end_src

#+TBLNAME: pytab-test
| \303\251 | a|
| a| \303\240 |


I have then two problems :
1. The characters are not well displayed in the buffer
2. If I try to save the buffer, emacs doesn't recognize the encoding and 
tells me that utf-8-unix cannot encode these: \303 \251 [...]

So I decided to inspect what happened during the Python session...
Basically, Org-babel just write the str conversion of my tuple ( ( é, a 
), ( a, à ) ) (that appears (('\xc3\xa9',
'a'), ('a', '\xc3\xa0')) in the python interpreter) in a temporary file.

Then looking in this temporary file, I see that the strange characters are 
written directly \xc3, \xa9, etc.

Consequently, my guess is that org-babel has maybe some difficulties to deal 
with these characters
while reading the temporary file before displaying the results in the 
buffer. 

Unfortunately, this is just a guess and even less a solution... But am I on 
relevant lead???

Thanks in advance for any help...

Roland.






  1   2   >