Re: [O] excluding whole trees on export when subtrees have "select" tags present

2017-01-11 Thread Eric S Fraga
On Wednesday, 11 Jan 2017 at 20:26, Nicolas Goaziou wrote:
> This is what select tags do, but the tree starts at top-level. Any tree
> that _contains_ a select tag is exported as a whole. See
> `org-export--selected-trees'.

Yes.

> You want to use select tags to get parts of trees, i.e. sub-trees. For
> example,

But I don't.  What I had expected is that if the tree is not selected at
the top level, then it should not be selected at all regardless of
sub-tree heading tags.  However, if a sub-tree has a selected task, the
whole tree is selected.  I expected nothing.

But this is fine.  I now understand the behaviour and can achieve what I
want with careful combinations of tags.

Thanks,
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.3-189-ge46676


signature.asc
Description: PGP signature


Re: [O] [feature request] more informative error message when calling an undefined src block

2017-01-11 Thread Eric S Fraga
On Wednesday, 11 Jan 2017 at 20:02, Nicolas Goaziou wrote:
> Eric S Fraga  writes:
>
>> This ECM may appear contrived but, when working with a large document,
>> it is easy to comment out or exclude sections that, it turns out, have
>> material within that is referenced from elsewhere.  This is difficult to
>> track down when exporting.  If the error message had "nil" above
>> replaced by "mytable", it would make all the difference!
>
> Of course. Fixed. Thank you.

Excellent!  Works perfectly.  Many thanks.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.3-189-ge46676


signature.asc
Description: PGP signature


Re: [O] REPEAT_TO_STATE file-wide property is not working

2017-01-11 Thread Young-whan
Actually, I've tried 9.0.3, but it's as same as before. hmm...

On Wed, Jan 11, 2017 at 10:51 PM, Young-whan  wrote:

> Mine is like this:
>
> GNU Emacs 25.1.1 (x86_64-apple-darwin16.4.0, NS appkit-1504.77 Version
> 10.12.3 (Build 16D17a)) of 2017-01-09
> Org-mode version 8.2.10 (release_8.2.10 @ /Applications/MacPorts/Emacs.
> app/Contents/Resources/lisp/org/)
>
> I've tried the bare configuration ( -q option ), but it's same.
>
> I wonder if it is a bug in 8.2.10. Maybe, I can try 9.0.3 org version.
>
> On Tue, Jan 10, 2017 at 4:12 AM, Nicolas Goaziou 
> wrote:
>
>> Hello,
>>
>> Young-whan  writes:
>>
>> > Can you show me
>> >
>> > M-x emacs-version
>> > M-x org-version
>>
>> GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.20.9) of
>> 2016-12-10
>>
>> Org mode version 9.0.3 (release_9.0.3-189-ge46676)
>>
>> I suggest using a bare configuration and try again.
>>
>> Regards,
>>
>> --
>> Nicolas Goaziou
>>
>
>


Re: [O] REPEAT_TO_STATE file-wide property is not working

2017-01-11 Thread Young-whan
Mine is like this:

GNU Emacs 25.1.1 (x86_64-apple-darwin16.4.0, NS appkit-1504.77 Version
10.12.3 (Build 16D17a)) of 2017-01-09
Org-mode version 8.2.10 (release_8.2.10 @
/Applications/MacPorts/Emacs.app/Contents/Resources/lisp/org/)

I've tried the bare configuration ( -q option ), but it's same.

I wonder if it is a bug in 8.2.10. Maybe, I can try 9.0.3 org version.

On Tue, Jan 10, 2017 at 4:12 AM, Nicolas Goaziou 
wrote:

> Hello,
>
> Young-whan  writes:
>
> > Can you show me
> >
> > M-x emacs-version
> > M-x org-version
>
> GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.20.9) of
> 2016-12-10
>
> Org mode version 9.0.3 (release_9.0.3-189-ge46676)
>
> I suggest using a bare configuration and try again.
>
> Regards,
>
> --
> Nicolas Goaziou
>


[O] Syncing methods for org files and org-mobile.el

2017-01-11 Thread Sean Escriva
Greetings fellow Org users,

I'm the current maintainer for MobileOrg iOS[1] and am interested to get
feedback from any org-mobile users. What do you use to sync org files
across different machines, how could the current org-mobile workflow be
improved (if at all)?

We're actively working to get a refreshed MobileOrg release out and there
is currently some discussion related to syncing methods used to share org
files with mobile devices in a github issue[2]. No doubt many other org
users keep their org files in a git repo or other scm, so the question has
come up of just using git directly to sync with a mobile client. Some feel
that "for many users it's annoying to remember every time to push/pull when
changing devices" but I am of the opinion that we should always maintain
compatibility with the emacs lisp library that is currently implemented for
syncing org files.

Perhaps there is room to improve the behavior or org-mobile.el in ways that
would benefit users syncing org files on multiple machines and mobile
devices. I would appreciate input or suggestions for ways to enhance the
mobile sync experience/workflow.

Thanks,
Sean

[1] https://github.com/MobileOrg/mobileorg/
[2] https://github.com/MobileOrg/mobileorg/issues/120


Re: [O] %( in capture template

2017-01-11 Thread Samuel Wales
hi nicolas,


thank you for the fix.  quick testing seems to show that it works much
better.  will keep evaluating it.

i had thought it was my own lack of understanding.

there is one problem.  when i select a few paragraphs in firefox using
org-capture extension, they get captured as one long line.  but i'm
guessing that's protocol, not capture.


samuel

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

The disease DOES progress.  MANY people have died from it.  And
ANYBODY can get it.

Denmark: free Karina Hansen NOW.
  UPDATE 2016-10: home, but not fully free



Re: [O] format-time-string for a time range

2017-01-11 Thread Joon Ro
I'm sorry I misspoke. With ("<%b %d (%a)>" . "<%b %d (%a) %I:%M%p>"), it 
correctly exports [2016-05-10 Tue 13:00-16:00] into May 10 (Tue) 01:00PM–May 10 
(Tue) 04:00PM.


However, is there any way to skip the second (the same) date and get May 10 
(Tue) 01:00PM–04:00PM instead?


Best,

Joon


From: Emacs-orgmode  on 
behalf of Joon Ro 
Sent: Wednesday, January 11, 2017 4:43:28 PM
To: emacs-orgmode@gnu.org
Subject: [O] format-time-string for a time range


Hi,


I'm trying to specify org-time-stamp-custom-formats for a time range. For 
example,


[2016-05-10 Tue 13:00-16:00]


Is there any way to specify this? Currently I'm using ("<%b %d (%a)>" . "<%b %d 
(%a) %I:%M%p>"), which results in May 10 (Tue) 01:00PM.


I have not been able to find symbols for the end time for the range (in this 
example, 16:00).


Thank you,

Joon



[O] format-time-string for a time range

2017-01-11 Thread Joon Ro
Hi,


I'm trying to specify org-time-stamp-custom-formats for a time range. For 
example,


[2016-05-10 Tue 13:00-16:00]


Is there any way to specify this? Currently I'm using ("<%b %d (%a)>" . "<%b %d 
(%a) %I:%M%p>"), which results in May 10 (Tue) 01:00PM.


I have not been able to find symbols for the end time for the range (in this 
example, 16:00).


Thank you,

Joon



Re: [O] [org-ref] how to tweak display of links and entries

2017-01-11 Thread Christian Wittern

Dear John,

Thanks for your answer.

On 01/11/2017 10:33 PM, John Kitchin wrote:


There is not a way to hook or define a format for this that I know of.
For helm-bibtex, you might be able to redefine or advise
bibtex-completion-apa-format-authors to handle that.


Well, thanks, I'll investigate that. Is that what is also used for the 
display as popup and in the echo area that org-ref is providing?




You can turn off the full display like this:

#+BEGIN_SRC emacs-lisp
(loop for cite in org-ref-cite-types
  do
  (org-link-set-parameters cite :display nil))
#+END_SRC



OK, that is what I wanted to know, all I want to do is hide the citekey in 
this case.


All the best, and thanks for given us the present of org-ref,

Christian

--
Christian Wittern, Kyoto



Re: [O] excluding whole trees on export when subtrees have "select" tags present

2017-01-11 Thread Nicolas Goaziou
Hello,

Eric S Fraga  writes:

> On Tuesday, 10 Jan 2017 at 14:27, John Kitchin wrote:
>> This does not sound right to me.
>>
>> This org file:
>>
>> #+BEGIN_SRC org
>> ,#+select_tags: wanted
>> ,#+exclude_tags: notwanted
>>
>> ,* headline
>> :notwanted:
>>   some text
>>
>> ,** subhead 1
>> ,** subhead2  
>> :wanted:
>>   more text
>> #+END_SRC
>>
>>
>> should not have any thing to export.
>
> Yes, and it works.  However, if I don't explicitly specify "notwanted"
> as excluded, the whole file is exported.  I guess I don't understand the
> meaning of "select_tags": I would like this to specify those trees to be
> exported only if the given tags are present.

This is what select tags do, but the tree starts at top-level. Any tree
that _contains_ a select tag is exported as a whole. See
`org-export--selected-trees'.

