Re: [O] (no subject) How to sort agenda by timestamps (scheduled/deadline)?

2013-01-30 Thread Martin Beck
Martin Beck elwood151 at web.de writes:

(sorry, I was too fast and forgot to enter a subject)

I'm trying to create a custom agenda setup for my org-mode and I 
 wonder how I can sort the agenda-items by date (Scheduled or deadline): 
 newest first.
 
 
 I only found time-up / time-down in the parameters, but that does not seem to
do what I need.
 
 
 Another
  important point would be how to handle items with no scheduled/date or 
 deadline.. they should be placed at the end of the list.
 
 
 I've been searching some time but did not find a solution. 
 
 
 Kind regards
 
 
 Martin
 
 
 
 







Re: [O] How to improve Org startup time?

2013-01-30 Thread Sebastien Vauban
Hi Nick,

Nick Dokos wrote:
 Sebastien Vauban wxhgmqzgw...@spammotel.com wrote:
  This may have something to do with my big amount of Org files in
  `org-agenda-files': 36 at this point. But is that so big??
 
  I don't think so.

 I'm sure it is, as I wrote (removed from the joined log) a message call
 before and after that line, and those time-stamps were 16 seconds one from 
 the
 other.

 Small misunderstanding here: the I don't think so was a reply
 to the is that so big? question.

It was already late for me it seems. Yes, I misunderstood your point. Anyway,
I don't mind getting reminded of things which could have escaped me!

  Can you get a profile?

 You're right I should use real tools for that...

  M-x elp-instrument-package RET org-agenda RET
  M-x org-agenda-to-appt
  M-x elp-results
 
  In my (admittedly unchallenging, run-of-the-mill) setup, I get
  (with everything already loaded):
 
  org-agenda-to-appt1   
  0.053846964   0.053846964
  org-agenda-prepare-buffers1   
  0.028483817   0.028483817
  org-agenda-get-day-entries8   
  0.024222044   0.0030277555
  org-agenda-get-scheduled  8   
  0.0154506449  0.0019313306
  org-agenda-get-timestamps 8   
  0.004179949   0.0005224936
  org-agenda-skip   184 
  0.0027937810  1.518...e-05
  org-agenda-files  2   
  0.001386068   0.000693034
  org-agenda-get-deadlines  8   
  0.001288303   0.0001610378
  org-agenda-format-item22  
  0.0012140690  5.518...e-05
  org-agenda-get-blocks 8   
  0.0007851970  9.814...e-05
  org-agenda-new-marker 44  
  0.0006114019  1.389...e-05
  org-agenda-skip-eval  368 
  0.0001511950  4.108...e-07
  org-agenda-todayp 16  
  0.0001342800  8.392...e-06
  org-agenda-fix-displayed-tags 22  
  7.2914e-053.314...e-06
  org-agenda-get-category-icon  22  
  1.8382e-058.355...e-07
  org-agenda-time-of-day-to-ampm-maybe  6   
  3.347e-06 5.578...e-07
 
  A factor of 300: maybe it's real, but let's make sure first.

 Here it is. I don't know how to interpret that difference, tho.

 org-agenda-to-appt1   
 19.67319.673
 org-agenda-prepare-buffers1   
 18.86 18.86
 org-agenda-get-day-entries36  
 0.797000  0.022138
 org-agenda-files  37  
 0.544000  0.0147027027
 org-agenda-get-scheduled  36  
 0.515000  0.014305
 org-agenda-get-deadlines  36  
 0.158000  0.004388
 org-agenda-skip   612 
 0.141000  0.0002303921
 org-agenda-get-timestamps 36  
 0.047 0.001305
 org-agenda-get-blocks 36  
 0.046 0.001277
 org-agenda-format-item42  
 0.031 0.0007380952
 org-agenda-skip-eval  1204
 0.016 1.32...e-005
 org-agenda-fix-displayed-tags 42  
 0.0   0.0
 org-agenda-todayp 72  
 0.0   0.0
 org-agenda-new-marker 89  
 0.0   0.0
 org-agenda-deadline-face  2   
 0.0   0.0
 org-agenda-get-category-icon  42  
 0.0   0.0

 Well, you have a bigger agenda by a factor of 4-5

Well, I'm still under the floating line, for what concerns GTD (in the sense
of getting things _DONE_).

 and I guess a slower machine, but it all takes less than a second except for
 one thing: the big difference seems to be org-agend-prepare-buffers which
 opens the files, reads them in and gets the buffers ready.

Well, I did have a slow machine (6-year old, 2 GB RAM and plain old HD) up to
last month. Now, I do have a brand new Asus laptop with 4 GB RAM and 256 GB
SSD... It can't be that slow. Not possible...

I have to admit working most of the time without the laptop being powered,
which 

Re: [O] How to improve Org startup time?

2013-01-30 Thread Sebastien Vauban
Hi Bastien,

Bastien wrote:
 Sebastien Vauban writes:

 In particular, you'll see that *16 seconds* are lost between 21:20:30 and
 21:20:46. They correspond to the executiong of just *one line*:

 #+begin_src emacs-lisp
   (org-agenda-to-appt)
 #+end_src

 This may have something to do with my big amount of Org files in
 `org-agenda-files': 36 at this point. But is that so big??

 There are basically two factors that can slow down the agenda generation:
 the number of agenda files, the number of entries to check in all agenda
 files.

 Can you compare the time spent by the initialization process before and
 after commit 582cca5806 ?

I'll do at noon.

 It should improve things sensibly, I'd be curious to know why it does not
 improve anything -- if that's the case.

 Also, do you have any hooks in org-mode-hook?

Of course ;-)

Here, the full collection (in real life, they're at different spots of my
.emacs file):

--8---cut here---start-8---
;; whitespace mode
(add-hook 'text-mode-hook
  (lambda ()
(whitespace-mode 1)))

;; activate Auto Fill for all text mode buffers
(add-hook 'text-mode-hook 'turn-on-auto-fill)

