Re: [O] Add custom bare link syntax for intranet

2016-06-21 Thread Nicolas Goaziou
Joe Schafer  writes:

> How can I linkify the following intranet links in org-mode?
>
> intra/link1-description
> code/description
>
> By linkify, I mean the links should be fontified and clickable in org-mode.
>
> I don't want to add a custom link handler like `intra:` because I often
> copy and paste links from the intranet.

You cannot, at least without rewriting how Org handles links. However,
I don't think how having "intra:" prefix is a burden, since you can
easily add it automatically with a function.

Regards,

-- 
Nicolas Goaziou



[O] Add custom bare link syntax for intranet

2016-06-21 Thread Joe Schafer
Hi all,

How can I linkify the following intranet links in org-mode?

intra/link1-description
code/description

By linkify, I mean the links should be fontified and clickable in org-mode.

I don't want to add a custom link handler like `intra:` because I often
copy and paste links from the intranet.

I tried the following hack which worked for fontification, but not clicking.

(setq org-plain-link-re
  (concat
   "\\("
   org-plain-link-re
   "\\|"
   "intra/[^ \n.]+"
   "\\)"))


I originally posted this at emacs.stackexchange,
http://emacs.stackexchange.com/posts/23828

--
Joe Schafer


Re: [O] Does org-nofity uses dbus?

2016-06-21 Thread Fabrice Popineau
Le 21 juin 2016 16:14, "Xi Shen"  a écrit :
>
> Yeah...getting dbus to work on Windows will be hard.

Actually, not so much. Dbus does work on windows. It doesn't work right now
on emacs. I'm looking into it.

Fabrice


[O] bug#23765: 24.5; exco-calendar-show-day calls user-error if org-startup-with-latex-preview

2016-06-21 Thread Thomas Fitzsimmons
Hi Brian,

"Brian T. Sniffen"  writes:

> With org-startup-with-latex-preview set to non-nil, M-x excorporate, work
> through autoconfiguration, then M-x calendar.  Hit 'e'.  Get told
> "user-error: Can't preview LaTeX fragment in a non-file buffer".
>
> Unset org-startup-with-latex-preview, then go back to calendar and hit
> 'e'.  See pretty org-mode calendar.

Thanks for the report.  I just pushed a fix, in Excorporate 0.7.4.  It
should hit GNU ELPA overnight.  Can you update and confirm it fixes the
bug?

Thanks,
Thomas





[O] bug#23765: 24.5; exco-calendar-show-day calls user-error if org-startup-with-latex-preview

2016-06-21 Thread Thomas Fitzsimmons
"Sniffen, Brian"  writes:

> ˘
>> On Jun 14, 2016, at 10:24 PM, Thomas Fitzsimmons  wrote:
>> 
>> Hi Brian,
>> 
>> "Brian T. Sniffen"  writes:
>> 
>>> With org-startup-with-latex-preview set to non-nil, M-x excorporate, work
>>> through autoconfiguration, then M-x calendar.  Hit 'e'.  Get told
>>> "user-error: Can't preview LaTeX fragment in a non-file buffer".
>>> 
>>> Unset org-startup-with-latex-preview, then go back to calendar and hit
>>> 'e'.  See pretty org-mode calendar.
>> 
>> Thanks for the report.  I just pushed a fix, in Excorporate 0.7.4.  It
>> should hit GNU ELPA overnight.  Can you update and confirm it fixes the
>> bug?
>
> That works.

I noticed that with the fix, C-x s (save-some-buffers) always prompts
about *Excorporate*.  I pushed 0.7.5 to prevent that (while still fixing
your issue).  I'm marking this bug report as "done".

> Thanks for the great software; I’m excited about having one command to
> predict where I am, get the invitees, tell my phone to dial in, and
> give me a buffer for notes.

Sounds good; a feature I have planned (retrieve message body) should
help with some of these.

Thomas





Re: [O] [BUG] Dynamic scoping of project-plist in preparation-function

