[O] Agenda custom command problems

2012-02-27 Thread James Harkins
Hi,

Two questions about agenda custom commands.

1. I've defined a few custom agenda commands, but the only one that actually 
appears in the agenda dispatcher is 'z'. If I open Emacs and immediately C-h v 
org-agenda-custom-commands, it says:

Its value is 
((z tags-todo -ExamFdbk))

But... The following block is one of the arguments to custom-set-variables in 
my ~/.emacs. I used the customize interface to create the custom commands.

 '(org-agenda-custom-commands (quote ((z tags-todo -ExamFdbk nil) (1 
Course-related TODOs tags-todo 
+AudioClass|Lesson|MyConcert|Workshop11-Wk11plugs-Wk11Docs nil) (2 Spring 
semester TODOs tags-todo -Wk11plugs-Wk11Docs ((org-agenda-files (quote 
(~/Documents/xinghai/11-12-spring/semester-spr.org))) 
(org-agenda-sorting-strategy (quote (time-up

If I manually execute the entire custom-set-variables block, after that, C-h v 
shows the complete value.

Quite funny... it's all there, but Emacs doesn't process it during startup...? 
I've never seen that before with any other customize variable. All the other 
customize variables are set correctly.

Any ideas how to fix?

2. I would like command 2 to show a subset of the TODOs (based on tags) in 
one given file, sorted in order of time stamp. Everything is working except the 
sorting: (org-agenda-sorting-strategy '(time-up)) is so far not having any 
effect. The TODOs appear in the order of appearance in the file.

I need time stamp order to see at a glance what I need to do today vs tomorrow, 
etc.

(2 Spring semester TODOs tags-todo -Wk11plugs-Wk11Docs
  ((org-agenda-files
'(~/Documents/xinghai/11-12-spring/semester-spr.org))
   (org-agenda-sorting-strategy
'(time-up

How to make the sorting strategy apply to a tags-todo search?

(Sorry if these are boring questions... I'm not as deep into org as people who 
are contributing emacs-lisp on list :)  These are just things that seem like 
they should be working, according to the documentation, but they aren't.)

hjh


--
James Harkins /// dewdrop world
jamshar...@dewdrop-world.net
http://www.dewdrop-world.net

Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal.  -- Whitman

blog: http://www.dewdrop-world.net/words
audio clips: http://www.dewdrop-world.net/audio
more audio: http://soundcloud.com/dewdrop_world/tracks



[O] expire tag in Org-Mode HTML export

2012-02-27 Thread Stefan Vollmar
Hello,

we want to include a
META HTTP-EQUIV=EXPIRES CONTENT=0
entry in the HTML export of our Org pages to indicate that browsers should not 
cache the pages but rather reload them the next time.

This line should go into the head part of the HTML pages (otherwise #+html: 
would solve the problem) - how can we accomplish this in Org-mode?

Many thanks in advance.
Warm regards,
 Stefan
-- 
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleueler Str. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
E-Mail: voll...@nf.mpg.de   http://www.nf.mpg.de










smime.p7s
Description: S/MIME cryptographic signature


Re: [O] expire tag in Org-Mode HTML export

2012-02-27 Thread Bernt Hansen
Stefan Vollmar voll...@nf.mpg.de writes:

 Hello,

 we want to include a
 META HTTP-EQUIV=EXPIRES CONTENT=0
 entry in the HTML export of our Org pages to indicate that browsers
 should not cache the pages but rather reload them the next time.

 This line should go into the head part of the HTML pages (otherwise
 #+html: would solve the problem) - how can we accomplish this in
 Org-mode?

 Many thanks in advance.
 Warm regards,
  Stefan

Hi Stefan,

You might be able to stick it in the extra style variable like this

--8---cut here---start-8---
(setq org-export-html-style-extra
 meta HTTP-EQUIV=\EXPIRES\ CONTENT=\0\)
--8---cut here---end---8---

HTH,
Bernt



Re: [O] Habits in agenda view

2012-02-27 Thread Michael Brand
Hi Renger

Not sure why you want to skip habits in tags-todo, they should not
appear anyway. Try:

(s Agenda with Next and Habit as separated views
 ((agenda 
  ((org-habit-show-habits nil)))
  (tags-todo -WAIT/!NEXT
 ((org-agenda-overriding-header Next Tasks)
  (org-agenda-skip-function 'skip-projects-and-habits)
  (org-agenda-skip-function '(org-agenda-skip-entry-if
'notregexp \\[#A\\]))
  (org-agenda-todo-ignore-scheduled t)
  (org-agenda-todo-ignore-deadlines t)
  (org-tags-match-list-sublevels t)
  ))
  (agenda HABIT
  ((org-agenda-overriding-header Habits)
   (org-agenda-entry-types '(:scheduled))
   (org-agenda-skip-function
'(org-agenda-skip-entry-if 'notregexp :STYLE:.*habit))

See also this thread:
http://lists.gnu.org/archive/html/emacs-orgmode/2011-05/msg00665.html

Michael



[O] Export to manpage format

2012-02-27 Thread Karl Voit
Hi!

I only found [1] and wonder if there is an existing method to
produce manpage files from Org-mode files ...

  1. http://lists.gnu.org/archive/html/emacs-orgmode/2008-03/msg00056.html
-- 
Karl Voit




[O] Bug: Org-mode supress bold text and sub-trees when exporting to html [7.8.03]

2012-02-27 Thread Bruno Félix Rezende Ribeiro


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.


if you have a buffer with only following org code:

--
#+OPTIONS: *:t

Text 1
*Text 2*
Text 3
--

Bold Text 2 is suppressed when exporting to html, so you only can
see, in web browser, Text 1 as title and Text 3 as text body.
The '*' option value don't matter.  To fix it, it's sufficient to
delete line #+OPTIONS: *:t.  Why *Text 2* was suppressed in the
first case?

Similarly weird, if you have the org code:

--
#+OPTIONS: *:t

* Headline 1
  Text 1

** Headline 2
Text 2

* Headline 3
  Text 3
--

Then all, but Text 2 and subtree Headline 3, is suppressed in the html
output.  It's strange, but you can fix it with a comment with
only a '*' between #+OPTIONS: *:t line and first headline, like:

--
#+OPTIONS: *:t

#*

* Headline 1
  Text 1

** Headline 2
Text 2

* Headline 3
  Text 3
--

Deleting #+OPTIONS: *:t line, like in first example, works
too.  It isn't right.  Why it happens?


Emacs  : GNU Emacs 23.4.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2012-02-08 on felix-laptop
Package: Org-mode version 7.8.03

current state:
==
(setq
 org-log-done nil
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-todo-keyword-faces '((DOWNLOADING :foreground dark blue :weight bold)
  (ERROR :foreground red :weight bold))
 org-speed-command-hook '(org-speed-command-default-hook 
org-babel-speed-command-hook)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-footnote-section nil
 org-footnote-tag-for-non-org-mode-files nil
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-footnote-fill-after-inline-note-extraction t
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-tab-first-hook '(org-hide-block-toggle-maybe 
org-src-native-tab-command-maybe
  org-babel-hide-result-toggle-maybe)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer 
org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 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-preprocess-before-normalizing-links-hook 
'(org-remove-file-link-modifiers)
 org-email-link-description-format Email %c: %s
 org-mode-hook '(turn-on-auto-fill turn-on-font-lock
 #[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-emphasis-regexp-components '( ('\{ -   .,:!?;'\)}\\ 
\n,\' . 20)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-interblocks '((src org-babel-exp-non-block-elements))
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-occur-hook '(org-first-headline-recenter)
 org-export-preprocess-before-selecting-backend-code-hook 
'(org-beamer-select-beamer-code)
 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-metadown-hook '(org-babel-pop-to-session-maybe)
 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))
 )
-- 
 ,= ,-_-. =.  Bruno Félix Rezende Ribeiro (oitofelix)
((_/)o o(\_)) Uns o chamam de super-vaca...
 `-'(. .)`-'  Outros de hyper-touro...
 \_/  Eu o chamo simplesmente: meta-gnu!



Re: [O] expire tag in Org-Mode HTML export

2012-02-27 Thread Stefan Vollmar
Dear Bernt,

thanks for the quick reply - unfortunately, this does not solve our problem as 
org-export-html-style-extra is limited to style-related information. We would 
need something that allows extending the head block with another meta-tag, so 
org-export-html-preamble is already after the head-block and 
org-export-html-xml-declaration is before the head-block.

Warm regards,
 Stefan

On 27.02.2012, at 13:35, Bernt Hansen wrote:

 Stefan Vollmar voll...@nf.mpg.de writes:
 
 Hello,
 
 we want to include a
 META HTTP-EQUIV=EXPIRES CONTENT=0
 entry in the HTML export of our Org pages to indicate that browsers
 should not cache the pages but rather reload them the next time.
 
 This line should go into the head part of the HTML pages (otherwise
 #+html: would solve the problem) - how can we accomplish this in
 Org-mode?
 
 Many thanks in advance.
 Warm regards,
 Stefan
 
 Hi Stefan,
 
 You might be able to stick it in the extra style variable like this
 
 --8---cut here---start-8---
 (setq org-export-html-style-extra
 meta HTTP-EQUIV=\EXPIRES\ CONTENT=\0\)
 --8---cut here---end---8---
 
 HTH,
 Bernt

-- 
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleueler Str. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
E-Mail: voll...@nf.mpg.de   http://www.nf.mpg.de










smime.p7s
Description: S/MIME cryptographic signature


Re: [O] mlorg : yet another parser for org-mode (Written in OCaml contained in org-mode files)

2012-02-27 Thread Alan Schmitt
On 26 févr. 2012, at 17:41, Simon Castellan wrote:

 I have been writing a parser for mlorg files in OCaml. This started as an
 experiment to see if the literate programming mode of org-mode could scale to 
 a
 full application (among other things).

This looks very interesting, and would very much help in the dissemination of 
org-mode. Have you thought of announcing it on the caml mailing list?

Alan


Re: [O] mlorg : yet another parser for org-mode (Written in OCaml contained in org-mode files)

2012-02-27 Thread Simon Castellan
On lun. 27/févr. (15:27), Alan Schmitt wrote:
 On 26 févr. 2012, at 17:41, Simon Castellan wrote:
 
  I have been writing a parser for mlorg files in OCaml. This started as an
  experiment to see if the literate programming mode of org-mode could scale 
  to a
  full application (among other things).
 
 This looks very interesting, and would very much help in the dissemination of 
 org-mode. Have you thought of announcing it on the caml mailing list?
 
 Alan

I have but prefer to wait mlorg to be more complete. This post was meant mainly
to gather info/document about org's syntax. (But as I said feedbacks welcome.)

Simon.



Re: [O] worg wrong link?

2012-02-27 Thread Bastien
Hi Rustom,

Rustom Mody rustompm...@gmail.com writes:

 In http://orgmode.org/worg/org-tutorials/
 non-beamer-presentations.html#sec-3
 the 'here' (emacs code available here under Code and usage for
 org-export-as-s5) points to
 http://gitweb.adaptive.cs.unm.edu/org-S5.git/blob_plain/HEAD:/
 org-export-as-s5.el
 (where theres nothing about emacs/org mode)

 Should probably point here https://github.com/eschulte/org-S5??

I fixed this link - it now points at
https://github.com/eschulte/org-S5/blob/master/org-export-as-s5.el

Thanks for spotting this!

-- 
 Bastien



[O] Export to multiple HTML files?

2012-02-27 Thread Avdi Grimm
Is there a way to export a single Org file to a bunch of HTML files,
one for each heading of a given level? E.g. the way the Org manual is
presented at http://orgmode.org/manual ? (yes, I realize that's Info
not org-mode)I thought I remembered that being possible, but now I
can't find it.

Thanks!

-- 
Avdi Grimm
http://avdi.org



Re: [O] mlorg : yet another parser for org-mode (Written in OCaml contained in org-mode files)

2012-02-27 Thread Eric Schulte
Simon Castellan simon.castel...@iuwt.fr writes:

 On lun. 27/févr. (15:27), Alan Schmitt wrote:
 On 26 févr. 2012, at 17:41, Simon Castellan wrote:
 
  I have been writing a parser for mlorg files in OCaml. This started as an
  experiment to see if the literate programming mode of org-mode could scale 
  to a
  full application (among other things).
 
 This looks very interesting, and would very much help in the
 dissemination of org-mode. Have you thought of announcing it on the
 caml mailing list?
 
 Alan

 I have but prefer to wait mlorg to be more complete. This post was meant 
 mainly
 to gather info/document about org's syntax. (But as I said feedbacks welcome.)


Hi Simon,

Nicolas Goaziou has been working recently on a new emacs-lisp parser of
Org-mode files, with the goals of
1. standardizing the formal syntax of Org-mode files
2. parsing Org-mode files to a canonical emacs-lisp list-based
   representation in memory (like an Org-mode AST)
3. re-basing the existing Org-mode exporters off of this canonical
   representation

This work is contained in contrib/lisp/org-element.el, which includes a
large amount of useful commentary at the top of the file.  This should
serve as a starting point for learning more about the formal syntax of
Org-mode files (as it is defined).  I think that developing parsers for
this syntax in multiple language should be very useful to ensure that a
usable syntax is developed separate from any particular implementation.

Cheers,


 Simon.


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



[O] question about org-latex-regexps

2012-02-27 Thread Colin Fraizer
The variable org-latex-regexps has an element

($ \\([^$]\\|^\\)\\(\\(\\$\\([^
\r\n,;.$][^$\n\r]*?\\(\n[^$\n\r]*?\\)\\{0,2\\}[^
\r\n,.$]\\)\\$\\)\\)\\([-   .,?;:'\)\000]\\|$\\) 2 nil)

The 6th nested subexpression (starts with \\([-) prevents conversion of
some latex math-mode stuff.

Is there a reason for that subexpression to be so restrictive? Because I
mostly write UTF-8 org-mode documents, I often have $some math$ followed
immediately by an EN DASH or EM DASH (U+2013 or U+2014). Is there a reason
why those characters could not be inserted in that character class?

That is, could I change that subexpression to be \\([---
.,?;:'\)\000]\\|$\\) ?

[I've tried it with a couple of files and didn't notice any problems.

Thanks,
--Colin




Re: [O] Bug: Org-mode don't renumber plain footnote labels [7.8.03]

2012-02-27 Thread Nicolas Goaziou
Hello,

oitofe...@gmail.com (Bruno Félix Rezende Ribeiro) writes:

 According to `org-footnote-renumber-fn:N' docstring, renumbering only
 applies to simple footnotes like fn:17.  This is also is the manual, at
 section 2.10.

 You are right. Please, consider this bug report as feature request.

I'm not sure to understand. What would you need that
`org-footnote-normalize' doesn't provide ?


Regards,

-- 
Nicolas Goaziou



[O] suggestion: sparse tree heatmaps

2012-02-27 Thread Ilya Shlyakhter
Suggestion:

Currently, the sparse tree shows entries in proper context but not in order
(e.g. by due date); the agenda shows them in order but out of context.
To get both, show a sparse tree but indicate the relative order of the
entries by a heatmap color (e.g. blue to red) that would correspond to the
entry's position in the corresponding agenda.


[O] Exported html structure

2012-02-27 Thread Vincent Beffara

Hi,

I would like to use jQuery to make the html exported by Org (un)foldable 
by clicking around, mimicking what tabbing does within emacs [except, I 
would like it if folding-and-unfolding-again kept open subtree as they 
were, which is a bit different from what org-mode does and is the root 
of my worry ...]. The structure of the HTML exported by Org is not 
optimal for that. Assume my org file looks like this,


* Header 1
Some contents
** Header 1.1
Contents 1.1
** Header 1.2
Contents 1.2

The HTML output looks like that (some details omitted):

div class=outline-2
  h2Header 1/h2
  div class=outline-text-2Some contents/div
  div class=outline-3
h3Header 1.1/h3
div class=outline-text-3Contents 1.1/div
  /div
  div class=outline-3
h3Header 1.2/h3
div class=outline-text-3Contents 1.2/div
  /div
/div

There is a wrapper around each subtree, but within it things are a 
little too linear for what I want to do: it would be very useful to have 
a div containing the contents of each subtree, everything except the 
title, in addition to what there already is (so that one could hide it, 
unfold it on click to show the headers below, and so on). Something like 
this maybe:


div class=outline-2
  h2Header 1/h2
  div class=contents-2
div class=outline-text-2Some contents/div
div class=outline-3
  h3Header 1.1/h3
  div class=outline-text-3Contents 1.1/div
/div
div class=outline-3
  h3Header 1.2/h3
  div class=outline-text-3Contents 1.2/div
/div
  /div
/div

Is that doable ? If so, how can I do it ? Is that a good idea ?

I _can_ exploit jQuery with the current structure to hide/show all the 
children of a div.outline-2 that are not an h2, and that is my backup 
plan. I can also probably add the div I want by manipulating the DOM in 
jQuery but it sounds very sub-optimal. So I wanted to ask here for 
advice first ... What do you think ?


Thanks for your help !

/vincent




Re: [O] [Bug] Regression w/ insert into tables in overwrite-mode

2012-02-27 Thread Achim Gratz
Achim Gratz strom...@nexgo.de writes:

 Commit 00040e7 by David Maus has introduced a regression when inserting
 into org tables while overwrite mode is on.  For each character inserted
 into a table cell, the cell (and the whole table row) gets shortened by
 one character.

 If the change can not be reverted, the deletion must not
 happen when overwrite mode is on, maybe through something like this:

   (if (not overwrite-mode) (delete-char -1))

The change cannot be reverted, since Emacs24 issues a compile-time
warning about using delete-backward-char, even though that warning has
been dropped from the doc string... so it needs to be protected or
replaced by an org-specific version that honors overwrite mode.


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] [dev] Implement ref link types

2012-02-27 Thread Nicolas Goaziou
Hello,

Here is a new version of the patch built on top of master, along with
test cases.

If there is no objection, I'll push it to master in a couple of days.
I really think that's a great feature to have in Org.


Regards,

-- 
Nicolas Goaziou
From 2fdde87bb7f1241f3d24dbd8ae030a300fe8f0fc Mon Sep 17 00:00:00 2001
From: Nicolas Goaziou n.goaz...@gmail.com
Date: Mon, 20 Feb 2012 22:24:38 +0100
Subject: [PATCH] Implement numbered cross-references

* lisp/org.el (org-link-search): Search for #+name affiliated keywords
  and invisible targets.
* contrib/lisp/org-element.el (org-element-link-parser): Remove ref
  links relative part.
(org-element-target-parser): Move property name from `:raw-value' to
`:value'.
(org-element-recursive-objects): Remove targets from tables.  Cells
are not parsed unless explicitely asked by back-end developer, too
late.  A target wouldn't be noticed in time.  One solution could be to
parse every table, but that's time consumming.
(org-element-object-restrictions): Target are not recursive anymore.
* contrib/lisp/org-export.el (org-export-resolve-fuzzy-link): Find
  elements with a matching #+name: path affiliated keyword.
(org-export-get-ordinal): Make special cases for headlines, items,
footnotes definitions and references.
(org-export-resolve-ref-link): Removed function.
* EXPERIMENTAL/org-e-latex.el (org-e-latex-link): Handle
  cross-reference numbers.
(org-e-latex-target): Targets have no contents.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--describe-links): Ignore
  fuzzy links in link description at the end of the section.
(org-e-ascii-link): Handle cross-reference numbers.
* testing/contrib/lisp/test-org-export.el: Add tests.
* testing/lisp/test-org.el: Add tests.
---
 EXPERIMENTAL/org-e-ascii.el |   80 --
 EXPERIMENTAL/org-e-latex.el |   50 +--
 contrib/lisp/org-element.el |   20 ++---
 contrib/lisp/org-export.el  |  141 ---
 lisp/org.el |   16 
 testing/contrib/lisp/test-org-export.el |   91 
 testing/lisp/test-org.el|   41 +
 7 files changed, 299 insertions(+), 140 deletions(-)

diff --git a/EXPERIMENTAL/org-e-ascii.el b/EXPERIMENTAL/org-e-ascii.el
index 0eb547b..c9cca4a 100644
--- a/EXPERIMENTAL/org-e-ascii.el
+++ b/EXPERIMENTAL/org-e-ascii.el
@@ -825,28 +825,24 @@ channel.
 		 (if (not desc) (org-element-property :raw-link link)
 		   (org-export-secondary-string desc 'e-ascii info)
(cond
-	;; Coderefs, radio links and ref links are ignored.
-	((member type '(coderef radio ref)) nil)
-	;; Id, custom-id and fuzzy links (with the exception of
-	;; targets): Headlines refer to their numbering.
-	((member type '(custom-id fuzzy id))
-	 (let ((destination (if (string= type fuzzy)
-(org-export-resolve-fuzzy-link link info)
-			  (org-export-resolve-id-link link info
-	   (unless (eq (org-element-type destination) 'target)
-	 (concat
-	  (org-e-ascii--fill-string
-	   (format
-		[%s] %s
-		anchor
-		(if (not destination)
-		(org-e-ascii--translate Unknown reference info)
-		  (format
-		   (org-e-ascii--translate See section %s info)
-		   (mapconcat 'number-to-string
-			  (org-export-get-headline-number destination info)
-			  .
-	   width info) \n\n
+	;; Coderefs, radio links and fuzzy links are ignored.
+	((member type '(coderef radio fuzzy)) nil)
+	;; Id and custom-id links: Headlines refer to their numbering.
+	((member type '(custom-id id))
+	 (let ((destination (org-export-resolve-id-link link info)))
+	   (concat
+	(org-e-ascii--fill-string
+	 (format
+	  [%s] %s
+	  anchor
+	  (if (not destination)
+		  (org-e-ascii--translate Unknown reference info)
+		(format
+		 (org-e-ascii--translate See section %s info)
+		 (mapconcat 'number-to-string
+			(org-export-get-headline-number destination info)
+			.
+	 width info) \n\n)))
 	;; Do not add a link that cannot be resolved and doesn't have
 	;; any description: destination is already visible in the
 	;; paragraph.
@@ -1390,29 +1386,23 @@ INFO is a plist holding contextual information.
 	(org-element-property :path link)
 	(cdr (assq 'radio-target org-element-object-restrictions)))
'e-ascii info))
- ;; Ref link: If there's no description (DESC, return link's
- ;; destination sequence number among elements of same
- ;; type. Otherwise, use DESC.
- ((string= type ref)
-  (if (org-string-nw-p desc) desc
-	(format %d
-		(org-export-get-ordinal
-		 (org-export-resolve-ref-link link info)
-		 info nil nil
-		 (lambda (el) (or (org-element-property :caption el)
-			 (org-element-property :name el)))
  ;; Do not apply a special syntax on fuzzy links pointing to
  ;; targets.
- ((and (string= type fuzzy)
-	   (let ((path (org-element-property :path link)))
-	 (loop for target in (plist-get info 

Re: [O] Bug: Org-mode don't renumber plain footnote labels [7.8.03]

2012-02-27 Thread Bruno Félix Rezende Ribeiro
Nicolas Goaziou n.goaz...@gmail.com writes:

Hello.

 Hello,

 oitofe...@gmail.com (Bruno Félix Rezende Ribeiro) writes:

 According to `org-footnote-renumber-fn:N' docstring, renumbering only
 applies to simple footnotes like fn:17.  This is also is the manual, at
 section 2.10.

 You are right. Please, consider this bug report as feature request.

 I'm not sure to understand. What would you need that
 `org-footnote-normalize' doesn't provide ?

Nothing.  I had not realized that 'org-footnote-normalize' is exactly
what I want.  Completely my fault: inattentive reading.  Sorry for the
inconvenience.

Thank you very much.
-- 
 ,= ,-_-. =.  Bruno Félix Rezende Ribeiro (oitofelix)
((_/)o o(\_)) Uns o chamam de super-vaca...
 `-'(. .)`-'  Outros de hyper-touro...
 \_/  Eu o chamo simplesmente: meta-gnu!



Re: [O] [BUG?] subtle sequencing error when setting org-bbdb-old in org-bbdb.el

2012-02-27 Thread David Maus
Hi Nick,

At Sat, 25 Feb 2012 04:20:10 -0500,
Nick Dokos wrote:

 I was bitten by this and it took me a while to figure out what was going
 on, so maybe I can save somebody some time by recording the problem here.

 I'm using bbdb 2.36devo (i.e. an old bbdb version - see below for my
 3.0 troubles), and although org-bbdb-anniversaries was working fine,
 bbdb links did not: C-c l on a bbdb entry would raise an error about
 void function bbdb-record-get-field. Now org-bbdb-store-link contains
 the following code

 (if org-bbdb-old
 (bbdb-record-getprop rec 'company)
   (car (bbdb-record-get-field rec 'organization))

 so clearly org-bbdb-old was nil - but why? It seemed to me that it should
 be t since my bbdb was old.

 It turns out that org-bbdb.el contains a line that sets org-bbdb-old
 thus:

   (defvar org-bbdb-old (fboundp 'bbdb-record-get-field-internal))

 Check whether an old bbdb function is present and if so, set
 org-bbdb-old to t. Basically, the variable tells the rest of org-bbdb.el
 whether one's bbdb is old ( 3.0) or not, so that it can use the proper
 compatibility layer. This was not working in my case : the variable
 resolutely held the value nil, no matter what requires/load-library/ etc
 tricks I threw at it.

 The problem was that org-bbdb is part of org-modules by default and that
 was loading org-bbdb way too early, certainly before bbdb itself was
 loaded.  That would set the value to nil and nothing I would do could
 change it (short of whacking it with a setq).

I pushed a patch that should fix this problem. I wrapped a
`eval-after-load' around the `defvar', this should make sure that the
variable is set after bbdb was loaded.


 Re: the bbdb 3.0 troubles. I have tried switching to bbdb 3.0
 (specifically BBDB version 3.02 ($Date: 2012/01/02 10:08:06 $)) but
 I've been stymied so far with org-bbdb-anniversaries blowing up (a far
 worse scenario than the link problem above - that's why I'm still using
 2.36devo and went after the link fix first).

 The error I get is Debugger entered--Lisp error: (void-function
 bbdb-record-getprop) in org-bbdb-anniv-hash (see backtrace below),
 but I haven't chased down that problem yet. But it seems there are
 people using bbdb 3.0 so I'm wondering what's wrong with my setup.

Can't comment on this.

Best,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de

pgpVbuVyFU7os.pgp
Description: PGP signature


Re: [O] [dev] Implement ref link types

2012-02-27 Thread David Maus
At Tue, 21 Feb 2012 10:18:00 +0100,
Nicolas Goaziou wrote:

 Hello,

 David Maus dm...@ictsoc.de writes:

  I don't see why we should drop the link type in fuzzy links. After all
  they /are/ are special type of link.

 There is no link type in fuzzy links : [[something]] matches
 something in master.

  Without the link type we will run into trouble, won't we?.
 
  In the example file:
 
  ,
  | We end the list at item [[itm:last]].
  `
 
  So, itm:last is a fuzzy link but it could as well be a regular link
  of type itm with a path component of last and no description.

 I realize my examples are confusing. I shouldn't have used colons. In
 fact, the output will be the same if the target is itm-last,
 table-last or even foo.

 In other words, the itm: part wasn't meant as a link type, but as
 a cosmetic part of the name. So the list example could as well be:

Thanks for the clarification.

Best,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de

pgpSeuw3JODk6.pgp
Description: PGP signature


Re: [O] [BUG?] subtle sequencing error when setting org-bbdb-old in org-bbdb.el

2012-02-27 Thread Nick Dokos
David Maus dm...@ictsoc.de wrote:

 
  The problem was that org-bbdb is part of org-modules by default and that
  was loading org-bbdb way too early, certainly before bbdb itself was
  loaded.  That would set the value to nil and nothing I would do could
  change it (short of whacking it with a setq).
 
 I pushed a patch that should fix this problem. I wrapped a
 `eval-after-load' around the `defvar', this should make sure that the
 variable is set after bbdb was loaded.
 

Thanks! I'll try to take it out for a spin in the next few days.

 
  Re: the bbdb 3.0 troubles. I have tried switching to bbdb 3.0
  (specifically BBDB version 3.02 ($Date: 2012/01/02 10:08:06 $)) but
  I've been stymied so far with org-bbdb-anniversaries blowing up (a far
  worse scenario than the link problem above - that's why I'm still using
  2.36devo and went after the link fix first).
 
  The error I get is Debugger entered--Lisp error: (void-function
  bbdb-record-getprop) in org-bbdb-anniv-hash (see backtrace below),
  but I haven't chased down that problem yet. But it seems there are
  people using bbdb 3.0 so I'm wondering what's wrong with my setup.
 
 Can't comment on this.
 

Understood. I hope to get bbdb-3.x up and running and then see what (if
anything) is broken with org-bbdb, but at this point, it's just as likely
that I'm doing something wrong - I just haven't had the time to dig into it
seriously.

Nick



[O] bug report: org-delete-property-globally

2012-02-27 Thread Ilya Shlyakhter
org-delete-property-globally leaves a blank line in place of each property
line it deletes.
(by contrast, org-delete-property correctly removes the property line).


Re: [O] [BUG?] subtle sequencing error when setting org-bbdb-old in org-bbdb.el

2012-02-27 Thread Nick Dokos
David Maus dm...@ictsoc.de wrote:

  The problem was that org-bbdb is part of org-modules by default and that
  was loading org-bbdb way too early, certainly before bbdb itself was
  loaded.  That would set the value to nil and nothing I would do could
  change it (short of whacking it with a setq).
 
 I pushed a patch that should fix this problem. I wrapped a
 `eval-after-load' around the `defvar', this should make sure that the
 variable is set after bbdb was loaded.
 

I still have a problem with one configuration (but not with another),
but I haven't drilled down to figure out what the problem is. I was
wondering however if the eval-after-load should be predicated on
bbdb-com rather than bbdb[fn:1]: with this change, both of my tested
configurations work (hardly a definitive test but perhaps better than
nothing).

Nick

Footnotes:

[fn:1] ... the reason being that the fboundp test is on
   bbdb-record-get-field-internal, which is defined in bbdb-com.el.



Re: [O] Frames and the agenda

2012-02-27 Thread Marcelo de Moraes Serpa
Hi Max, thanks for the reply.

That is amazing. Works like a charm - just what I needed.

This should definitely be merged back to the main org distribution!



On Fri, Feb 24, 2012 at 2:48 PM, Max Mikhanosha m...@openchat.com wrote:

 Check out my multiple-agenda-buffers branch from
 http://github.com/7max/org-mode

 Its designed exactly for that (multiple independent agenda buffers
 living together). to enable it use, M-x org-toggle-sticky-agenda

 You will have to set different agenda names for different agenda views
 in your org-agenda-custom-commands variable like so:

  (setq org-agenda-custom-commands
   '((a Agenda and NEXT (priority)
  ((agenda 
   ((org-agenda-span 'day)))
   (tags-todo /!NEXT
  ((org-agenda-overriding-header Next Tasks)
   (org-agenda-tags-todo-honor-ignore-options t)
   (org-agenda-todo-ignore-scheduled t)
   (org-agenda-todo-ignore-deadlines t)
   (org-tags-match-list-sublevels t)
   (org-agenda-sorting-strategy
'(priority-down category-keep)
  ((org-agenda-buffer-name *Agenda*)))
 (t TODO entries
  todo 
  ((org-agenda-buffer-name *Todo List*)

 Carsten suggested that this will eventually get merged, but I think
 people may be afraid, as it's a bit of a major change, converting most
 agenda related variables to buffer local, and at least initially had a
 several bugs, which took me a few weeks to catch and fix.

 But I've been running on this branch for a month+, and quality of
 my org-moding had greatly improved, since now all my agendas pop-out
 immediately instead of rebuilding for several seconds.

 At Fri, 24 Feb 2012 12:38:39 -0600,
 Marcelo de Moraes Serpa wrote:
 
  Hey guys,
 
  So, I would like to keep a sort of dashboard in a osx virtual desktop -
 basically having emacs frames with different todo lists
  for reference at quick glance:
 
  http://minus.com/mlgjv21R4
 
  The problem is that the agenda is global to the emacs instance and won't
 allow me to show a filter view in one frame and another
  in the other (i.e: One frame showing all my personal TODOs and the other
 showing all TODOs related to my job.).
 
  I could have those lists in separate files, but my configuration now has
 all todos in a big gtd.org file.
 
  Is there a way to have differente filters in different frames? If not,
 any thoughts on how I could accomplish this idea?
 
  Thanks,
 
  Marcelo.
 
 



[O] bug report: org-imenu-get-tree

2012-02-27 Thread Ilya Shlyakhter
In org-imenu-get-tree,
  (when (= level n)
(looking-at org-complex-heading-regexp)
(setq head (org-link-display-format
 (org-match-string-no-properties 4))
   m (org-imenu-new-marker))


should probably be
   (when (and (= level n)
  (looking-at org-complex-heading-regexp))
(setq head (org-link-display-format
 (org-match-string-no-properties 4))
   m (org-imenu-new-marker))
...

i had an headling which (accidentally) consisted of just a todo keyword,
making (org-match-string-no-properties 4) nil.


Re: [O] worg access source

2012-02-27 Thread Thomas S. Dye
Jason Dunsmore jasondunsm...@gmail.com writes:

 On Thu, Feb 09 2012, Thomas Alexander Gerds wrote:

 in worg it would be great if (as in emacs muse) there was a link to the
 underlying .org file which was used to generate the page. my naiive
 attempt to catch a glimpse of the source of

 http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-R.html

 was to browse-url

 http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-R.org

 Almost.  The URL containing the formatted Org source is:
 http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-R.org.html



The Show Org source button on Worg is a great addition.  Thanks!

Tom

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



Re: [O] worg access source

2012-02-27 Thread Thorsten
t...@tsdye.com (Thomas S. Dye) writes:


 The Show Org source button on Worg is a great addition.  Thanks!

Its very convenient, and it makes the link to this documents org source
section in the template for ob-doc-language.org files redundant. 
-- 
cheers,
Thorsten




Re: [O] Frames and the agenda

2012-02-27 Thread Marcelo de Moraes Serpa
Hi Max,

Although everything else is working great, I'm getting the following error
message when trying to follow links to org files:

cond: Symbol's function definition is void: org-in-clocktable-p [11 times]

The link looks like this:

  [[file:~/org/data/dynamic_reference/otherfile.org]]

Any ideas?

- Marcelo.



On Mon, Feb 27, 2012 at 4:45 PM, Marcelo de Moraes Serpa 
celose...@gmail.com wrote:

 Hi Max, thanks for the reply.

 That is amazing. Works like a charm - just what I needed.

 This should definitely be merged back to the main org distribution!



 On Fri, Feb 24, 2012 at 2:48 PM, Max Mikhanosha m...@openchat.com wrote:

 Check out my multiple-agenda-buffers branch from
 http://github.com/7max/org-mode

 Its designed exactly for that (multiple independent agenda buffers
 living together). to enable it use, M-x org-toggle-sticky-agenda

 You will have to set different agenda names for different agenda views
 in your org-agenda-custom-commands variable like so:

  (setq org-agenda-custom-commands
   '((a Agenda and NEXT (priority)
  ((agenda 
   ((org-agenda-span 'day)))
   (tags-todo /!NEXT
  ((org-agenda-overriding-header Next Tasks)
   (org-agenda-tags-todo-honor-ignore-options t)
   (org-agenda-todo-ignore-scheduled t)
   (org-agenda-todo-ignore-deadlines t)
   (org-tags-match-list-sublevels t)
   (org-agenda-sorting-strategy
'(priority-down category-keep)
  ((org-agenda-buffer-name *Agenda*)))
 (t TODO entries
  todo 
  ((org-agenda-buffer-name *Todo List*)

 Carsten suggested that this will eventually get merged, but I think
 people may be afraid, as it's a bit of a major change, converting most
 agenda related variables to buffer local, and at least initially had a
 several bugs, which took me a few weeks to catch and fix.

 But I've been running on this branch for a month+, and quality of
 my org-moding had greatly improved, since now all my agendas pop-out
 immediately instead of rebuilding for several seconds.

 At Fri, 24 Feb 2012 12:38:39 -0600,
 Marcelo de Moraes Serpa wrote:
 
  Hey guys,
 
  So, I would like to keep a sort of dashboard in a osx virtual desktop -
 basically having emacs frames with different todo lists
  for reference at quick glance:
 
  http://minus.com/mlgjv21R4
 
  The problem is that the agenda is global to the emacs instance and
 won't allow me to show a filter view in one frame and another
  in the other (i.e: One frame showing all my personal TODOs and the
 other showing all TODOs related to my job.).
 
  I could have those lists in separate files, but my configuration now
 has all todos in a big gtd.org file.
 
  Is there a way to have differente filters in different frames? If not,
 any thoughts on how I could accomplish this idea?
 
  Thanks,
 
  Marcelo.
 
 





[O] Bug report: weekly agenda and blank, timestamped headers

2012-02-27 Thread James Atwood
If an org file on the agenda list contains a header that is blank but 
for a date/timestamp, the weekly agenda command will fail. The resulting 
agenda buffer will be of type nil and contain only date headers.




Re: [O] Frames and the agenda

2012-02-27 Thread Nick Dokos
Marcelo de Moraes Serpa celose...@gmail.com wrote:

 Although everything else is working great, I'm getting the following error
 message when trying to follow links to org files:
 
 cond: Symbol's function definition is void: org-in-clocktable-p [11 times]
 

Maybe this helps?

   http://thread.gmane.org/gmane.emacs.orgmode/51998/focus=52186

Nick



Re: [O] Bug report: weekly agenda and blank, timestamped headers

2012-02-27 Thread Nick Dokos
James Atwood jatw...@cs.umass.edu wrote:

 If an org file on the agenda list contains a header that is blank but 
 for a date/timestamp, the weekly agenda command will fail. The resulting 
 agenda buffer will be of type nil and contain only date headers.
 

This is probably the same bug that Ilya Shlyakhter reported a few days
ago. I have trouble getting to Ilya's report on gmane, but I can get to
my reply which quotes the original report so at least the information is
all there:

http://thread.gmane.org/gmane.emacs.orgmode/52621

Nick



Re: [O] worg access source

2012-02-27 Thread Thomas S. Dye
Thorsten quintf...@googlemail.com writes:

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


 The Show Org source button on Worg is a great addition.  Thanks!

 Its very convenient, and it makes the link to this documents org source
 section in the template for ob-doc-language.org files redundant. 

Hi Thorsten,

Thanks for pointing this out.  I removed that part of the template and
revised some of the language documents, as well.  I think Worg should be
up to date in that respect.

All the best,
Tom

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



[O] Issue tracking habits?

2012-02-27 Thread François Pinard
Hi, Org people.

Presumably, many of you once used, or are still using Org mode to track
(programming) issues, like bugs, problems, ideas.  I wonder if some
wisdom developed about how to proceed, that would be worth sharing.

I have a reasonable familiarity with TODO-like keywords and cycling,
tags, drawers, etc.  So, I'm not looking for Org mode basics, but rather
for conventions about organizing these concepts fruitfully.

It is easy for me to manage with my simple own ways, while playing with
a small amount of issues.  But I have the impression that it would not
scale nicely unless I stop exploring and stick to some stricter
discipline.  No doubt that time will progressively teach me how to best
proceed.  Yet, the experience of others may significantly speed up my
wandering, so this letter! :-).

François



[O] org-publish-validate-link ?

2012-02-27 Thread François Pinard
Hello again!

The manual, in [[info:org#Publishing%20links][Publishing links]],
speaks about an *org-publish-validate-link* function which does not seem
to exist in Org mode sources.  Is the function missing, or the
documentation misleading? :-)

François



Re: [O] org-publish-validate-link ?

2012-02-27 Thread Nick Dokos
François Pinard pin...@iro.umontreal.ca wrote:


 The manual, in [[info:org#Publishing%20links][Publishing links]],
 speaks about an *org-publish-validate-link* function which does not seem
 to exist in Org mode sources.  Is the function missing, or the
 documentation misleading? :-)
 

It was removed by Sebastian Rose in a cleaning binge back in 2010,
with the rationale that it was not being used anywhere:

,
| commit 339d6fe4bbf7b9858c6323d01f32d0c73a4cd3a8
| Author: Sebastian Rose sebastian_r...@gmx.de
| Date:   Thu May 13 13:43:53 2010 +0200
| 
| ...
| 
|   * org-publish.el (org-publish-validate-link) was not used
|   anywhere. Removed.
| 
| ...
`

Apparently that had happened before because there is also this:

,
| commit d1f91f7e936b1d3caf1b17f0fe755ee085256442
| Author: Carsten Dominik carsten.domi...@gmail.com
| Date:   Sun Nov 2 16:20:40 2008 +0100
| 
| Re-introduce the org-publish-validate-link function.
`

but I cannot find the previous deletion.

It was originally introduced with the following commit:

,
| commit 8fd900c6842d6f8d216ae6989b34c8de4a874e79
| Author: Carsten Dominik domi...@nb-dominik2.science.uva.nl
| Date:   Thu Jan 31 11:32:08 2008 +0100
| 
| Release 4.40
| 
| ...
| 
| + Checking filenames against this hash
| +
| +
| +(defun org-publish-validate-link (link)
| +  (gethash (file-truename link) org-publish-files))
| +
| +
| 
| ...
`

I presume it's time to add it back in, this time with a note: Do NOT
delete: this function may look unused, but it's referred to from the
manual!

Archaelogy is kind of fun ;-)

Nick








[O] Bug report: weekly agenda and blank, timestamped headers

2012-02-27 Thread James Atwood
If an org file on the agenda list contains a header that is blank but 
for a date/timestamp, the weekly agenda command will fail.  The 
resulting agenda buffer will be of type nil and contain only date headers.