Re: [O] [ANN] Lazy cache synchronization

2014-02-27 Thread Andreas Leha
Hi Nicolas,

Daniel Clemente n142...@gmail.com writes:

 Nicolas Goaziou n.goaz...@gmail.com writes:
  Now, synchronization happens lazily, which means the cache is only
  updated when and where needed, or during idle time. Therefore the cache
  mechanism scales a lot better.
 

   I had been regularly tracking the performance of org-mode for big
 files, e.g. a 18 Mb one with 380k lines (created only to test this).

   1. With last month's org-mode in emacs 24 I needed more than 5
 minutes to open it, and then moving around the file was too slow to be
 comfortable (local editing was however acceptable).
   2. With the current one, it's only 10 seconds loading time, local
 editing is still fast, and jumping around sections takes at most 2
 seconds per move.
   
   So this change has made me stop worrying about files growing too fast, at 
 least for many years. Thanks!


I do not have measurements, but Org mode (especially navigation) feels so
much faster now.  Thanks a lot also from my side!

- Andreas




[O] OrgCamp in Madrid

2014-02-27 Thread David
Hi,

8th and 9th of March will meet some spanish emacs hackers in Madrid, the
people who attend this mailing list are welcome. The idea is learn emacs
lisp programming focused on org-mode. The meeting will start at 15:00
the 8th of March. More info in http://orgmode.org/worg/orgcamps.html and
http://www.atlacaba.net/node/12.

Regards.



[O] ical export: Still trying to clarify strange results

2014-02-27 Thread G. Martin Butz

Hi,

I am turning again to the list, because after some extensive testing, 
reading the manual and googeling I am still not able to configurate the 
ical export the way I expect it to be. Sorry for the long post and sorry 
for bothering the list again, but I am hoping that someone might be able 
to help.


What I want is:

+ Export all TODO items with the beginning date set to the scheduled
  date in org mode.
+ Export also the deadlines in case of TODO items
+ If possible: Do not export DONE items at all

The resulting ical file I get displays:

+ For TODO entries DTSTART set to the timestamp an hour later (not to
  /scheduled/ date)
+ Deadlined items are included; the deadline is corre, the TODO date
  also set to the timestamp an hour later
+ state changes of entries (set to DONE) as DTSTART entry; as these are
  DONE I expected they would be skiped because of org-icalendar-
  include-todo set to /t/.

Obviously the date in SCHEDULED is not recognized. Did I miss the 
relevant variable to set (see my configuration below)?


I also tried to supress any logging of the change of TODO entries (which 
would not really solve my problem but seemed to me a way to clear the 
export from the state changes); in the emacs customization group 
/org-todo/ it is being said that /org-log-done/ set to /nil/ means 
Don't add anything, just change the keyword, which does not work for 
me. Also the inbuffer setting /#+STARTUP: nologdone/ does not have any 
effect.


This is my testfile to export to ical:

--8--
#+STARTUP:nologdone

* TODO A Scheduled Event
SCHEDULED: 2014-03-03 Mo 16:00
:PROPERTIES:
:ID:   d092bad5-6559-405f-8afd-a9515b372323
:END:
* TODO A Scheduled Event with Deadline
DEADLINE: 2014-03-13 Do 10:00 SCHEDULED: 2014-03-16 So 15:00
:PROPERTIES:
:ID:   53958c17-4a83-4150-8213-895a76bf4db1
:END:
* DONE A Scheduled Event Already Done
SCHEDULED: 2014-02-24 Mo
- State DONE   from TODO   [2014-02-27 Do 09:14]
:PROPERTIES:
:ID:   745d0dc5-0ebd-40cc-80fd-e06d1170fa44
:END:
* DONE Another Scheduled Event Already Done
SCHEDULED: 2014-02-07 Fr 15:00
- State DONE   from TODO   [2014-02-27 Do 09:21]
:PROPERTIES:
:ID:   45b90294-7807-4aa0-a5a4-93a285be8624
:END:
--8--

This is the ical export:

--8--
BEGIN:VCALENDAR
VERSION:2.0
X-WR-CALNAME:test
PRODID:-//G. Martin Butz//Emacs with Org mode//EN
X-WR-TIMEZONE:CET
X-WR-CALDESC:test
CALSCALE:GREGORIAN
BEGIN:VTODO
UID:TODO-d092bad5-6559-405f-8afd-a9515b372323
DTSTAMP:20140227T082604Z
DTSTART:20140227T092600
SUMMARY:A Scheduled Event
CATEGORIES:TODO
SEQUENCE:1
PRIORITY:5
STATUS:NEEDS-ACTION
END:VTODO
BEGIN:VEVENT
DTSTAMP:20140227T082604Z
UID:DL-53958c17-4a83-4150-8213-895a76bf4db1
DTSTART:20140313T10
DTEND:20140313T12
SUMMARY:DL: A Scheduled Event with Deadline
CATEGORIES:TODO
END:VEVENT
BEGIN:VTODO
UID:TODO-53958c17-4a83-4150-8213-895a76bf4db1
DTSTAMP:20140227T082604Z
DTSTART:20140227T092600
SUMMARY:A Scheduled Event with Deadline
CATEGORIES:TODO
SEQUENCE:1
PRIORITY:5
STATUS:NEEDS-ACTION
END:VTODO
BEGIN:VEVENT
DTSTAMP:20140227T082604Z
UID:TS1-745d0dc5-0ebd-40cc-80fd-e06d1170fa44
DTSTART:20140227T091400
DTEND:20140227T111400
SUMMARY:A Scheduled Event Already Done
CATEGORIES:DONE
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20140227T082604Z
UID:TS1-45b90294-7807-4aa0-a5a4-93a285be8624
DTSTART:20140227T092100
DTEND:20140227T112100
SUMMARY:Another Scheduled Event Already Done
CATEGORIES:DONE
END:VEVENT
END:VCALENDAR
--8--