2016-06-21 Thread Nicolas Goaziou
Hello,

Arun Isaac  writes:

> The org mode manual says "The project property list is scoped into this
> call as the variable project-plist". But, ox-publish.el has lexical
> binding enabled, and the variable project-plist doesn't seem to be
> accessible from the executed preparation-function. When I try to access
> the variable, I get a (void-variable project-plist) error.
>
> Please find attached a minimal elisp file to reproduce the bug.
>
> emacs -Q -l preparation-function-dynamic-scoping.el
>
> My understanding of dynamic and lexical binding is a little foggy. So,
> do let me know if I'm missing something.

There are two ways to handle this.

1. Create a new global variable, with appropriate prefix, to hold
   project plist, e.g., `org-publish-project-plist';

2. Require preparation functions to accept one parameter, the project
   plist.

I'd favor the second one. In any case, the manual should be updated
accordingly.

WDYT?

Regards,

-- 
Nicolas Goaziou



[O] [BUG] Dynamic scoping of project-plist in preparation-function

2016-06-21 Thread Arun Isaac

The org mode manual says "The project property list is scoped into this
call as the variable project-plist". But, ox-publish.el has lexical
binding enabled, and the variable project-plist doesn't seem to be
accessible from the executed preparation-function. When I try to access
the variable, I get a (void-variable project-plist) error.

Please find attached a minimal elisp file to reproduce the bug.

emacs -Q -l preparation-function-dynamic-scoping.el

My understanding of dynamic and lexical binding is a little foggy. So,
do let me know if I'm missing something.

Regards,
Arun Isaac.



preparation-function-dynamic-scoping.el
Description: application/emacs-lisp


signature.asc
Description: PGP signature


Re: [O] Exporting FILETAGS

2016-06-21 Thread Nicolas Goaziou
Arun Isaac  writes:

> No, I would like to export the FILETAGS to say, below the title. I am
> maintaining my blog in org mode, and I am hoping to use FILETAGS to tag
> my blog posts. So, I am interested in tags for the entire file itself,
> not inherited tags on each headline.
>
> Currently, I have written some code to do this, but I am wondering if
> this is available out of the box.

FILETAGS is a keyword, and those are usually ignored during export. So,
writing some code (as a parse tree filter or in a hook), as you did, is
the way to go.

Regards,



Re: [O] Does org-nofity uses dbus?

2016-06-21 Thread Xi Shen
Yeah...getting dbus to work on Windows will be hard. Maybe we should
consider using some other ways to display a notification on Windows.

E.g. On Windows/Cygwin environment, org-notify should use a command line
tool to show a notification in the Windows notification area.

But I wonder how to deploy this command line tool with Emacs system...any
suggestions/ideas?


Thanks,
David


On Tue, Jun 21, 2016 at 4:45 PM Fabrice Popineau <
fabrice.popin...@supelec.fr> wrote:

> 2016-06-21 8:31 GMT+02:00 Xi Shen :
>
>> Hi,
>>
>> I got below error after I called (org-notify-start). It seems the
>> dbus-error happens very close to the task notification. I wonder if
>> org-notify uses dbus.
>>
>> Error: (dbus-error "No connection to bus" :session)
>> Warning: notification for "Go to dental in 30 mins." behind schedule!
>> Error: (dbus-error "No connection to bus" :session) [2 times]
>> Warning: notification for "Go to dental in 30 mins." behind schedule!
>> Error: (dbus-error "No connection to bus" :session) [2 times]
>>
>> I am using Emacs on Windows, and there's no dbus on Windows...
>>
>>
> It seems so, yes: org-notify calls notifications-notify from the emacs
> notifications.el library.
> Clearly, notifications.el relies on dbus.
>
> However, if you are using Mingw64, there is a dbus package which should
> provide
> what is needed. Unfortunately, I tried it and can't tell yet how to
> configure it or if it
> even works.
>
>
> Fabrice
>
> --


Thanks,
David S.


Re: [O] Exporting FILETAGS

2016-06-21 Thread Arun Isaac

> Do you mean that you want to export inherited filetags on each headline?
> If so, it is not possible out of the box.

No, I would like to export the FILETAGS to say, below the title. I am
maintaining my blog in org mode, and I am hoping to use FILETAGS to tag
my blog posts. So, I am interested in tags for the entire file itself,
not inherited tags on each headline.

Currently, I have written some code to do this, but I am wondering if
this is available out of the box.


signature.asc
Description: PGP signature


Re: [O] symbol's value as vatiable is void:: result-params

2016-06-21 Thread Nicolas Goaziou
Hello,

Charles Millar  writes:

> When I evaluate the following the above error results (this source blosk 
> and all others that are similar evaluated successfully  a few days ago)
>
> #+NAME: SCHEDAP
> #+begin_src rec :data foo.rec :type Finance :fields 
> AccountDate,Description,AccountAmount :results silent
>   (File = 'RevTrust' && AccountSchedule = 'A')
> #+end_src
>
> degug on error -
>
> Debugger entered--Lisp error: (void-variable result-params)

This is a bug in "ob-rec.el" from Recutils package. 

I switched Babel evaluation (ob-core.el) to lexical binding recently,
and "ob-rec.el" still uses dynamic binding (probably unwillingly in that
case) for `result-params'.

