[O] Spreadsheet: Conditionally apply formula to cell?

2016-03-19 Thread Loris Bennett
Hi,

If I have

| 1 | 2 | 13 |
|   |   | 10 |
#+TBLFM: $3=$1+$2+10

is there a way to suppress calculation of column 3 if, as in row 2, the
entry in column 1 is empty?

Cheers,

Loris

-- 
This signature is currently under construction.




Re: [O] Bug: CALL misbehavior with :results verbatim [8.3.4 (8.3.4-5-gdc68d2-elpaplus @ /Users/rossdonaldson/.emacs.d/elpa/org-plus-contrib-20160229/)]

2016-03-19 Thread Nicolas Goaziou
Hello,

Ross Donaldson  writes:

> When the header argument ~:results verbatim~ is set in a #+PROPERTY,
> the results of #+CALL blocks are surrounded by full quotes:

Isn't it the point of the "verbatim" parameter?

> * Good
> #+name: first-demo
> #+BEGIN_SRC sh
> echo 5 #+END_SRC
>
> #+RESULTS: first-demo
> : 5
> #+call: first-demo()
>
> #+RESULTS:
> : 5
>
> * Bad
> :PROPERTIES:
> :header-args: :results verbatim
> :END:
>
> #+name: second-demo
> #+BEGIN_SRC sh
> echo 5 #+END_SRC
>
> #+call: second-demo()
>
> #+RESULTS: : "5 : "

What did you expect instead?

> * Weird
> #+name: third-demo
> #+BEGIN_SRC sh :results verbatim
> echo 5 #+END_SRC
>
> #+call: third-demo()
>
> #+RESULTS:
> : 5

Also, what did you expect? Note that :results verbatim is applied to the
block, not to the call line.


Regards,

-- 
Nicolas Goaziou



Re: [O] args-out-of-range #

2016-03-19 Thread John Kitchin
I pushed a fix for this last night. I don't totally understand why it
happens and the fix is to not run the advice in the agenda buffer.

On Wednesday, March 16, 2016, Nicolas Goaziou 
wrote:

