[O] Problems with ob-ipython

2017-03-01 Thread marvin doyley
Hi there,

I am trying to use ob-ipyton

but when I try to run any code block I get the following error "Evaluation of 
this python code block is disabled.”

Any suggestions on how to fix this ?
I am using emacs 26, python 5

cheers,
M

Here is an example code block that I try to run. Note that python code blocks 
run ok, its just the ppython ones that fail
#+BEGIN_SRC ipython :session :results output drawer

%matplotlib inline
x = np.linspace(0,np.pi,100)
y = np.cos(x)
plt.plot(x,y)
#+END_SRC


I have the following in my .emacs file

;; Org-babel
(org-babel-do-load-languages
 'org-babel-load-languages
'((emacs-lisp . t)
   (lisp . t)
   (fortran . t)
   (C . t)
   (latex . t)
   (ipython . t)
   (python . t)
   ))

(use-package ob-ipython
  :ensure t
 :config
  (setq org-confirm-babel-evaluate nil)  
  (add-hook 'org-babel-after-execute-hook 'org-display-inline-images 'append)
)

(use-package python-mode
  :ensure t
  :config
(setq python-shell-interpreter "/anaconda/bin/ipython"
  python-shell-interpreter-args  "--simple-prompt -i"
  python-indent-offset 4)
)


[O] ob-clojure broken

2017-03-01 Thread Tim Cross
With current 9.0.5 org-plus-contrib package, ob-clojure is broken and
trying to evaluate clojure source blocks just gives a code block produces
no output message.

The problem is in the org-babel-execute:clojure function. This function has
the following bit of code

(setq result
   (nrepl-dict-get
(nrepl-sync-request:eval
 expanded (cider-current-connection) (cider-current-session))
(if (or (member "output" result-params)
(member "pp" result-params))
"out"
  "value")))

The problem is in the call to nrepl-sync-request:eval. The documentation
states for this function

(nrepl-sync-request:eval INPUT CONNECTION  NS)

Send the INPUT to the nREPL server synchronously. The request is dispatched
via CONNECTION. If NS is non-nil, include it in the request.
Note the last optional argument NS. This is supposed to be a clojure
namespace. However, the org-babel-execute:clojure function is calling this
function with the output from cider-current-session, which returns a unique
ID representing the current session. As a result, the call is returning a
data structure with an error and no output (perhaps some error handling is
required). The returned result is

(dict status (namespace-not-found done error done state state) id 17
session 43e9fd6c-82ed-49fe-9624-0cfc6f56f8b1 changed-namespaces (dict)
repl-type cljclj)

Note the namespace-not-found

Either the argument should be a call to (cider-current-ns) or perhaps it
should just be left out as I don't see how you can pass the namespace as
part of the block evaluation.


-- 
regards,

Tim

--
Tim Cross


Re: [O] Two formerly internal libraries that are still being required but no longer exist

2017-03-01 Thread Jonas Bernoulli
> I don't think this is an issue. This function only makes sense if user
> has an old `org-remember' library lying around. Otherwise, it raises an
> error. This is the actual behaviour.

Makes sense, and is more friendly than the alternative.

> The other option is to remove the function altogether.

On the other hand, users will still have to somehow get their hands on that
file. So maybe a wiki page which linked to the last `org-remember.el' and
also featured the definition of `org-capture-import-remember-templates'
would be the best option.

But just leaving it as-is, works for me too.



Re: [O] Bug report: export to HTML does not escape * in example

2017-03-01 Thread Nicolas Goaziou
Hello,

D M German  writes:

> So the original issue (* not being escaped) will nonetheless appear when
> the threshold is passed:
>
> Here is an example (I run it with emacs -nw -q, using emacs25) org
> version 8.2.10 (this works also in my configuration under 9.0.2)
>
> #+BEGIN_SRC emacs-lisp :results output
> (dotimes (i 2) (print '*hello))
> #+END_SRC
>
>
> #+RESULTS: : : *hello : : *hello
>
> #+BEGIN_SRC emacs-lisp :results output
> (dotimes (i 10) (print '*hello))
> #+END_SRC
>
>
> #+RESULTS:
>
> #+begin_example
>
> *hello
>
> *hello
>
> *hello
>
> *hello
>
> *hello
> #+end_example

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou0x80A93738



Re: [O] [PATCH] ox-confluence.el: Handle checkboxes and inactive timestamps correctly

2017-03-01 Thread Marc Ihm
Nicolas Goaziou  writes:

> Correcting myselfè
>
> Nicolas Goaziou  writes:
>
>>> +  :filters-alist '((:filter-final-output . org-confluence-fix-timestamps))
>>
>> Why do you use a final filter? It is a pretty gross tool, couldn't you
>> simply generate the correct output from the plain-list or item
>> translator?
>
> I meant timestamp translator.

Wow, didn't know there are already provisions for handling timestamps
specially ! Will adopt my patch.

Thanx for the hint !

Marc



Re: [O] Bug report: export to HTML does not escape * in example

2017-03-01 Thread D M German
 
Hi Charles, everybody,

 >> I am running a babel script that generates, as one of its line * in the
 >> front:
 >> 
 >> ​#+BEGIN_SRC sh
 >> echo "* Hello"
 >> #+END_SRC
 >> 
 >> #+RESULTS:
 >> #+begin_example
 >> * Hello
 >> #+end_example
 >> 
 >> ​In that case, should babel be the one escaping the * in the RESULTS block?

 Charles> Is that *really* what it did?

 Charles> When I run your example, I get:

 Charles> #+RESULTS:
 Charles> : * Hello

 Charles> and this exports (with the `:exports results' header) to html wrapped 
in a  container:

 Charles> 
 Charles> * Hello
 Charles> 

 Charles> using Org 9.0.5.

 Charles> Without that header the src code gets wrapped in a  container.

 Charles> So there must be something in/about your setup you haven't mentioned.

 Charles> HTH,

 Charles> Chuck




I looked a bit into my configuration. In my configuration, I set the value of 
org-babel-min-lines-for-block-output to 0.

The default value of this variable is by default 10.

When the number of lines in the output is larger than it, it uses
EXAMPLE blocks rather than the escaped ones.

So the original issue (* not being escaped) will nonetheless appear when
the threshold is passed:

Here is an example (I run it with emacs -nw -q, using emacs25) org
version 8.2.10 (this works also in my configuration under 9.0.2)

#+BEGIN_SRC emacs-lisp :results output
(dotimes (i 2) (print '*hello))
#+END_SRC

#+RESULTS:
: 
: *hello
: 
: *hello


#+BEGIN_SRC emacs-lisp :results output
(dotimes (i 10) (print '*hello))
#+END_SRC

#+RESULTS:
#+begin_example

*hello

*hello

*hello

*hello

*hello
#+end_example


 

thank you all again,

--
Daniel M. German  "Cyberspace. A consensual hallucination
   experienced daily by billions
   William Gibson ->   of legitimate operators in every nation"
http://turingmachine.org/
http://silvernegative.com/
dmg (at) uvic (dot) ca
replace (at) with @ and (dot) with .




[O] agenda: past due deadlines *also* showing up under today's date

2017-03-01 Thread Sébastien Delafond
Hello,

with 9.0.3, when using the timeline view of the agenda, I get a bunch of
"998 d. ago TODO [...]", "181 d. ago TODO [...]", etc entries under
today's date. 
They correspond to past DEADLINE'd tasks, that also each show up under
their respective deadline dates in that same timeline view. Note: this
is *not* where you tell me to complete these tasks in order to eliminate
the problem ;)

Is there any way at all to not have these entries clutter today's date
in the timeline, but instead *only* show up under their own date ? I've
experimented with a lot of the org-agenda-skip-* variables, but to no
avail so far.

I've also confirmed this didn't happen with 9.0, and in both cases I
started emacs with -q to make sure it wasn't my personal config
interfering.

Cheers,

--Seb




Re: [O] Babel doesn't like some Racket comments

2017-03-01 Thread Lawrence Bottorff
This produces no Backtrace. Here's my *Messages*

Debug on Quit enabled globally
executing Scheme code block (set-example1)...
Starting Geiser REPL for racket ...
There is no ElDoc support in this buffer
Starting Geiser REPL for racket ... [2 times]
Racket REPL up and running!
=>
""
Quit

. . . and no *Backtrace* buffer. I used this code:

#+name:set-example1
#+begin_src scheme :session f1 :exports both :tangle yes :cache yes
:results silent
(define A (set 1 2 3 4))
(define B (set 3 4 5 6))
(define C (set 4 5))

(set-union A B) ; gives (set 1 2 3 4 5 6)
(set-intersect A B) ; gives (set 3 4)
(set-subtract A B)  ; gives (set 1 2)
(set=? A B) ; gives #f
(subset? C A)   ; gives #f
(subset? C B)   ; gives #t
#+end_src

and upon C-c C-c, Emacs worked for a long time, finally producing a dead,
unresponsive Racket REPL buffer. Again, if I kill the REPL, then try this
code:

#+name:set-example2
#+begin_src scheme :session f1 :exports both :tangle yes :cache yes
:results silent
(define A (set 1 2 3 4))
(define B (set 3 4 5 6))
(define C (set 4 5))

(set-union A B)
(set-intersect A B)
(set-subtract A B)
(set=? A B)
(subset? C A)
(subset? C B)
#+end_src

it works:

Welcome to Racket v6.8.
racket@> A
(set 1 3 2 4)
racket@>

On Wed, Mar 1, 2017 at 8:40 AM, Nicolas Goaziou 
wrote:

> Hello,
>
> Lawrence Bottorff  writes:
>
> > C-c C-c-ing this code
> >
> > #+begin_src scheme
> > (define (foo x)
> >   ;just add one
> >   (+ 1 x)) ; comment
> > #+end_src
> >
> > causes Racket (geiser) to freeze up. Sometimes I see a
>
> Could you use M-x toggle-debug-on-quit, reproduce the freezing, hit C-g
> and paste the backtrace?
>
> Regards,
>
> --
> Nicolas Goaziou
>


[O] M-TAB in org manual

2017-03-01 Thread Thomas Rikl
Emacs  : GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.22.7)
 of 2017-02-07
Package: Org mode version 9.0.5 (release_9.0.5-325-g28b847 @
/tom/github/org-mode/lisp/)

Hello Nicolas,

thanks for encouraging me to deliver a patch.
The patch (i think the first in my life delivered to public)
contains a superfluous comment line first inserted then removed
other parts come from fill-paragraph.

I tried also to unify the spelling of M-TAB somtimes M-, or variants.

$ git format-patch -2 HEAD --stdout --minimal >M-TAB_patch

made the attached file.

Thanks.

From 4824b482e2946eaca045d8adcd721a7fc2d8dd1d Mon Sep 17 00:00:00 2001
From: "Th. Rikl" 
Date: Tue, 28 Feb 2017 16:11:43 +0100
Subject: [PATCH 1/2] 2 hunks: M- repl. by M-TAB, alternate key "ESC TAB"

---
 doc/org.texi | 12 +++-
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/doc/org.texi b/doc/org.texi
index 6cb4243ac..83422c5ce 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -2133,7 +2133,7 @@ Re-align the table and don't move to another field.
 @orgcmd{C-c SPC,org-table-blank-field}
 Blank the field at point.
 @c
-@orgcmd{,org-table-next-field}
+@orgcmd{TAB,org-table-next-field}
 Re-align the table, move to the next field.  Creates a new row if
 necessary.
 @c
@@ -10387,10 +10387,12 @@ In-buffer settings may appear anywhere in the file, 
either directly or
 indirectly through a file included using @samp{#+SETUPFILE: filename} syntax.
 Option keyword sets tailored to a particular back-end can be inserted from
 the export dispatcher (@pxref{The export dispatcher}) using the @code{Insert
-template} command by pressing @key{#}.  To insert keywords individually,
-a good way to make sure the keyword is correct is to type @code{#+} and then
-to use @kbd{M-} for completion.
-
+template} command by pressing @key{#}.  To insert keywords individually, a
+good way to make sure the keyword is correct is to type @code{#+} and then to
+use @kbd{M-TAB} @footnote{Many desktops intercept @kbd{M-TAB} to switch
+windows. Use @kbd{C-M-i} or @kbd{@key{ESC} @key{TAB}} instead.} for
+completion.
+@c trikl m-tab spelling, footnote entferne kommentarzeile vor release
 The export keywords available for every back-end, and their equivalent global
 variables, include:
 
-- 
2.12.0


From 60256363d3d4df75491130a0366501d6f5049ad4 Mon Sep 17 00:00:00 2001
From: "Th. Rikl" 
Date: Tue, 28 Feb 2017 18:45:58 +0100
Subject: [PATCH 2/2] Intro of M-TAB footnotes and pxrefs first round completed

---
 doc/org.texi | 16 
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/doc/org.texi b/doc/org.texi
index 83422c5ce..673dc7ea6 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -1836,7 +1836,9 @@ You can interactively insert drawers at point by calling
 region, this command will put the region inside the drawer.  With a prefix
 argument, this command calls @code{org-insert-property-drawer} and add a
 property drawer right below the current headline.  Completion over drawer
-keywords is also possible using @key{M-TAB}.
+keywords is also possible using @kbd{M-@key{TAB}} @footnote{Many desktops
+intercept @kbd{M-@key{TAB}} to switch windows. Use @kbd{C-M-i} or 
@kbd{@key{ESC}
+@key{TAB}} instead for completion (@pxref{Completion}).}.
 
 Visibility cycling (@pxref{Visibility cycling}) on the headline will hide and
 show the entry, but keep the drawer collapsed to a single line.  In order to
@@ -3002,7 +3004,9 @@ a Lisp formula, format the formula according to Emacs 
Lisp rules.
 Another @key{TAB} collapses the formula back again.  In the open
 formula, @key{TAB} re-indents just like in Emacs Lisp mode.
 @orgcmd{M-@key{TAB},lisp-complete-symbol}
-Complete Lisp symbols, just like in Emacs Lisp mode.
+Complete Lisp symbols, just like in Emacs Lisp mode.@footnote{Many desktops
+intercept @kbd{M-@key{TAB}} to switch windows. Use @kbd{C-M-i} or
+@kbd{@key{ESC} @key{TAB}} instead for completion (@pxref{Completion}).}
 @kindex S-@key{up}
 @kindex S-@key{down}
 @kindex S-@key{left}
@@ -10389,10 +10393,10 @@ Option keyword sets tailored to a particular back-end 
can be inserted from
 the export dispatcher (@pxref{The export dispatcher}) using the @code{Insert
 template} command by pressing @key{#}.  To insert keywords individually, a
 good way to make sure the keyword is correct is to type @code{#+} and then to
-use @kbd{M-TAB} @footnote{Many desktops intercept @kbd{M-TAB} to switch
+use @kbd{M-@key{TAB}} @footnote{Many desktops intercept @kbd{M-TAB} to switch
 windows. Use @kbd{C-M-i} or @kbd{@key{ESC} @key{TAB}} instead.} for
 completion.
-@c trikl m-tab spelling, footnote entferne kommentarzeile vor release
+
 The export keywords available for every back-end, and their equivalent global
 variables, include:
 
@@ -16857,6 +16861,10 @@ and the keys, Org will offer different types of 
completions.  No minibuffer
 is involved.  Such mode-specific hot keys have become an integral part of
 Emacs and Org provides several 

Re: [O] org-vcard -- possible to convert .vcf files to .org ?

2017-03-01 Thread Saša Janiška
Eric Abrahamsen  writes:

> Also, it looks like there are many forks of this repository, some of
> which presumably address that issue -- has anyone tried any of the forks
> recently?

I was looking at them, but do not see any repo which would deal with
that issue…


Sincerely,
Gour

-- 
The senses are so strong and impetuous, O Arjuna,
that they forcibly carry away the mind even of a man
of discrimination who is endeavoring to control them.




Re: [O] org-bbdb-anniversaries-future

2017-03-01 Thread Michael Welle
Hello,

Alan Schmitt  writes:

> On 2017-03-01 15:03, Michael Welle  writes:
>
>>> I don't think it helps. IIRC, code integration in Emacs is pretty
>>> strict. You could simply sign FSF papers.
>> Yes. Trouble is nobody could explain to me what I have to sign and what
>> that means in the legal system I'm in. My last attempt to find that out
>> was in #emacs. It's about 'transfer of copyright' to the FSF. If I
>> translate 'copyright' to the corresponding construct in our legal
>> system, the transfer isn't possible. I can't give away the copyright.
>> Maybe 'transfer of copyright' isn't what signing the FSF papers mean, I
>> don't know. And IANAL ;).
>
> Does the FSFE version works for emacs
> (https://fsfe.org/activities/ftf/fla.en.html)?
good question, I don't know the answer... yet.

Regards
hmw



Re: [O] org-bbdb-anniversaries-future

2017-03-01 Thread Rasmus
Michael Welle  writes:

> Hello,
>
> Nicolas Goaziou  writes:
>
>> Hello,
>>
>> Michael Welle  writes:
>>
>>> Even if we assume its quality is high enough to integrate it into Org,
>>
>> If code quality was a concern, Org would still be in alpha release ;)
> thank you for your kind words, Nicolas ;).
>
>
>>> there might or might not be another problem: I haven't signed the FSF
>>> papers. I would like to see the functionality in Org, too. Perhaps
>>> someone can sneak it in ;). I can repost the code, stating that it is
>>> licensed under the GPL or is even in the public domain, if that helps.
>>
>> I don't think it helps. IIRC, code integration in Emacs is pretty
>> strict. You could simply sign FSF papers.
> Yes. Trouble is nobody could explain to me what I have to sign and what
> that means in the legal system I'm in. My last attempt to find that out
> was in #emacs. It's about 'transfer of copyright' to the FSF. If I
> translate 'copyright' to the corresponding construct in our legal
> system, the transfer isn't possible. I can't give away the copyright.
> Maybe 'transfer of copyright' isn't what signing the FSF papers mean, I
> don't know. And IANAL ;).

You might want to discuss this with the FSF copyright clerk

copyright-cl...@fsf.org

They will also be able to tell you if you can use e.g. the FSFE
assignments.

Rasmus

-- 
The second rule of Fight Club is: You do not talk about Fight Club




Re: [O] org-bbdb-anniversaries-future

2017-03-01 Thread Alan Schmitt
On 2017-03-01 15:03, Michael Welle  writes:

>> I don't think it helps. IIRC, code integration in Emacs is pretty
>> strict. You could simply sign FSF papers.
> Yes. Trouble is nobody could explain to me what I have to sign and what
> that means in the legal system I'm in. My last attempt to find that out
> was in #emacs. It's about 'transfer of copyright' to the FSF. If I
> translate 'copyright' to the corresponding construct in our legal
> system, the transfer isn't possible. I can't give away the copyright.
> Maybe 'transfer of copyright' isn't what signing the FSF papers mean, I
> don't know. And IANAL ;).

Does the FSFE version works for emacs
(https://fsfe.org/activities/ftf/fla.en.html)? Because it seems to be
adapted to legal systems outside of the USA. I had a look at the French
version and they explicitly mention that they make this version because
in France transferring copyright is impossible (you may just give
exploitation rights).

Best,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂, Mauna Loa Obs. 2017-01: 406.13, 2016-01: 402.52


signature.asc
Description: PGP signature


Re: [O] org-bbdb-anniversaries-future

2017-03-01 Thread Michael Welle
Hello,

Nicolas Goaziou  writes:

> Hello,
>
> Michael Welle  writes:
>
>> Even if we assume its quality is high enough to integrate it into Org,
>
> If code quality was a concern, Org would still be in alpha release ;)
thank you for your kind words, Nicolas ;).


>> there might or might not be another problem: I haven't signed the FSF
>> papers. I would like to see the functionality in Org, too. Perhaps
>> someone can sneak it in ;). I can repost the code, stating that it is
>> licensed under the GPL or is even in the public domain, if that helps.
>
> I don't think it helps. IIRC, code integration in Emacs is pretty
> strict. You could simply sign FSF papers.
Yes. Trouble is nobody could explain to me what I have to sign and what
that means in the legal system I'm in. My last attempt to find that out
was in #emacs. It's about 'transfer of copyright' to the FSF. If I
translate 'copyright' to the corresponding construct in our legal
system, the transfer isn't possible. I can't give away the copyright.
Maybe 'transfer of copyright' isn't what signing the FSF papers mean, I
don't know. And IANAL ;).

> Otherwise, doesn't it fit as a tiny change? Would you mind sending the
> patch again?
Maybe it's a tiny change, if we strip the comments ;). It's not too
sophisticated, everyone could have done it.

Regards
hmw

diff --git a/lisp/org-bbdb.el b/lisp/org-bbdb.el
index f851668..5e99494 100644
--- a/lisp/org-bbdb.el
+++ b/lisp/org-bbdb.el
@@ -412,6 +412,22 @@ This is used by Org to re-create the anniversary hash table."
 (mapcar (lambda (i) (calendar-gregorian-from-absolute (+ abs i)))
 	(number-sequence 0 (1- n)
 
+(defun org-bbdb-anniversary-description (agenda-date anniv-date)
+  "Return a string used to modify an agenda anniversary entry. The 
+   calculation of the string is based on the difference between
+   the anniversary date and the date on which the entry appears
+   in the agenda. This makes it possible to have different entries
+   for the same event depending on if it occurs in the next few days
+   or far away in the future."
+  (let ((delta (- (calendar-absolute-from-gregorian anniv-date)
+  (calendar-absolute-from-gregorian agenda-date
+
+(cond
+ ((= delta 0) " -- today\\&")
+ ((= delta 1) " -- tomorrow\\&")
+ ((< delta 7) (format " -- in %d days\\&" delta))
+ ((format " -- %d-%02d-%02d\\&" (third anniv-date) (first anniv-date) (second anniv-date))
+
 ;;;###autoload
 (defun org-bbdb-anniversaries-future ( n)
   "Return list of anniversaries for today and the next n-1 days (default n=7)."
@@ -425,19 +441,17 @@ must be positive"))
 	  ;; Function to annotate text of each element of l with the
 	  ;; anniversary date d.
 	  (annotate-descriptions
-	   (lambda (d l)
+	   (lambda (agenda-date d l)
 	 (mapcar (lambda (x)
 		   ;; The assumption here is that x is a bbdb link
 		   ;; of the form [[bbdb:name][description]].
 		   ;; This function rather arbitrarily modifies
 		   ;; the description by adding the date to it in
 		   ;; a fixed format.
-		   (string-match "]]" x)
-		   (replace-match (format " -- %d-%02d-%02d\\&"
-	  (nth 2 d)
-	  (nth 0 d)
-	  (nth 1 d))
-  nil nil x))
+		   (let ((desc (org-bbdb-anniversary-description
+agenda-date d)))
+			 (string-match "]]" x)
+			 (replace-match desc nil nil x)))
 		 l
   ;; Map a function that generates anniversaries for each date
   ;; over the dates and nconc the results into a single list. When
@@ -447,12 +461,13 @@ must be positive"))
   (apply #'nconc
 	 (mapcar
 	  (lambda (d)
-		(let ((date d))
+		(let ((agenda-date date)
+		  (date d))
 		  ;; Rebind 'date' so that org-bbdb-anniversaries will
 		  ;; be fooled into giving us the list for the given
 		  ;; date and then annotate the descriptions for that
 		  ;; date.
-		  (funcall annotate-descriptions d (org-bbdb-anniversaries
+		  (funcall annotate-descriptions agenda-date d (org-bbdb-anniversaries
 	  dates)
 
 (defun org-bbdb-complete-link ()


Re: [O] [PATCH] ox-confluence.el: Handle checkboxes and inactive timestamps correctly

2017-03-01 Thread Nicolas Goaziou
Correcting myselfè

Nicolas Goaziou  writes:

>> +  :filters-alist '((:filter-final-output . org-confluence-fix-timestamps))
>
> Why do you use a final filter? It is a pretty gross tool, couldn't you
> simply generate the correct output from the plain-list or item
> translator?

I meant timestamp translator.



Re: [O] M-TAB in org manual and org guide

2017-03-01 Thread Nicolas Goaziou
Hello,

Thomas Rikl  writes:

> Emacs  : GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.22.7)
>  of 2017-02-07
> Package: Org mode version 9.0.5 (release_9.0.5-325-g28b847)
>
> Hello,
> Can you please add a footnote or a link (to the completion chapter) to
> the first (and second) occurence of "M-TAB" in the org manual that
> "C-M-i" is a usual alternative.
> Naming the alternate key-chord would be also usefull in the completion
> chapter.
>
> "M-TAB" is in use by many desktops and so common that it has an own
> wikipedia entry. See: https://en.wikipedia.org/wiki/Alt-Tab

Fair enough.

Would you want to provide a patch for that, or at least some guidance on
an appropriate wording?

Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] [PATCH] ox-confluence.el: Handle checkboxes and inactive timestamps correctly

2017-03-01 Thread Nicolas Goaziou
Hello,

Marc Ihm  writes:

> attached please find a patch for contrib/ox-confluence.el (authored by
> Sébastien Delafond); the patch simply translates and fixes some selected
> enhancements from ox-confluence-en.el (authored by Correl Roush).
>
> As a result ox-confluence.el encodes square brackets in checkboxes or
> inactive timestamps, so that they no longer collide with the native
> link-syntax of atlassian confluence.
>
> It would be great, if someone could review and apply this patch if
> appropriate.

Thank you. Comments follow.

> +  :filters-alist '((:filter-final-output . org-confluence-fix-timestamps))

Why do you use a final filter? It is a pretty gross tool, couldn't you
simply generate the correct output from the plain-list or item
translator?

> +(cl-case plain-list
> +  (descriptive
> +   (concat (make-string depth ?-) " " checkbox-possibly
> +   (org-export-data (org-element-property :tag item) info) ": "
> +   (org-trim contents)))
> +  (ordered
> +   (concat (make-string depth ?#) " " checkbox-possibly
> +   (org-trim contents)))
> +  (t
> +   (concat (make-string depth ?-)
> +   " " checkbox-possibly
> +   (org-trim contents))

Nitpick: I think the code above could be de-duplicated.

>   (when (org-export-table-row-starts-header-p table-row info)
> "|")
> - contents "|")))
> + " " contents " |")))

This doesn't seem related to the description of the problem in your
message, does it?

>  (defun org-confluence-template (contents info)
>(let ((depth (plist-get info :with-toc)))
> @@ -199,6 +215,23 @@
>(setq item (org-export-get-parent item)))
>  depth))
>  
> +;; Define output filter
> +(defun org-confluence-fix-timestamps (text back-end info)
> +  "Mask brackets of timestamps in final output, so that
> +  confluence does not misinterpret them as links."
> +  (with-temp-buffer
> +(insert text)
> +(goto-char (point-min))
> +(while (search-forward-regexp org-ts-regexp-both nil t))
> +(goto-char (match-beginning 0))
> +(when (string= (char-to-string (following-char)) "[")
> +  (delete-char 1)
> +  (insert "(")
> +  (goto-char (match-end 0))
> +  (delete-char -1)
> +  (insert ")"))
> +(buffer-substring (point-min) (point-max

See above.

Regards,

-- 
Nicolas Goaziou



Re: [O] Babel doesn't like some Racket comments

2017-03-01 Thread Nicolas Goaziou
Hello,

Lawrence Bottorff  writes:

> C-c C-c-ing this code
>
> #+begin_src scheme
> (define (foo x)
>   ;just add one
>   (+ 1 x)) ; comment
> #+end_src
>
> causes Racket (geiser) to freeze up. Sometimes I see a

Could you use M-x toggle-debug-on-quit, reproduce the freezing, hit C-g
and paste the backtrace?

Regards,

-- 
Nicolas Goaziou



Re: [O] org-bbdb-anniversaries-future

2017-03-01 Thread Nicolas Goaziou
Hello,

Michael Welle  writes:

> Even if we assume its quality is high enough to integrate it into Org,

If code quality was a concern, Org would still be in alpha release ;)

> there might or might not be another problem: I haven't signed the FSF
> papers. I would like to see the functionality in Org, too. Perhaps
> someone can sneak it in ;). I can repost the code, stating that it is
> licensed under the GPL or is even in the public domain, if that helps.

I don't think it helps. IIRC, code integration in Emacs is pretty
strict. You could simply sign FSF papers.

Otherwise, doesn't it fit as a tiny change? Would you mind sending the
patch again?

Regards,

-- 
Nicolas Goaziou



Re: [O] [Beamer export] Tag appears in ToC

2017-03-01 Thread Nicolas Goaziou
Hello,

"Loris Bennett"  writes:

> I have a presentation which I have exported to a Beamer PDF in the past
> with Org 8.  Now with Org 9.0.5 the tag 'export' appears next to the
> headings in the table of contents in the exported PDF.
>
> Can anyone tell me how to suppress these tags?

See `org-export-with-tags'.

Regards,

-- 
Nicolas Goaziou



[O] [Beamer export] Tag appears in ToC

2017-03-01 Thread Loris Bennett
Hi,

I have a presentation which I have exported to a Beamer PDF in the past
with Org 8.  Now with Org 9.0.5 the tag 'export' appears next to the
headings in the table of contents in the exported PDF.

Can anyone tell me how to suppress these tags?

Cheers,

Loris

-- 
Dr. Loris Bennett (Mr.)
ZEDAT, Freie Universität Berlin Email loris.benn...@fu-berlin.de




Re: [O] org-bbdb-anniversaries-future

2017-03-01 Thread Marco Wahl


binMkTW0VNkZi.bin
Description: application/pgp-encrypted


binE8pzhIaYry.bin
Description: Binary data


Re: [O] org-bbdb-anniversaries-future

2017-03-01 Thread Marco Wahl
Alan Schmitt  writes:

> Hello,
>
> On 2016-07-14 14:09, Michael Welle  writes:
>
>> Hello,
>>
>> org-bbdb-anniversaries-future uses the following format to insert
>> anniversaries into the agenda:
>>
>> Birthday: [[bbdb:foo bar][foo bar (37th) -- 2016-07-14]]
>>
>> Seeing the date in the agenda makes me feel like I have a lot of time to
>> get a present. Then, just before the shops close, I realise that her
>> birthday is today ;).
>>
>> So I introduced a function that calculates the agenda entry with respect
>> to the time span between the actual event and the agenda date. This allows
>> to have entries like
>>
>> Birthday: [[bbdb:foo bar][foo bar (37th) -- 2016-07-14]]
>> Birthday: [[bbdb:foo bar][foo bar (37th) -- in 8 days]]
>> Birthday: [[bbdb:foo bar][foo bar (37th) -- tomorrow]]
>> Birthday: [[bbdb:foo bar][foo bar (37th) -- today]]
>>
>> The patch is attached to this posting.
>
> Sorry for reviving this old thread, but was this added to org? I would
> find it most useful.

+1




[O] Key bindings for org calendar selection

2017-03-01 Thread Florian Lindner
Hello,

the usual emacs calendar (M-x calendar) can be controlled using these key 
bindings:
https://www.gnu.org/software/emacs/manual/html_node/emacs/Calendar-Unit-Motion.html

But how can the calendar be controlled when invoked by org-mode, e.g. by C-c 
C-s to set a scheduled date on an entry?
The key bindings from standard calendar do not work, neither editing the mini 
buffer works out.

Thanks,
Florian




Re: [O] org-bbdb-anniversaries-future

2017-03-01 Thread Michael Welle
Hello,

Alan Schmitt  writes:
[...]
> Sorry for reviving this old thread, but was this added to org? I would
> find it most useful.
no, it's not.

Even if we assume its quality is high enough to integrate it into Org,
there might or might not be another problem: I haven't signed the FSF
papers. I would like to see the functionality in Org, too. Perhaps
someone can sneak it in ;). I can repost the code, stating that it is
licensed under the GPL or is even in the public domain, if that helps.

Regards
hmw



Re: [O] org-bbdb-anniversaries-future

2017-03-01 Thread Alan Schmitt
Hello,

On 2016-07-14 14:09, Michael Welle  writes:

> Hello,
>
> org-bbdb-anniversaries-future uses the following format to insert
> anniversaries into the agenda:
>
> Birthday: [[bbdb:foo bar][foo bar (37th) -- 2016-07-14]]
>
> Seeing the date in the agenda makes me feel like I have a lot of time to
> get a present. Then, just before the shops close, I realise that her
> birthday is today ;).
>
> So I introduced a function that calculates the agenda entry with respect
> to the time span between the actual event and the agenda date. This allows
> to have entries like
>
> Birthday: [[bbdb:foo bar][foo bar (37th) -- 2016-07-14]]
> Birthday: [[bbdb:foo bar][foo bar (37th) -- in 8 days]]
> Birthday: [[bbdb:foo bar][foo bar (37th) -- tomorrow]]
> Birthday: [[bbdb:foo bar][foo bar (37th) -- today]]
>
> The patch is attached to this posting.

Sorry for reviving this old thread, but was this added to org? I would
find it most useful.

Best,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂, Mauna Loa Obs. 2017-01: 406.13, 2016-01: 402.52


signature.asc
Description: PGP signature