You want to use select tags to get parts of trees, i.e. sub-trees. For
example,

  * H1
  * H2
  ** SH1  :wanted:
  ** SH2
  *** SSH1:wanted:

would become morally equivalent to

  * SH1   :wanted:
  * SSH1  :wanted:

This is not possible. 

I had a patch for that, but I never got to apply it because it seemed
very hackish. Also, you can do the same in a hook, where a function
would delete any entry not tagged "wanted" prior to export.

Regards,

-- 
Nicolas Goaziou



[O] org-mime: improve handling of cc & bcc

2017-01-11 Thread Matt Price
I have been having some trouble with org-mime & mu4e (iv cc & bcc are
empty, then buffer creation fails), and this patch seems to have fixed it.
Not 100% sure that this is really the origin of the problem but it fixed an
issue for me.
diff --git a/contrib/lisp/org-mime.el b/contrib/lisp/org-mime.el
index 2ced42ec8..465fb3416 100644
--- a/contrib/lisp/org-mime.el
+++ b/contrib/lisp/org-mime.el
@@ -257,6 +257,10 @@ otherwise export the entire body."
 	   (to (funcall mp "MAIL_TO"))
 	   (cc (funcall mp "MAIL_CC"))
 	   (bcc (funcall mp "MAIL_BCC"))