> Hello,
>
> br...@uwaterloo.ca  writes:
>
> > This message just started appearing today when I open an agenda view
> > "C-c a a". It is not obvious to me what I am doing or have done
> > differently, and I would appreciate some advice how to diagnose the
> > problem:
> > Emacs: 24.5.1
> > Orgmode: 8.3.4-5 (20160229 elpa)
> >
> > Thank you, -- Britt
> >
> > The error trace follows:
> >
> > Debugger entered--Lisp error: (args-out-of-range #
> 1372 1409)
> >   match-string(1)
> >   (let ((s (match-string 1)) (s-begin (match-beginning 1)) (s-end
> > (match-end 1)) (beg (match-beginning 0)) (end (match-end 0)) (cite-re
> > (format "^\\(%s:\\)" (regexp-opt (-sort (function (lambda ... ...))
> > org-ref-cite-types cite-type) (if (and s (string-match cite-re s))
> > (progn (setq cite-type (match-string 1 s)) (remove-text-properties beg
> > end (quote (invisible))) (add-text-properties beg end (list (quote
> > face) (list (quote :foreground) org-ref-cite-color))
> >   (progn (let ((s (match-string 1)) (s-begin (match-beginning 1))
> > (s-end (match-end 1)) (beg (match-beginning 0)) (end (match-end 0))
> > (cite-re (format "^\\(%s:\\)" (regexp-opt (-sort (function ...)
> > org-ref-cite-types cite-type) (if (and s (string-match cite-re s))
> > (progn (setq cite-type (match-string 1 s)) (remove-text-properties beg
> > end (quote (invisible))) (add-text-properties beg end (list (quote
> > face) (list (quote :foreground) org-ref-cite-color)))
> >   (unwind-protect (progn (let ((s (match-string 1)) (s-begin
> > (match-beginning 1)) (s-end (match-end 1)) (beg (match-beginning 0))
> > (end (match-end 0)) (cite-re (format "^\\(%s:\\)" (regexp-opt (-sort
> > ... org-ref-cite-types cite-type) (if (and s (string-match cite-re
> > s)) (progn (setq cite-type (match-string 1 s)) (remove-text-properties
> > beg end (quote (invisible))) (add-text-properties beg end (list (quote
> > face) (list ... org-ref-cite-color))) (set-match-data
> > save-match-data-internal (quote evaporate)))
> >   (let ((save-match-data-internal (match-data))) (unwind-protect
> > (progn (let ((s (match-string 1)) (s-begin (match-beginning 1)) (s-end
> > (match-end 1)) (beg (match-beginning 0)) (end (match-end 0)) (cite-re
> > (format "^\\(%s:\\)" (regexp-opt ...))) cite-type) (if (and
> > s (string-match cite-re s)) (progn (setq cite-type (match-string 1 s))
> > (remove-text-properties beg end (quote ...)) (add-text-properties beg
> > end (list ... ...)) (set-match-data save-match-data-internal
> > (quote evaporate
> >   org-ref-make-org-link-cite-key-visible(416)
>
> This looks like an org-ref issue. I'm Cc'ing John Kitchin.
>
> Regards,
>
> --
> Nicolas Goaziou
>


-- 
John

---
John Kitchin
Professor
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu


[O] Subject: Bug: Exception when trying to export inlined-code [8.3.4 (8.3.4-9-gfda14f-elpa @ /Users/vaknins9/.emacs.d/elpa/org-20160307/)]

2016-03-19 Thread Shlomi Vaknin
Hey,

I am a heavy org-mode user, and I absolutely love it! One of my org-files
stopped being exportable at some point. I managed to trace it to something
to do with inline source blocks (of course it might not be the root cause..)

I am getting an exception (Wrong type argument: integer-or-marker-p,nil)
when trying to export an org file with inlined code. Here is the smallest
org file I could came up with that produces this error:

-
* Test a
  - src_elisp{3}

* Test Q
  - src_elisp{3}
  - test
  - something
- src_elisp{3}
- src_elisp{3} {{{results(=3=)}}}
  - src_elisp{3} {{{results(=3=)}}}
-

If I remove any of the last {{{result...}}} sections the error goes away.

Could this be related to the new inline result format?

Here is a backtrace:
Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
  goto-char(nil)
  (progn (goto-char contents-end) (skip-chars-forward "
\n" limit) (if (= (point) limit) limit (line-beginning-position)))
  (let* ((struct (or structure (org-element--list-struct limit))) (type
(cond ((org-looking-at-p "[ ]*[A-Za-z0-9]") (quote ordered)) ((nth 5
(assq (point) struct)) (quote descriptive)) (t (quote unordered
(contents-begin (point)) (begin (car affiliated)) (contents-end (let*
((item (assq contents-begin struct)) (ind (nth 1 item)) (pos (nth 6 item)))
(while (and (setq item (assq pos struct)) (= (nth 1 item) ind)) (setq pos
(nth 6 item))) pos)) (end (progn (goto-char contents-end)
(skip-chars-forward "
\n" limit) (if (= (point) limit) limit (line-beginning-position)
(list (quote plain-list) (nconc (list :type type :begin begin :end end
:contents-begin contents-begin :contents-end contents-end :structure struct
:post-blank (count-lines contents-end end) :post-affiliated contents-begin)
(cdr affiliated
  (save-excursion (let* ((struct (or structure (org-element--list-struct
limit))) (type (cond ((org-looking-at-p "[ ]*[A-Za-z0-9]") (quote
ordered)) ((nth 5 (assq ... struct)) (quote descriptive)) (t (quote
unordered (contents-begin (point)) (begin (car affiliated))
(contents-end (let* ((item (assq contents-begin struct)) (ind (nth 1 item))
(pos (nth 6 item))) (while (and (setq item ...) (= ... ind)) (setq pos (nth
6 item))) pos)) (end (progn (goto-char contents-end) (skip-chars-forward "
\n" limit) (if (= (point) limit) limit (line-beginning-position)
(list (quote plain-list) (nconc (list :type type :begin begin :end end
:contents-begin contents-begin :contents-end contents-end :structure struct
:post-blank (count-lines contents-end end) :post-affiliated contents-begin)
(cdr affiliated)
  org-element-plain-list-parser(98 (60) ((25 2 "- " nil nil nil 30) (30 2
"- " nil nil nil 39) (39 2 "- " nil nil nil 110) (53 4 "- " nil nil nil 72)
(72 4 "- " nil nil nil 110)))
  (cond ((and (cdr affiliated) (>= (point) limit)) (goto-char (car
affiliated)) (org-element-keyword-parser limit nil)) ((looking-at
org-element--latex-begin-environment) (org-element-latex-environment-parser
limit affiliated)) ((looking-at org-drawer-regexp)
(org-element-drawer-parser limit affiliated)) ((looking-at "[   ]*:\\(
\\|$\\)") (org-element-fixed-width-parser limit affiliated)) ((looking-at
"[ ]*#") (goto-char (match-end 0)) (cond ((looking-at "\\(?: \\|$\\)")
(beginning-of-line) (org-element-comment-parser limit affiliated))
((looking-at "\\+BEGIN_\\(\\S-+\\)") (beginning-of-line) (let ((parser
(assoc ... org-element-block-name-alist))) (if parser (funcall (cdr parser)
limit affiliated) (org-element-special-block-parser limit affiliated
((looking-at "\\+CALL:") (beginning-of-line) (org-element-babel-call-parser
limit affiliated)) ((looking-at "\\+BEGIN:? ") (beginning-of-line)
(org-element-dynamic-block-parser limit affiliated)) ((looking-at
"\\+\\S-+:") (beginning-of-line) (org-element-keyword-parser limit
affiliated)) (t (beginning-of-line) (org-element-paragraph-parser limit
affiliated ((looking-at org-footnote-definition-re)
(org-element-footnote-definition-parser limit affiliated)) ((looking-at "[
  ]*-\\{5,\\}[]*$") (org-element-horizontal-rule-parser limit
affiliated)) ((looking-at "%%(") (org-element-diary-sexp-parser limit
affiliated)) ((looking-at "[  ]*\\(|\\|\\+\\(-+\\+\\)+[   ]*$\\)")
(org-element-table-parser limit affiliated)) ((looking-at (org-item-re))
(org-element-plain-list-parser limit affiliated (or structure
(org-element--list-struct limit (t (org-element-paragraph-parser limit
affiliated)))
  (let ((affiliated (org-element--collect-affiliated-keywords limit)))
(cond ((and (cdr affiliated) (>= (point) limit)) (goto-char (car
affiliated)) (org-element-keyword-parser limit nil)) ((looking-at
org-element--latex-begin-environment) (org-element-latex-environment-parser
limit affiliated)) ((looking-at org-drawer-regexp)
(org-element-drawer-parser limit affiliated)) ((looking-at "[  ]*:\\(
\\|$\\)") (org-element-fixed-width-parser limit affiliated)) ((looking-at
"[ ]*#") (goto-char 

Re: [O] uncommnet-region behavior in org-src blocks

2016-03-19 Thread Ken Mankoff

On 2016-03-19 at 19:27, John Kitchin  wrote:
> Thanks! That is a nice function.
>
> I adapted it to make Tab work in python mode blocks.

This might already do that:

(setq org-src-tab-acts-natively nil)

  -k.



Re: [O] org-mode on Windows Emacs doesn't offer html export

2016-03-19 Thread Lawrence Bottorff
Thanks for the advice. Yes, a stripped-down org file did work. Will
troubleshoot till the culprit sinister is found.

On Fri, Mar 18, 2016 at 9:46 AM, Fabrice Popineau <
fabrice.popin...@supelec.fr> wrote:

>
>
> 2016-03-18 14:35 GMT+01:00 Lawrence Bottorff :
>
>> Yes, thanks Eric. Got latest-greatest 8.3. I did a (require 'ox-html) and
>> (require 'ox-latex) and the options did show up. Not sure why my Linux side
>> had these and the Windows side did not. But still I get this error:
>>
>> org-latex-compile: PDF file
>> c:/Users/Admin/AppData/Local/Temp/babel-6812T7_/latex-6812ivv.pdf wasn't
>> produced
>>
>> Not sure what this is about or what it has to do with exporting to html.
>>
>>
> Something is wrong in your setup.
> I can guarantee that HTML export is working out of the box under Windows.
> Start by trying with an org file not requiring any babel stuff.
> Depending on (possibly complex) image format conversions,
> you may need either some TeX distribution (TeXLive prefered AFAIC)
> and/or GhostScript and/or ImageMagick.
>
> Fabrice
>
>


Re: [O] %? has no effect for org-agenda-prefix-format

2016-03-19 Thread Christophe Schockaert

Markus Heller writes:

> Excerpt from describe-variable org-agenda-prefix-format:
>
> If the first character after `%' is a question mark, the entire field
> will only be included if the corresponding value applies to the current
> entry.  [...]
>
> [...]
> Here's the definition of org-agenda-prefix-format from my .emacs:
>
> 
> ((org-agenda-prefix-format "  %-5c %?-4(setq type (org-entry-get (point) 
> \"Type\")): ")
> 
Hi Markus,

Glad I could feed you with the trick you expected !

As for the "?" modifier, I wonder if I didn't stumble on that too.

However, we can achieve the functionnality we want in this field, since
we have free lisp there.

I used an "if" to return "" when the property is not defined, resulting in
a 0 width output, so I get the same behaviour as the "?".

Then, if you need formatting, I don't remember if the width formating is
taken into account. In any case, I think you could obtain that result
with string formatting inside the "%(expression)" itself
(https://www.gnu.org/software/emacs/manual/html_node/elisp/Formatting-Strings.html).

Format width aside, I guess the behavior for the "?" would not be easy
to define: as the content built within "%(expr)" is free, how can we define "the
corresponding value applies to the current entry" ?

It would be nice if it was explained in the docstring however.


Cheerfully,

Christophe

> There is a similar thread on stackexchange from March 10 on this 
> (http://stackoverflow.com/questions/35910204/org-agenda-prefix-format-
> does-not-work).
>
> Is this a bug?
>
> Thanks
> Markus

-- 
--->  mailto:r3vli...@citadels.eu
Once it's perfectly aimed, the flying arrow goes straight to its target.
Thus, don't worry when things go right.
There will be enough time to worry about if they go wrong.
Then, it's time to fire a new arrow towards another direction.
Don't sink.  Adapt yourself !  The archer has to shoot accurately and quickly.
[Words of Erenthar, the bowman ranger] <---



Re: [O] uncommnet-region behavior in org-src blocks

2016-03-19 Thread John Kitchin
Thanks! That is a nice function.

I adapted it to make Tab work in python mode blocks.

Curiously though, this:

(define-key org-mode-map (kbd "")
  '(menu-item "org-mode-ret" nil
  :filter (lambda ( _)
(when
(and
 (org-in-src-block-p t)
 (string= "python"
  (org-element-property
   :language
   (org-element-context
  (org-babel-do-key-sequence-in-edit-buffer
   (kbd ""))

doesn't do exactly what I would have expected, it seems to put an extra
line in and move the point past what (newline-and-indent) would do in
python-mode. I tried a few variations of this, and they all seem to do
that. One day I will have to learn how to get multiple modes active in
one buffer ;)

Ken Mankoff writes:

> On 2016-03-19 at 13:20, Eric S Fraga  wrote:
>> On Saturday, 19 Mar 2016 at 12:44, John Kitchin wrote:
>>> I noticed that you try to uncomment a region in a src block a # gets
>>> inserted!
>>>
>>> #+BEGIN_SRC emacs-lisp
>>> ; test
>>> #+END_SRC
>>>
>>>
>>> If you select ; test and run uncomment-region you get this:
>>>
>>> #+BEGIN_SRC emacs-lisp
>>> # ; test
>>> #+END_SRC
>>>
>>> It also does that in Python. Any ideas why?
>>
>> Because you're in org mode, not emacs-lisp or python?  If you want to
>> comment/uncomment codes within a src block, my guess is you would need
>> to open up the blocks (C-c ') and then comment/uncomment...
>
> https://lists.gnu.org/archive/html/emacs-orgmode/2013-11/msg00318.html
>
> #+BEGIN_SRC emacs-lisp :results none
> ;; allow comment region in the code edit buffer (according to language)
> (defun my-org-comment-dwim ( arg)
>   (interactive "P")
>   (or (org-babel-do-key-sequence-in-edit-buffer (kbd "M-;"))
>   (comment-dwim arg)))
>
> ;; make `C-c C-v C-x M-;' more convenient
> (define-key org-mode-map
>   (kbd "M-;") 'my-org-comment-dwim)
> #+END_SRC
>
>   -k.


--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



Re: [O] No text in pdf output

2016-03-19 Thread John Kitchin
looks like a LaTeX compiling issue maybe. Your file works fine and as
expected for me. Your tex file also builds fine. Can you build it manually?

Guido Van Hoecke writes:

> Oops, forgot the files
>
> On 19 March 2016 at 22:26, Guido Van Hoecke  wrote:
>
>> Hi,
>>
>> Had some strane problem when setting up org mode in a LXLE (Ubuntu
>> 14.04.3 LTS) VirtualBox running an a W10 host.
>>
>> I attach a small test.org file, the test.tex and test.pdf files that are
>> produced. The pdf file does not show any test, althought the tex file
>> sems to be ok (I'm a complete ignorandus with tex though).
>>
>> Version info:
>> GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.7) of 2014-03-07
>> on lamiak, modified by Debian
>> org-version 8.3.4
>> auctex 11.86-1ubuntu2
>> texlive-base 2013.20140215-1
>>
>> I must have missed out on some very basic stuff?
>>
>> Any help would be highly welcomed,
>>
>> --
>> Guido
>>
>> Yesterday upon the stair
>> I met a man who wasn't there.
>> He wasn't there again today --
>> I think he's from the CIA.
>>


--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



Re: [O] Problem with src_ruby inline code and []

2016-03-19 Thread Nicolas Goaziou
Hello,

"Charles C. Berry"  writes:

> On Tue, 15 Mar 2016, William Denton wrote:
>
>> I was updating and exporting a file where I use Ruby to do some basic 
>> arithmetic on tables, and noticed that inline code blocks where I reference 
>> an array aren't working.
>>
>
> ECM:
>
> src_ruby[:var t=sampletable]{t[2][2]}
>
> #+BEGIN_SRC emacs-lisp
>(save-excursion
>  (search-backward (concat "src" "_"))
>  (org-element-property :value (org-element-inline-src-block-parser)))
> #+END_SRC
>
> #+RESULTS: : t[2

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] long delay after selecting capture template

2016-03-19 Thread Eric Abrahamsen
Allan Streib  writes:

> Hi,
>
> When I want to capture a task I hit C-c c and then t to select the task
> template.
>
> Between striking the t key and seeing the template rendered, there is a
> delay of several seconds (sometimes up to 10 seconds). No errors are
> logged and the template eventually displays and everything is normal.
>
> As the whole point of capturing is to quickly log task items and get
> back to the primary work at hand, this delay can be annoying. Any
> suggestions at where to look to resolve this?

I guess I would `toggle-debug-on-quit', then call capture, and while
you're waiting for it to return, hit "C-g". That ought to pop up a
backtrace, and you can see what code was being executed during the
delay. It might be obvious what's wrong, or you can post the backtrace
here.

Yours,
Eric




Re: [O] No text in pdf output

2016-03-19 Thread Guido Van Hoecke
Oops, forgot the files

On 19 March 2016 at 22:26, Guido Van Hoecke  wrote:

> Hi,
>
> Had some strane problem when setting up org mode in a LXLE (Ubuntu
> 14.04.3 LTS) VirtualBox running an a W10 host.
>
> I attach a small test.org file, the test.tex and test.pdf files that are
> produced. The pdf file does not show any test, althought the tex file
> sems to be ok (I'm a complete ignorandus with tex though).
>
> Version info:
> GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.7) of 2014-03-07
> on lamiak, modified by Debian
> org-version 8.3.4
> auctex 11.86-1ubuntu2
> texlive-base 2013.20140215-1
>
> I must have missed out on some very basic stuff?
>
> Any help would be highly welcomed,
>
> --
> Guido
>
> Yesterday upon the stair
> I met a man who wasn't there.
> He wasn't there again today --
> I think he's from the CIA.
>


test.org
Description: Binary data


test.pdf
Description: Adobe PDF document


test.tex
Description: TeX document


[O] No text in pdf output

2016-03-19 Thread Guido Van Hoecke
Hi,

Had some strane problem when setting up org mode in a LXLE (Ubuntu
14.04.3 LTS) VirtualBox running an a W10 host.

I attach a small test.org file, the test.tex and test.pdf files that are
produced. The pdf file does not show any test, althought the tex file
sems to be ok (I'm a complete ignorandus with tex though).

Version info:
GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.7) of 2014-03-07 on 
lamiak, modified by Debian
org-version 8.3.4
auctex 11.86-1ubuntu2
texlive-base 2013.20140215-1

I must have missed out on some very basic stuff?

Any help would be highly welcomed,

-- 
Guido

Yesterday upon the stair
I met a man who wasn't there.
He wasn't there again today --
I think he's from the CIA.



Re: [O] A small fix in `org-read-date-analyze'

2016-03-19 Thread Marcin Borkowski

On 2016-03-17, at 23:12, Nicolas Goaziou  wrote:

> Hello,
>
> Marcin Borkowski  writes:
>
>>> I attach a simple patch to enhance handling of two-digit years in
>>> `org-read-date-analyze'.  (I have the FSF papers signed.)
>>
>> A better version (sorry for the noise).
>
> Thank you. 
>
> Is it a TINYCHANGE or did you sign FSF papers?

Papers signed.

> Regards,

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



Re: [O] A small fix in `org-read-date-analyze'

2016-03-19 Thread Nicolas Goaziou
Hello,

Marcin Borkowski  writes:

>> I attach a simple patch to enhance handling of two-digit years in
>> `org-read-date-analyze'.  (I have the FSF papers signed.)
>
> A better version (sorry for the noise).

Thank you. 

Is it a TINYCHANGE or did you sign FSF papers?

Regards,

-- 
Nicolas Goaziou



[O] long delay after selecting capture template

2016-03-19 Thread Allan Streib
Hi,

When I want to capture a task I hit C-c c and then t to select the task
template.

Between striking the t key and seeing the template rendered, there is a
delay of several seconds (sometimes up to 10 seconds). No errors are
logged and the template eventually displays and everything is normal.

As the whole point of capturing is to quickly log task items and get
back to the primary work at hand, this delay can be annoying. Any
suggestions at where to look to resolve this?

GNU Emacs 24.5.1 (x86_64-unknown-openbsd, X toolkit, Xaw3d scroll bars) of 
2015-10-19

Org-mode version 8.2.10 (release_8.2.10 @ 
/usr/local/share/emacs/24.5/lisp/org/)  

Thanks,

Allan



Re: [O] uncommnet-region behavior in org-src blocks

2016-03-19 Thread Eric S Fraga
On Saturday, 19 Mar 2016 at 14:03, John Kitchin wrote:
> sure, that is true. I am still surprised that "uncommenting" adds a # which
> in org is a comment. actually that seems to happen everywhere in the
> org-file!

Ah, yes, sorry: I'm so used to commenting doing the right thing (comment
if not already commented, uncomment if commented) that I missed that.  I
have a feeling that all the code from newcomment.el works this way...

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.91.1, Org release_8.3.4-626-gb62d55



Re: [O] Bug: Bulk reschedule with reschedule logging on fails [8.3.4 (8.3.4-5-gdc68d2-elpaplus @ /home/tyria/.emacs.d/elpa/org-plus-contrib-20160229/)]

2016-03-19 Thread Nicolas Goaziou
Hello,

Allen Li  writes:

> I can think of three reasonable options:
>
> 1. Prompt for a note, then apply it to all affected items.
> 2. Prompt for a note, then apply it only to items that are already
>scheduled (and hence rescheduled).
> 3. Don't attempt to add a note and just add timestamps.
>
> Then there's the unreasonable option:
>
> 4. Prompt for a note for each item.

No worries. This is not possible without rewriting a large part of the
log notes innards.

> If I had to pick, I'd go with 2, but any of 1-3 is fine.  In this case,
> having bulk scheduling work is more important than whether
> org-log-reschedule is being faithfully applied, in my opinion.

It is fixed, with option 3. Global note doesn't sound like a silver
bullet. Also, 3 was much easier to implement.

Thank you for the feedback.


Regards,

-- 
Nicolas Goaziou



Re: [O] uncommnet-region behavior in org-src blocks

2016-03-19 Thread Ken Mankoff

On 2016-03-19 at 13:20, Eric S Fraga  wrote:
> On Saturday, 19 Mar 2016 at 12:44, John Kitchin wrote:
>> I noticed that you try to uncomment a region in a src block a # gets
>> inserted!
>>
>> #+BEGIN_SRC emacs-lisp
>> ; test
>> #+END_SRC
>>
>>
>> If you select ; test and run uncomment-region you get this:
>>
>> #+BEGIN_SRC emacs-lisp
>> # ; test
>> #+END_SRC
>>
>> It also does that in Python. Any ideas why?
>
> Because you're in org mode, not emacs-lisp or python?  If you want to
> comment/uncomment codes within a src block, my guess is you would need
> to open up the blocks (C-c ') and then comment/uncomment...

https://lists.gnu.org/archive/html/emacs-orgmode/2013-11/msg00318.html

#+BEGIN_SRC emacs-lisp :results none
;; allow comment region in the code edit buffer (according to language)
(defun my-org-comment-dwim ( arg)
  (interactive "P")
  (or (org-babel-do-key-sequence-in-edit-buffer (kbd "M-;"))
  (comment-dwim arg)))

;; make `C-c C-v C-x M-;' more convenient
(define-key org-mode-map
  (kbd "M-;") 'my-org-comment-dwim)
#+END_SRC

  -k.



[O] No results when combining :session *R* with print.xtable

2016-03-19 Thread Stephan Lindner
Hi,

I encounter the following problem (org version 8.3.2):

When I have the following R source code block in my org file:

#+BEGIN_SRC R :exports results :results replace output latex :eval export
library(xtable)
print(xtable(matrix(c(1,2,3), nrow=1)),
only.contents=TRUE, include.rownames=FALSE, include.colnames=FALSE, 
comment=FALSE, hline.after=NULL)
#+END_SRC


and I evaluate it, I get the expected result:


#+RESULTS:
#+BEGIN_LaTeX
 1.00 & 2.00 & 3.00 \\ 

#+END_LaTeX

However, when I also include the =:session *R*= in my header, I get this: 

#+BEGIN_SRC R :session *R* :exports results :results replace output latex :eval 
export
library(xtable)
print(xtable(matrix(c(1,2,3), nrow=1)),
only.contents=TRUE, include.rownames=FALSE, include.colnames=FALSE, 
comment=FALSE, hline.after=NULL)
#+END_SRC

#+RESULTS:
#+BEGIN_LaTeX
#+END_LaTeX

I.e., no result. However, when evaluating the code in R it works (i.e., R 
prints out =1.00 & 2.00 & 3.00 \\=).


I need to have =:session *R*= in the header because I want to print results of 
previous calculations in R. I would like
to not have =\hlines= in my LaTeX output (I integrate the result into a LaTeX 
table).

This problem does not occur when I set =hline.after= to a non-NULL value, e.g.:

#+BEGIN_SRC R :session *R* :exports results :results replace output latex :eval 
export
library(xtable)
print(xtable(matrix(c(1,2,3), nrow=1)),
only.contents=TRUE, include.rownames=FALSE, include.colnames=FALSE, 
comment=FALSE, hline.after=1)
#+END_SRC

#+RESULTS:
#+BEGIN_LaTeX
 1.00 & 2.00 & 3.00 \\ 
   \hline
#+END_LaTeX


Thanks!


Stephan 
-- 
Stephan Lindner, Ph.D.
Oregon Health and Science University


Re: [O] ox-latex doesn't handle doi: links right

2016-03-19 Thread Eric S Fraga
On Thursday, 17 Mar 2016 at 07:47, Vladimir Alexiev wrote:
> A link like doi:10.1109/ICMEW.2015.7169818 is resolved in org to 
> http://dx.doi.org/10.1109/ICMEW.2015.7169818.
> (I mean that if I click to the link, I go to that URL)
>
> However, ox-latex makes merely this:
>\url{10.1109/ICMEW.2015.7169818} 
> which Acrobat tries to resolve as a local file.
> Instead, ox-latex should make this:
>\href{http://dx.doi.org/10.1109/ICMEW.2015.7169818}
> {doi:10.1109/ICMEW.2015.7169818}

On my system, the default handling for doi: links is

--8<---cut here---start->8---
 ("doi" nil
  (lambda
(path desc format)
(cond
 ((eq format 'latex)
  (format "\\doi{%s}" path)
--8<---cut here---end--->8---

It is then a case of defining the LaTeX \doi function to do what you
want?  Probably simply add

#+latex_header: \usepackage{doi}

to your org file to get what you want.
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.90.1, Org release_8.3.3-535-g7213aa



Re: [O] uncommnet-region behavior in org-src blocks

2016-03-19 Thread John Kitchin
sure, that is true. I am still surprised that "uncommenting" adds a # which
in org is a comment. actually that seems to happen everywhere in the
org-file!

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 Sat, Mar 19, 2016 at 1:20 PM, Eric S Fraga  wrote:

> On Saturday, 19 Mar 2016 at 12:44, John Kitchin wrote:
> > I noticed that you try to uncomment a region in a src block a # gets
> > inserted!
> >
> > #+BEGIN_SRC emacs-lisp
> > ; test
> > #+END_SRC
> >
> >
> > If you select ; test and run uncomment-region you get this:
> >
> > #+BEGIN_SRC emacs-lisp
> > # ; test
> > #+END_SRC
> >
> > It also does that in Python. Any ideas why?
>
> Because you're in org mode, not emacs-lisp or python?  If you want to
> comment/uncomment codes within a src block, my guess is you would need
> to open up the blocks (C-c ') and then comment/uncomment...
> --
> : Eric S Fraga (0xFFFCF67D), Emacs 25.0.91.1, Org release_8.3.4-626-gb62d55
>


Re: [O] uncommnet-region behavior in org-src blocks

2016-03-19 Thread Eric S Fraga
On Saturday, 19 Mar 2016 at 12:44, John Kitchin wrote:
> I noticed that you try to uncomment a region in a src block a # gets
> inserted!
>
> #+BEGIN_SRC emacs-lisp
> ; test
> #+END_SRC
>
>
> If you select ; test and run uncomment-region you get this:
>
> #+BEGIN_SRC emacs-lisp
> # ; test
> #+END_SRC
>
> It also does that in Python. Any ideas why?

Because you're in org mode, not emacs-lisp or python?  If you want to
comment/uncomment codes within a src block, my guess is you would need
to open up the blocks (C-c ') and then comment/uncomment...
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.91.1, Org release_8.3.4-626-gb62d55



[O] uncommnet-region behavior in org-src blocks

2016-03-19 Thread John Kitchin

I noticed that you try to uncomment a region in a src block a # gets
inserted!

#+BEGIN_SRC emacs-lisp
; test
#+END_SRC

If you select ; test and run uncomment-region you get this:

#+BEGIN_SRC emacs-lisp
# ; test
#+END_SRC

It also does that in Python. Any ideas why?


--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



Re: [O] OS X quick-access to Emacs

2016-03-19 Thread Ken Mankoff

On 2016-03-15 at 10:55, Ken Mankoff  wrote:
> I've created a BitBar plugin for quick-access to Emacs, such as a new
> *scratch* buffer or a new "Compose Email" buffer. I thought these
> might be useful to others, hence this post.

One last follow-up to this.

The following script gives you quick-access to top-level headings in all Org 
files from the OS X Menu Bar. Each file is a menu item, and each top-level 
header is a sub-menu under the file. Clicking on one raises it in a new emacs 
client with the cursor positioned at the heading.

  -k.




IFS=$'\n'
cd ~/Org
if [ "$#" -eq 2 ]; then # called with param1 and param2
emacsclient +$2 $1 &# open file at line number of heading
exit
fi
echo ''
echo "---";
for v in *.org; do
echo ${v%.*}  # filename as menu
for h in `grep -n "^\*\ .*" $v`; do
n=`echo $h | cut -d":" -f1`
hh=`echo $h | cut -d":" -f2 | cut -c3-`
echo "-- $hh | bash=$0 param1=$v param2=$n terminal=false"
# ^ headers as submenus
done
done



Re: [O] Finding TODOs without SCHEDULED and DEADLINE?

2016-03-19 Thread Christophe Schockaert

Martin writes:

> Hi there,
>
> I would like to create an agenda view for all my TODO elements in my
> agenda files where I didn't set any SCHEDULED or DEADLINE marks.
>
> How can I do that?
> Thanks,
> Martin
Hi Martin,


I would do that with a "tags-todo" entry:


  ((agenda "" 
 (tags-todo "-SCHEDULED={.}-DEADLINE={.}/TODO")))


The "/TODO" is to list open todos only, don't set it if you also want to
see your scheduled items that are now closed.

Help is available with "C-h v org-agenda-custom-commands" if you need
more details and in there for matching conditions:
http://orgmode.org/manual/Matching-tags-and-properties.html#Matching-tags-and-properties


I think it should do the job,
Christophe

-- 
--->  mailto:r3vli...@citadels.eu
Once it's perfectly aimed, the flying arrow goes straight to its target.
Thus, don't worry when things go right.
There will be enough time to worry about if they go wrong.
Then, it's time to fire a new arrow towards another direction.
Don't sink.  Adapt yourself !  The archer has to shoot accurately and quickly.
[Words of Erenthar, the bowman ranger] <---



[O] html email newsletter with org-mime

2016-03-19 Thread Jérémie Juste
Hello,

I was trying to create an html email newletter using org-mime-html-buffer
along with gnus. The results are quite good, but it's still a bit costly to
add some html attributes.

I usually do the following in org-mode

|--|
| [[file+emacs:org-mode-unicorn-logo.png][org-unicorn]]   height="188"
width="787.2 align=center"|
|--|
| style="background-color:#8470ff;font-size:200%;text-align:center;">
Title 1 |
|
|
|--|
| style="background-color:#8470ff;font-size:200%;text-align:center;">
Title 2 |
|
|
|--|

then use regular expression to correct the html attributes. Do you have any
idea how we can improve this?

Thanks

-- 
Jeremie Juste


Re: [O] Patch for ox-confluence.el

2016-03-19 Thread Paul Schorfheide
Thanks for the feedback, Nicolas. I wasn't familiar with defcustom. I made
the two edits and attached an updated patch. I would be happy to maintain
the file in org-mode for now and look into moving it into ELPA.

Thanks
Paul Schorfheide

On Thu, Mar 17, 2016 at 6:23 AM Nicolas Goaziou 
wrote:

> Hello,
>
> Paul Schorfheide  writes:
>
> > I made a small change to ox-confluence.el to support additional language
> > name mappings. Can someone please review it?
>
> Thank you for the patch.
>
> AFAIU, "ox-confluence.el" doesn't have a maintainer anymore, in case you
> feel like doing the job.
>
> The library could also be moved to ELPA, IMO.
>
> > +(defvar org-confluence-lang-alist
> > +  '(("sh" . "bash"))
> > +  "Map from org-babel language name to confluence wiki language name")
>
> What about making it a defcustom?
>
> >  ;; All the functions we use
> >  (defun org-confluence-bold (bold contents info)
> >(format "*%s*" contents))
> > @@ -111,8 +115,9 @@
> >  (defun org-confluence-src-block (src-block contents info)
> >;; FIXME: provide a user-controlled variable for theme
> >(let* ((lang (org-element-property :language src-block))
> > - (language (if (string= lang "sh") "bash" ;; FIXME: provide a
> mapping of some sort
> > - lang))
> > + (language (if (assoc lang org-confluence-lang-alist)
> > +(cdr (assoc lang org-confluence-lang-alist))
> > +   lang))
>
> Nitpick:
>
>   (or (cdr (assoc lang org-confluence-lang-alist) lang))
>
>
> Regards,
>
> --
> Nicolas Goaziou
>


0001-Add-org-confluence-lang-alist.patch
Description: Binary data


Re: [O] export to markdown: a simpler version which is more suited for github etc

2016-03-19 Thread Grant Rettke
On Sat, Mar 12, 2016 at 12:21 PM, Uwe Brauer  wrote:
> So the question is simply this could the converter be configured to use
> a simpler conversion?

Have you tried

http://orgmode.org/cgit.cgi/org-mode.git/plain/contrib/lisp/ox-gfm.el

?

It was made for Github and friends; we use it on Bitbucket, too.



Re: [O] org-mode on Windows Emacs doesn't offer html export

2016-03-19 Thread Lawrence Bottorff
Yes, thanks Eric. Got latest-greatest 8.3. I did a (require 'ox-html) and
(require 'ox-latex) and the options did show up. Not sure why my Linux side
had these and the Windows side did not. But still I get this error:

org-latex-compile: PDF file
c:/Users/Admin/AppData/Local/Temp/babel-6812T7_/latex-6812ivv.pdf wasn't
produced

Not sure what this is about or what it has to do with exporting to html.

LB

On Fri, Mar 18, 2016 at 3:13 AM, Eric S Fraga  wrote:

> On Thursday, 17 Mar 2016 at 20:59, Lawrence Bottorff wrote:
> > Yes, the title sums it up. I've just ported my .emacs.d, org stuff, etc.
> > from my Linux to my work Windows 10, and I can't get the export to offer
> > html or latex. Even org-export-html-to-html doesn't work, gives error
> > message
>
> What version of org?  I don't have org-export-html-to-html; the closest
> I have is org-html-export-to-html.
>
> Have you done
>
> (require 'ox-html)
>
> ?
> --
> : Eric S Fraga (0xFFFCF67D), Emacs 25.0.91.1, Org release_8.3.4-626-gb62d55
>


Re: [O] long delay after selecting capture template

2016-03-19 Thread Eric Abrahamsen
Allan Streib  writes:

> Eric Abrahamsen  writes:
>
>> I guess I would `toggle-debug-on-quit', then call capture, and while
>> you're waiting for it to return, hit "C-g". That ought to pop up a
>> backtrace, and you can see what code was being executed during the
>> delay. It might be obvious what's wrong, or you can post the backtrace
>> here.
>
> I tried this but get no backtrace. Messages buffer contains:
>
>
> Debug on Quit enabled globally
> Template key: 
> byte-code: Capture abort: (quit)

Ah, the org-capture code condition-cases quit. At least we know that the
problem is in `org-capture-fill-template'!

I can't remember off the top of my head if there's a way to tell emacs
to actually debug on quit, even if quit is handled by `condition-case'.

Another thing you can try is edebugging `org-capture-fill-template' and
stepping through it, and just see if anything weird happens. See the
Elisp manual for how to edebug, if you haven't before.

Does it only happen for the "t" template? What's the "t" template look
like?

Eric




Re: [O] ox-koma-letter: org-latex--insert-compiler not found

2016-03-19 Thread Jérémie Juste
On Sat, Mar 19, 2016 at 11:50 AM, Eric S Fraga  wrote:

> On Saturday, 19 Mar 2016 at 08:38, Jeremie Juste wrote:
> > Hello,
> >
> > I'm trying trying org KOMA-Script letter exporter, but I get the
> > following error: concat:
> >
> > Symbol's function definition is void: org-latex--insert-compiler.
> >
> > I could not find the function org-latex--insert-compiler.
> > Do you have a clue about this?
>
> What version of org are you using?  Errors such as these are often due
> to having multiple versions of org installed, e.g. the one that comes
> with your emacs distribution as well as one from another source.
>
> In any case, this is defined in ox-latex.el, at least in recent versions
> of org.  Maybe "(require 'ox-latex)" before trying to use the koma
> exporter?
>
> --
> : Eric S Fraga (0xFFFCF67D), Emacs 25.0.91.1, Org release_8.3.4-626-gb62d55
>

Yes indeed you are right. The versions of org-mode and org-contrib mode
were different.
I updated both of them to the latest one :

Org-mode version 8.3.4 (8.3.4-15-gdd9be3-elpaplus @
/home/DJJ/.emacs.d/elpa/org-plus-contrib-20160314/)

and everything works fine.

Thanks,

Jeremie Juste



-- 
Jérémie Juste


[O] A small fix in `org-read-date-analyze'

2016-03-19 Thread Marcin Borkowski
Hi,

I attach a simple patch to enhance handling of two-digit years in
`org-read-date-analyze'.  (I have the FSF papers signed.)

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University
>From 6406c46fe1394b107e87012696f058fe5f13215e Mon Sep 17 00:00:00 2001
From: Marcin Borkowski 
Date: Thu, 17 Mar 2016 12:50:12 +0100
Subject: [PATCH] Enhance year handling

* lisp/org.el (org-read-date-analyze): Handle two-digit years with
`org-small-year-to-year' instead of just adding 2000
---
 lisp/org.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org.el b/lisp/org.el
index 1f06cbd..9b3af05 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -17011,7 +17011,7 @@ user."
 			  (string-to-number (format-time-string "%Y"
 	month (string-to-number (match-string 3 ans))
 	day (string-to-number (match-string 4 ans)))
-  (when (< year 100) (setq year (+ 2000 year)))
+  (when (< year 100) (setq year (org-small-year-to-year year)))
   (setq ans (replace-match (format "%04d-%02d-%02d\\5" year month day)
 			   t nil ans)))
 
-- 
2.4.3



Re: [O] Finding TODOs without SCHEDULED and DEADLINE?

2016-03-19 Thread Martin

Christophe Schockaert writes:

>
> 
>   ((agenda "" 
>  (tags-todo "-SCHEDULED={.}-DEADLINE={.}/TODO")))
> 

Thanks very much, with that information I could create the agenda I
wanted to have.

- Martin
-- 
Lösungen statt Diagnosen



Re: [O] Is this (error (error ...)) form intentional?

2016-03-19 Thread Kyle Meyer
Marcin Borkowski  writes:

> From org.el:
>
> (defun org-back-to-heading ( invisible-ok)
>   "Call `outline-back-to-heading', but provide a better error message."
>   (condition-case nil
>   (outline-back-to-heading invisible-ok)
> (error (error "Before first headline at position %d in buffer %s"
> (point) (current-buffer)
>
> Frankly, I don't see the point of nesting `error'.

One is matching the signaled error, and the other is re-throwing the
error with position and buffer information included.

--
Kyle



Re: [O] Publishing multiple projects

2016-03-19 Thread Nick Dokos
Michael Welle  writes:

> Hello,
>
> Giuseppe Lipari  writes:
>
>> Hello,
>>
>> I usually define each project into a separate project.el file, and I use a
>> batch scripts for publishing, something like this:
>>
>> publish.sh:
>> -
>> emacs --batch -l batch_project.el --kill
> ah, that makes sense.
>
> At the moment I have all projects in one file, separate from my org
> configuration. It's a bit itching that all projects use virtually the
> some property values.
>

I do the following for a set of similar projects:

--8<---cut here---start->8---
;; in my case, they are all subdirectories of a base directory
;; but you can iterate over a list of directories scattered all
;; over the place just as easily.
;; I set the publishing directory in the Makefile that publishes
;; everything:
;;
;; publish:
;;  emacs -batch --eval '(setq publishing-directory "/ssh:${dest}/")'\
;;--load foo-doc.el  --eval '(org-publish "foo-doc")'

(setq base-directory "/path/to/base/dir/")

(defun publishing-entry (project)
  `(,project
:base-directory ,(concat base-directory project)
:base-extension "org"
:publishing-directory ,(concat publishing-directory project)
:publishing-function org-html-publish-to-html
:headline-levels 3
:section-numbers nil
:with-toc t
:html-head ,html-head
:html-preamble t))

(setq subdirs '("foo" "bar" "baz"))

(setq org-publish-project-alist
  `(
...
,@(mapcar (function publishing-entry) subdirs)

("foo-doc" :components (...
--8<---cut here---end--->8---

Basically, the mapcar iterates over the subdirs list, calling
the publishing-entry function on each one. The latter produces
the entry for that subdir and the entries are spliced in.
Note the backticks and the commas: they are important.
See

 (info "(elisp) Backquote")

HTH
--
Nick




Re: [O] Publishing multiple projects

2016-03-19 Thread Giuseppe Lipari
Hello,

I usually define each project into a separate project.el file, and I use a
batch scripts for publishing, something like this:

publish.sh:
-
emacs --batch -l batch_project.el --kill
-

And my project.el
-
(add-to-list 'load-path "~/elisp/org-mode/lisp") (add-to-list 'load-path
"~/elisp/org-mode/contrib/lisp") (require 'org) (require 'htmlize) (setq
c-standard-font-lock-fontify-region-function
'font-lock-default-fontify-region) (setq org-export-backends (quote (ascii
html icalendar latex odt md))) (org-babel-do-load-languages
'org-babel-load-languages '((dot . t) (emacs-lisp . t) (python . t) (ditaa
. t))) (custom-set-variables '(org-confirm-babel-evaluate nil)) (require
'ox-publish) (org-babel-lob-ingest "~/Copy/Documents/www/org-web/
navbar-code.org") (setq org-publish-project-alist '( ("org-notes"
:base-directory "~/Copy/Documents/www/org-web/" :base-extension "org"
:publishing-directory "~/Copy/Documents/www/public_html" :recursive t
:publishing-function org-html-publish-to-html :headline-levels 5 ; Just the
default for this project. :auto-preamble t ) ("org-static" :base-directory
"~/Copy/Documents/www/org-web/" :base-extension
"css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|config\\|sh\\|zip\\|c\\|h"
:publishing-directory "~/Copy/Documents/www/public_html" :recursive t
:publishing-function org-publish-attachment ) ("org" :components
("org-notes" "org-static")) ;; ... add all the components here (see
below)... )) ; (org-publish-remove-all-timestamps) (org-publish-project
"org")


Hope this helps

Giuseppe Lipari





Le lun. 14 mars 2016 à 22:01, Michael Welle  a écrit :

> Hello,
>
> I want to publish about 20 different projects into one web site. The
> projects don't share a common root directory (except /). Does that mean I
> need 41 (20 projects + 20 project-static + 1 meta project) entries in my
> org-publish-project-alist?
>
> Regards
> hmw
>
>
>


Re: [O] args-out-of-range #

2016-03-19 Thread Nicolas Goaziou
Hello,

br...@uwaterloo.ca writes:

> This message just started appearing today when I open an agenda view
> "C-c a a". It is not obvious to me what I am doing or have done
> differently, and I would appreciate some advice how to diagnose the
> problem:
> Emacs: 24.5.1
> Orgmode: 8.3.4-5 (20160229 elpa)
>
> Thank you, -- Britt
>
> The error trace follows:
>
> Debugger entered--Lisp error: (args-out-of-range # 1372 
> 1409)
>   match-string(1)
>   (let ((s (match-string 1)) (s-begin (match-beginning 1)) (s-end
> (match-end 1)) (beg (match-beginning 0)) (end (match-end 0)) (cite-re
> (format "^\\(%s:\\)" (regexp-opt (-sort (function (lambda ... ...))
> org-ref-cite-types cite-type) (if (and s (string-match cite-re s))
> (progn (setq cite-type (match-string 1 s)) (remove-text-properties beg
> end (quote (invisible))) (add-text-properties beg end (list (quote
> face) (list (quote :foreground) org-ref-cite-color))
>   (progn (let ((s (match-string 1)) (s-begin (match-beginning 1))
> (s-end (match-end 1)) (beg (match-beginning 0)) (end (match-end 0))
> (cite-re (format "^\\(%s:\\)" (regexp-opt (-sort (function ...)
> org-ref-cite-types cite-type) (if (and s (string-match cite-re s))
> (progn (setq cite-type (match-string 1 s)) (remove-text-properties beg
> end (quote (invisible))) (add-text-properties beg end (list (quote
> face) (list (quote :foreground) org-ref-cite-color)))
>   (unwind-protect (progn (let ((s (match-string 1)) (s-begin
> (match-beginning 1)) (s-end (match-end 1)) (beg (match-beginning 0))
> (end (match-end 0)) (cite-re (format "^\\(%s:\\)" (regexp-opt (-sort
> ... org-ref-cite-types cite-type) (if (and s (string-match cite-re
> s)) (progn (setq cite-type (match-string 1 s)) (remove-text-properties
> beg end (quote (invisible))) (add-text-properties beg end (list (quote
> face) (list ... org-ref-cite-color))) (set-match-data
> save-match-data-internal (quote evaporate)))
>   (let ((save-match-data-internal (match-data))) (unwind-protect
> (progn (let ((s (match-string 1)) (s-begin (match-beginning 1)) (s-end
> (match-end 1)) (beg (match-beginning 0)) (end (match-end 0)) (cite-re
> (format "^\\(%s:\\)" (regexp-opt ...))) cite-type) (if (and
> s (string-match cite-re s)) (progn (setq cite-type (match-string 1 s))
> (remove-text-properties beg end (quote ...)) (add-text-properties beg
> end (list ... ...)) (set-match-data save-match-data-internal
> (quote evaporate
>   org-ref-make-org-link-cite-key-visible(416)

This looks like an org-ref issue. I'm Cc'ing John Kitchin.

Regards,

-- 
Nicolas Goaziou



[O] ox-koma-letter: org-latex--insert-compiler not found

2016-03-19 Thread Jeremie Juste

Hello,

I'm trying trying org KOMA-Script letter exporter, but I get the
following error: concat:

Symbol's function definition is void: org-latex--insert-compiler.

I could not find the function org-latex--insert-compiler.
Do you have a clue about this?

Best regards,

Jeremie



[O] org-mode on Windows Emacs doesn't offer html export

2016-03-19 Thread Lawrence Bottorff
Yes, the title sums it up. I've just ported my .emacs.d, org stuff, etc.
from my Linux to my work Windows 10, and I can't get the export to offer
html or latex. Even org-export-html-to-html doesn't work, gives error
message

org-latex-compile: PDF file
c:/Users/Admin/AppData/Local/Temp/babel-73881pw/latex-73883Ta.pdf wasn't
produced

Not sure why it's concerned with latex for an html export. My html and
latex are checked on the org-export-backends customization page.

LB


Re: [O] Bug: CALL misbehavior with :results verbatim [8.3.4 (8.3.4-5-gdc68d2-elpaplus @ /Users/rossdonaldson/.emacs.d/elpa/org-plus-contrib-20160229/)]

2016-03-19 Thread Ross Donaldson
Nicolas --

> Isn't it the point of the "verbatim" parameter?

I didn't think so, no. Certainly, it doesn't behave this way in any other 
context, nor does the documentation make me think it should.

> What did you expect instead?

I expect the results of a call block to be the same as from evaluating the 
named src block directly. Why would I expect anything else?

Nicolas Goaziou writes:

> Hello,
>
> Ross Donaldson  writes:
>
>> When the header argument ~:results verbatim~ is set in a #+PROPERTY,
>> the results of #+CALL blocks are surrounded by full quotes:
>
> Isn't it the point of the "verbatim" parameter?
>
>> * Good
>> #+name: first-demo
>> #+BEGIN_SRC sh
>> echo 5 #+END_SRC
>>
>> #+RESULTS: first-demo
>> : 5
>> #+call: first-demo()
>>
>> #+RESULTS:
>> : 5
>>
>> * Bad
>> :PROPERTIES:
>> :header-args: :results verbatim
>> :END:
>>
>> #+name: second-demo
>> #+BEGIN_SRC sh
>> echo 5 #+END_SRC
>>
>> #+call: second-demo()
>>
>> #+RESULTS: : "5 : "
>
> What did you expect instead?
>
>> * Weird
>> #+name: third-demo
>> #+BEGIN_SRC sh :results verbatim
>> echo 5 #+END_SRC
>>
>> #+call: third-demo()
>>
>> #+RESULTS:
>> : 5
>
> Also, what did you expect? Note that :results verbatim is applied to the
> block, not to the call line.
>
>
> Regards,


--
Cheers,
Ross



Re: [O] org-mode on Windows Emacs doesn't offer html export

2016-03-19 Thread Eric S Fraga
On Friday, 18 Mar 2016 at 14:12, Lawrence Bottorff wrote:
> Yes, Eric, that's probably the case . . . and I just don't have my latex
> ducks in a row yet. I've been spoiled on Linux -- things just working. . .

Indeed.  I'm lucky in that I don't have to venture out of the Linux
world very often, if at all!  Hope you sort it out.
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.91.1, Org release_8.3.4-626-gb62d55



[O] %? has no effect for org-agenda-prefix-format

2016-03-19 Thread Markus Heller
Excerpt from describe-variable org-agenda-prefix-format:

If the first character after `%' is a question mark, the entire field
will only be included if the corresponding value applies to the current
entry.  This is useful for fields which should have fixed width when
present, but zero width when absent.  For example, "%?-12t" will
result in a 12 character time field if a time of the day is specified,
but will completely disappear in entries which do not contain a time.

This does not work for me (emacs 24.3, Org-mode version 8.2.10 (8.2.10-
41-g42228a-elpa)).

Excerpt from agenda view:


Project Subtasks
  INFRA nil : TODO Purchase Fragment Library


Excerpt from org file (Not that the task in question has no Property 
drawer at all):


* Other Infrastructure Development
:PROPERTIES:
:CATEGORY: INFRA
:END:
** TODO NMR-based Fragment Screen
*** TODO Purchase Fragment Library


Here's the definition of org-agenda-prefix-format from my .emacs:


((org-agenda-prefix-format "  %-5c %?-4(setq type (org-entry-get (point) 
\"Type\")): ")


There is a similar thread on stackexchange from March 10 on this 
(http://stackoverflow.com/questions/35910204/org-agenda-prefix-format-
does-not-work).

Is this a bug?

Thanks
Markus





[O] Multiple header-args of same name in babel

2016-03-19 Thread Tiago Natel de Moura
Hello,

What's the best way to split long header arguments in multiple lines?

What I want to achieve is the same as the babel :var argument, but for
other header (:imports).

For example, with :var I can do:

#+HEADER: :var a=1
#+HEADER: :var b=2
#+HEADER: :var c=3
#+BEGIN_SRC go
fmt.Printf("%d", a+b+c)
#+END_SRC

But it doesn't work for other headers and as I'd saw experimenting some
code in ob-go, it's impossible without some changes in ob-core.el, because
:var is handled differently there. When the function org-babel-execute:go
is called, the params only have the first header assigned.

What I'm trying to solve is the following problem:

#+HEADER: :imports '("fmt" "math" "crypto" ... )
#+BEGIN_SRC go
// some code
#+END_SRC

I wanna keep my source code with lines with 80 columns as possible...

Thanks.

-- 
[]'s
i4k


[O] faster auto-completion suggestions in org-mode

2016-03-19 Thread Jérémie Juste
Hello,

I'm using auto-complete in
org mode but I notice that there is more delay in the completion in
org-mode than in text mode for example.

I tried to customize auto-complete by reducing the delay to a maximum but
it didn't improve in org-mode.

Do you know what is causing this delay and if it's is possible to improve
it.

Thanks
-- 
Jeremie Juste


Re: [O] A small fix in `org-read-date-analyze'

2016-03-19 Thread Nicolas Goaziou
Hello,

Marcin Borkowski  writes:

> Papers signed.

OK. Applied. Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] ox-koma-letter: org-latex--insert-compiler not found

2016-03-19 Thread Eric S Fraga
On Saturday, 19 Mar 2016 at 08:38, Jeremie Juste wrote:
> Hello,
>
> I'm trying trying org KOMA-Script letter exporter, but I get the
> following error: concat:
>
> Symbol's function definition is void: org-latex--insert-compiler.
>
> I could not find the function org-latex--insert-compiler.
> Do you have a clue about this?

What version of org are you using?  Errors such as these are often due
to having multiple versions of org installed, e.g. the one that comes
with your emacs distribution as well as one from another source.

In any case, this is defined in ox-latex.el, at least in recent versions
of org.  Maybe "(require 'ox-latex)" before trying to use the koma
exporter?

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.91.1, Org release_8.3.4-626-gb62d55



[O] How to do for all clocks in the region or subtree?

2016-03-19 Thread Marcin Borkowski
Hi list,

I have a function which does  on a clock the point is on.
I want to call it for every clock in the region if it is active, and if
not, then for every clock in the current subtree.  Here's what I have:

--8<---cut here---start->8---
(defun do-something-for-all-clocks (begin end)
  "Do  for all clocks in the region.
In interactive use, use region if active and current subtree
otherwise.  Use with caution!"
  (interactive (if (use-region-p)
   (list (region-beginning)
 (region-end))
 (list nil nil)))
  (save-excursion
(save-restriction
  (narrow-to-region
   (or begin (progn (org-back-to-heading t)
(point)))
   (or end (progn (org-end-of-subtree t t)
  (when (and (org-at-heading-p) ; see org-narrow-to-subtree
 (not (eobp)))
(backward-char 1))
  (point
  (goto-char (point-min))
  (while (re-search-forward "^CLOCK: " nil t)
(if (eq (org-element-type (org-element-at-point))
'clock)
(do-something-with-clock-at-point))
--8<---cut here---end--->8---

Is it ok or is there some fancy way of iterating across all clock
entries in the region?  (I don't want any dependencies - only vanilla
Org!)

TIA,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



[O] Is this (error (error ...)) form intentional?

2016-03-19 Thread Marcin Borkowski
>From org.el:

--8<---cut here---start->8---
(defun org-back-to-heading ( invisible-ok)
  "Call `outline-back-to-heading', but provide a better error message."
  (condition-case nil
  (outline-back-to-heading invisible-ok)
(error (error "Before first headline at position %d in buffer %s"
  (point) (current-buffer)
--8<---cut here---end--->8---

Frankly, I don't see the point of nesting `error'.

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



Re: [O] Spreadsheet: Conditionally apply formula to cell?

2016-03-19 Thread Christian Moe

Hi,

Yes, there is. See the manual on logical operations in "Formula syntax
for Calc", which gives an example for almost exactly the same thing.

 | 1 | 2 | 13 |
 |   |   ||
 #+TBLFM: $3=if("$1" == "nan" || "$2" == "nan", string(""), $1+$2+10);E

Yours,
Christian

Loris Bennett writes:

> Hi,
>
> If I have
>
> | 1 | 2 | 13 |
> |   |   | 10 |
> #+TBLFM: $3=$1+$2+10
>
> is there a way to suppress calculation of column 3 if, as in row 2, the
> entry in column 1 is empty?
>
> Cheers,
>
> Loris




Re: [O] [PATCH] (fixed) ox-confluence.el: Do not generate filled paragraphs

2016-03-19 Thread Nicolas Goaziou
Hello,

"M. P. Ashton"  writes:

> Thanks for looking this over. Let me know what would be an acceptable
> change if any.

Applied. Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] org-show-context-detail with ispell

2016-03-19 Thread Nicolas Goaziou
Hello,

gongzhitaao  writes:

> org-show-context-detail works pretty good with isearch, i.e., revealing 
> context when searching in the folded section.  But for ispell, it does not 
> reveal the context when checking spelling in the folded section.  Are there 
> any ways around that, i.e., revealing temporarily the text that ispell 
> highlights?

I suppose you could add `org-show-context-detail' to
`flyspell-incorrect-hook'.


Regards,

-- 
Nicolas Goaziou



[O] Patch for ox-confluence.el

2016-03-19 Thread Paul Schorfheide
Hi:

I made a small change to ox-confluence.el to support additional language
name mappings. Can someone please review it?

Thanks
Paul Schorfheide


0001-Add-org-confluence-lang-alist.patch
Description: Binary data


Re: [O] org-src-fontification buffers

2016-03-19 Thread Kyle Meyer
Alan Schmitt  writes:

> Hello,
>
> I'm having an issue with a buffer that is created by org for
> fontification that wants to be saved, although it's temporary. In my
> case, it's org-src-fontification:coq-mode, but it seems the problem
> happens for other languages (see
> https://emacs.stackexchange.com/questions/20593/org-src-fontify-natively-makes-magit-think-there-are-unsaved-files/20607)

Trying with elisp blocks, I'm not able to reproduce this (pretty recent
Emacs 25, GNU/Linux, latest Org).

How are you calling save-some-buffers?  It should ignore buffers that
aren't visiting files unless its PRED argument is non-nil or a function
that returns non-nil.

Can you step through save-some-buffers and see what's going on there?
Specifically, what's passed in as PRED and what happens here?

(or (not (functionp pred))
(with-current-buffer buffer (funcall pred)))

> Is there a way to tell emacs it's ok to kill this buffer without saving
> it?

We could `(set-buffer-modified-p nil)', which will force
save-some-buffers to ignore it, but I don't think that should be
necessary.

-- 
Kyle



Re: [O] html jsMath

2016-03-19 Thread Joseph Vidal-Rosset
2016-03-18 16:31 GMT+01:00 John Kitchin :

> Try adding this to the top:
>
> #+HTML_HEAD:  #+HTML_HEAD:src="
> http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML
> ">
> #+HTML_HEAD: 
>

Dear John (cc. the org-mode list)

Thanks to your help I have succeeded in finding the right configuration for
html export :

#+HTML_HEAD: https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_CHTML-full.js
">
#+HTML_HEAD: 

it works perfectly for the export of formulas. I have used the
documentation on mathjax.org

I hope that this cc. will be maybe useful for others.

Best wishes

Jo.


Re: [O] A small fix in `org-read-date-analyze'

2016-03-19 Thread Marcin Borkowski

On 2016-03-17, at 12:52, Marcin Borkowski  wrote:

> Hi,
>
> I attach a simple patch to enhance handling of two-digit years in
> `org-read-date-analyze'.  (I have the FSF papers signed.)

A better version (sorry for the noise).

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University
>From e98af1606de2479835da797e88eba332cabb233a Mon Sep 17 00:00:00 2001
From: Marcin Borkowski 
Date: Thu, 17 Mar 2016 12:50:12 +0100
Subject: [PATCH] Enhance year handling

* lisp/org.el (org-read-date-analyze): Handle two-digit years with
`org-small-year-to-year' instead of just adding 2000
---
 lisp/org.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 1f06cbd..5adb370 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -17011,7 +17011,7 @@ user."
 			  (string-to-number (format-time-string "%Y"
 	month (string-to-number (match-string 3 ans))
 	day (string-to-number (match-string 4 ans)))
-  (when (< year 100) (setq year (+ 2000 year)))
+  (setq year (org-small-year-to-year year))
   (setq ans (replace-match (format "%04d-%02d-%02d\\5" year month day)
 			   t nil ans)))
 
@@ -17035,7 +17035,7 @@ user."
 			  (string-to-number (format-time-string "%Y"
 	month (string-to-number (match-string 1 ans))
 	day (string-to-number (match-string 2 ans)))
-  (when (< year 100) (setq year (+ 2000 year)))
+  (setq year (org-small-year-to-year year))
   (setq ans (replace-match (format "%04d-%02d-%02d\\5" year month day)
 			   t nil ans)))
 ;; Help matching am/pm times, because `parse-time-string' does not do that.
-- 
2.4.3



Re: [O] A proposed enhancement in entering timestamps

2016-03-19 Thread Eric S Fraga
On Friday, 18 Mar 2016 at 17:51, Marcin Borkowski wrote:
> I'm now reading org-read-date-analyze to be able to enable US military
> format for hours (e.g., 2100 instead of 21:00).  This is potentially
> very useful (at least for me), since I'll be able to enter the hour with
> one hand (colon is on shift-semicolon on my keyboard).  Another idea
> would be to enable 21.00 (this notation is sometimes used in Poland).
> Would there be demand for such a feature?

+1 for both 2100 and 21.00 as I hate typing the :...
so I guess +2 from me. :-)

I would also like 21h.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.91.1, Org release_8.3.4-626-gb62d55



[O] A proposed enhancement in entering timestamps (was: A small fix in `org-read-date-analyze')

2016-03-19 Thread Marcin Borkowski

On 2016-03-18, at 14:34, Nicolas Goaziou  wrote:

> Hello,
>
> Marcin Borkowski  writes:
>
>> Papers signed.
>
> OK. Applied. Thank you.

Great, thanks!  (This is my first contribution to Org-mode!)

I'm now reading org-read-date-analyze to be able to enable US military
format for hours (e.g., 2100 instead of 21:00).  This is potentially
very useful (at least for me), since I'll be able to enter the hour with
one hand (colon is on shift-semicolon on my keyboard).  Another idea
would be to enable 21.00 (this notation is sometimes used in Poland).
Would there be demand for such a feature?

> Regards,

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



Re: [O] Bug: org-datetree.el references undefined function org-find-property [8.2.10 (release_8.2.10 @ /Users/damien/.emacs.d/elpa/org-plus-contrib-20160314/)]

2016-03-19 Thread Nicolas Goaziou
Hello,

Damien Pollet  writes:

> Hi. When invoking org-capture to add an entry to my journal, Emacs
> sometimes complains that "symbols's function definition is void:
> org-find-property". Very much like in this report:
>
> https://lists.gnu.org/archive/html/emacs-orgmode/2016-02/msg00267.html
>
> M-x describe-function does not find that symbol. I found an occurrence
> of it in org-datetree.el, and a colleague recommended to (require
> 'org-datetree) but that didn't have any effect.
>
> I usually open an org-mode file and retry the org-capture, and sometimes
> that makes the problem go away, but not today, it seems. This is with
> Spacemacs master, keeping all packages pretty up-to-date with Melpa etc.
>
> Emacs  : GNU Emacs 24.5.1 (x86_64-apple-darwin15.2.0, Carbon Version 157 
> AppKit 1404.34)
>  of 2015-12-15 on Kosumi.local
> Package: Org-mode version 8.2.10 (release_8.2.10 @ 
> /Users/damien/.emacs.d/elpa/org-plus-contrib-20160314/)

The above looks supicious. "org-plus-contrib-20160314" should provide
Org 8.3.4 instead of 8.2.10, which is the one provided in Emacs.

Could you double-check your installation?


Regards,

-- 
Nicolas Goaziou



Re: [O] Bug: org-datetree.el references undefined function org-find-property [8.2.10 (release_8.2.10 @ /Users/damien/.emacs.d/elpa/org-plus-contrib-20160314/)]

2016-03-19 Thread Damien Pollet
On 16 Mar 2016, at 22:26, Nicolas Goaziou  wrote:
>> Package: Org-mode version 8.2.10 (release_8.2.10 @ 
>> /Users/damien/.emacs.d/elpa/org-plus-contrib-20160314/)
> 
> The above looks supicious. "org-plus-contrib-20160314" should provide
> Org 8.3.4 instead of 8.2.10, which is the one provided in Emacs.
> 
> Could you double-check your installation?

Yes, I rebooted emacs; org-version reports 8.3.4 now.

In fact the problem went away after the reboot and it usually happens after I 
update packages, so it probably was the previous release reporting about the 
freshly updated but not completely reloaded packages.

I discussed that with our local Emacs guru and he wasn't surprised there would 
be problems with hot-updating code.

--
Damien Pollet






[O] Bug: org-datetree.el references undefined function org-find-property [8.2.10 (release_8.2.10 @ /Users/damien/.emacs.d/elpa/org-plus-contrib-20160314/)]

2016-03-19 Thread Damien Pollet

Hi. When invoking org-capture to add an entry to my journal, Emacs
sometimes complains that "symbols's function definition is void:
org-find-property". Very much like in this report:

https://lists.gnu.org/archive/html/emacs-orgmode/2016-02/msg00267.html

M-x describe-function does not find that symbol. I found an occurrence
of it in org-datetree.el, and a colleague recommended to (require
'org-datetree) but that didn't have any effect.

I usually open an org-mode file and retry the org-capture, and sometimes
that makes the problem go away, but not today, it seems. This is with
Spacemacs master, keeping all packages pretty up-to-date with Melpa etc.

Thanks in advance





Emacs  : GNU Emacs 24.5.1 (x86_64-apple-darwin15.2.0, Carbon Version 157 AppKit 
1404.34)
 of 2015-12-15 on Kosumi.local
Package: Org-mode version 8.2.10 (release_8.2.10 @ 
/Users/damien/.emacs.d/elpa/org-plus-contrib-20160314/)

current state:
==
(setq
 org-journal-file-format "%Y-%m-%d.org"
 org-id-locations-file "/Users/damien/.emacs.d/.cache/.org-id-locations"
 org-journal-mode-hook '(#[nil "\301\302\303\304$\207"
   [org-journal-encrypt-on org-add-hook
org-journal-encryption-hook nil t]
   5]
 (lambda nil
  (org-add-hook org-journal-encrypt-on
   (quote org-journal-encryption-hook) nil t)
  )
 )
 org-pandoc-epub-rights "Copyright 2016 Damien Pollet <>"
 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-clock-persist-file "/Users/damien/.emacs.d/.cache/org-clock-save.el"
 org-speed-command-hook '(org-speed-command-default-hook 
org-babel-speed-command-hook)
 org-special-ctrl-k t
 org-occur-hook '(org-first-headline-recenter)
 org-imenu-depth 8
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-html-format-drawer-function '(lambda (name contents) contents)
 org-log-done t
 org-latex-format-inlinetask-function 
'org-latex-format-inlinetask-default-function
 org-confirm-shell-link-function 'yes-or-no-p
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-link-translation-function 'toc-org-unhrefify
 org-present-mode-hook '(spacemacs//org-present-start)
 org-agenda-restore-windows-after-quit t
 org-special-ctrl-a/e t
 org-return-follows-link t
 org-latex-format-headline-function 'org-latex-format-headline-default-function
 org-default-notes-file "notes.org"
 org-capture-templates '(("j" "Journal entry" entry
  (file+datetree
   (concat (file-name-as-directory org-journal-dir)
"current.org")
   )
  "* %(format-time-string org-journal-time-format)%i%?")
 ("x" "Org Repo Checklist Item" checkitem
  (file+headline (ort/todo-file) "Checklist"))
 ("t" "Org Repo Todo" entry
  (file+headline (ort/todo-file) "Todos")
  "* TODO  %?   %T\n %i\n Link: %l\n")
 )
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-latex-format-drawer-function '(lambda (name contents) contents)
 org-from-is-user-regexp "\\"
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
 org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '((lambda nil
  (add-hook (quote before-save-hook) (quote org-align-all-tags) 
nil t))
 spacemacs/load-yasnippet toc-org-enable
 org-journal-update-auto-mode-alist org-bullets-mode 
flyspell-mode
 spacemacs/add-org-surrounds evil-org-mode org-eldoc-load
 #[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
 spacemacs//init-company-org-mode company-mode)
 org-archive-hook '(org-attach-archive-delete-maybe)
 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
  

[O] Using property macro with argument (or subtree-specific macro)

2016-03-19 Thread Joon Ro
Hi,
Is there any way to use argument with property macro? For example,
* test:PROPERTIES::HIDDEN: @@latex:\iffalse $1 \fi@@:END:
{{{property(HIDDEN(string))}}}
I don't think currently it is possible, but it would be great if this is 
possible, or we can have subtree-specific macro replacement.
Thank you,Joon