And this is my config via /.custom/ as far as org-mode and ical-export 
are concerned (I tripple checked: no other customizations concerning the 
issue is involved):


--8--
(custom-set-variables
 '(org-combined-agenda-icalendar-file ~/org/ical/org.ics)
 '(org-icalendar-categories (quote (todo-state)))
 '(org-icalendar-combined-name OrgIcal)
 '(org-icalendar-include-body nil)
 '(org-icalendar-include-todo t)
 '(org-icalendar-use-deadline (quote (event-if-todo)))
 '(org-icalendar-store-UID t)
 '(org-icalendar-use-plain-timestamp nil)
 '(org-icalendar-use-scheduled nil)
 '(org-icalendar-with-timestamps nil)
 '(org-log-done nil))
--8--

Maybe I am doing something terribly wrong. I would appreciate any hint 
to solve the problem or to do some more investigation.


Thanks
Martin

--

| G. Martin Butz, m...@mkblog.org, 0421 98749324, www.mkblog.org |




[O] Interesting blog post on agenda in terminal

2014-02-27 Thread Rainer M Krug
Hi

just saw this blog post [1] and thought it might interest some. 

Title:

Dump Emacs org-mode agendas and todo lists to the command line

Cheers,

Rainer



Footnotes: 
[1] 
http://kokoko.fluxionary.net/dump-emacs-org-mode-agendas-and-todo-lists-to-the-command-line/
 

-- 
Rainer M. Krug

email: RMKrugatgmaildotcom


pgp2wfNC1F_XJ.pgp
Description: PGP signature


[O] (eval-when-compile (require 'async)) in org-download.el

2014-02-27 Thread Oleh
Hi all,

There's an issue (https://github.com/abo-abo/org-download/issues/7)
with `org-download` on some systems resulting from `async` not being
found even when the user has it on his system.

The problem comes from org's `make install` producing a different
org-download.elc than by manual byte-compilation.  The issue could be
resolved by putting (eval-when-compile (require 'async)) in
org-download.el, but `make install` does not see 'async as the paths
aren't set up when it does the compiling.

Any recommendations to resolve this issue are welcome.

Proposed variants include:
- setting `no-byte-compile` locally in org-download.el
- suggesting to use `(require 'org-download org-download.el)` instead
  of `(require 'org-download)`

regards,
Oleh



Re: [O] link interfering with brackets when abbreviated

2014-02-27 Thread Nicolas Goaziou
Hello,

Bastien b...@gnu.org writes:

 For example, white spaces after an object still belong to an
 object.

 Well, this is counterintuitive.

So they should belong to the next object? I don't find it more
intuitive. Anyway, it's an internal representation for white spaces so
it doesn't matter here. See next answer.

 So in the following case:

   [[http://orgmode.org]]   [[http://duckduckgo.com]]

 using C-c C-o between the two links will open the first one, but there:

   [[http://orgmode.org]] and [[http://duckduckgo.com]]

 C-c C-o on the and will open the second one.

 This current behavior is surprising too here, and only predictable for
 users who know that whitespaces are part of the previous object -- i.e.
 nobody.

That's not a problem, it is easy to remove this. C-c C-o will do nothing
on white spaces after an object.

 Also in the following example:

   [fn:1] This is some text [[http://orgmode.org]]

 C-c C-o on some currently triggers `org-footnote-action' since point
 is in a footnote definition.

 Which is counterintuitive too!

It was part of the specs of the _previous_ implementation. I didn't
change anything here.

But it can be removed.

 But with the behaviour you describe, it would be hard to predict
 whether it should move to the link or still open the footnote.

 Let me describe the behavior I favor:

   C-c C-o opens the link at point (i.e. the link that the cursor is
   visibly on)

This is already the case (minus the trailing spaces situation)

 or the next link on the same line.

Not really possible, as explained before. And not intuitive, IMO.

   When on a headline

This is the case.

 and if there are several links on the same line, prompt the user for
 which one she wants to visit.

Come on. This wasn't done even in the previous implementation.

 I find it very simple and predictable.

The only really predictable behaviour is: open the link under point.
Everything else is arguable.


Regards,

-- 
Nicolas Goaziou



Re: [O] How can I continue my code listing in Beamer slides?

2014-02-27 Thread etimecowboy

Dear Alan,

Thanks for your reply.

Your solution works on the results part, but makes my source code part 
unprocessed by listing package. I mean there are no syntax highlights 
for the source code.


Is there any solution for it?

Cheers,
etimecowboy

On 2014/2/27 7:10, Alan Schmitt wrote:

etimecowboy etimecow...@gmail.com writes:


Hi everyone,

I have a question about beamer export in org.

I have some code to be put in my slides. The problem is that one slide
(or one column block) does not have enough space for it. How can I split
it into two slides or several column blocks? Please help me with it.

etimecowboy

This is what I recently did to have the result of an evaluation (a
fancy verbatim block) on two slides:

--8---cut here---start-8---
#+latex_header: \usepackage{multicol}

#+BEGIN_LaTeX
\begin{multicols}{2}
#+END_LaTeX

#+results: huffman_res

#+BEGIN_LaTeX
\end{multicols}
#+END_LaTeX
--8---cut here---end---8---

Hope this helps,

Alan





Re: [O] How can I continue my code listing in Beamer slides?

2014-02-27 Thread Sebastien Vauban
Hi Alan,

Alan Schmitt wrote:
 This is what I recently did to have the result of an evaluation (a
 fancy verbatim block) on two slides:

 #+latex_header: \usepackage{multicol}

 #+BEGIN_LaTeX
 \begin{multicols}{2}
 #+END_LaTeX

 #+results: huffman_res

 #+BEGIN_LaTeX
 \end{multicols}
 #+END_LaTeX

Nitpicking (just wondering): why don't you use

--8---cut here---start-8---
  #+LaTeX: \begin{multicols}{2}
--8---cut here---end---8---

instead of

--8---cut here---start-8---
  #+BEGIN_LaTeX
  \begin{multicols}{2}
  #+END_LaTeX
--8---cut here---end---8---

?

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] How can I continue my code listing in Beamer slides?

2014-02-27 Thread Alan Schmitt
etimecowboy etimecow...@gmail.com writes:

 Your solution works on the results part, but makes my source code part
 unprocessed by listing package. I mean there are no syntax highlights
 for the source code.

I don't know. A first step would be to find out how to do a multicolumn
listing in LaTeX using the listings package. Then you can try to get
this output from org.

Alan



Re: [O] How can I continue my code listing in Beamer slides?

2014-02-27 Thread etimecowboy

Yes you are right. It is a problem of listing package other than org.

etimecowboy

On 2014/2/27 10:59, Alan Schmitt wrote:

etimecowboy etimecow...@gmail.com writes:


Your solution works on the results part, but makes my source code part
unprocessed by listing package. I mean there are no syntax highlights
for the source code.

I don't know. A first step would be to find out how to do a multicolumn
listing in LaTeX using the listings package. Then you can try to get
this output from org.

Alan





[O] automatic scheduling of next task in project

2014-02-27 Thread Peter Rayner
I would like org-mode to remind me automatically of the next task in a
project. Perhaps an example will help. I'll use outline headings to
show the levels of tasks

* Write trends paper
** global section
*** analyze GCP results
*** Calculate confidence intervals on trends
** Inverse Model section
*** Code to read inverse model output
*** Calculate regional Uncertainties 
 Generate new region groupings
 Rerun calculation

etc etc 
I can flatten this list into a list of TODO and I can store it as a
separate project that will be incorporated into the agenda view. What
I would like is that when I change one of these items to done the
next one is automatically scheduled into the agenda. It means I can
plan the workflow for a project then not have to bother remembering
where I was up to ... guess who is doing too many things at once :-) 
Is this already possible? If not, is it worth creating some kind of
file option so that, when a file is scanned for incorporation into the
agenda view, the first TODO item that isn't listed as done will be
listed in the agenda?
Thanks in advance
Peter



*** 

-- 
Support us in the OXFAM trailwalker as we try to walk 100km in 24
hours. https://trailwalker.oxfam.org.au/team/home/15596

Peter Rayner
room 343 
School of Earth Sciences, University of Melbourne, 3010, Vic, Australia
tel: work: +61 (0)3 8344 9708; fax: +61 (0)3 8344 7761 
mobile +61 402 752 379, skype: petermorag 
mail-to: pray...@unimelb.edu.au



Re: [O] link interfering with brackets when abbreviated

2014-02-27 Thread Bastien
Hi Nicolas,

Nicolas Goaziou n.goaz...@gmail.com writes:

 So they should belong to the next object? I don't find it more
 intuitive. Anyway, it's an internal representation for white spaces so
 it doesn't matter here. See next answer.

I've no problem with this internal representation.

 That's not a problem, it is easy to remove this. C-c C-o will do nothing
 on white spaces after an object.

Yes, I think that would be better.

 Also in the following example:

   [fn:1] This is some text [[http://orgmode.org]]

 C-c C-o on some currently triggers `org-footnote-action' since point
 is in a footnote definition.

 Which is counterintuitive too!

 It was part of the specs of the _previous_ implementation. I didn't
 change anything here.

Yes.  There was an inconsistency in the previous implementation (as
just tested from the maint branch): when point is in between two
non-footnote links, C-c C-o opens the one on the right, while
between [fn:1] and a http:// link, C-c C-o calls org-footnote-action
iff point is within the footnote...

 But it can be removed.

Yes, this should be removed IMO.

 But with the behaviour you describe, it would be hard to predict
 whether it should move to the link or still open the footnote.

 Let me describe the behavior I favor:

   C-c C-o opens the link at point (i.e. the link that the cursor is
   visibly on)

 This is already the case (minus the trailing spaces situation)

 or the next link on the same line.

 Not really possible, as explained before. And not intuitive, IMO.

I don't understand why this is not possible.  The fact that the end of
the line is not a structural element from Org's parser point of view
should not prevent features that rely on some notion of end of the
line.

   When on a headline

 This is the case.

 and if there are several links on the same line, prompt the user for
 which one she wants to visit.

 Come on. This wasn't done even in the previous implementation.

When I meant is this:

* Visit http://orgmode.org and http://www.gnu.org
  ^

When point is on the headline, the current implementation in maint is
to prompt the user whether he wants to visit one of the two links.

The new implementation does this too, I mentioned it for the sake of
completeness -- so maybe there is a misunderstanding.

 I find it very simple and predictable.

 The only really predictable behaviour is: open the link under point.
 Everything else is arguable.

Then I argue that the previous behavior, which is to open the next
link on the same line, is very convenient and very human-predictable
when encoutered at least once.

If I'm alone in thinking this, I'm fine surrending, but I hope we
can give this another chance :)

-- 
 Bastien



Re: [O] How can I continue my code listing in Beamer slides?

2014-02-27 Thread Alan Schmitt
Hi Sébastien,

Sebastien Vauban sva-n...@mygooglest.com writes:

 Hi Alan,

 Alan Schmitt wrote:
 This is what I recently did to have the result of an evaluation (a
 fancy verbatim block) on two slides:

 #+latex_header: \usepackage{multicol}

 #+BEGIN_LaTeX
 \begin{multicols}{2}
 #+END_LaTeX

 #+results: huffman_res

 #+BEGIN_LaTeX
 \end{multicols}
 #+END_LaTeX

 Nitpicking (just wondering): why don't you use

   #+LaTeX: \begin{multicols}{2}

 instead of

   #+BEGIN_LaTeX
   \begin{multicols}{2}
   #+END_LaTeX

 ?

Because there is so much I still have to learn ... Thank you for the
suggestion, it's much better!

Alan



[O] [PATCH] lisp/org.el (org-open-at-point): prioritize link

2014-02-27 Thread Oleh
Hi all,

Can someone check this patch and commit it.
It allows to open links that look like this:

[[id:164552ee-b92d-4af6-9570-60d039876fac][=foobar=]]

regards,
Oleh
From 6e848b0e601c9a28300b00aafcef8f2efda973f4 Mon Sep 17 00:00:00 2001
From: Oleh Krehel ohwoeo...@gmail.com
Date: Thu, 27 Feb 2014 14:23:35 +0100
Subject: [PATCH] lisp/org.el (org-open-at-point): prioritize link

* lisp/org.el (org-open-at-point): Check the parent of `context'.
  If it's a link, set `context' to its parent.

Makes sure links with verbatim descriptions are treated as links and
not verbatim.
---
 lisp/org.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lisp/org.el b/lisp/org.el
index 3800d80..92211a8 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -10460,6 +10460,8 @@ is used internally by `org-open-link-from-string'.
 (setq org-window-config-before-follow-link (current-window-configuration))
 (org-remove-occur-highlights nil nil t)
 (let* ((context (org-element-context))
+	   (parent (plist-get (cadr context) :parent))
+	   (context (if (eq (car parent) 'link) parent context))
(type (org-element-type context)))
   (cond
;; On a headline or an inlinetask, but not on a timestamp,
-- 
1.8.4



Re: [O] Org release 8.2.5g (minor release from maint)

2014-02-27 Thread Eric Schulte
Achim Gratz strom...@nexgo.de writes:

 Achim Gratz writes:
 […]
 in the second or the cdr of the second element of pre-info might
 directly get the new value spliced in depending on whether the original
 value is used someplace else.

 Splicing seems slightly more elegant than list construction, but
 pre-info needs to be preserved.  Eric, please review the attached patch,
 I'm not certain about the current test coverage in that area.


Oh, I did not realize `subseq' was part of the cl library.  Since it
seems subseq is a generally useful utility, would there be any appetite
for implementing an org-subseq function?

I look forward to the day when Org-mode can simply require cl-lib and
cease maintaining org- versions of common cl utilities.

Thanks,

-- 
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D



[O] font-lock error on html export with src blocks

2014-02-27 Thread Matt Price
Hi everyone,

I'm having trouble exporting an org file  to html, or any html-derived
backends (deck, wordpress, etc).  I've attached a version of the
offending file but I've also narrowed the error down to one php source
block:

#+BEGIN_SRC php
/* Register SoundCloud shortcode
   -- */

add_shortcode(soundcloud, soundcloud_shortcode);


/**
 * SoundCloud shortcode handler
 * @param  {string|array}  $atts The attributes passed to the
shortcode like [soundcloud attr1=value /].
 *   Is an empty string when no
arguments are given.
 * @param  {string}$content  The content between non-self
closing [soundcloud]â EURO |[/soundcloud] tags.
 * @return {string}  Widget embed code HTML
 */
function soundcloud_shortcode($atts, $content = null) {

#+END_SRC

The error seems to be related to font locks, and I guess must have
something to do with php-mode somehow:

-*Messages*---
Wrote /home/matt/test.org
org-babel-exp process php at line 14...
org-babel-exp process php at line 26...
org-babel-exp process html at line 36...
org-babel-exp process php at line 41...
face-attribute: Wrong type argument: symbolp, (quote font-lock-constant-face)

--

Does anyone else have any suggestions?  thanks!
Matt


test.org
Description: Lotus Organizer


Re: [O] OrgCamp in Madrid

2014-02-27 Thread Thomas S. Dye
Aloha David,

The website says where people gather IRL ... What does IRL mean?

All the best,
Tom

David david...@riseup.net writes:

 Hi,

 8th and 9th of March will meet some spanish emacs hackers in Madrid, the
 people who attend this mailing list are welcome. The idea is learn emacs
 lisp programming focused on org-mode. The meeting will start at 15:00
 the 8th of March. More info in http://orgmode.org/worg/orgcamps.html and
 http://www.atlacaba.net/node/12.

 Regards.



-- 
Thomas S. Dye
http://www.tsdye.com



Re: [O] OrgCamp in Madrid

2014-02-27 Thread David
El 27/02/14 17:43, Thomas S. Dye escribió:
 Aloha David,

 The website says where people gather IRL ... What does IRL mean?

Aloha

I've not written it ...


 All the best,
 Tom

 David david...@riseup.net writes:

 Hi,

 8th and 9th of March will meet some spanish emacs hackers in Madrid, the
 people who attend this mailing list are welcome. The idea is learn emacs
 lisp programming focused on org-mode. The meeting will start at 15:00
 the 8th of March. More info in http://orgmode.org/worg/orgcamps.html and
 http://www.atlacaba.net/node/12.

 Regards.






Re: [O] font-lock error on html export with src blocks

2014-02-27 Thread Rick Frankel

On 2014-02-27 10:00, Matt Price wrote:


face-attribute: Wrong type argument: symbolp, (quote 
font-lock-constant-face)



Did you try with emacs -Q?

Have you tried resetting the definition of font-lock-constant-face?

rick



Re: [O] OrgCamp in Madrid

2014-02-27 Thread Erik Iverson
On Thu, Feb 27, 2014 at 11:32 AM, David david...@riseup.net wrote:
 El 27/02/14 17:43, Thomas S. Dye escribió:
 Aloha David,

 The website says where people gather IRL ... What does IRL mean?

IRL usually means in real life in this context. As opposed to
through the internet.



Re: [O] OrgCamp in Madrid

2014-02-27 Thread Thomas S. Dye
Aloha Erik,

Thanks. I must be showing my age :)

All the best,
Tom

Erik Iverson erikriver...@gmail.com writes:

 On Thu, Feb 27, 2014 at 11:32 AM, David david...@riseup.net wrote:
 El 27/02/14 17:43, Thomas S. Dye escribió:
 Aloha David,

 The website says where people gather IRL ... What does IRL mean?

 IRL usually means in real life in this context. As opposed to
 through the internet.

-- 
Thomas S. Dye
http://www.tsdye.com



Re: [O] link interfering with brackets when abbreviated

2014-02-27 Thread Michael Brand
Hi Nicolas

On Thu, Feb 27, 2014 at 11:28 AM, Nicolas Goaziou n.goaz...@gmail.com wrote:
 The only really predictable behaviour is: open the link under point.
 Everything else is arguable.

What for me is a conflict between ...

1) There are arguments to change - as you recently did in master -
   org-open-at-point to open only if there is a link _at point_.
   Just as its function name tells.

2) As a user I would like to have the possibility to open a link
   between point and end of line without having to navigate to the
   exact column. Also in modes other than Org.

... I solve for myself with the following function bound to C-c o
(not C-c C-o). It moves to and opens the first link between point
and end of line by simply trying point by point until it works the
current org-open-at-point from master that opens only when point is on
a link:

#+BEGIN_SRC emacs-lisp
  (defun f-open-link-between-point-and-eol ()
Move to and open first link between point and end of line.
  As long as not yet at end of line and as long as
  `org-open-at-point' or `browse-url-at-point' gives an error
  advance point by one character. For Org and other major modes.
(interactive)
(let ((p (point)) (err t))
  (while (and (not (eolp))
  (setq err (not (ignore-errors
   (or (cond
;; Org mode
((eq major-mode 'org-mode)
 (org-open-at-point))
;; Maybe more major modes here
;; [...]
;; All other major modes
(t
 (browse-url-at-point)))
   t)
(forward-char))
  (when err
(goto-char p)
(user-error No link between point and end of line
#+END_SRC

The above function does not only work for Org link and URL in Org mode
but also for URL in any other major mode. The definition of what
should be the alternative link when there is no link at the starting
point is simply delegated to org-open-at-point and
browse-url-at-point. This simplification makes it slow for links
towards the end or not present in long lines. There is plenty of room
for a better implementation than I did with this very simple first
approach.

In the case that, depending on user feedback, even C-c C-o itself
should move to the first link between point and end of line - or
whatever other link - also when there is no link at the starting
point, I suggest to keep org-open-at-point to open only when point is
on a link and to wrap this move into a new function, named e. g.
org-open-between-point-and-eol to be bound to C-c C-o.

The simplified solution with f-open-link-between-point-and-eol already
covers all my use cases of the old org-open-at-point. The
predictability of what will be the alternative link remains arguable.
I find its predictability at least better than with the old
org-open-at-point. And last but not least also the original issue

#+LINK: link-abbreviation http://www.orgmode.org/#
1) [ ] [[http://www.orgmode.org/#docs]]
2) [[link-abbreviation:docs]]
3) [ ] [[link-abbreviation:docs]]

of this thread with point on the character 3 is of course solved for
me.

Michael



Re: [O] dynamic block for ordered list of all clock intervals

2014-02-27 Thread Eric S Fraga
Andrea Rossetti andrea.rosse...@gmail.com writes:

 Hello Org users,

   recently I had to clock several small tasks,
 switching repeatedly from one to the other, and
 wanted to see the chronological history of all
 the CLOCK intervals, i.e. no sums/aggregations
 by day/week.

   So I wrote a (first rough version of a) dynamic
 block function for it, you may see it in this example:

I don't think anybody has answered.  Just for information, you can
achieve pretty much what you wanted using the agenda: v c.  The clock
view shows all clocked events for the particular period the agenda is
displaying, whether day or week or year...  And it shows gaps if there
are any during any given day (where the day start is customisable).

I use this all the time.

In the same view, you can of course add in the clock report with v
r if you do want aggregation.
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.2, Org release_8.2.5h-633-gec0998



Re: [O] OrgCamp in Madrid

2014-02-27 Thread Andreas Leha
Hi Tom,

t...@tsdye.com (Thomas S. Dye) writes:

 Aloha Erik,

 Thanks. I must be showing my age :)


I show my age on a regular basis, then.  Usually
http://www.urbandictionary.com serves me well in these occasions.

Regards,
Andreas




[O] orgtbl export linbreak source code possible?

2014-02-27 Thread Thorsten Grothe
Dear List,

I have an org-radio table which I would like to export to latex. The
table header looks like this:

#+ORGTBL: SEND sec-6 orgtbl-to-latex :skip 3 :splice t :lend
\\cmidrule(lr){4-4}\\\cmidrule(lr){5-5}\\\cmidrule(lr){6-6}\\\cmidrule(lr){7-7}
  :hline
%%

as you can see there are a lot of \cmidrules in the code which are exported to
one long latex line like this:

\cmidrule(lr){4-5}\cmidrule(lr){5-5}\cmidrule(lr){6-6}\cmidrule(lr){7-7}...

is it possible to add a linbreak after two or three \cmidrule commands so that
the code looks like this:

[tabular code]
\\
\cmidrule(lr){4-5}\cmidrule(lr){5-5} [linebreak]
\cmidrule(lr){6-6}\cmidrule(lr){7-7} [linebreak]

... 

Thanks in advance!

Regards
Thorsten Grothe



Re: [O] link interfering with brackets when abbreviated

2014-02-27 Thread Bastien
Hi Nicolas,

you just updated `org-open-at-point' without reimplementing the
previous behavior -- is this work in progress?

If it is not, I suggest to discuss the change before implementing it.
Nobody ever complained about the previous behavior, and both Michael
and me are suppporting it.

Thanks for considering this,

-- 
 Bastien



Re: [O] [PATCH] lisp/org.el (org-open-at-point): prioritize link

2014-02-27 Thread Nicolas Goaziou
Hello,

Oleh ohwoeo...@gmail.com writes:

 Can someone check this patch and commit it.
 It allows to open links that look like this:

 [[id:164552ee-b92d-4af6-9570-60d039876fac][=foobar=]]

I applied a generalization of your patch. Thank you.

While I'm at it, here are a few comments.

 +(parent (plist-get (cadr context) :parent))

This is too low level. It should really be:

  (parent (org-element-property :parent context))

 +(context (if (eq (car parent) 'link) parent context))

Same here. The preferred syntax is:

  (context (if (eq (org-element-type parent) 'link) parent context))


Regards,

-- 
Nicolas Goaziou



Re: [O] dynamic block for ordered list of all clock intervals

2014-02-27 Thread Andrea Rossetti
Eric S Fraga e.fr...@ucl.ac.uk writes:

 Andrea Rossetti andrea.rosse...@gmail.com writes:
 
 wanted to see the chronological history of all
 the CLOCK intervals, i.e. no sums/aggregations
 by day/week.
 .

 I don't think anybody has answered.  Just for information, you can
 achieve pretty much what you wanted using the agenda: v c.  The clock
 view shows all clocked events for the particular period the agenda is
 displaying, whether day or week or year...  And it shows gaps if there
 are any during any given day (where the day start is customisable).

 I use this all the time.

Me too, from now on :-) Eric, sincerely thank you for
the directions. v c, v r and v l are the commands
I was looking for. Kindest regards, Andrea


 In the same view, you can of course add in the clock report with v
 r if you do want aggregation.



Re: [O] OrgCamp in Madrid

2014-02-27 Thread Jay Dixit
Hmm, maybe this function would help? :-)

(defun org-hide-age ()
  Queries urbandictionary.com
  (interactive)
  (browse-url
   (concat
http://www.urbandictionary.com/define.php?term=;
(if mark-active
 (buffer-substring (region-beginning) (region-end))
  (read-string Urban Dictionary: )


---
Jay Dixit
jaydixit.com
(646) 355-8001
[image: Facebook] http://facebook.com/jaydixit [image:
Twitter]https://twitter.com/jaydixit
 [image: The New York Writers'
Intensive]http://www.newyorkwritersintensive.com

Jay Dixit


Re: [O] link interfering with brackets when abbreviated

2014-02-27 Thread Nicolas Goaziou
Hello,

Bastien b...@altern.org writes:

 you just updated `org-open-at-point' without reimplementing the
 previous behavior -- is this work in progress?

No, it isn't. I fixed the bugs we discussed, and one reported on the ML.

 If it is not, I suggest to discuss the change before implementing it.
 Nobody ever complained about the previous behavior, and both Michael
 and me are suppporting it.

I didn't remove that non-essential feature for my pleasure, but because
it didn't fit in the new internal model. As I already said, implementing
it back is a bit of work and will probably not be very clean. Why
bother?

Anyway, I don't understand why there is so much fuss about this. As you
well know, Org provides `org-next-link' (which is bound to C-c C-x C-n),
and Emacs provides incremental search. Do you, or Michael, honestly open
so many links that an additional C-s ... RET to move on each of them is
too much?

There is also `org-open-at-point-functions', which can probably be used
here.

I think that the coolness of the feature eludes me for all I can see is
a crude hack.


Regards,

-- 
Nicolas Goaziou



[O] trunc fill modes?

2014-02-27 Thread Peter Davis

This is probably more an emacs question than org-mode, but ...

On my MacBook Pro at work, running Aquamacs 3.0a, in Org mode the mode 
line shows


Org Trunc Fill

However, on my MacBook at home, it shows

Org Trunc Spc

I like the way the first one works. How can I make the second one have 
the same modes by default as the first?


Thanks!

-pd

--

Peter Davis
The Tech Curmudgeon
www.techcurmudgeon.com




[O] org todos on paper?

2014-02-27 Thread Peter Salazar
I keep meeting people who say they started getting more things done more
efficiently once they started printing out their tasks lists, so they can
have the experience of seeing the list on paper and, more importantly, the
satisfaction of crossing an item off on the page.

Does anyone have a workflow they're happy with that involves printing out
their org-mode todo lists?


Re: [O] List of figures

2014-02-27 Thread John Kitchin
Maybe I am missing something, what would the utility of #+toc: figures be?
Is it only for export?

I would make a link:  [[elisp:org-list-of-figures]] where
org-list-of-figures is an emacs-lisp function that would parse the buffer
and present you with a list of clickable links to the figures. You could
alternatively make this a new org-link, so you could also specify how it
exports, eg.

[[lof:click-me][List of Figures]]

That would be pure org-markup, and make org more useful, and it would also
happen to support LaTeX export too. I guess you would recognize figures as
extensions in the file links.


John

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



On Wed, Feb 26, 2014 at 11:37 AM, Thomas S. Dye t...@tsdye.com wrote:

 Aloha Nicolas,

 Nicolas Goaziou n.goaz...@gmail.com writes:

  Hello,
 
  t...@tsdye.com (Thomas S. Dye) writes:
 
  I can imagine that a list of figures is a difficult problem in some
  other back-ends.  However, its absence in LaTeX export seems unusual.
 
  Org doesn't cover all LaTeX facilities. There are #+LATEX:
  and #+BEGIN_LATEX...#+END_LATEX to fill the gap.
 
  Would it make sense to have this work as expected for LaTeX export (and
  perhaps other back-ends where it does make sense)
 
  We can start to discuss what a good implementation could be for major
  back-ends. But implementing it for LaTeX only is, IMO, not worth the
  trouble:
 
#+toc: figures
 
  vs.
 
#+latex: \listoffigures

 AFAICT the new exporter works flawlessly.  I'm confident that it will
 let me produce LaTeX to any practical specification.

 My original query came about because I was trying to write Org markup
 and *not* drop down to LaTeX.  In this context--Org as a lightweight
 markup language--the possibility of creating all but one of the
 lists-of with #+TOC: seems like the markup language core is missing a
 piece.

 I look forward to the discussion of implementations for the major
 back-ends. Let me know if I can help in any way.

 All the best,
 Tom

 --
 Thomas S. Dye
 http://www.tsdye.com




Re: [O] org todos on paper?

2014-02-27 Thread Peter Neilson
On Thu, 27 Feb 2014 20:23:26 -0500, Peter Salazar cycleofs...@gmail.com  
wrote:



I keep meeting people who say they started getting more things done more
efficiently once they started printing out their tasks lists, so they can
have the experience of seeing the list on paper and, more importantly,  
the

satisfaction of crossing an item off on the page.

Does anyone have a workflow they're happy with that involves printing out
their org-mode todo lists?


Exactly. My to-do items are mostly physical activities related to taking  
care of farm animals, rather than things I'm doing on my computer. It  
makes little sense to try to follow a list on a laptop or smartphone when  
walking back and forth in mud, or when picking up items at the farm-supply  
store. I update my to-do items occasionally in emacs, but as much as I've  
loved using emacs for nearly 40 years, it's not my constant companion  
outdoors in the weather, or when handling horses or shearing sheep. A  
printed piece of paper in my pocket is much easier to use, and little harm  
is done if it falls into the stock tank or gets trampled by livestock.




Re: [O] org todos on paper?

2014-02-27 Thread Kyle Machulis
I had a set of scripts cron'd to like 4am that would run emacs, output a
daily agenda export, and email that to me, which I would sometimes print.
It was super handy.

Of course, they stopped working a while ago but I keep meaning to fix that.


On Thu, Feb 27, 2014 at 6:22 PM, Peter Neilson neil...@windstream.netwrote:

 On Thu, 27 Feb 2014 20:23:26 -0500, Peter Salazar cycleofs...@gmail.com
 wrote:

  I keep meeting people who say they started getting more things done more
 efficiently once they started printing out their tasks lists, so they can
 have the experience of seeing the list on paper and, more importantly, the
 satisfaction of crossing an item off on the page.

 Does anyone have a workflow they're happy with that involves printing out
 their org-mode todo lists?


 Exactly. My to-do items are mostly physical activities related to taking
 care of farm animals, rather than things I'm doing on my computer. It makes
 little sense to try to follow a list on a laptop or smartphone when walking
 back and forth in mud, or when picking up items at the farm-supply store. I
 update my to-do items occasionally in emacs, but as much as I've loved
 using emacs for nearly 40 years, it's not my constant companion outdoors in
 the weather, or when handling horses or shearing sheep. A printed piece of
 paper in my pocket is much easier to use, and little harm is done if it
 falls into the stock tank or gets trampled by livestock.




Re: [O] List of figures

2014-02-27 Thread Thomas S. Dye
Aloha John,

John Kitchin jkitc...@andrew.cmu.edu writes:

 Maybe I am missing something, what would the utility of #+toc: figures be?
 Is it only for export?

Yes, it is.

 I would make a link:  [[elisp:org-list-of-figures]] where
 org-list-of-figures is an emacs-lisp function that would parse the buffer
 and present you with a list of clickable links to the figures. You could
 alternatively make this a new org-link, so you could also specify how it
 exports, eg.

 [[lof:click-me][List of Figures]]

This is a neat idea. Thanks!

All the best,
Tom


 That would be pure org-markup, and make org more useful, and it would also
 happen to support LaTeX export too. I guess you would recognize figures as
 extensions in the file links.


 John

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



 On Wed, Feb 26, 2014 at 11:37 AM, Thomas S. Dye t...@tsdye.com wrote:

 Aloha Nicolas,

 Nicolas Goaziou n.goaz...@gmail.com writes:

  Hello,
 
  t...@tsdye.com (Thomas S. Dye) writes:
 
  I can imagine that a list of figures is a difficult problem in some
  other back-ends.  However, its absence in LaTeX export seems unusual.
 
  Org doesn't cover all LaTeX facilities. There are #+LATEX:
  and #+BEGIN_LATEX...#+END_LATEX to fill the gap.
 
  Would it make sense to have this work as expected for LaTeX export (and
  perhaps other back-ends where it does make sense)
 
  We can start to discuss what a good implementation could be for major
  back-ends. But implementing it for LaTeX only is, IMO, not worth the
  trouble:
 
#+toc: figures
 
  vs.
 
#+latex: \listoffigures

 AFAICT the new exporter works flawlessly.  I'm confident that it will
 let me produce LaTeX to any practical specification.

 My original query came about because I was trying to write Org markup
 and *not* drop down to LaTeX.  In this context--Org as a lightweight
 markup language--the possibility of creating all but one of the
 lists-of with #+TOC: seems like the markup language core is missing a
 piece.

 I look forward to the discussion of implementations for the major
 back-ends. Let me know if I can help in any way.

 All the best,
 Tom

 --
 Thomas S. Dye
 http://www.tsdye.com


 Maybe I am missing something, what would the utility of #+toc: figures
 be? Is it only for export?

 I would make a link: [[elisp:org-list-of-figures]] where
 org-list-of-figures is an emacs-lisp function that would parse the
 buffer and present you with a list of clickable links to the figures.
 You could alternatively make this a new org-link, so you could also
 specify how it exports, eg.

 [[lof:click-me][List of Figures]]

 That would be pure org-markup, and make org more useful, and it would
 also happen to support LaTeX export too. I guess you would recognize
 figures as extensions in the file links.

 John

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

 On Wed, Feb 26, 2014 at 11:37 AM, Thomas S. Dye t...@tsdye.com wrote:

 Aloha Nicolas,
 
 Nicolas Goaziou n.goaz...@gmail.com writes:
 
  Hello,
 
  t...@tsdye.com (Thomas S. Dye) writes:
 
  I can imagine that a list of figures is a difficult problem in
 some
  other back-ends. However, its absence in LaTeX export seems
 unusual.
 
  Org doesn't cover all LaTeX facilities. There are #+LATEX:
  and #+BEGIN_LATEX...#+END_LATEX to fill the gap.
 
  Would it make sense to have this work as expected for LaTeX
 export (and
  perhaps other back-ends where it does make sense)
 
  We can start to discuss what a good implementation could be for
 major
  back-ends. But implementing it for LaTeX only is, IMO, not worth
 the
  trouble:
 
  #+toc: figures
 
  vs.
 
  #+latex: \listoffigures
 
 AFAICT the new exporter works flawlessly. I'm confident that it
 will
 let me produce LaTeX to any practical specification.
 
 My original query came about because I was trying to write Org
 markup
 and *not* drop down to LaTeX. In this context--Org as a
 lightweight
 markup language--the possibility of creating all but one of the
 lists-of with #+TOC: seems like the markup language core is
 missing a
 piece.
 
 I look forward to the discussion of implementations for the major
 back-ends. Let me know if I can help in any way.
 
 All the best,
 Tom
 
 --
 Thomas S. Dye
 http://www.tsdye.com
 



-- 
Thomas S. Dye
http://www.tsdye.com



Re: [O] org todos on paper?

2014-02-27 Thread Ken Mankoff

On Thu, 27 Feb 2014, Kyle Machulis wrote:

I had a set of scripts cron'd to like 4am that would run emacs, 
output a daily agenda export, and email that to me, which I would 
sometimes print. It was super handy.


Of course, they stopped working a while ago but I keep meaning to 
fix that.


would be nice to print the daily tasks to a small thermal printer. 
http://learn.adafruit.com/mini-thermal-receipt-printer


  -k.




[O] MobileOrg

2014-02-27 Thread David Masterson
Anyone using MobileOrg on iOS?  I can't figure out how to set it up from
the documentation -- I think I'm missing something.  I have a number of
questions:

1. What needs to be setup for the first time push from Emacs to the
Dropbox Apps/MobileOrg directory?

2. What should the results of the first time push be that I should check
to ensure that it worked?

3. What is MobileOrg looking for in the Dropbox directory?

4. What do I need to configure in MobileOrg?

5. What will MobileOrg put back in the Dropbox directory?

6. What do I need to do to get Emacs to pull from the Dropbox directory?

And so on.  Are the maintainers of MobileOrg watching this mailing list?

-- 
David Masterson