A trivial fix could be to add the binding 

  (result-params (cdr (assq :result-params params)))

in `org-babel-execute:rec'.

Since ob-rec.el is not included in Org per se, I cannot do much more
here. I suggest to report it upstream.

Thank you.


Regards,

-- 
Nicolas Goaziou



Re: [O] Exporting FILETAGS

2016-06-21 Thread Nicolas Goaziou
Hello,

Arun Isaac  writes:

> When org-export-with-tags is set to t, tags on headlines are
> exported. Is there a similar way to export FILETAGS as well?

Do you mean that you want to export inherited filetags on each headline?
If so, it is not possible out of the box.

However, `org-get-tags-at' returns a list of inherited tags for a given
headline, so it is possible to pre-process the document and explicitly
add all inherited tags to each headline.

Regards,

-- 
Nicolas Goaziou



Re: [O] Does org-nofity uses dbus?

2016-06-21 Thread Fabrice Popineau
2016-06-21 8:31 GMT+02:00 Xi Shen :

> Hi,
>
> I got below error after I called (org-notify-start). It seems the
> dbus-error happens very close to the task notification. I wonder if
> org-notify uses dbus.
>
> Error: (dbus-error "No connection to bus" :session)
> Warning: notification for "Go to dental in 30 mins." behind schedule!
> Error: (dbus-error "No connection to bus" :session) [2 times]
> Warning: notification for "Go to dental in 30 mins." behind schedule!
> Error: (dbus-error "No connection to bus" :session) [2 times]
>
> I am using Emacs on Windows, and there's no dbus on Windows...
>
>
It seems so, yes: org-notify calls notifications-notify from the emacs
notifications.el library.
Clearly, notifications.el relies on dbus.

However, if you are using Mingw64, there is a dbus package which should
provide
what is needed. Unfortunately, I tried it and can't tell yet how to
configure it or if it
even works.


Fabrice


[O] Does org-nofity uses dbus?

2016-06-21 Thread Xi Shen
Hi,

I got below error after I called (org-notify-start). It seems the
dbus-error happens very close to the task notification. I wonder if
org-notify uses dbus.

Error: (dbus-error "No connection to bus" :session)
Warning: notification for "Go to dental in 30 mins." behind schedule!
Error: (dbus-error "No connection to bus" :session) [2 times]
Warning: notification for "Go to dental in 30 mins." behind schedule!
Error: (dbus-error "No connection to bus" :session) [2 times]

I am using Emacs on Windows, and there's no dbus on Windows...


Thanks,
David

-- 


Thanks,
David S.