+	   (other-headers (cond ((and cc bcc) `((cc . ,cc) (bcc . ,bcc)))
+(cc `((cc . ,cc)))
+(bcc `((bcc . ,bcc)))
+(t nil)))
 	   (body (buffer-substring
 		  (save-excursion (goto-char (point-min))
   (forward-line 1)
@@ -265,8 +269,7 @@ otherwise export the entire body."
 (forward-char))
   (point))
 		  (point-max
-  (org-mime-compose body (or fmt 'org) file to subject
-			`((cc . ,cc) (bcc . ,bcc))
+  (org-mime-compose body (or fmt 'org) file to subject other-headers
 
 (defun org-mime-send-buffer ( fmt)
   (run-hooks 'org-mime-send-buffer-hook)


Re: [O] [feature request] more informative error message when calling an undefined src block

2017-01-11 Thread Nicolas Goaziou
Eric S Fraga  writes:

> This ECM may appear contrived but, when working with a large document,
> it is easy to comment out or exclude sections that, it turns out, have
> material within that is referenced from elsewhere.  This is difficult to
> track down when exporting.  If the error message had "nil" above
> replaced by "mytable", it would make all the difference!

Of course. Fixed. Thank you.

Regards,



Re: [O] [feature request] more informative error message when calling an undefined src block

2017-01-11 Thread Eric S Fraga
On Tuesday, 10 Jan 2017 at 12:26, Nicolas Goaziou wrote:

[...]

> Could you provide an ECM?

Yes, of course:

#+begin_src org
  ,* Simple illustration of nil link error message
  In table [[mytable]], there are some numbers
  ,** the table :noexport:
  ,#+name: mytable
  | x | y |
  |---+---|
  | 1 | 1 |
  | 2 | 4 |
  ,#+TBLFM: $2=$1^2
#+end_src

There is a reference to a table which is in a subtree that is not to be
exported.  The error message is

   user-error: Unable to resolve link: nil

This ECM may appear contrived but, when working with a large document,
it is easy to comment out or exclude sections that, it turns out, have
material within that is referenced from elsewhere.  This is difficult to
track down when exporting.  If the error message had "nil" above
replaced by "mytable", it would make all the difference!

Many thanks,
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.2-104-gf5b7de


signature.asc
Description: PGP signature


Re: [O] Org mode clockview links failing with spaces

2017-01-11 Thread Shawn Way
I'll do so this evening.  Unfortunately, work is interfering with my "work".

Shawn Way, PE

-Original Message-
From: Nicolas Goaziou [mailto:m...@nicolasgoaziou.fr] 
Sent: Wednesday, January 11, 2017 5:29 AM
To: Shawn Way 
Cc: emacs-orgmode@gnu.org
Subject: Re: Org mode clockview links failing with spaces

Hello,

Shawn Way  writes:

> A pop up window appears asking the question:
>
> No match - Create this as a new heading?

I cannot reproduce it. Could you double-check with a bare configuration?

Regards,

-- 
Nicolas Goaziou



Re: [O] excluding whole trees on export when subtrees have "select" tags present

2017-01-11 Thread Eric S Fraga
On Tuesday, 10 Jan 2017 at 14:27, John Kitchin wrote:
> This does not sound right to me.
>
> This org file:
>
> #+BEGIN_SRC org
> ,#+select_tags: wanted
> ,#+exclude_tags: notwanted
>
> ,* headline:notwanted:
>   some text
>
> ,** subhead 1
> ,** subhead2  :wanted:
>   more text
> #+END_SRC
>
>
> should not have any thing to export.

Yes, and it works.  However, if I don't explicitly specify "notwanted"
as excluded, the whole file is exported.  I guess I don't understand the
meaning of "select_tags": I would like this to specify those trees to be
exported only if the given tags are present.  I would expect the
behaviour to be the same whether I specify excluded tags or not when
selected tags are given, other than exclusion of subtrees within
selected trees.

But I guess my understanding is completely wrong.  And re-reading the
documentation doesn't make things clearer for me.  There seems to be a
gap between selected and excluded tags which is, to me, ambiguous.  If
nothing is specified for either, the documentation implies default
values (:export: and :noexport: respectively).  However, the behaviour
is not consistent with this as, if I do not specify any selected or
excluded tags, the default behaviour is to export everything.

I guess I could look at the code to see what the underlying logic really
is.  For another day, when I have some time -- it's start of term and
I'm doing the headless chicken impression getting material ready for the
students.

Anyway, with the proper combination of both select and exclude tags, I
have managed to get what I want.

Thanks,
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.2-104-gf5b7de


signature.asc
Description: PGP signature


[O] org-get-heading and COMMENT

2017-01-11 Thread Matt Price
I see that

(org-get-heading t t)

executed on a heading like:

* COMMENT Heading Title

returns:

COMMENT Heading Title

Should there be a third switch, something like NO-COMMENT? Or should I
maybe be using the org-element API instead? I'm just trying to generate
custom id's from headline text + a shortened hash (acquired via
org-new-id).


Re: [O] org-capture exists with "Capture abort: (wrong type argument...)"

2017-01-11 Thread Simao
Ok I found out the problem.

I was using the following hook:

(defun sm-mozilla-text-hook ()
  (when (string-match (expand-file-name "~/.mozilla/firefox")
  (buffer-file-name))
(longlines-mode 1)))

(add-hook 'text-mode-hook 'sm-mozilla-text-hook)

But for the capture buffer, buffer-file-name is nil so this fails. Using
`or` there fixes it.

Anyway I am just surprised that this worked for so long, I have had this
hook for years and use these kind of buffers all the time. I guess I
should be using.

Thank you for looking into it.

Simao


On Wed, Jan 11, 2017, at 16:05, Simao wrote:
> I was using the version bundled with emacs 25. I upgraded to org 9.0.3
> and I still get the same problem. Is there a way to get a better trace
> or something?
> 
> On Wed, Jan 11, 2017, at 15:50, Nicolas Goaziou wrote:
> > Simao  writes:
> > 
> > > Ah that's what you meant. Yeah but I am activating org-mode for org.txt
> > > files:
> > >
> > > (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
> > > (add-to-list 'auto-mode-alist '("\\.org.txt$" . org-mode))
> > >
> > > And if I open the journal file it indeed has org-mode active.
> > 
> > Then, you could try upgrading Org to 9.0.
> > 
> > Regards,



Re: [O] [OT] buffer or frame locale color-theme settings?

2017-01-11 Thread Rasmus
Hi,

Matt Price  writes:

> Shoot, I've just updated my emacs and and I guess I can no longer set
> frame-local color themes, a it says in NEWS:
>
> ** Some obsolete functions, variables, and faces have been removed:
> *** make-variable-frame-local.  Variables cannot be frame-local any more.

This works in a recent version of Emacs-git,

 (set-frame-parameter nil 'background-color "white")

> Does anyone else rely on multiple color themes for visually distinguishing
> frames or buffers? Do you have suggestions for how to do that now that this
> deprecated function has been removed (sniff)?

I use different daemons for Gnus and text editing.  I start Gnus with
something like this,

emacsclient -s gnus -ca '' -F '((title . "Gnus") (icon-type . "gnus") 
(background-color . "light yellow"))'

Regards,
Rasmus

-- 
this message is brought to you by the department of redundant departments




Re: [O] org-capture exists with "Capture abort: (wrong type argument...)"

2017-01-11 Thread Simao
I was using the version bundled with emacs 25. I upgraded to org 9.0.3
and I still get the same problem. Is there a way to get a better trace
or something?

On Wed, Jan 11, 2017, at 15:50, Nicolas Goaziou wrote:
> Simao  writes:
> 
> > Ah that's what you meant. Yeah but I am activating org-mode for org.txt
> > files:
> >
> > (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
> > (add-to-list 'auto-mode-alist '("\\.org.txt$" . org-mode))
> >
> > And if I open the journal file it indeed has org-mode active.
> 
> Then, you could try upgrading Org to 9.0.
> 
> Regards,



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

2017-01-11 Thread Nicolas Goaziou
Hello,

Roland Everaert  writes:

> Is it possible to call a code block from a table field as it is a formula?
>
> I have tried the following syntax from a field in a table, but none of them
> is interpreted as expected:
>
> - #+CALL: function(parameters)
> - call_function(parameters)
>
> The goal is to use the result of the call in other formulas of the
> table.

It is called org-sbe(parameters). Unfortunately, it is not documented in the
manual. There is 
however. Search for "org-sbe" there.

Regards,

-- 
Nicolas Goaziou



Re: [O] org-capture exists with "Capture abort: (wrong type argument...)"

2017-01-11 Thread Nicolas Goaziou
Simao  writes:

> Ah that's what you meant. Yeah but I am activating org-mode for org.txt
> files:
>
> (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
> (add-to-list 'auto-mode-alist '("\\.org.txt$" . org-mode))
>
> And if I open the journal file it indeed has org-mode active.

Then, you could try upgrading Org to 9.0.

Regards,



[O] [OT] buffer or frame locale color-theme settings?

2017-01-11 Thread Matt Price
Shoot, I've just updated my emacs and and I guess I can no longer set
frame-local color themes, a it says in NEWS:

** Some obsolete functions, variables, and faces have been removed:
*** make-variable-frame-local.  Variables cannot be frame-local any more.

Does anyone else rely on multiple color themes for visually distinguishing
frames or buffers? Do you have suggestions for how to do that now that this
deprecated function has been removed (sniff)?


Re: [O] org-capture exists with "Capture abort: (wrong type argument...)"

2017-01-11 Thread Simao
Ah that's what you meant. Yeah but I am activating org-mode for org.txt
files:

(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
(add-to-list 'auto-mode-alist '("\\.org.txt$" . org-mode))

And if I open the journal file it indeed has org-mode active.

Thanks

On Wed, Jan 11, 2017, at 12:10, Nicolas Goaziou wrote:
> Simao  writes:
> 
> > I only changed the location of the journal file.
> 
> Worse, you changed the extension, which means the major mode used after
> opening the file is different.
> 
> > org-mode actually creates the file and the right heading:
> >
> > * 2017
> > ** 2017-01 January
> > *** 2017-01-11 Wednesday
> >
> > But then this error is thrown.
> 
> This error means `org-todo-line-regexp' is not defined, because the
> major mode in this file is not `org-mode'
> 
> > What do you mean the file is not in org mode? How do I add it to org
> > mode?
> 
> See (info "(org) Activation")
> 
> You can use Org as a major-mode file-wise or for every file with ".txt"
> extension.
> 
> Regards,



Re: [O] strange results with org-map-entries

2017-01-11 Thread Matt Price
On Tue, Jan 10, 2017 at 7:34 PM, Matt Price  wrote:

>
>
> On Tue, Jan 10, 2017 at 6:58 PM, Nicolas Goaziou 
> wrote:
>
>> Hello,
>>
>> Matt Price  writes:
>>
>> > What's going on here? Can anyone else reproduce this? I'm seeing it on
>> org
>> > 9.0.3 up to date as of today, emacs git from 2017-01-04.
>>
>> You mark a region then jump around the buffer with `org-map-entries'. At
>> some point the region contains no headline, but you request a subtree
>> export, hence the error.
>>
>
> But what about the weird export results, where files don't seem to contain
> the expected content? And is there a better way (than marking and bouncing)
> to constrain org-map-entries to first-level headings only?
>

Well, I can't answer the first question, about the wierd export results,
but here at least is a better way, using org-element-map:

(defun mwp-org-export-all-to-org ()
  (interactive)
  (org-element-map (org-element-parse-buffer)'headline
(lambda (headline)
  (let ((begin (org-element-property :begin headline))
(level (org-element-property :level headline))
(commentedp (org-element-property :commentedp headline))
(tags (org-element-property :tags headline)))
(unless (or (> level 1)
commentedp
(member "noexport" tags)
;; I would prefer to get the exclude-tags dynamically
but
;; I'm not sure how to do it properly -- need to access
exclude-tags somehow
;; (cl-loop for k in (plist-get options :exclude-tags)
;;  thereis (member k  tags))
)
  (save-excursion
(goto-char begin)
(org-org-export-to-org nil t )))

On Tue, Jan 10, 2017 at 7:34 PM, Matt Price  wrote:

>
>
> On Tue, Jan 10, 2017 at 6:58 PM, Nicolas Goaziou 
> wrote:
>
>> Hello,
>>
>> Matt Price  writes:
>>
>> > What's going on here? Can anyone else reproduce this? I'm seeing it on
>> org
>> > 9.0.3 up to date as of today, emacs git from 2017-01-04.
>>
>> You mark a region then jump around the buffer with `org-map-entries'. At
>> some point the region contains no headline, but you request a subtree
>> export, hence the error.
>>
>
> But what about the weird export results, where files don't seem to contain
> the expected content? And is there a better way (than marking and bouncing)
> to constrain org-map-entries to first-level headings only?
>


Re: [O] [org-ref] how to tweak display of links and entries

2017-01-11 Thread John Kitchin

Christian Wittern writes:

> Hi Org, especially Org-ref users,
>
> I have seen a number of org-ref related questions here recently, so I guess 
> it is OK to ask here.
>
> I am trying to move to a more sophisticated bibliography format involving 
> some new field types recently added to biblatex. An author field for example 
> can look like
>
> author = {family=Fang, given=Ailong, cjk=方愛龍},
>
> where cjk is defined using biblatex's tools for this as a name addon. 
> Obviously, neither parsebib, helm-bibtex or org-ref understand this format 
> (yet). However, I do not understand where I have to intervene to display 
> this in a reasonable way, that is family name, given name and cjk name.  Is 
> there a custom I have to redefine, or a hook I should add somewhere?

There is not a way to hook or define a format for this that I know of.
For helm-bibtex, you might be able to redefine or advise
bibtex-completion-apa-format-authors to handle that.

>
> Another unrelated question is how to stop org-ref from displaying both the 
> key and the description of the link.  I seem to remember having seen some 
> discussion here about this, but can't find it now.

this is also not currently customizable. The description in cite links
is used for pre/post text in the citations, and they are shown in full
display so you can see the key and pre/post text. If you use the
description for anything else, the latex export will probably not be
what you expect.

You can turn off the full display like this:

#+BEGIN_SRC emacs-lisp
(loop for cite in org-ref-cite-types
  do
  (org-link-set-parameters cite :display nil))
#+END_SRC

>
> Any help appreciated,
>
> Christian


-- 
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



[O] Using code block function as formula in tables

2017-01-11 Thread Roland Everaert
Hi,

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

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

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

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


Regards,


Roland.


Re: [O] Org mode clockview links failing with spaces

2017-01-11 Thread Nicolas Goaziou
Hello,

Shawn Way  writes:

> A pop up window appears asking the question:
>
> No match - Create this as a new heading?

I cannot reproduce it. Could you double-check with a bare configuration?

Regards,

-- 
Nicolas Goaziou



Re: [O] org-capture exists with "Capture abort: (wrong type argument...)"

2017-01-11 Thread Nicolas Goaziou
Simao  writes:

> I only changed the location of the journal file.

Worse, you changed the extension, which means the major mode used after
opening the file is different.

> org-mode actually creates the file and the right heading:
>
> * 2017
> ** 2017-01 January
> *** 2017-01-11 Wednesday
>
> But then this error is thrown.

This error means `org-todo-line-regexp' is not defined, because the
major mode in this file is not `org-mode'

> What do you mean the file is not in org mode? How do I add it to org
> mode?

See (info "(org) Activation")

You can use Org as a major-mode file-wise or for every file with ".txt" 
extension.

Regards,



Re: [O] org-capture exists with "Capture abort: (wrong type argument...)"

2017-01-11 Thread Simao
Hi,

Thanks for your reply.

I only changed the location of the journal file.

org-mode actually creates the file and the right heading:

* 2017
** 2017-01 January
*** 2017-01-11 Wednesday

But then this error is thrown.

What do you mean the file is not in org mode? How do I add it to org
mode?

Thanks

On Wed, Jan 11, 2017, at 09:58, Nicolas Goaziou wrote:
> Hello,
> 
> Simao  writes:
> 
> > I am trying to run `org-capture` to capture a journal entry but
> > `org-capture` always aborts with the following trace:
> >
> > Debugger entered--Lisp error: (error "Capture abort:
> > (wrong-type-argument stringp nil)")
> >   signal(error ("Capture abort: (wrong-type-argument stringp nil)"))
> >   error("Capture abort: %s" (wrong-type-argument stringp nil))
> >   org-capture(nil)
> >   funcall-interactively(org-capture nil)
> >   call-interactively(org-capture nil nil)
> >   command-execute(org-capture)
> >
> > Is there a problem with my settings? I am using the template suggested
> > in the manual.
> 
> You are not using the template suggested in the manual.  Your capture
> location is "~/Sync/journal.org.txt", which is not in Org mode. You
> cannot create a tree there if it is not the case.
> 
> I improved the error message returned by Org capture under those
> circumstances. Thank you.
> 
> Regards,
> 
> -- 
> Nicolas Goaziou



Re: [O] Bug? org-agenda-to-appt returns `Args out of range: 1, 1`

2017-01-11 Thread Nicolas Goaziou
Hello,

Xebar Saram  writes:

> just reporting what seems like a bug after last org update
> when i run the command
>
> `org-agenda-to-appt `
>
> it returns
>
> `Args out of range: 1, 1`
>
> can anyone confirm?

I cannot. Could you provide an ECM?

Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] org-capture exists with "Capture abort: (wrong type argument...)"

2017-01-11 Thread Nicolas Goaziou
Hello,

Simao  writes:

> I am trying to run `org-capture` to capture a journal entry but
> `org-capture` always aborts with the following trace:
>
> Debugger entered--Lisp error: (error "Capture abort:
> (wrong-type-argument stringp nil)")
>   signal(error ("Capture abort: (wrong-type-argument stringp nil)"))
>   error("Capture abort: %s" (wrong-type-argument stringp nil))
>   org-capture(nil)
>   funcall-interactively(org-capture nil)
>   call-interactively(org-capture nil nil)
>   command-execute(org-capture)
>
> Is there a problem with my settings? I am using the template suggested
> in the manual.

You are not using the template suggested in the manual.  Your capture
location is "~/Sync/journal.org.txt", which is not in Org mode. You
cannot create a tree there if it is not the case.

I improved the error message returned by Org capture under those
circumstances. Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] %( in capture template

2017-01-11 Thread Nicolas Goaziou
Hello,

Samuel Wales  writes:

> here are the entries:
>
> ("p" "Protocol p" entry
>   (file+headline "/home/org/executive--a.org" "xyzzy-remember")
>   "%(alpha-org-protocol-string \"%:link\" \"%:description\"
> \"%i\")" :prepend t :immediate-finish t :jump-to-captured t)
>  ("L" "Protocol L" entry
>   (file+headline "/home/org/executive--a.org" "xyzzy-remember")
>   "%(alpha-org-protocol-string \"%:link\" \"%:description\"
> \"%i\")" :prepend t :immediate-finish t :jump-to-captured t)

I fixed an issue with :jump-to-captured in conjunction with a nil
`org-capture-bookmark'.

Now, I can use the following template without issue

 ("B" "BUG!" entry
  (file+headline "/tmp/bug-capture.org" "test")
  "%(concat \"* headline\" \"%:link\" \"%:description\" \"%i\")"
  :prepend t :immediate-finish t :jump-to-captured t)

Note that `alpha-org-protocol-string' is expected to create a valid Org
tree (or headline).

Could you confirm it is now working as expected? Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] HTML export for math markup

2017-01-11 Thread Eric S Fraga
On Tuesday, 10 Jan 2017 at 13:12, Lawrence Bottorff wrote:
> Yes, I tested all my header lines and found that was the 'offender."
> It got there on someone's suggestion it was needed for proper TikZ. Or
> was it bibtex? Or does a ton of pngs come if you choose Latex preview?
> No time for further investigation. Confusion will be my epitaph. . . .

I think, IIUC, the tex: option is for inline LaTeX and maybe (maybe not)
exported LaTeX.  If you want to use mathjax for this, then tikz et
al. need to be done differently, e.g. using src blocks with a :file
output.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.3-189-ge46676


signature.asc
Description: PGP signature