(add-hook 'org-mode-hook
  (lambda ()
(local-set-key (kbd \C-\M-n) 'outline-next-visible-heading)
(local-set-key (kbd \C-\M-p) 'outline-previous-visible-heading)
(local-set-key (kbd \C-\M-u) 'outline-up-heading)))

(add-hook 'org-mode-hook
  (lambda ()
;; (local-set-key \M-n 'outline-next-visible-heading)
;; (local-set-key \M-p 'outline-previous-visible-heading)

(local-set-key (kbd C-c h) 'hide-other)

;; table
(local-set-key \M-\C-w 'org-table-copy-region)
(local-set-key \M-\C-y 'org-table-paste-rectangle)
(local-set-key \M-\C-l 'org-table-sort-lines)))

(add-hook 'org-mode-hook
  (lambda() (add-to-list 'mode-line-format
 '(:eval (org-propertize
  (org-display-outline-path nil t  /  
t)
 'face 'mode-line-emphasis
 'help-echo Outline path)) t)))

(add-hook 'org-mode-hook
  (lambda ()
(define-key org-agenda-keymap
  L 'lvn/org-agenda-toggle-list-category)
(define-key org-agenda-mode-map
  L 'lvn/org-agenda-toggle-list-category)))

(add-hook 'org-mode-hook
  (lambda ()
(setq imenu-generic-expression
  org-src-blocks-imenu-generic-expression

(add-hook 'org-mode-hook
  (lambda ()
;; YASnippet (using the new org-cycle hooks)
(set (make-local-variable 'yas/trigger-key) (kbd tab)) ;; needed?
(add-to-list 'org-tab-first-hook
 'yas/org-very-safe-expand)
(define-key yas/keymap (kbd tab) 'yas/next-field) ;; needed?
)))

(add-hook 'org-mode-hook
  (lambda ()
(local-set-key (kbd C-c m) 'org-mime-subtree)))
--8---cut here---end---8---

This is the result of searching for the following strings:

- text-mode-hook
- outline-mode-hook
- org-mode-hook

 Finally, org-agenda-to-appt is very slow by default, it uses
 org-agenda-get-day-entries and check every entry... see the docstring on how
 to make it check only the ones you really need.

Euh...

╭
│ org-agenda-get-day-entries is a Lisp function in `org-agenda.el'.
│
│ (org-agenda-get-day-entries rest ARGS)
│
│ Not documented.
╰

╭
│ org-agenda-to-appt is an interactive autoloaded Lisp function in
│ `org-agenda.el'.
│
│ (org-agenda-to-appt optional REFRESH FILTER rest ARGS)
│
│ Not documented.
╰

What am I missing?

Best regards,
  Seb

--
Sebastien Vauban




Re: [O] How to improve Org startup time?

2013-01-30 Thread Daimrod
Sebastien Vauban wxhgmqzgw...@spammotel.com writes:

 Finally, org-agenda-to-appt is very slow by default, it uses
 org-agenda-get-day-entries and check every entry... see the docstring on how
 to make it check only the ones you really need.

 Euh...

 ╭
 │ org-agenda-get-day-entries is a Lisp function in `org-agenda.el'.
 │
 │ (org-agenda-get-day-entries rest ARGS)
 │
 │ Not documented.
 ╰

 ╭
 │ org-agenda-to-appt is an interactive autoloaded Lisp function in
 │ `org-agenda.el'.
 │
 │ (org-agenda-to-appt optional REFRESH FILTER rest ARGS)
 │
 │ Not documented.
 ╰

 What am I missing?

Those functions should be documented. Here is what I have:

 org-agenda-get-day-entries is a compiled Lisp function in
 `org-agenda.el'.
 
 (org-agenda-get-day-entries FILE DATE rest ARGS)
 
 Does the work for `org-diary' and `org-agenda'.
 FILE is the path to a file to be checked for entries.  DATE is date like
 the one returned by `calendar-current-date'.  ARGS are symbols indicating
 which kind of entries should be extracted.  For details about these, see
 the documentation of `org-diary'.

 org-agenda-to-appt is an interactive autoloaded compiled Lisp function
 in `org-agenda.el'.
 
 (org-agenda-to-appt optional REFRESH FILTER rest ARGS)
 
 Activate appointments found in `org-agenda-files'.
 With a C-u prefix, refresh the list of
 appointments.
 
 If FILTER is t, interactively prompt the user for a regular
 expression, and filter out entries that don't match it.
 
 If FILTER is a string, use this string as a regular expression
 for filtering entries out.
 
 If FILTER is a function, filter out entries against which
 calling the function returns nil.  This function takes one
 argument: an entry from `org-agenda-get-day-entries'.
 
 FILTER can also be an alist with the car of each cell being
 either 'headline or 'category.  For example:
 
   '((headline IMPORTANT)
 (category Work))
 
 will only add headlines containing IMPORTANT or headlines
 belonging to the Work category.
 
 ARGS are symbols indicating what kind of entries to consider.
 By default `org-agenda-to-appt' will use :deadline, :scheduled
 and :timestamp entries.  See the docstring of `org-diary' for
 details and examples.
 
 If an entry as a APPT_WARNTIME property, its value will be used
 to override `appt-message-warning-time'.

-- 
Daimrod/Greg


pgpICwhkLc485.pgp
Description: PGP signature


Re: [O] Quick comment on the website

2013-01-30 Thread Bastien
Hi Aubrey,

Aubrey Raech aubreyra...@gmail.com writes:

 The website for org-mode (http://orgmode.org/) is fantastic. It's well
 laid out, helpful, and beautiful to look at. Whoever's in charge of
 maintaining it is doing a great job!

Thanks Aubrey!  I've actually waited long for someone to compliment
the new website, I'm glad it finally happened :)

-- 
 Bastien



Re: [O] Bug: ODT export and environments

2013-01-30 Thread Bastien
Hi Cassio,

Cassio Koshikumo ckoshik...@gmail.com writes:

 I think there's a bug when exporting files to ODT using environments
 (center, quote etc.).  Sample file:

 * Testing
 #+BEGIN_CENTER
 First line.

 Second line.
 #+END_CENTER

 When exporting that, only First line will have the correct style
 OrgCenter.  Second line (and all subsequent ones) will have the
 default Text body style.

Yes, there is a bug here.  The bug is not present in the new exporter,
which will be merged very soon now.

Thanks for reporting this,

-- 
 Bastien



Re: [O] Agenda optimization: new option `org-agenda-inhibit-startup'

2013-01-30 Thread Bastien
Hi Carsten,

Carsten Dominik carsten.domi...@gmail.com writes:

 Maybe it would be useful to exempt initializing org-indent-mode from
 this.

I double-checked and (setq org-startup-indented t) does not delay the
agenda generation, so I implemented this: org-indent-mode is not
inhibited anymore when `org-agenda-inhibit-startup' is non-nil.

Thanks for suggesting this!

-- 
 Bastien



[O] Sorting by scheduled-up/down (was: (no subject))

2013-01-30 Thread Bastien
Hi Martin,

Martin Beck elwood...@web.de writes:

 I'm trying to create a custom agenda setup for my org-mode and I
 wonder how I can sort the agenda-items by date (Scheduled or
 deadline): newest first.

 I only found time-up / time-down in the parameters, but that does not
 seem to do what I need.

 Another important point would be how to handle items with no
 scheduled/date or deadline.. they should be placed at the end of the
 list.

 I've been searching some time but did not find a solution. :-(

This is pretty high on my TODO list for Org 8.0.

Please stay tuned :)

-- 
 Bastien



Re: [O] Bug in org-bibtex (patch attached)

2013-01-30 Thread Bastien
ra...@free.fr writes:

 There is a small bug in org-bibtex which prevents org-bibtex-search
 to work correctly when org-bibtex-prefix is nil. Patch attached.

Applied, thanks!

-- 
 Bastien



Re: [O] Problems with org-caldav (wrong-type-argument stringp 47)

2013-01-30 Thread Bastien
Hi Torsten,

Torsten Wagner torsten.wag...@gmail.com writes:

 I couldn't find a way to tell emacs to use the local version
 instead.

What about a simple (load ../url-dav.el) ?

-- 
 Bastien



Re: [O] no pdf-output in lilypond code blocks

2013-01-30 Thread Bastien
Hi Florian,

Florian Beck f...@miszellen.de writes:

 I can live with setting `ly-gen-pdf', but maybe something like

 (pcase (file-name-extension out-file)
 (pdf --pdf )
 (ps --ps )
 (png --png )
 (t --png ))

 would be even better?

Indeed.  This is now the case, thanks!

-- 
 Bastien



Re: [O] Macro question with new texinfo exporter

2013-01-30 Thread Bastien
Hi Nicolas,

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

 We ought to modify it. Perhaps something like:

   {{{name arg1 arg2 with space arg3 \with\ quote}}}

FWIW I'm all for a variation of this

{{{name(arg1 arg2 with space arg3 \with\ quote)}}}

if we can also support the old syntax.

The reason why I prefer the parentheses is that it makes
clear for newbies that the items within the parentheses
are arguments, whereas I find it less clear with no
parentheses.

-- 
 Bastien



Re: [O] Footnote export question

2013-01-30 Thread Bastien
Hi Alan,

Alan L Tyree alanty...@gmail.com writes:

 Is there some way to achieve the result required?

Not that I'm aware of, but this is a frequent feature request, 
we might put some energy on this for the next major release.

Best,

-- 
 Bastien



Re: [O] org-archive-add-header-to-new-files

2013-01-30 Thread Bastien
Hi Christopher,

Christopher Schmidt christop...@ch.ristopher.com writes:

 here is a patch to master that allows one to inhibit the addition of the
 header line to newly created archive files.

 2013-01-28  Christopher Schmidt  christop...@ch.ristopher.com

 * org-archive.el (org-archive-add-header-to-new-files): New
 option.
 (org-archive-subtree): Honour
 org-archive-add-header-to-new-files.

Thanks for the ChangeLog, would be even greater to have it directly
within the patch as produced by git format-patch!  

In master, I added `org-archive-file-header-format' which see.

Thanks for this idea,

-- 
 Bastien



Re: [O] [Bug] test-org-export/before-parsing-hook

2013-01-30 Thread Bastien
Hi Achim,

Achim Gratz strom...@nexgo.de writes:

 Testing current Org fails with this backtrace (the culprit seems to be
 calling looking-at with an argument of nil):

FWIW I cannot reproduce the problem.  Can you?  

-- 
 Bastien



Re: [O] bbdb or bbdb3 or org-contacts

2013-01-30 Thread Bastien
Hi Dieter,

Dieter Wilhelm die...@duenenhof-wilhelm.de writes:

 What do you advise, what is already usable and what is the way
 ahead, still bbdb or bbdb3 or already org-contacts?

BBDB is great.  org-contacts.el is too slow when you have many
contacts, and it is not really maintained anymore.

Best,

-- 
 Bastien



Re: [O] disable html-preambler per file

2013-01-30 Thread Bastien
Hi Henry,

henry atting s...@online.de writes:

 I see that there is the option `html-preamble' but apparently it is not
 applicable on a per file basis. How can set org-export-html-preamble to nil
 for single files?

#+BIND: org-export-html-preamble nil

HTH,

-- 
 Bastien



Re: [O] colorg: Weekly status!

2013-01-30 Thread Bastien
Hi François,

François Pinard pin...@iro.umontreal.ca writes:

 The parts slowly begin to fit together.  I can launch a colorg server
 and two Emacs sessions.  In the first Emacs, I can upload a buffer
 contents to the server as a resource.  In the second Emacs, I can either
 download that resource from the server into a empty buffer, or associate
 it with a buffer already having identical contents.  Then, making edits
 to any Emacs go to the other.  That's a start!

It looks like a *pretty* good one!  Can't wait to have a screencast
showing this :) 

-- 
 Bastien



Re: [O] copy file from link into agenda

2013-01-30 Thread Bastien
Hi Subhan,

Subhan Tindall subhan.tind...@rentrakmail.com writes:

 Hi, I am trying to set up a class notes system using Org (based on my
 Nexus 7 w/BT Keyboard, but that's another story)
 I mostly have things they way I would like (I think), with each day's
 class notes as an org file, and a capture template to insert an entry
 into a date tree with some information + a link to the file name.
 This is all working great.
 What I would like is an agenda view that will pull the date tree
 entries matching a certain tag (IE class name) *AND* the linked file,
 and combine them into an agenda file
 For example,
 * 2013
 ** 2013-01 January
 *** 2013-01-21 Monday
  NOTE [2013-01-21 Mon 1410] :class1:
 filename.c
 *** 2013-01-28 Monday
  NOTE  [2013-01-28 Mon 14:51]:class1:
 filename.a
  NOTE  [2013-01-28 Mon 14:51]:class2:
 filename.9
 *** 2013-01-29 Tuesday
  NOTE  [2013-01-29 Mon 14:51]:class1:
 filename.b

You can do this manually -- in your date-tree file:

M-x org-agenda RET  a

will produce the agenda view for this file.

Then in this first agenda view, / TAB :class1: will 
filter out entries that don't have the :class1: tag.

Then `E' will show the first lines of each entries,
displaying the .c files.

Of course, you can also build a custom agenda view
which does all this -- see the manual and the tutorials
on http://orgmode.org/worg/.

HTH,

-- 
 Bastien



Re: [O] Cannot get exported a correctly-recalculated table generated by org-babel

2013-01-30 Thread Bastien
Hi Miguel,

Miguel Ruiz rbeni...@yahoo.es writes:

 How can I get recalculated tables through org-export:

 a) Switch-off org-babel-execute-buffer in org-export?
 b) Switch-on org-tables recalculate-buffer-tables AFTER 
 org-babel-execute-buffer?

 I cannot figure out the sequence in org-export or the multiple hooks
 available.

I would use this one (not tested though):

(add-hook 'org-export-preprocess-hook
  'org-table-recalculate-buffer-tables)

HTH,

-- 
 Bastien



Re: [O] Cannot get exported a correctly-recalculated table generated by org-babel

2013-01-30 Thread Miguel Ruiz
 
  How can I get recalculated tables through org-export:
 
  a) Switch-off org-babel-execute-buffer in org-export?
  b) Switch-on org-tables recalculate-buffer-tables AFTER
 org-babel-execute-buffer?
 
  I cannot figure out the sequence in org-export or the
 multiple hooks
  available.
 
 I would use this one (not tested though):
 
 (add-hook 'org-export-preprocess-hook         
'org-table-recalculate-buffer-tables)
 

That goes perfect!!!

I also found

(add-hook 'org-babel-after-execute-hook 
  'org-table-recalculate-buffer-tables) 


Thanks a lot,

Miguel.

 HTH,
 
 -- 
  Bastien




Re: [O] (no subject)

2013-01-30 Thread Bernt Hansen
Martin Beck elwood...@web.de writes:

 I'm trying to create a custom agenda setup for my org-mode and I wonder how I 
 can sort the agenda-items by date (Scheduled
 or deadline): newest first.

 I only found time-up / time-down in the parameters, but that does not seem to 
 do what I need.

 Another important point would be how to handle items with no scheduled/date 
 or deadline.. they should be placed at the end
 of the list.

 I've been searching some time but did not find a solution. :-(

Hi Martin,

I sort my daily agenda items specifically using a bunch of complicated
sorting functions.  They are all documented here:

http://doc.norang.ca/org-mode.html#AgendaViewTweaks

HTH,
Bernt



Re: [O] Agenda optimization: new option `org-agenda-inhibit-startup'

2013-01-30 Thread Carsten Dominik
Great, I am happy.

- Carsten
On 30 jan. 2013, at 11:21, Bastien b...@altern.org wrote:

 Hi Carsten,
 
 Carsten Dominik carsten.domi...@gmail.com writes:
 
 Maybe it would be useful to exempt initializing org-indent-mode from
 this.
 
 I double-checked and (setq org-startup-indented t) does not delay the
 agenda generation, so I implemented this: org-indent-mode is not
 inhibited anymore when `org-agenda-inhibit-startup' is non-nil.
 
 Thanks for suggesting this!
 
 -- 
 Bastien


-- 
There is no unscripted life.  Only a badly scripted one. -- Brothers Bloom




Re: [O] can babel results show time of evaluation?

2013-01-30 Thread Bastien
Hi Thomas,

Thomas Alexander Gerds t...@biostat.ku.dk writes:

 (when hash (concat [[hash][ (with-temp-buffer
 (org-insert-time-stamp (current-time) 'hm)) ]]))

 but, not sure if that is a good idea and what other changes this
 would require.

I'm not sure too (both whether this is a good idea and whether 
this would trigger other changes)... but I'd say this is a very 
specific need, and it can be fulfilled by asking the code to
insert a timestamp into the exported results, right?

See for e.g.:

#+BEGIN_SRC emacs-lisp :results raw
(message ;; %s (format-time-string (cdr org-time-stamp-custom-formats)))
#+END_SRC

HTH,

-- 
 Bastien



Re: [O] Temporally/occasionally turn off hooks?

2013-01-30 Thread Thorsten Jolitz
Bernt Hansen be...@norang.ca writes:

Hi Bernt,

 I would leave the hook always enabled but make it smart enough to skip
 inserting timestamps when you don't want them.  Something like the
 following:

 f9-T will toggle adding the timestamps ON and OFF
 f9-t will always insert a timestamp at point
 C-RET and M-RET will use the hook which checks if the variable
 bh/insert-inactive-timestamps is t before adding the timestamp,
 otherwise it does nothing.

great, thank you!

-- 
cheers,
Thorsten




Re: [O] bbdb or bbdb3 or org-contacts

2013-01-30 Thread Daimrod
Bastien b...@altern.org writes:

 Hi Dieter,

 Dieter Wilhelm die...@duenenhof-wilhelm.de writes:

 What do you advise, what is already usable and what is the way
 ahead, still bbdb or bbdb3 or already org-contacts?

 BBDB is great.  org-contacts.el is too slow when you have many
 contacts, and it is not really maintained anymore.

I've started to use org-contacts.el. I haven't (yet) problem with its
speed but I've improved the completion mecanism which prevented me to
use it. When I'll finish to document/comment it, I'll post it here.

 Best,

-- 
Daimrod/Greg


pgps9yHOag0AE.pgp
Description: PGP signature


Re: [O] (no subject) How to sort agenda by timestamps (scheduled/deadline)?

2013-01-30 Thread Martin Beck



Bernt Hansen bernt at norang.ca writes:

 
 Martin Beck elwood151 at web.de writes:
 
  I'm trying to create a custom agenda setup for my org-mode and I wonder how
I can sort the agenda-items by
 date (Scheduled
  or deadline): newest first.
 
  I only found time-up / time-down in the parameters, but that does not seem
to do what I need.
  ...
 
 Hi Martin,
 
 I sort my daily agenda items specifically using a bunch of complicated
 sorting functions.  They are all documented here:
 
 http://doc.norang.ca/org-mode.html#AgendaViewTweaks
 
 HTH,
 Bernt
 
 

Hi Bernt,

thanks a lot - I'm already working with your setup and currently struggling to
adapt it to my needs, but my elisp/emacs/org-mode knowledge is still too 
limited.

Is it true that time-up only sorts items which really have a time
(hours/minutes) defined, so it does not also sort everything with
date-timestamps by date?

I tried to modify your Block Agenda by inserting the following block:

(tags-todo PRIORITY=\A\ (
(org-agenda-overriding-header Critical)
(org-agenda-entry-types '(:deadline))
(org-agenda-sorting-strategy (quote (time-up category-keep)))
(org-agenda-todo-ignore-scheduled 'future)
(org-agenda-todo-ignore-deadlines 'future)
))

But unfortunately, it does only display category, TODO-keyword and subject, but
NO information about Deadline or Scheduled date.

Ho could I insert this additional column in the agenda view?

Kind regards

Martin






Re: [O] can babel results show time of evaluation?

2013-01-30 Thread Thomas Alexander Gerds
Hi Bastien,

thanks for you reply, in particular for showing how to avoid
org-insert-time-stamp to convert the current-time into a string.

I should have said more clearly what I had in mind with this. I was
thinking of a reproducible report or manuscript with R source blocks
that produce some results. Here org babel allows one to enable caching
for some or all source-blocks. My proposal has two advantages:

1) when visiting the cached results of a particular block after some
time, e.g. one year later, it would be visible *when* the block was
evaluated. This can be useful, e.g., when there are several versions of
the same dataset which are used to produce the cached results.

2) sometimes it may be unclear which blocks are evaluated when running
org-babel-execute-buffer or org-export-as-x, in particular for org-babel
novices. Thus, showing the evaluation time in the results header will
help to learn how caching works.

Cheers
Thomas






Bastien b...@altern.org writes:

 Hi Thomas,

 Thomas Alexander Gerds t...@biostat.ku.dk writes:

 (when hash (concat [[hash][ (with-temp-buffer
 (org-insert-time-stamp (current-time) 'hm)) ]]))
 but, not sure if that is a good idea and what other changes this
 would require.

 I'm not sure too (both whether this is a good idea and whether this
 would trigger other changes)... but I'd say this is a very specific
 need, and it can be fulfilled by asking the code to insert a timestamp
 into the exported results, right?

 See for e.g.:
 #+BEGIN_SRC emacs-lisp :results raw
 (message ;; %s (format-time-string (cdr org-time-stamp-custom-formats)))
 #+END_SRC
 HTH,
--



Re: [O] How to improve Org startup time?

2013-01-30 Thread Daniel Clemente

  Per chance, you did not forget to M-x compile ? ;)
 
 Good to remind me/us with that, but, once again, no, as I do not use compiled
 Org files. That way, I'm sure not to forget such recompile step -- which I
 would definitely do once in a while!
 

  If you are worried about speed, you should always byte-compile, because it's 
easy and byte-compiled code is faster.
  Just do a make after each git pull.




Re: [O] Bug(?) in LaTeX export?

2013-01-30 Thread Thorsten Jolitz
t...@tsdye.com (Thomas S. Dye) writes:

Hi Tom,

 I do have org-export-latex-listings set to nil, and it gives me the
 results I think you're looking for--a no fuss export of some source
 code.  The corresponding variable in the new exporter is
 org-e-latex-listings.  

thats probably what I want - and what I had before.

 Both of these variables are set to nil by default.  Perhaps you are
 setting one of these in .emacs, or there is an old customization?

sometimes I copy large chunks of Emacs configuration from other people,
I'm pretty sure in one of those chunks these variables were set. I have
to check. 

Thanks.

-- 
cheers,
Thorsten




Re: [O] Macro question with new texinfo exporter

2013-01-30 Thread Nicolas Goaziou
Hello,

Bastien b...@altern.org writes:

 FWIW I'm all for a variation of this

 {{{name(arg1 arg2 with space arg3 \with\ quote)}}}

 if we can also support the old syntax.

Supporting old syntax is a bit tricky. Perhaps something like:

  - Find the first one to appear between comma and quote:
- if it is a comma, use old syntax
- in any other case, use new syntax.

 The reason why I prefer the parentheses is that it makes
 clear for newbies that the items within the parentheses
 are arguments, whereas I find it less clear with no
 parentheses.

Write more Lisp ;)


Regards,

-- 
Nicolas Goaziou



Re: [O] Bug: Author email not included in postamble when doing HTML export [7.9.3d (release_7.9.3d-898-g005917-git @ org-loaddefs.el can not be found!)]

2013-01-30 Thread Bastien
Hi Michael,

Michael Armbrecht michael.armbre...@gmail.com writes:

    since v7.9 it seems that the author email (as in #+EMAIL:) is not
    part of the postamble any more when exporting an org-file to HTML
 --
    although the %e is still part of the
 org-export-html-postamble-format.

The default value of `org-export-html-postamble' is 'auto.

The docstring says:

  When set to 'auto, discard `org-export-html-postamble-format' and
  honor `org-export-author/email/creator-info' variables.

Apparently you didn't not change `org-export-html-postamble' so your
value of `org-export-html-postamble-format' is ignored.

The default value of org-export-email-info is nil, so you need to set
it to `t' in order to include email info (or email:t in the #+OPTION
line.)

HTH,

-- 
 Bastien



Re: [O] How to improve Org startup time?

2013-01-30 Thread Sebastien Vauban
Hi Bastien,

Bastien wrote:
 Can you compare the time spent by the initialization process before and
 after commit 582cca5806 ?

 It should improve things sensibly, I'd be curious to know why it does not
 improve anything -- if that's the case.

Before giving the results, let me tell you I've now tested as well with the
laptop being powered or not. That does change things in a factor 1 to 3.
However, still far behind Nick's results.

Here the results of the jury (elapsed time of `org-agenda-to-appt'):

| commit | date   | time (not powered) | time (powered) | ratio |
|++++---|
| f52600 | Jan 26 |  19.27 |   5.56 |   3.5 |
| 0cf717 | Jan 21 |  19.74 |   5.84 |   3.4 |
#+TBLFM: $5=$3/$4;%.1f

These are the means over a couple of tests. But the maximum variance (over
that small number of tests) is only about 0.04 s -- in powered mode.

That is: yes, things are better, up to 5%. But, on this example, not quite
significant... ;-(

FYI, I tried the ultimately current version (f518bc8) but there is a parsing
error in `org-e-odt.el' -- I guess since commit 35f944a of this morning?

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] How to improve Org startup time?

2013-01-30 Thread Sebastien Vauban
Hi Daniel,

Daniel Clemente wrote:
 Per chance, you did not forget to M-x compile ? ;)

 Good to remind me/us with that, but, once again, no, as I do not use compiled
 Org files. That way, I'm sure not to forget such recompile step -- which I
 would definitely do once in a while!

 If you are worried about speed, you should always byte-compile, because it's
 easy and byte-compiled code is faster.
 Just do a make after each git pull.

I know it's easy, but I know myself, and I'm sure to lose hours of work
because, at some point in time, I'll forget to compile the stuff after having
made one change.

Plus, from the speed comparisons I had done once, I felt the difference as
being completely marginal.

Do you really notice a speed improvement when using the compiled files?

Best regards,
  Seb

-- 
Sebastien Vauban




[O] Bug: HTML export using (org-narrow-to-subtree) [7.9.2+ (7.9.2+-GNU-Emacs-24-3 (commit 488eea) @ /home/dave/.emacs-lisp/packages/org-20130128/)]

2013-01-30 Thread David Bjergaard

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

 http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.

When exporting to html with (org-narrow-to-subtree) headlines deeper
than 2 levels won't get exported.  

Expected behavior: All subheadings should be exported to a level set by
headline-levels in my org init, or `H:' in the #+OPTIONS: line. 

Steps to reproduce: 
Suppose the buffer contains:
#+BEGIN_EXAMPLE
* Daily Entries
** 2013-01-14 Mon Dated Entry 1:export:
This is exported
*** Lorem ipsom:
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec
hendrerit tempor tellus. 

Subheadings and further nesting isn't...
 Not Exported
Still not exported...
** 2013-01-15 Tue Another Dated entry  :export:
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec
hendrerit tempor tellus. 
*** Not Exported
#+END_EXAMPLE

Placing the cursor at line 2 and calling (org-narrow-to-subtree) results
in:
#+BEGIN_EXAMPLE
** 2013-01-14 Mon Dated Entry 1:export:
This is exported
*** Lorem ipsom:
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec
hendrerit tempor tellus. 

Subheadings and further nesting isn't...
 Not Exported
Still not exported...
#+END_EXAMPLE
Then calling any of (org-export-as-html-*) results in only the This is
exported text, the remaining text is missing.

Cheers, 

Dave



Emacs  : GNU Emacs 24.2.91.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll 
bars)
 of 2012-12-17 on calypso
Package: Org-mode version 7.9.2+ (7.9.2+-GNU-Emacs-24-3 (commit 488eea) @ 
/home/dave/.emacs-lisp/packages/org-20130128/)

current state:
==
(setq
 org-export-preprocess-before-selecting-backend-code-hook 
'(org-beamer-select-beamer-code)
 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-speed-command-hook '(org-speed-command-default-hook
  org-babel-speed-command-hook)
 org-export-html-after-blockquotes-hook 
'(org-special-blocks-convert-html-special-cookies)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-export-preprocess-before-normalizing-links-hook 
'(org-remove-file-link-modifiers)
 org-confirm-shell-link-function 'yes-or-no-p
 org-finalize-agenda-hook '(org-agenda-to-appt)
 org-export-latex-after-blockquotes-hook 
'(org-special-blocks-convert-latex-special-cookies)
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
   org-beamer-auto-fragile-frames
   org-beamer-place-default-actions-for-lists)
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-agenda-include-diary t
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-from-is-user-regexp \\David Bjergaard\\
 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 '(#[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)
 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-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-export-blocks '((src org-babel-exp-src-block nil)
 (export-comment org-export-blocks-format-comment t)
 (ditaa org-export-blocks-format-ditaa nil)
 (dot org-export-blocks-format-dot nil))
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-finalize-hook '(org-agenda-to-appt)
 org-export-interblocks '((src org-babel-exp-non-block-elements))
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-ditaa-jar-path 
/usr/local/share/emacs/24.2.91/lisp/contrib/scripts/ditaa.jar
 org-alphabetical-lists t
 org-agenda-mode-hook '((lambda nil
 (define-key org-agenda-mode-map  (quote next-line))

Re: [O] How to improve Org startup time?

2013-01-30 Thread Florian Beck



Sebastien Vauban
wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org writes:

 I have to admit working most of the time without the laptop being powered,
 which I know (from observation) is 2 to 3 times slower. 

So maybe your disk is powered down or in a sleep mode in order to save
power? Could you check whether you get the same result with your laptop
powered? 






[O] Bug: Extra spaces in babel #+call arguments [7.9.3d (release_7.9.3d-823-gd06fa4 @ /usr/share/emacs/24.2/site-lisp/org/)

2013-01-30 Thread Rick Lupton
Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

 http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.


I am using org-babel to include the latest version of
externally-generated images in my org-mode file, which works well. But
there is a problem with using #+CALL: to include a link to the image:
if the argument to #+CALL includes parentheses, extra spaces are
added. Please see the examples below, run with emacs -Q.

(set up sh execution)
#+begin_src lisp
(org-babel-do-load-languages
 'org-babel-load-languages
 '((sh . t)))
#+end_src

The following block works as expected when run with =C-c C-c=: the link is
just the passed filename plus .txt.

#+name: test
#+begin_src sh :var filename=test james (fred) :results file
echo $filename.txt
#+end_src

#+RESULTS: test
[[file:test james (fred).txt]]

But using call adds an extra space when there are parentheses in the
argument:

#+call: test(filename=test) :results file

#+RESULTS: test(filename=test):results file
[[file:test.txt]]

#+call: test(filename=test (foo)) :results file

#+RESULTS: test(filename=test (foo)) :results file
[[file:test (foo) .txt]]

This last line shows the bug.

As a separate question, is it possible to get :results file as the
default from the original block so it doesn't have to be repeated in each
#+CALL ?

Thanks,
Rick

Emacs  : GNU Emacs 24.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.10)
 of 2012-10-07 on americium, modified by Debian
Package: Org-mode version 7.9.3d (release_7.9.3d-823-gd06fa4 @
/usr/share/emacs/24.2/site-lisp/org/)

current state:
==
(setq
 org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
 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-speed-command-hook '(org-speed-command-default-hook
  org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-export-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
   org-beamer-auto-fragile-frames
   org-beamer-place-default-actions-for-lists)
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 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 '(#[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)
 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
  org-optimize-window-after-visibility-change)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-babel-load-languages '((sh . t))
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-descriptive-links nil
 )


[O] org-caldav issue: Search failed: ;\\([A-Za-z0-9-]+\\)=

2013-01-30 Thread giles
org-caldav looks great but I've had a problem on initial sync with
Google.  I'm using the version ending 95629 from Jan 27 to sync with a
corporate Google mail account.

Setup:

#+begin_src emacs-lisp

(setq org-caldav-url https://www.google.com/calendar/dav;)
(setq org-caldav-calendar-id gi...@pexip.com)
(setq org-caldav-inbox calendar.org)
(setq org-icalendar-timezone Europe/London)

#+end_src

Then call org-caldav-sync, *Messages* reports:

#+begin_src

Contacting host: www.google.com:443
Getting event 1 of 28
icalendar--read-element: Search failed: ;\\([A-Za-z0-9-]+\\)=

#+end_src
This aborts the sync: rerunning asks if I wish to resume, then fails in
the same manner.

Any suggestions?


-- 
Giles Chamberlin




[O] [PATCH] Avoid all modification hooks in org-unmodified

2013-01-30 Thread Francesco Pizzolante
Hello,

I've changed org-unmodified in order to avoid all modification hooks to be
called (not only before-change-functions and after-change-functions, but also
first-change-hook).

I've used inhibit-modification-hooks as described here:
http://www.gnu.org/software/emacs/manual/html_node/elisp/Change-Hooks.html

In my case, this positively impacts the loading of the agenda.

Regards,
 Francesco

From 173526db9d9b925e9eb568a725647e4065f0e27c Mon Sep 17 00:00:00 2001
From: Francesco Pizzolante f...@missioncriticalit.com
Date: Wed, 30 Jan 2013 16:09:22 +0100
Subject: [PATCH] Avoid all modification hooks in org-unmodified

* org-macs.el (org-unmodified): Avoid all modification hooks in org-unmodified

TINYCHANGE
---
 lisp/org-macs.el |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/org-macs.el b/lisp/org-macs.el
index a44bdbe..ceee306 100644
--- a/lisp/org-macs.el
+++ b/lisp/org-macs.el
@@ -93,7 +93,7 @@ Also, do not record undo information.
   `(set-buffer-modified-p
 (prog1 (buffer-modified-p)
   (let ((buffer-undo-list t)
-   before-change-functions after-change-functions)
+   (inhibit-modification-hooks t))
,@body
 (def-edebug-spec org-unmodified (body))
 
-- 
1.7.9




Re: [O] org-caldav issue: Search failed: ;\\([A-Za-z0-9-]+\\)=

2013-01-30 Thread David Engster
'giles' writes:
 Contacting host: www.google.com:443
 Getting event 1 of 28
 icalendar--read-element: Search failed: ;\\([A-Za-z0-9-]+\\)=

Could you please do M-x toggle-debug-on-error before running the sync
and post the resulting backtrace here?

-David



Re: [O] colorg: Weekly status!

2013-01-30 Thread François Pinard
Bastien b...@altern.org writes:

 I can launch a colorg server and two Emacs sessions.  [...] Then,
 making edits to any Emacs go to the other.  That's a start!

 It looks like a *pretty* good one!  Can't wait to have a screencast
 showing this :)

Thanks, Bastien.  I begin to starve for getting this project out, into a
usable status.  This has taken too long already.  All we need is time!
(to be song on a well-known Beatles' air. :-)

François




Re: [O] Bug: Extra spaces in babel #+call arguments [7.9.3d (release_7.9.3d-823-gd06fa4 @ /usr/share/emacs/24.2/site-lisp/org/)

2013-01-30 Thread Thomas S. Dye
Aloha Rick,

Rick Lupton r.lup...@gmail.com writes:

 As a separate question, is it possible to get :results file as the
 default from the original block so it doesn't have to be repeated in each
 #+CALL ?

This should work:

* Appropriate Heading Level
  :PROPERTIES:
  :RESULTS:  file
  :END:

All the best,
Tom

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



Re: [O] Macro question with new texinfo exporter

2013-01-30 Thread Bastien
Hi Nicolas,

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

 Supporting old syntax is a bit tricky. Perhaps something like:

   - Find the first one to appear between comma and quote:
 - if it is a comma, use old syntax
 - in any other case, use new syntax.

Sounds good to me.

 The reason why I prefer the parentheses is that it makes
 clear for newbies that the items within the parentheses
 are arguments, whereas I find it less clear with no
 parentheses.

 Write more Lisp ;)

(You mean... I should (perhaps) write less lisp (right)?)

-- 
 Bastien



Re: [O] bbdb or bbdb3 or org-contacts

2013-01-30 Thread Bastien
Hi Greg,

Daimrod daim...@gmail.com writes:

 BBDB is great.  org-contacts.el is too slow when you have many
 contacts, and it is not really maintained anymore.

 I've started to use org-contacts.el. I haven't (yet) problem with its
 speed but I've improved the completion mecanism which prevented me to
 use it. When I'll finish to document/comment it, I'll post it here.

Great, thanks in advance!  I hereby solemnly declare thou shall be
org-contacts.el new maintainer.

-- 
 Bastien



Re: [O] testing/README: need to enable sh and org for the current test

2013-01-30 Thread Bastien
Hi Yasushi,

Yasushi SHOJI ya...@atmark-techno.com writes:

 With the current HEAD(release_7.9.3d-894-gfe805ed), it seems we need
 to load sh and org for babel language to run the test sucessfully.

Indeed.

 #+BEGIN_SRC elisp
   (org-babel-do-load-languages
'org-babel-load-languages
'((emacs-lisp . t)
  (sh . t)
  (org . t)))
   (setq org-confirm-babel-evaluate nil)
 #+END_SRC

 Am I missing something? 

Nope -- I applied your patch in master, thanks!

-- 
 Bastien



Re: [O] About range references in the spreadsheet

2013-01-30 Thread Bastien
Hi Xue, Eric and Dieter,

die...@duenenhof-wilhelm.de (H. Dieter Wilhelm) writes:

 (I would avoid the ambiguous expression column two since it is a
 relative specification) alternatively

   The TWO REFERENCES expand to a field range from the row above the
   current row, starting with two columns to the left up to the current
   column.

Yes... but this is a bit long.

I finally used this:

@@-1$-2..@@-1   @r{in the first row up, 3 fields from 2 columns on the left}

Implicitely, the sentence ends with up to the current one, which I
think can be assumed to be obvious here.

Let me know if you think this is still confusing.

Best,

-- 
 Bastien



Re: [O] can babel results show time of evaluation?

2013-01-30 Thread Eric Schulte
Hi Thomas,

I've just pushed this functionality up to the main branch.  To make use
of it add the following to your Emacs config.

  (setq org-babel-hash-show-time t)

It works for me in some simple tests, and I can confirm that with this
variable set to nil, I get no new failures in the Org-mode test suite,
so it shouldn't introduce any problems.

Thanks for suggesting this functionality,

Thomas Alexander Gerds t...@biostat.ku.dk writes:

 Hi Bastien,

 thanks for you reply, in particular for showing how to avoid
 org-insert-time-stamp to convert the current-time into a string.

 I should have said more clearly what I had in mind with this. I was
 thinking of a reproducible report or manuscript with R source blocks
 that produce some results. Here org babel allows one to enable caching
 for some or all source-blocks. My proposal has two advantages:

 1) when visiting the cached results of a particular block after some
 time, e.g. one year later, it would be visible *when* the block was
 evaluated. This can be useful, e.g., when there are several versions of
 the same dataset which are used to produce the cached results.

 2) sometimes it may be unclear which blocks are evaluated when running
 org-babel-execute-buffer or org-export-as-x, in particular for org-babel
 novices. Thus, showing the evaluation time in the results header will
 help to learn how caching works.

 Cheers
 Thomas






 Bastien b...@altern.org writes:

 Hi Thomas,

 Thomas Alexander Gerds t...@biostat.ku.dk writes:

 (when hash (concat [[hash][ (with-temp-buffer
 (org-insert-time-stamp (current-time) 'hm)) ]]))
 but, not sure if that is a good idea and what other changes this
 would require.

 I'm not sure too (both whether this is a good idea and whether this
 would trigger other changes)... but I'd say this is a very specific
 need, and it can be fulfilled by asking the code to insert a timestamp
 into the exported results, right?

 See for e.g.:
 #+BEGIN_SRC emacs-lisp :results raw
 (message ;; %s (format-time-string (cdr org-time-stamp-custom-formats)))
 #+END_SRC
 HTH,
 --


-- 
Eric Schulte
http://cs.unm.edu/~eschulte



Re: [O] bbdb or bbdb3 or org-contacts

2013-01-30 Thread Gour
Bastien b...@altern.org writes:

 BBDB is great.  org-contacts.el is too slow when you have many
 contacts, and it is not really maintained anymore.

Do you find its flexible-enough in comparison with org-contacts when one
wants to add some custom structure?

Otoh, I'm also worried about org-contact's future maintainability...


Sincerely,
Gour


pgpyDvYUW41Tj.pgp
Description: PGP signature


Re: [O] can babel results show time of evaluation?

2013-01-30 Thread Bastien
Hi Eric,

Eric Schulte schulte.e...@gmail.com writes:

 I've just pushed this functionality up to the main branch.  To make use
 of it add the following to your Emacs config.

   (setq org-babel-hash-show-time t)

Thanks!

-- 
 Bastien



Re: [O] bbdb or bbdb3 or org-contacts

2013-01-30 Thread Bastien
Hi Gour,

Gour g...@atmarama.net writes:

 Bastien b...@altern.org writes:

 BBDB is great.  org-contacts.el is too slow when you have many
 contacts, and it is not really maintained anymore.

 Do you find its flexible-enough in comparison with org-contacts when one
 wants to add some custom structure?

I used org-contacts.el for a few hours only, so I cannot compare.
But BBDB is flexible enough for my needs, which are rudimentary.

-- 
 Bastien



Re: [O] Has anybody noticed ellipses instead of the top line of the window?

2013-01-30 Thread Bastien
Hi Samuel,

Samuel Wales samolog...@gmail.com writes:

 Please note how that ellipsis carries no useful information.

 I have tried to fix this and other visibility problems (namely,
 canonical visibility is impossible to achieve using standard Org
 variables) for years, and I still have not found out how to do it.

 As best I can tell, there is a post command hook when isearch exits,
 and that calls Org's visibility code.

 Org's visibility code then inserts the ... at the top line of the
 window for unknown reasons.

 I don't need fancy recentering of the headline, if that helps.

 Anybody know why?  I'd like that ellipsis not to be there.

I want to come back on this.

I cannot reproduce this *at all* and I never noticed it.

Can you help me reproduce it?

Also, what is the value of these variables?

  `org-show-hierarchy-above'
  `org-show-following-heading'
  `org-show-entry-below'
  `org-show-siblings'

Thanks,

-- 
 Bastien



Re: [O] can babel results show time of evaluation?

2013-01-30 Thread Bastien
Hi Eric,

Eric Schulte schulte.e...@gmail.com writes:

 I've just pushed this functionality up to the main branch.  To make use
 of it add the following to your Emacs config.

   (setq org-babel-hash-show-time t)

Well, the patch breaks master, because of (defvar org-ts-regexp).

Can you fix this?

Thanks,

-- 
 Bastien



[O] Babel-generated files not part of published projects?

2013-01-30 Thread Gunnar Wolf
Hi,

I have the following (partial) target as a publishing declaration:

(setq org-publish-project-alist
  '((notas-html
 :base-directory ~/vcs/sistemas_operativos/notas/
 :base-extension org
 :publishing-directory ~/vcs/sistemas_operativos/html
 :recursive t
 :publishing-function org-publish-org-to-html
 :headline-levels 4
 :timestamp nil
 :creator-info nil
 :todo-keywords nil
 :html-preamble 
 :html-postamble 
 :auto-preamble t
 )
(notas-pdf
 :base-directory ~/vcs/sistemas_operativos/notas/
 :base-extension org
 :publishing-directory ~/vcs/sistemas_operativos/pdf
 :recursive t
 :publishing-function org-publish-org-to-pdf
 :headline-levels 4
 :auto-preamble t
 )
 (...)
))

And I have several Dot-generated snippets as part of my text, such as
this one:

#+begin_src dot :file ltxpng/estados_proceso.png
digraph G {
layout = dot;
node [shape = box];
(...)
}
#+end_src

When I export a single file (i.e. with C-c C-e p), the file gets
generated with the specified filename and included in the resulting
PDF. However, when I do it via org-publish-all (or
org-publish-project), the code does not get executed, and the
resulting files are missing the diagramas.

What am I missing?

Thanks,



Re: [O] [PATCH] Avoid all modification hooks in org-unmodified

2013-01-30 Thread Bastien


Hi Francesco,

Francesco Pizzolante
fpz-djc/ipccudyqhejpep6iedvlejwur...@public.gmane.org writes:

 I've changed org-unmodified in order to avoid all modification hooks to be
 called (not only before-change-functions and after-change-functions, but also
 first-change-hook).

 I've used inhibit-modification-hooks as described here:
 http://www.gnu.org/software/emacs/manual/html_node/elisp/Change-Hooks.html

 In my case, this positively impacts the loading of the agenda.

This is great.  It's not only more efficient but also more
consistent.  Thanks a lot for joining the agenda optimization
gang with such a contribution!  I applied your patch, with
a tiny change in the ChangeLog.

-- 
 Bastien




Re: [O] How to improve Org startup time?

2013-01-30 Thread Bastien


Hi Sébastien,

put your .emacs on diet :)  More seriously, I would start by checking
org-agenda-to-appt documentation.  It should be on your system.  If it 
is not, check online.  That's what really slows down your config.

Then, when this is done, I would try to use only those hooks that are
really necessary.  

My 2 cts of course,

-- 
 Bastien




Re: [O] Footnote export question

2013-01-30 Thread Alan L Tyree

Bastien writes:

 Hi Alan,

 Alan L Tyree alanty...@gmail.com writes:

 Is there some way to achieve the result required?

 Not that I'm aware of, but this is a frequent feature request, 
 we might put some energy on this for the next major release.

 Best,

I thought it was just a legal publisher quirk -- I suspect that most of
them still use hot type :-).

I'll work around it somehow, but it would be great to see it included as
a feature.

Thanks for all your great work Bastien!

Cheers,
Alan


-- 
Alan L Tyree   http://www2.austlii.edu.au/~alan
Tel:  04 2748 6206 sip:172...@iptel.org



Re: [O] can babel results show time of evaluation?

2013-01-30 Thread Thomas Alexander Gerds
Hi Eric

yes, it is in line 178 the call to

(defcustom org-babel-load-languages '((emacs-lisp . t)) ...

which seems to need `org-ts-regexp'

but, otherwise it works! Thank you very much for this option. 

Best
Thomas




Bastien b...@altern.org writes:

 Hi Eric,

 Eric Schulte schulte.e...@gmail.com writes:

 I've just pushed this functionality up to the main branch.  To make
 use of it add the following to your Emacs config.
 (setq org-babel-hash-show-time t)

 Well, the patch breaks master, because of (defvar org-ts-regexp).

 Can you fix this?

 Thanks,
--
Thomas A. Gerds -- Assoc. Prof. Department of Biostatistics
University of Copenhagen, Øster Farimagsgade 5, 1014 Copenhagen, Denmark
Office: CSS-15.2.07 (Gamle Kommunehospital)
tel: 35327914 (sec: 35327901) 



Re: [O] Date/time prompt parses '3-2' as 'Month-Day', can I configure it to parse it as 'Day-Month' ?

2013-01-30 Thread David Rogers
Nick Dokos nicholas.do...@hp.com writes:

 Yep, I told you I use ISO almost exlusively :-)

(slightly) off-topic: What settings can I tweak to make sure that ISO
dates are used everywhere in Emacs and Org? (everywhere that's practical,
I mean)

-- 
Thanks
David



Re: [O] org-archive-add-header-to-new-files

2013-01-30 Thread Christopher Schmidt
Bastien b...@altern.org writes:
 Thanks for the ChangeLog, would be even greater to have it directly
 within the patch as produced by git format-patch!

 In master, I added `org-archive-file-header-format' which see.

 Thanks for this idea,

Thank you very much.

Christopher



Re: [O] can babel results show time of evaluation?

2013-01-30 Thread Nicolas Goaziou
Hello,

Eric Schulte schulte.e...@gmail.com writes:

 I've just pushed this functionality up to the main branch.  To make use
 of it add the following to your Emacs config.

   (setq org-babel-hash-show-time t)

 It works for me in some simple tests, and I can confirm that with this
 variable set to nil, I get no new failures in the Org-mode test suite,
 so it shouldn't introduce any problems.

Well, it breaks the parser, somehow. Indeed, it expects from an
affiliated keyword such as #+results: (or #+caption for that matter) to
have only one secondary value. Sexp representation of these keywords is
already very complicated, it will not help to add values ad nauseum.

Also, if you use Org time-stamp syntax, at some point, someone will ask
the parser to be able to parse it. And it won't.

Eventually, it doesn't help to have hash syntax match Org links. This is
confusing.

Therefore, if this feature really has to be introduced, I suggest, at
the very least, to avoid using Org regular syntax for the reference to
time. It would also help to blur distinction between the time and the
hash string. Perhaps something like the following:

  #+results[2013-01-30T20:15:37 hash-string]: name

Thank you.


Regards,

-- 
Nicolas Goaziou



Re: [O] org-caldav issue: Search failed: ;\\([A-Za-z0-9-]+\\)=

2013-01-30 Thread giles

Thanks for the interest.

David Engster d...@randomsample.de writes:

 Could you please do M-x toggle-debug-on-error before running the sync
 and post the resulting backtrace here?

Slightly different behaviour this time: first seven events synced fine,
number 8 blew up the same way.

Debugger entered--Lisp error: (search-failed ;\\([A-Za-z0-9-]+\\)=)
  re-search-forward(;\\([A-Za-z0-9-]+\\)= nil nil)
  icalendar--read-element(VEVENT nil)
  icalendar--read-element(VCALENDAR nil)
  icalendar--read-element(nil nil)
  (let* ((calendar-date-style (quote european)) (ical-list 
(icalendar--read-element nil nil)) (e (car (icalendar--all-events ical-list))) 
(zone-map (icalendar--convert-all-timezones ical-list)) (dtstart 
(icalendar--get-event-property e (quote DTSTART))) (dtstart-zone 
(icalendar--find-time-zone (icalendar--get-event-property-attributes e (quote 
DTSTART)) zone-map)) (dtstart-dec (icalendar--decode-isodatetime dtstart nil 
dtstart-zone)) (start-d (icalendar--datetime-to-diary-date dtstart-dec)) 
(start-t (icalendar--datetime-to-colontime dtstart-dec)) (dtend 
(icalendar--get-event-property e (quote DTEND))) (dtend-zone 
(icalendar--find-time-zone (icalendar--get-event-property-attributes e (quote 
DTEND)) zone-map)) (dtend-dec (icalendar--decode-isodatetime dtend nil 
dtend-zone)) (dtend-1-dec (icalendar--decode-isodatetime dtend -1 dtend-zone)) 
end-d end-1-d end-t (summary (icalendar--convert-string-for-import (or 
(icalendar--get-event-property e (quote SUMMARY)) No Title))) (description 
(icalendar--convert-string-for-import (or (icalendar--get-event-property e 
(quote DESCRIPTION)) ))) (rrule (icalendar--get-event-property e (quote 
RRULE))) (rdate (icalendar--get-event-property e (quote RDATE))) (duration 
(icalendar--get-event-property e (quote DURATION (if (and dtstart (string= 
(cadr (icalendar--get-event-property-attributes e (quote DTSTART))) DATE)) 
(setq start-t nil)) (if duration (progn (let ((dtend-dec-d 
(icalendar--add-decoded-times dtstart-dec (icalendar--decode-isoduration 
duration))) (dtend-1-dec-d (icalendar--add-decoded-times dtstart-dec 
(icalendar--decode-isoduration duration t (if (and dtend-dec (not (eq 
dtend-dec dtend-dec-d))) (message Inconsistent endtime and duration for %s 
summary)) (setq dtend-dec dtend-dec-d) (setq dtend-1-dec dtend-1-dec-d 
(setq end-d (if dtend-dec (icalendar--datetime-to-diary-date dtend-dec) 
start-d)) (setq end-1-d (if dtend-1-dec (icalendar--datetime-to-diary-date 
dtend-1-dec) start-d)) (setq end-t (if (and dtend-dec (not (string= (cadr 
(icalendar--get-event-property-attributes e ...)) DATE))) 
(icalendar--datetime-to-colontime dtend-dec) start-t)) (list start-d start-t 
(if end-t end-d end-1-d) end-t summary description))
  org-caldav-convert-event()
  (setq eventdata (org-caldav-convert-event))
  (save-current-buffer (set-buffer (org-caldav-get-event uid)) (goto-char 
(point-min)) (save-excursion (if (re-search-forward 
^SEQUENCE:\\s-*\\([0-9]+\\) nil t) (progn (org-caldav-event-set-sequence cur 
(string-to-number (match-string 1)) (setq eventdata 
(org-caldav-convert-event)))
  (while --dolist-tail-- (setq cur (car --dolist-tail--)) (setq uid (car cur)) 
(setq org-caldav-sync-result (cons (list uid (org-caldav-event-status cur) 
(quote cal-org)) org-caldav-sync-result)) (setq counter (1+ counter)) (message 
Getting event %d of %d counter (length events)) (save-current-buffer 
(set-buffer (org-caldav-get-event uid)) (goto-char (point-min)) (save-excursion 
(if (re-search-forward ^SEQUENCE:\\s-*\\([0-9]+\\) nil t) (progn 
(org-caldav-event-set-sequence cur (string-to-number (match-string 1)) 
(setq eventdata (org-caldav-convert-event))) (if (eq (org-caldav-event-status 
cur) (quote new-in-cal)) (save-current-buffer (set-buffer (find-file-noselect 
org-caldav-inbox)) (org-caldav-debug-print (format Event UID %s: New in Cal 
-- Org inbox. uid)) (goto-char (point-max)) (apply (quote 
org-caldav-insert-org-entry) (append eventdata (list uid))) (setq buf 
(current-buffer))) (org-caldav-debug-print (format Event UID %s: Changed in 
Cal -- Org uid)) (let ((marker (org-id-find (car cur) t))) (if (null marker) 
(progn (error Could not find UID %s. (car cur (save-current-buffer 
(set-buffer (marker-buffer marker)) (goto-char (marker-position marker)) (if 
org-caldav-backup-file (progn (org-caldav-backup-item))) (if (or (eq 
org-caldav-sync-changes-to-org (quote title-only)) (eq 
org-caldav-sync-changes-to-org (quote title-and-timestamp))) (progn 
(org-caldav-change-heading (nth 4 eventdata (if (or (eq 
org-caldav-sync-changes-to-org (quote timestamp-only)) (eq 
org-caldav-sync-changes-to-org (quote title-and-timestamp))) (progn 
(org-caldav-change-timestamp (apply ... ... (if (eq 
org-caldav-sync-changes-to-org (quote all)) (progn (delete-region 
(org-entry-beginning-position) (org-entry-end-position)) (apply (quote 
org-caldav-insert-org-entry) (append eventdata ... (setq buf 
(current-buffer) 

Re: [O] [Bug] test-org-export/before-parsing-hook

2013-01-30 Thread Achim Gratz
Bastien writes:
 Testing current Org fails with this backtrace (the culprit seems to be
 calling looking-at with an argument of nil):

 FWIW I cannot reproduce the problem.  Can you?  

Aside from the fact that Eric's last commit broke compilation of all of
Org and I had to back it out, yes I can.  Here's my config (in other
words the new exporter is active, otherwise that test may not even be
run):

= Additional files from contrib/lisp
org-man.el org-export.el org-e-icalendar.el org-e-latex.el org-e-groff.el 
org-e-man.el org-e-html.el org-e-texinfo.el org-e-publish.el org-e-beamer.el 
org-e-odt.el org-e-confluence.el org-e-ascii.el
= Org version
make:  Org-mode version 7.9.3d (release_7.9.3d-913-gff2d37 = 
/usr/local/share/emacs/site-lisp/org)



Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] org-caldav issue: Search failed: ;\\([A-Za-z0-9-]+\\)=

2013-01-30 Thread giles
In addition to the back trace I've just posted, one thought springs to
mind given the regex search: My appointments feature a number of Norwegians
whose names contain å, ø: non-ascii characters.  May not be relevant but
...

-- 
Giles Chamberlin




Re: [O] How to improve Org startup time?

2013-01-30 Thread Achim Gratz
Sebastien Vauban writes:
 These are the means over a couple of tests. But the maximum variance (over
 that small number of tests) is only about 0.04 s -- in powered mode.

File operations on Windows _are_ slow to start with and since a virus
scanner is more or less required these days, opening a file is getting
slower yet.


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

Wavetables for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables




Re: [O] [Bug] test-org-export/before-parsing-hook

2013-01-30 Thread Nicolas Goaziou
Hello,

Achim Gratz strom...@nexgo.de writes:

 Aside from the fact that Eric's last commit broke compilation of all of
 Org and I had to back it out, yes I can.  Here's my config (in other
 words the new exporter is active, otherwise that test may not even be
 run):

 = Additional files from contrib/lisp
 org-man.el org-export.el org-e-icalendar.el org-e-latex.el org-e-groff.el 
 org-e-man.el org-e-html.el org-e-texinfo.el org-e-publish.el org-e-beamer.el 
 org-e-odt.el org-e-confluence.el org-e-ascii.el
 = Org version
 make:  Org-mode version 7.9.3d (release_7.9.3d-913-gff2d37 =
 /usr/local/share/emacs/site-lisp/org)

Could you try this test instead? I don't trust `org-map-entries'.

#+begin_src emacs-lisp
(ert-deftest test-org-export/before-parsing-hook ()
  Test `org-export-before-parsing-hook'.
  (should
   (equal Body 1\nBody 2\n
  (org-test-with-backend test
(org-test-with-temp-text * Headline 1\nBody 1\n* Headline 2\nBody 
2
  (let ((org-export-before-parsing-hook
 '((lambda (backend)
 (goto-char (point-min))
 (while (re-search-forward org-outline-regexp-bol nil t)
   (delete-region
(point-at-bol) (progn (forward-line) (point
(org-export-as 'test)))
#+end_src


Regards,

-- 
Nicolas Goaziou



Re: [O] [Bug] test-org-export/before-parsing-hook

2013-01-30 Thread Achim Gratz
Nicolas Goaziou writes:
 Could you try this test instead? I don't trust `org-map-entries'.

This works.  Is this an indication that org-map-entries is buggy?


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] [Bug] test-org-export/before-parsing-hook

2013-01-30 Thread Nicolas Goaziou
Achim Gratz strom...@nexgo.de writes:

 Nicolas Goaziou writes:
 Could you try this test instead? I don't trust `org-map-entries'.

 This works.  Is this an indication that org-map-entries is buggy?

It is more that this function does too much things behind the scenes
(like calling `org-agenda-prepare-buffers') to be reliable in a test
environment.

Thank you for reporting the problem. I commit the new test at once.


Regards,

-- 
Nicolas Goaziou



Re: [O] no pdf-output in lilypond code blocks

2013-01-30 Thread Achim Gratz
Bastien writes:
 Hi Florian,

 Florian Beck f...@miszellen.de writes:

 I can live with setting `ly-gen-pdf', but maybe something like

 (pcase (file-name-extension out-file)
 (pdf --pdf )
 (ps --ps )
 (png --png )
 (t --png ))

 would be even better?

 Indeed.  This is now the case, thanks!

This would be a bug, I believe you should use backquotes on the string
constants if indeed pcase should wend its way into Org (this would be
the only place using it):

(pcase (file-name-extension out-file)
(`pdf --pdf )
(`ps --ps )
(`png --png )
(t --png ))

But wouldn't something like

(or (cdr (assoc (file-name-extension out-file)
'((pdf . --pdf )
  (ps . --ps )
  (png . --png 
--png )

work just as well?


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

SD adaptations for KORG EX-800 and Poly-800MkII V0.9:
http://Synth.Stromeko.net/Downloads.html#KorgSDada




Re: [O] can babel results show time of evaluation?

2013-01-30 Thread Eric Schulte
Nicolas Goaziou n.goaz...@gmail.com writes:

 Hello,

 Eric Schulte schulte.e...@gmail.com writes:

 I've just pushed this functionality up to the main branch.  To make use
 of it add the following to your Emacs config.

   (setq org-babel-hash-show-time t)

 It works for me in some simple tests, and I can confirm that with this
 variable set to nil, I get no new failures in the Org-mode test suite,
 so it shouldn't introduce any problems.

 Well, it breaks the parser, somehow. Indeed, it expects from an
 affiliated keyword such as #+results: (or #+caption for that matter) to
 have only one secondary value. Sexp representation of these keywords is
 already very complicated, it will not help to add values ad nauseum.

 Also, if you use Org time-stamp syntax, at some point, someone will ask
 the parser to be able to parse it. And it won't.

 Eventually, it doesn't help to have hash syntax match Org links. This is
 confusing.

 Therefore, if this feature really has to be introduced, I suggest, at
 the very least, to avoid using Org regular syntax for the reference to
 time. It would also help to blur distinction between the time and the
 hash string. Perhaps something like the following:

   #+results[2013-01-30T20:15:37 hash-string]: name

 Thank you.


Are there instances aside from #+results where one would want to pack
ancillary information into a keyword?

Perhaps both the hash and the time should be moved *outside* the
keyword, e.g. something like the following,

#+Results: name time hash

What do you think?



 Regards,

-- 
Eric Schulte
http://cs.unm.edu/~eschulte



Re: [O] can babel results show time of evaluation?

2013-01-30 Thread Eric Schulte
Bastien b...@altern.org writes:

 Hi Eric,

 Eric Schulte schulte.e...@gmail.com writes:

 I've just pushed this functionality up to the main branch.  To make use
 of it add the following to your Emacs config.

   (setq org-babel-hash-show-time t)

 Well, the patch breaks master, because of (defvar org-ts-regexp).


Oh, my apologies.  So this is a defconst not a defvar.


 Can you fix this?


As a temporary fix, I put the full defconst invocation into ob-core.el,
but this can't be the best solution.

What's the best practice for how to use a defconst defined in an
external file (when you can't require that file because that file
requires you)?

Thanks,

-- 
Eric Schulte
http://cs.unm.edu/~eschulte



Re: [O] no pdf-output in lilypond code blocks

2013-01-30 Thread Florian Beck
Achim Gratz strom...@nexgo.de writes:

 This would be a bug, I believe you should use backquotes on the string
 constants 

I don't think so. The string evaluates to itself or am I missing
something?

The real (but harmless) bug is

 (t --png ))
should be (_ --png ))

-- 
Florian Beck



Re: [O] can babel results show time of evaluation?

2013-01-30 Thread Achim Gratz
Eric Schulte writes:
 What's the best practice for how to use a defconst defined in an
 external file (when you can't require that file because that file
 requires you)?

Putting all definitions into a separate leaf file that can then be
required from everywhere with impunity.  Bastien doesn't like this idea,
so the only way out would be autoloading such symbols, but of course
autoloading a defconst is just a glorified way to put its definition in
a leaf file.


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

Factory and User Sound Singles for Waldorf rackAttack:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds




Re: [O] can babel results show time of evaluation?

2013-01-30 Thread Nicolas Goaziou
Eric Schulte schulte.e...@gmail.com writes:

 Are there instances aside from #+results where one would want to
 pack ancillary information into a keyword?

So far, only #+results and #+caption (for the short caption) are
concerned. See `org-element-dual-keywords' for some more details.

 Perhaps both the hash and the time should be moved *outside* the
 keyword, e.g. something like the following,

 #+Results: name time hash

 What do you think?

I think the hash string is fine where it is since there's already
a keyword category for such constructs. It's even handy in the case of
captions. It would be better if we don't overload this location, though.

As far as the parser goes, both

#+results[mix-time-and-hash]: name

and

#+results[hash]: name time

are fine, as long as time isn't, as already explained, exactly an Org
timestamp. The latter is perhaps more elegant. I guess it depends on how
important the time information is. Anyway, use whichever suits you.


Regards,

-- 
Nicolas Goaziou



Re: [O] org-caldav issue: Search failed: ;\\([A-Za-z0-9-]+\\)=

2013-01-30 Thread David Engster
'giles' writes:
 David Engster d...@randomsample.de writes:
 Could you please do M-x toggle-debug-on-error before running the sync
 and post the resulting backtrace here?

 Slightly different behaviour this time: first seven events synced fine,
 number 8 blew up the same way.

 Debugger entered--Lisp error: (search-failed ;\\([A-Za-z0-9-]+\\)=)
   re-search-forward(;\\([A-Za-z0-9-]+\\)= nil nil)
   icalendar--read-element(VEVENT nil)
   icalendar--read-element(VCALENDAR nil)
   icalendar--read-element(nil nil)

There must be something weird with the events you have. Could be that
it's the special characters you mentioned, but I'm afraid I'll need to
see the event which triggers this.

I just pushed a change to org-caldav which introduces the option for
excessive debug output. Please pull the new version and do

(setq org-caldav-debug-level 2)

before running org-caldav-sync. The iCalendar events will then be put
fully into the *org-caldav-debug-buffer*. Please send me the event which
triggers this bug; it should simply be the last one you see in there.
You can also send me the whole buffer, of course, but *please* remember
to edit/delete any private data from these events you don't want me to
see. I'd also recommend to send it directly to me and not to the list.

-David



Re: [O] no pdf-output in lilypond code blocks

2013-01-30 Thread Achim Gratz
Florian Beck writes:
 I don't think so. The string evaluates to itself or am I missing
 something?

If it would fall under SELFQUOTING then yes (but I really don't
understand what the doc string is trying to tell me there and what would
be used for comparison).  It seems that a string constant is not
self-quoting during compilation (the byte-compiler complains about an
Unknown upattern `pdf'), most likely due to the pre-expansion of the
macro before compilation.  Also the string constant pdf compiled ionto
the code can not necessarily match itself when compared to a string
stored in a variable, although at least in interpretation mode this
works.  On the other hand a backquoted QPattern where QPattern is a
STRING(constant) does use equal for comparison and this is what we
want, plus the bytecompiler seems to like that form better than the
first.

Anyway, pcase is nice when you need it, but in this case I'm not
convinced its worth the trouble.  It doesn't even put enough syntactic
sugar on it to make the code more readable.


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

Samples for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra




Re: [O] [new exporter] adhere org-export-date-timestamp-format?

2013-01-30 Thread Nicolas Goaziou
Hello,

Bastien b...@altern.org writes:

 Though, I think I have to withdraw my proposal about using #+DATE: value
 as a time format string. Indeed, date value, along with any document
 property, is parsed, which defeats the purpose of using it as a format
 string.

 We can still implement a convenient macro to handle timestamps in date
 keyword.

 What do you think?

 Up to whatever you find more practical.

I have added `org-e-latex-date-format', which can be set to a time
format string. When the #+DATE: value consists in a single timestamp, it
will be applied to format that timestamp. Otherwise it will be ignored.


Regards,

-- 
Nicolas Goaziou



[O] Some advice on how to use babel to generate cisco configs

2013-01-30 Thread Bart Bunting
Good morning,

I have been trying to figure out without much luck how to use babel to
generate some cisco configs.


What I would like to achieve is to have a table containing a few values,
e.g. ip address vlan number etc.

Then have a cisco config in the org file with markers where the
substitutions are to be inserted.
Run through the table and create a node in the org file one for each row
of the table.

The end result should be a set of cisco configs with the substitutions
made.  I was hoping to also use shell to call pwgen to generate a
random password to insert.
  
Hope that ramble made some sort of sence.

Can someone give me some ideas on how to put this together?

I tried to use an org source block and a shell function to parse it.  I
couldn't quite tie together how to get the output to work correctly or
how to be able to parse each line


Kind regards

Bart
-- 


Kind regards

Bart



Re: [O] Macro question with new texinfo exporter

2013-01-30 Thread Nicolas Goaziou
Bastien b...@altern.org writes:

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

 Supporting old syntax is a bit tricky. Perhaps something like:

   - Find the first one to appear between comma and quote:
 - if it is a comma, use old syntax
 - in any other case, use new syntax.

 Sounds good to me.

OTOH, the change will happen during a major release. Moreover macros
belong to an export framework which have been totally rewritten. Must we
cope with backward compatibility in this case ?


Regards,

-- 
Nicolas Goaziou



Re: [O] How to improve Org startup time?

2013-01-30 Thread Sebastien Vauban
Hi Bastien,

Bastien wrote:
 put your .emacs on diet :) More seriously, I would start by checking
 org-agenda-to-appt documentation. It should be on your system. If it is not,
 check online.

I tried to filter to only timestamp entries with the following:

#+begin_src emacs-lisp
  (org-agenda-to-appt nil nil '(:timestamp))
#+end_src

But that does not work -- no error, but no event added to the appt list!

I must not understand the rest parameter, I guess.

 That's what really slows down your config.

Yes and no.

Yes, because it's currently run at startup time, even if I put that command
inside an eval-after-load org-agenda (as `org-agenda' is ultimately called
when `org-clock-persist' is set).

No, because no running that does not change the fact that, sooner or later,
the Org agenda files will have to be loaded and scanned through.

Not having that done at startup simply _add_ another 16 seconds delay to the
computation of the first agenda view; not a gain IMO.

 Then, when this is done, I would try to use only those hooks that are really
 necessary.

Are you referring to something in particular?

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] How to improve Org startup time?

2013-01-30 Thread Sebastien Vauban
Hi Achim,

Achim Gratz wrote:
 Sebastien Vauban writes:
 These are the means over a couple of tests. But the maximum variance (over
 that small number of tests) is only about 0.04 s -- in powered mode.

 File operations on Windows _are_ slow to start with and since a virus
 scanner is more or less required these days, opening a file is getting
 slower yet.

You may be right, but I guess that I'm not alone using Windows 8, so my
performance observations must be shared by others as well. It may even be
worse for some who have more Org files, and a less powerful computer.

So, I'm trying to think what could be done to split the full Org load time
(loading the packages, loading the Org agenda files, scanning them, computing
an agenda view, etc.) into smaller chunks, that the user would experience
depending on his current actions.

For example, why do all the Org agenda files have to be loaded when I'm simply
opening a plain common (I mean: not part of the agenda) Org file?

I don't know if that's possible (or maybe it's already done so), but the
opposite question could make sense: why would have Org agenda buffers to be
fully fontified when the only useful information for building an agenda view
is the time information the entries contain (deadline, scheduled,
timestamp).

Hence, my initial request for information:

 I would like to have:

 - the minimal Org config loaded when opening any .org file; IOW, certainly
   not the agenda files!

 - all files in `org-agenda-files' when calling any agenda view (C-c a ...)

 - the current clocked file when resume Org's clock mechanism.

 I'm ready to look at where to cut branches of the Org tree, if that does
 make sense to you. Does it?

on which I had no comment.

Best regards,
  Seb

--
Sebastien Vauban




[O] babel: setting :cmdline header arg for sql blocks

2013-01-30 Thread Gary Oberbrunner
To run mysql code in org-mode (which by the way is pretty incredible that
this works at all, and so beautifully, especially since I'm on Windows), I
have to have a long header:

#+BEGIN_SRC sql :exports both :results value :engine mysql :cmdline -h
XXX.YYY.XXX.YYY -u user -ppassword -D database

I'd like to put all those flags in one place so I only need to say
#+BEGIN_SRC sql (and maybe the exports/results).   If I put them in
PROPERTY tags at the end of the buffer:

#+PROPERTY: exports both
#+PROPERTY: results value
#+PROPERTY: engine mysql
#+PROPERTY: cmdline -h XXX.YYY.XXX.YYY -u user -ppassword -D database

then exporting no longer works, I presume because the exporter doesn't like
:cmdline or :exports or :results or something else about me setting these
globally.

Is there a way to set them for sql blocks only?  Or some kind of macro I
can use to tidy up my sql blocks?

(I'm running recent git org-mode from a couple of weeks ago, Emacs
24.3.50.1, Windows)


-- 
Gary


Re: [O] [new exporter] adhere org-export-date-timestamp-format?

2013-01-30 Thread Rasmus
Nicolas Goaziou n.goaz...@gmail.com writes:
q
 Hello,

 Bastien b...@altern.org writes:

 Though, I think I have to withdraw my proposal about using #+DATE:
 value
 as a time format string. Indeed, date value, along with any
 document
 property, is parsed, which defeats the purpose of using it as a
 format
 string.

 We can still implement a convenient macro to handle timestamps in
 date
 keyword.

 What do you think?

 Up to whatever you find more practical.

 I have added `org-e-latex-date-format', which can be set to a time
 format string. When the #+DATE: value consists in a single timestamp,
 it
 will be applied to format that timestamp. Otherwise it will be
 ignored.

Very cool!  I'll check it. 

-- 
When the facts change, I change my mind. What do you do, sir?




Re: [O] (no subject) How to sort agenda by timestamps (scheduled/deadline)?

2013-01-30 Thread Bernt Hansen
Martin Beck elwood...@web.de writes:

 Bernt Hansen bernt at norang.ca writes:

 
 Martin Beck elwood151 at web.de writes:
 
  I'm trying to create a custom agenda setup for my org-mode and I wonder how
 I can sort the agenda-items by
 date (Scheduled
  or deadline): newest first.
 
  I only found time-up / time-down in the parameters, but that does not seem
 to do what I need.
  ...
 
 Hi Martin,
 
 I sort my daily agenda items specifically using a bunch of complicated
 sorting functions.  They are all documented here:
 
 http://doc.norang.ca/org-mode.html#AgendaViewTweaks
 
 HTH,
 Bernt
 
 

 Hi Bernt,

 thanks a lot - I'm already working with your setup and currently struggling to
 adapt it to my needs, but my elisp/emacs/org-mode knowledge is still too 
 limited.

 Is it true that time-up only sorts items which really have a time
 (hours/minutes) defined, so it does not also sort everything with
 date-timestamps by date?

Hi Martin,

From 

,[ C-h v org-agenda-sorting-strategy ]
| time-upPut entries with time-of-day indications first, early first
| time-down  Put entries with time-of-day indications first, late first
`

time-up should sort items with a date stamp and time with earlier times
first followed by later times.  time-down is the opposite.  I don't
think this has anything to do with durations.  Yes it only seems to
affect entries with a time component.  On today's daily agenda if I set
org-agenda-sorting-strategy to only be time-up then the grid is at the
to of the agenda followed by all of the other entries.  Any entries with
a time are interspersed in the grid.

With time-down the grid is in reverse at the bottom of the agenda.


 I tried to modify your Block Agenda by inserting the following block:

 (tags-todo PRIORITY=\A\ (
   (org-agenda-overriding-header Critical)
   (org-agenda-entry-types '(:deadline))
   (org-agenda-sorting-strategy (quote (time-up category-keep)))
   (org-agenda-todo-ignore-scheduled 'future)
   (org-agenda-todo-ignore-deadlines 'future)
   ))

 But unfortunately, it does only display category, TODO-keyword and subject, 
 but
 NO information about Deadline or Scheduled date.

 Ho could I insert this additional column in the agenda view?

I can't make it work in the block agenda but as a standalone agenda does
this help?

--8---cut here---start-8---
  (x test tags-todo PRIORITY=\A\ 
   ((org-agenda-overriding-header Critical)
(org-agenda-entry-types '(:deadline))
(org-columns-default-format %10CATEGORY(Category) 
%60ITEM(Task) %15DEADLINE(Deadline) %15SCHEDULED(Scheduled))
(org-agenda-view-columns-initially t)
(org-agenda-sorting-strategy (quote (time-up category-keep)))
(org-agenda-todo-ignore-scheduled 'future)
(org-agenda-todo-ignore-deadlines 'future)))
--8---cut here---end---8---

This starts the agenda in column mode and shows category, task,
deadline, scheduled dates.

'q' exits column mode.

In the block agenda if you turn on column mode with C-c C-x C-c you get
the same information for all tasks in the agenda

It's probably not exactly what you were looking for...

Regards,
Bernt



Re: [O] About range references in the spreadsheet

2013-01-30 Thread Eric S Fraga
Bastien b...@altern.org writes:

 Hi Xue, Eric and Dieter,

 die...@duenenhof-wilhelm.de (H. Dieter Wilhelm) writes:

 (I would avoid the ambiguous expression column two since it is a
 relative specification) alternatively

   The TWO REFERENCES expand to a field range from the row above the
   current row, starting with two columns to the left up to the current
   column.

 Yes... but this is a bit long.

 I finally used this:

 @@-1$-2..@@-1   @r{in the first row up, 3 fields from 2 columns on the left}

Concise and correct!  I'm happy with this.

-- 
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.3.50.1 and Org release_7.9.3d-898-g005917




Re: [O] Macro question with new texinfo exporter

2013-01-30 Thread Thomas S. Dye
Nicolas Goaziou n.goaz...@gmail.com writes:

 Bastien b...@altern.org writes:

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

 Supporting old syntax is a bit tricky. Perhaps something like:

   - Find the first one to appear between comma and quote:
 - if it is a comma, use old syntax
 - in any other case, use new syntax.

 Sounds good to me.

 OTOH, the change will happen during a major release. Moreover macros
 belong to an export framework which have been totally rewritten. Must we
 cope with backward compatibility in this case ?

Perhaps make macro expansion conditional on old/new exporter, rather
than the form of the macro?

Tom

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



Re: [O] How to improve Org startup time?

2013-01-30 Thread Bastien


Sebastien Vauban
wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org writes:

 Plus, from the speed comparisons I had done once, I felt the difference as
 being completely marginal.

FWIW this is also what I observed, I don't compile anymore.

-- 
 Bastien




Re: [O] How to improve Org startup time?

2013-01-30 Thread Eric S Fraga
Sebastien Vauban wxhgmqzgw...@spammotel.com writes:

 Hello,

 Please find here an enriched log of the packages which are loaded for Org, and
 the time it takes.

 [2013-01-29 21:20:18] (info) +- Requiring `appt'...
 [2013-01-29 21:20:18] (info)   +- Requiring `diary-lib'...
 [2013-01-29 21:20:18] (info) +- Requiring `calendar'...

Seb,

how do you get this output?  It looks very useful!

In terms of the actual topic of this thread, I can say that the recent
changes to org for startup have led to a significant decrease in my
emacs startup time.  Thanks to all that have done this!

-- 
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.3.50.1 and Org release_7.9.3d-917-gb9c506




Re: [O] org-tree-slide: some small changes

2013-01-30 Thread Eric S Fraga
Takaaki ISHIKAWA tak...@ieee.org writes:

 Feel free to request additional features.

Takaaki,

a few minor suggestions, and I mean *minor*, in case you get bored and
want to work on org-tree-slide mode ;-) :

- I would prefer if the title were shown as is, i.e. without adding
  []s.  If I want []s around the title, I can add them myself to the
  title.

- It would be nice to have a different customisable face used for the
  author, date, email line.

- Could the slide mode be configured to ignore subtrees with commented
  headings?  I often create various sections and then comment everything
  out (using =C-c ;=) except those sections that I would like
  presented.  You have something similar already for DONE items so an
  equivalent =org-tree-slide-skip-comments= configuration would be
  great!

But, as I said, these are minor.  The mode works very well as is.

thanks,
eric

-- 
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.3.50.1 and Org release_7.9.3d-917-gb9c506




Re: [O] How to improve Org startup time?

2013-01-30 Thread Eric S Fraga
Daniel Clemente n142...@gmail.com writes:

   If you are worried about speed, you should always byte-compile, because 
 it's easy and byte-compiled code is faster.
   Just do a make after each git pull.

I do compile org but I do not compile any of my start-up files; this is
a practice I got into when I was running different versions of emacs
(e.g. 22 vs 23 vs 24) on different systems (from a wee N800 to a huge
multi-core system) but with shared startup files.

I say this in case the speedups I am observing are more noticeable if
using non-compiled code and others are wondering why they don't observe
any speedups.

-- 
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.3.50.1 and Org release_7.9.3d-917-gb9c506




Re: [O] How to improve Org startup time?

2013-01-30 Thread Eric S Fraga
Some timings on a 3-4 (?) year old netbook with Intel N450 Atom @1.66GHz
dual core powered:

With old org, actually from October 2012 (!) as this system acts as a
cloud server for me so I don't actually use it interactively much:

| org-agenda-to-appt |   1 | 12.525722775  | 12.525722775  |
| org-agenda-prepare-buffers |   2 | 10.719484861  |  5.3597424305 |
| org-agenda-get-day-entries |  15 |  1.4113181819 |  0.0940878787 |
| org-agenda-get-scheduled   |  15 |  1.032943071  |  0.0688628714 |
| org-agenda-get-deadlines   |  14 |  0.2688785840 |  0.0192056131 |
| org-agenda-skip| 797 |  0.1879489969 |  0.0002358205 |

and with up to date org as of a few minutes ago:

| org-agenda-to-appt |   1 | 9.168879079  | 9.168879079  |
| org-agenda-prepare-buffers |   2 | 8.1717637810 | 4.0858818905 |
| org-agenda-get-day-entries |  15 | 0.5261351449 | 0.0350756763 |
| org-agenda-get-deadlines   |  14 | 0.253867925  | 0.0181334232 |
| org-agenda-get-scheduled   |  15 | 0.1835072029 | 0.0122338135 |
| org-agenda-skip| 797 | 0.0482942050 | 6.059...e-05 |


 
I.e. an approximately 25% reduction in time overall so I think
org-agenda is significantly faster (okay, not orders of magnitude) but
the time taken is dominated by org-agenda-prepare-buffers on this
system.

However, more interestingly, on a 1 year old desktop computer Intel Core
i5-2500 @ 3.30 GHz, I get very different behaviour:

| org-agenda-to-appt |   1 | 0.182718048  | 0.182718048  |
| org-agenda-get-day-entries |  14 | 0.095832824  | 0.0068452017 |
| org-agenda-prepare-buffers |   1 | 0.086104933  | 0.086104933  |
| org-agenda-get-scheduled   |  14 | 0.067475949  | 0.0048197106 |
| org-agenda-skip| 794 | 0.0475198030 | 5.984...e-05 |
| org-agenda-get-deadlines   |  14 | 0.014998552  | 0.0010713251 |

[note: slightly different agenda files as the cloud server copy of my
agenda files is a couple of hours behind my desktop]

Notice the big change in org-agenda-prepare-buffers relative to the
other calls.  Disk performance is almost likely the key here and I think
the recent improvements are quite dramatic but I haven't had a chance to
time these yet.

-- 
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.3.50.1 and Org release_7.9.3d-917-gb9c506




Re: [O] orgstruct-mode with custom headline prefix

2013-01-30 Thread Christopher Schmidt
Christopher Schmidt christop...@ch.ristopher.com writes:
 here is a patch for master that enables the use of a custom headline
 prefix file locally in conjunction with orgstruct-mode.

Here is the patch, now applying cleanly on master again.
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -4437,9 +4437,9 @@ in `org-agenda-text-search-extra-files'.
 	  regexps+))
   (setq regexps+ (sort regexps+ (lambda (a b) ( (length a) (length b)
   (if (not regexps+)
-	  (setq regexp org-outline-regexp-bol)
+	  (setq regexp (org-outline-regexp-bol))
 	(setq regexp (pop regexps+))
-	(if hdl-only (setq regexp (concat org-outline-regexp-bol .*?
+	(if hdl-only (setq regexp (concat (org-outline-regexp-bol) .*?
 	  regexp
   (setq files (org-agenda-files nil 'ifmode))
   (when (eq (car org-agenda-text-search-extra-files) 'agenda-archives)
@@ -5018,10 +5018,10 @@ of what a project is and how to check if it stuck, customize the variable
 			  \\)\\))
 	 (tags (nth 2 org-stuck-projects))
 	 (tags-re (if (member * tags)
-		  (concat org-outline-regexp-bol
+		  (concat (org-outline-regexp-bol)
 			  (org-re .*:[[:alnum:]_@#%]+:[ \t]*$))
 		(if tags
-			(concat org-outline-regexp-bol
+			(concat (org-outline-regexp-bol)
 .*:\\(
 (mapconcat 'identity tags \\|)
 (org-re \\):[[:alnum:]_@#%:]*[ \t]*$)
@@ -5547,7 +5547,7 @@ Do we have a reason to ignore this TODO entry because it has a time stamp?
 	  category (org-get-category b0)
 	  category-pos (get-text-property b0 'org-category-position))
 	(save-excursion
-	  (if (not (re-search-backward org-outline-regexp-bol nil t))
+	  (if (not (re-search-backward (org-outline-regexp-bol) nil t))
 	  (throw :skip nil)
 	(goto-char (match-beginning 0))
 	(if (and (eq t org-agenda-skip-timestamp-if-deadline-is-shown)
@@ -5785,7 +5785,7 @@ please use `org-class' instead.
 		 (clockp
 		  (and (looking-at .*\n[ \t]*-[ \t]+\\([^-\n \t].*?\\)[ \t]*$)
 		   (match-string 1)
-	  (if (not (re-search-backward org-outline-regexp-bol nil t))
+	  (if (not (re-search-backward (org-outline-regexp-bol) nil t))
 	  (throw :skip nil)
 	(goto-char (match-beginning 0))
 	(setq hdmarker (org-agenda-new-marker)
@@ -6249,7 +6249,7 @@ FRACTION is what fraction of the head-warning time has passed.
 		(setq marker (org-agenda-new-marker (point)))
 		(setq category (org-get-category)
 		  category-pos (get-text-property (point) 'org-category-position))
-		(if (not (re-search-backward org-outline-regexp-bol nil t))
+		(if (not (re-search-backward (org-outline-regexp-bol) nil t))
 		(throw :skip nil)
 		  (goto-char (match-beginning 0))
 		  (setq hdmarker (org-agenda-new-marker (point))
--- a/lisp/org-ascii.el
+++ b/lisp/org-ascii.el
@@ -422,7 +422,7 @@ publishing directory.
 
 (org-init-section-numbers)
 (while (setq line (pop lines))
-  (when (and link-buffer (string-match org-outline-regexp-bol line))
+  (when (and link-buffer (string-match (org-outline-regexp-bol) line))
 	(org-export-ascii-push-links (nreverse link-buffer))
 	(setq link-buffer nil))
   (setq wrap nil)
--- a/lisp/org-colview-xemacs.el
+++ b/lisp/org-colview-xemacs.el
@@ -858,7 +858,7 @@ around it.
 	  (save-restriction
 	(narrow-to-region beg end)
 	(org-clock-sum
-  (while (re-search-forward org-outline-regexp-bol end t)
+  (while (re-search-forward (org-outline-regexp-bol) end t)
 	(if (and org-columns-skip-archived-trees
 		 (looking-at (concat .*: org-archive-tag :)))
 	(org-end-of-subtree t)
@@ -1093,7 +1093,7 @@ Don't set this, this is meant for dynamic scoping.)
 (defun org-columns-compute (property)
   Sum the values of property PROPERTY hierarchically, for the entire buffer.
   (interactive)
-  (let* ((re org-outline-regexp-bol)
+  (let* ((re (org-outline-regexp-bol))
 	 (lmax 30) ; Does anyone use deeper levels???
 	 (lvals (make-vector lmax nil))
 	 (lflag (make-vector lmax nil))
--- a/lisp/org-colview.el
+++ b/lisp/org-colview.el
@@ -717,7 +717,7 @@ When COLUMNS-FMT-STRING is non-nil, use it as the column format.
 	  (save-restriction
 	(narrow-to-region beg end)
 	(org-clock-sum-today
-  (while (re-search-forward org-outline-regexp-bol end t)
+  (while (re-search-forward (org-outline-regexp-bol) end t)
 	(if (and org-columns-skip-archived-trees
 		 (looking-at (concat .*: org-archive-tag :)))
 	(org-end-of-subtree t)
@@ -952,7 +952,7 @@ Don't set this, this is meant for dynamic scoping.)
 (defun org-columns-compute (property)
   Sum the values of property PROPERTY hierarchically, for the entire buffer.
   (interactive)
-  (let* ((re org-outline-regexp-bol)
+  (let* ((re (org-outline-regexp-bol))
 	 (lmax 30) ; Does anyone use deeper levels???
 	 (lvals (make-vector lmax nil))
 	 (lflag (make-vector lmax nil))
--- a/lisp/org-docbook.el
+++ b/lisp/org-docbook.el
@@ -652,7 +652,7 @@ publishing directory.
 	(catch 'nextline
 
 	  ;; End of quote section?
-	  

Re: [O] orgstruct-mode with custom headline prefix

2013-01-30 Thread Bastien
Hi Christopher,

Christopher Schmidt christop...@ch.ristopher.com writes:

 Here is the patch, now applying cleanly on master again.

I did not have time to try the patch yet.

Can you give an indication on how it impacts the generation
of agenda?  This is a potential blocker.

Also, we won't be able to apply such a change until you
assign your copyright to the FSF.  I'm not asking you to
go through this now because I'm not sure we should apply
the patch, but just to let you know.

Thanks,

-- 
 Bastien