Re: [Orgmode] Showing scheduled blocked tasks

2010-03-11 Thread Matthew Phillips
Hi Carsten,

reply inline below.

On 11/03/2010, at 4:40 PM, Carsten Dominik wrote:

 On Mar 11, 2010, at 2:34 AM, Matthew Phillips wrote:
 
 I am trying to get a TODO tags view in my daily agenda just shows the first 
 TODO of a “Project” (a la the “next action” in GTD). This allows me to have 
 a TODO “tags” block in my custom agenda that doesn’t run to several pages: I 
 just see the next action for each project, and, as each action is marked 
 DONE, the next one pops up.
 
 I have *almost* managed to get this working by turning on 
 org-enforce-todo-dependencies, setting “ORDERED: t” as a property on 
 projects, and then using (setq org-agenda-dim-blocked-tasks 'invisible).
 
 However, this hides scheduled tasks from the agenda view if they are also 
 blocked (I want them to show up if they are scheduled regardless). It seems 
 that org-agenda-dim-blocked-tasks is not supported as a local setting on 
 custom commands, so I can’t just make blocked tasks visible in the agenda 
 view and invisible in the TODO tags query.
 
 what do you mean by is not supported as a local option?  Does that mean you 
 miss it in the customize menu for local option, or does that mean you have 
 added it using the any variable entry and then it does not have the desired 
 effect?

What I mean is setting it as an option in the custom commands does not seem to 
work, e.g. see list line in:

(setq org-agenda-custom-commands
...
(d Daily Action List
 ((agenda  ((org-agenda-ndays 1)
  (org-agenda-sorting-strategy
   (quote ((agenda time-up priority-down tag-up) )))
  (org-deadline-warning-days 7)))
 (tags TODO=\STARTED\+SCHEDULED=\\+DEADLINE=\\
   ((org-agenda-dim-blocked-tasks 'invisible)))
...

The org-agenda-dim-blocked-tasks on the generated tags view does not get 
honoured. It *does* get honoured as a setting one level higher, i.e. as a 
local setting to the whole org-agenda-custom-commands block, but that's not 
very useful here.

 IMPORTANT: This email remains the property of the Australian Defence 
 Organisation and is subject to the jurisdiction of section 70 of the CRIMES 
 ACT 1914.  If you have received this email in error, you are requested to 
 contact the sender and delete the email.
 
 Wow, this sounds scary.  Maybe you need to find a webmail host? :-)

Heh, well it's all legally binding as soon as you open the email, just like a 
EULA you realise? ;)

This is an unsightly side-effect of posting from an organisation that blocks 
webmail, requires the ugly [SEC=UNCLASSIFIED] for outside email, and adds 
that footer automatically.

Cheers,

Matthew.

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: Fwd: [Orgmode] Precision setting for spreadsheet calculation

2010-03-11 Thread Eric S Fraga
On Thu, 11 Mar 2010 07:28:38 +0100, Carsten Dominik carsten.domi...@gmail.com 
wrote:
 
 Hi,
 
 is anyone able to reproduce this?  I am not, so far
 
 - Carsten
 
 Begin forwarded message:
 
  From: Michael Brand michael.br...@alumni.ethz.ch
  Date: March 5, 2010 9:38:56 AM GMT+01:00
  To: Carsten Dominik carsten.domi...@gmail.com
  Subject: Re: [Orgmode] Precision setting for spreadsheet calculation
 
  Carsten Dominik wrote:
  Which is the link where you click on to make this happen?
  New version complete:
 
  Is there a small issue with the behavior of the section link
  http://orgmode.org/manual/index.html#Top ?
  It sometimes jumps to the rendered text line
  `Next: Introduction, Previous: (dir), Up: (dir)'  (the anchor,
  expected)
  and sometimes to
  `The Org Manual'  (top of page, wrong)
  with Firefox 3.0.5, 3.6 and Windows Explorer 8.0
 
  When checking http://orgmode.org/manual/index.html at the W3C
  validator there are some errors and warnings but I can not help
  because I am not a HTML expert:
  http://validator.w3.org/check?uri=http%3A%2F%2Forgmode.org%2Fmanual%2Findex.htmlcharset=(detect+automatically)doctype=Inlinegroup=0
 
 - Carsten

Carsten,

I can (sort of consistently) reproduce this:

- go to http://orgmode.org/manual/

- click on 12.5 HTML export (I'm having some problems with HTML
  export; more on this anon) which takes you to

  http://orgmode.org/manual/HTML-export.html#HTML-export

- click on Exporting at the top which takes you to

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

- click on Top which now takes you to

  http://orgmode.org/manual/index.html#Top

  and which is not what was expected, I guess (although it *is* what I
  would have expected...).

Hope this helps.


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] html attributes and caption ignored in table export

2010-03-11 Thread Eric S Fraga
Hi,

What am I missing?  I tried exporting the following to HTML and the
caption and HTML attributes seem to be ignored completely.  Also, the
alignment directives are ignored as well.

--8---cut here---start-8---
#+TITLE: test file for org mode
#+DESCRIPTION: used for bug reports
#+AUTHOR:Eric S Fraga
#+EMAIL: Eric S Fraga e.fr...@ucl.ac.uk
#+DATE:  2010-03-11 Thu
#+KEYWORDS: 
#+LANGUAGE:  en
#+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t :t
#+OPTIONS:   TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 
path:http://orgmode.org/org-info.js
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+LINK_UP:   
#+LINK_HOME: 

* tables

#+caption: A very interesting table
#+attr_html: border=1 rules=all frame=all align=center
| r | l|
|  Id | Description|
|-+|
|  1. | The first item |
|  2. | the second |
|  4. | we don't have a third one  |
| 10. | a longer id to check alignment |
|-+|
--8---cut here---end---8---

I'm using org current as of yesterday 
  Org-mode version 6.34trans (release_6.34c.186.g1902)
and with
  GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.18.2) of 2009-11-02 on 
raven, modified by Debian

Thanks,
eric


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [PATCH] New variable to speed up custom agendas

2010-03-11 Thread Carsten Dominik

Hi Matt,

sorry, it looks like I forgot to push yesterday evening.  Done now...

- Carsten

On Mar 11, 2010, at 5:12 AM, Matthew Lundin wrote:


Hi Carsten,

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


wow, you have proven me wrong.  There is a way to get
a significant speedup in agenda construction, for special
cases like you mentioned in an earlier message.  This is
brilliant.

I have taken the patch, with a few small modifications:

1. I changed the constant `org-agenda-custom-commands-local-options'
  so that it will become a lot easier to bind this variable as an
  an option when configuring `org-agenda-custom-commands' using
  the customize interface.

2. I modified the docstring of the new variable so that the first  
line

  is a stand-alone sentence, as required in Emacs.

3. I moved the description of the symbols into your new variable,
  and made org-diary point to it.  I think the new location is
  a better place for this.


Thanks for applying the patch and for making these additional
modifications!


Excellent, thank you very much.  Will you add an example to
your org-agenda-custom-commands tutorial?


I would be glad to. I'll put it on my todo list. :)

- Matt



- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] html attributes and caption ignored in table export

2010-03-11 Thread Carsten Dominik

Hi Eric

On Mar 11, 2010, at 10:51 AM, Eric S Fraga wrote:


Hi,

What am I missing?  I tried exporting the following to HTML and the
caption and HTML attributes seem to be ignored completely.  Also, the
alignment directives are ignored as well.


Export preprocessing stores the attributes as text properties on the
first line of the table.  Your first line is a special line which
will be removed before export, so the properties got lost.  If you
move the alignment line further down in the table, everything would
have worked.

But this counts as a bug, so I have fixed it now.

- Carsten





--8---cut here---start-8---
#+TITLE: test file for org mode
#+DESCRIPTION: used for bug reports
#+AUTHOR:Eric S Fraga
#+EMAIL: Eric S Fraga e.fr...@ucl.ac.uk
#+DATE:  2010-03-11 Thu
#+KEYWORDS:
#+LANGUAGE:  en
#+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t :t
#+OPTIONS:   TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in- 
toc

#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 
path:http://orgmode.org/org-info.js
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+LINK_UP:
#+LINK_HOME:

* tables

#+caption: A very interesting table
#+attr_html: border=1 rules=all frame=all align=center
| r | l|
|  Id | Description|
|-+|
|  1. | The first item |
|  2. | the second |
|  4. | we don't have a third one  |
| 10. | a longer id to check alignment |
|-+|
--8---cut here---end---8---

I'm using org current as of yesterday
 Org-mode version 6.34trans (release_6.34c.186.g1902)
and with
 GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.18.2) of  
2009-11-02 on raven, modified by Debian


Thanks,
eric


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Precision setting for spreadsheet calculation

2010-03-11 Thread Carsten Dominik


On Mar 11, 2010, at 10:29 AM, Eric S Fraga wrote:

On Thu, 11 Mar 2010 07:28:38 +0100, Carsten Dominik carsten.domi...@gmail.com 
 wrote:


Hi,

is anyone able to reproduce this?  I am not, so far

- Carsten

Begin forwarded message:


From: Michael Brand michael.br...@alumni.ethz.ch
Date: March 5, 2010 9:38:56 AM GMT+01:00
To: Carsten Dominik carsten.domi...@gmail.com
Subject: Re: [Orgmode] Precision setting for spreadsheet calculation

Carsten Dominik wrote:

Which is the link where you click on to make this happen?

New version complete:

Is there a small issue with the behavior of the section link
http://orgmode.org/manual/index.html#Top ?
It sometimes jumps to the rendered text line
`Next: Introduction, Previous: (dir), Up: (dir)'  (the anchor,
expected)
and sometimes to
`The Org Manual'  (top of page, wrong)
with Firefox 3.0.5, 3.6 and Windows Explorer 8.0

When checking http://orgmode.org/manual/index.html at the W3C
validator there are some errors and warnings but I can not help
because I am not a HTML expert:
http://validator.w3.org/check?uri=http%3A%2F%2Forgmode.org%2Fmanual%2Findex.htmlcharset=(detect+automatically)doctype=Inlinegroup=0


- Carsten


Carsten,

I can (sort of consistently) reproduce this:

- go to http://orgmode.org/manual/

- click on 12.5 HTML export (I'm having some problems with HTML
 export; more on this anon) which takes you to

 http://orgmode.org/manual/HTML-export.html#HTML-export

- click on Exporting at the top which takes you to

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

- click on Top which now takes you to

 http://orgmode.org/manual/index.html#Top

 and which is not what was expected, I guess (although it *is* what I
 would have expected...).


This is where it should go and what I would expect.  I guess I am  
still not getting what the problem is.  Michael?



- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] html attributes and caption ignored in table export

2010-03-11 Thread Eric S Fraga
On Thu, 11 Mar 2010 12:30:07 +0100, Carsten Dominik carsten.domi...@gmail.com 
wrote:
 
 Hi Eric
 
 On Mar 11, 2010, at 10:51 AM, Eric S Fraga wrote:
 
  Hi,
 
  What am I missing?  I tried exporting the following to HTML and the
  caption and HTML attributes seem to be ignored completely.  Also, the
  alignment directives are ignored as well.
 
 Export preprocessing stores the attributes as text properties on the
 first line of the table.  Your first line is a special line which
 will be removed before export, so the properties got lost.  If you
 move the alignment line further down in the table, everything would
 have worked.

Ah.  Okay.

 But this counts as a bug, so I have fixed it now.

Excellent.  Many thanks!


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Precision setting for spreadsheet calculation

2010-03-11 Thread Eric S Fraga
On Thu, 11 Mar 2010 12:35:42 +0100, Carsten Dominik carsten.domi...@gmail.com 
wrote:
 
 
 On Mar 11, 2010, at 10:29 AM, Eric S Fraga wrote:
 
  On Thu, 11 Mar 2010 07:28:38 +0100, Carsten Dominik
  carsten.domi...@gmail.com  wrote:
 
  Hi,
 
  is anyone able to reproduce this?  I am not, so far
 
  - Carsten
 
  Begin forwarded message:
 
  From: Michael Brand michael.br...@alumni.ethz.ch
  Date: March 5, 2010 9:38:56 AM GMT+01:00
  To: Carsten Dominik carsten.domi...@gmail.com
  Subject: Re: [Orgmode] Precision setting for spreadsheet calculation
 
  Carsten Dominik wrote:
  Which is the link where you click on to make this happen?
  New version complete:
 
  Is there a small issue with the behavior of the section link
  http://orgmode.org/manual/index.html#Top ?
  It sometimes jumps to the rendered text line
  `Next: Introduction, Previous: (dir), Up: (dir)'  (the anchor,
  expected)
  and sometimes to
  `The Org Manual'  (top of page, wrong)
  with Firefox 3.0.5, 3.6 and Windows Explorer 8.0
 
  When checking http://orgmode.org/manual/index.html at the W3C
  validator there are some errors and warnings but I can not help
  because I am not a HTML expert:
  http://validator.w3.org/check?uri=http%3A%2F%2Forgmode.org%2Fmanual%2Findex.htmlcharset=(detect+automatically)doctype=Inlinegroup=0
 
  - Carsten
 
  Carsten,
 
  I can (sort of consistently) reproduce this:
 
  - go to http://orgmode.org/manual/
 
  - click on 12.5 HTML export (I'm having some problems with HTML
   export; more on this anon) which takes you to
 
   http://orgmode.org/manual/HTML-export.html#HTML-export
 
  - click on Exporting at the top which takes you to
 
   http://orgmode.org/manual/Exporting.html#Exporting
 
  - click on Top which now takes you to
 
   http://orgmode.org/manual/index.html#Top
 
   and which is not what was expected, I guess (although it *is* what I
   would have expected...).
 
 This is where it should go and what I would expect.  I guess I am
 still not getting what the problem is.  Michael?

I guess one point is that Top takes you to different places in the
index.html file. If I go from http://orgmode.org/manual/Exporting.html
by clicking on Top, I get placed at the manually created index of
topics the top line displayed (which is not the first line of the
page, if you understand what I mean) is the one with Next etc.  If I
follow the procedure above, I get placed on the same page but at the
actual top of that page which is the (automatically generated?) table
of contents.

Either destination within index.html is obviously fine (at least to
me!).  I guess Michael's query must have been due to the fact that
depending on where you click from, you get placed in a different place
in the index.html file?

HTH,
eric


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [PATCH] org-at-property-p and related

2010-03-11 Thread Mikael Fornius

I am suggesting some changes to org-at-property-p (using
org-get-property-block) and making related procedures take advantage of
it.

* org.el (org-at-property-p): Check if we are inside a property
  drawer not just any drawer.

  (org-set-property, org-delete-property): When cursor is on a
  property key value pair do not prompt for property name instead
  use name at cursor.

(COMMENT: I did not adapt the delete all properties function to use
property under cursor directly because maybe you need to think twice
before that kind of operation.)
  
  (org-ctrl-c-ctrl-c): Still do org-property-action when cursor is
  on the first line of a property drawer.
  (org-property-end-re): Spell check.


  
I have set up a git-repository with a branch named 'mfo' with these
changes. If you like it please use it in org-mode and try to pull the
changes from

git://git.abc.se/mfo/git/org-mode

branch 'mfo'. I am new to this so I am not sure if it works to pull. I
have tried it myself but I am a little confused over the setup with
--bare repository, HEADs, branches and all.

Therefore I also attach the patch.

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d6a0f76..6d30f08 100755
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,14 +1,3 @@
-2010-03-11  Mikael Fornius  m...@abc.se
-
-	* org.el (org-at-property-p): Check if we are inside a property
-	drawer not just any drawer.
-	(org-set-property, org-delete-property): When cursor is on a
-	property key value pair do not prompt for property name instead
-	use name at cursor.
-	(org-ctrl-c-ctrl-c): Still do org-property-action when cursor is
-	on the first line of a property drawer.
-	(org-property-end-re): Spell check.
-
 2010-03-11  Carsten Dominik  carsten.domi...@gmail.com
 
 	* org-exp.el (org-export-attach-captions-and-attributes): Add the
diff --git a/lisp/org.el b/lisp/org.el
index ad15d5e..463ae46 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -12469,7 +12469,7 @@ Being in this list makes sure that they are offered for completion.)
   Regular expression matching the first line of a property drawer.)
 
 (defconst org-property-end-re ^[ \t]*:END:[ \t]*$
-  Regular expression matching the last line of a property drawer.)
+  Regular expression matching the first line of a property drawer.)
 
 (defconst org-clock-drawer-start-re ^[ \t]*:CLOCK:[ \t]*$
   Regular expression matching the first line of a property drawer.)
@@ -12546,16 +12546,13 @@ allowed value.
 (message %s is now %s prop val)))
 
 (defun org-at-property-p ()
-  Is cursor inside a property drawer?
+  Is the cursor in a property line?
+  ;; FIXME: Does not check if we are actually in the drawer.
+  ;; FIXME: also returns true on any drawers.
+  ;; This is used by C-c C-c for property action.
   (save-excursion
 (beginning-of-line 1)
-(when (looking-at (org-re ^[ \t]*\\(:\\([[:alpha:]][[:alnum:]_-]*\\):\\)[ \t]*\\(.*\\)))
- (let ((match (match-data)) ;; Keep match-data for use by calling
-	   (p (point))  ;; procedures.
-	   (range (unless (org-before-first-heading-p)
-		(org-get-property-block
-   (prog1 (and range (= (car range) p) ( p (cdr range)))
-	 (set-match-data match))
+(looking-at (org-re ^[ \t]*\\(:\\([[:alpha:]][[:alnum:]_-]*\\):\\)[ \t]*\\(.*\\)
 
 (defun org-get-property-block (optional beg end force)
   Return the (beg . end) range of the body of the property drawer.
@@ -12986,8 +12983,7 @@ in the current file.
   (interactive
(let* ((completion-ignore-case t)
 	  (keys (org-buffer-property-keys nil t t))
-	  (prop0 (or (progn (org-at-property-p) (org-match-string-no-properties 2))
-		 (org-icompleting-read Property:  (mapcar 'list keys
+	  (prop0 (org-icompleting-read Property:  (mapcar 'list keys)))
 	  (prop (if (member prop0 keys)
 		prop0
 		  (or (cdr (assoc (downcase prop0)
@@ -12995,17 +12991,18 @@ in the current file.
 	  keys)))
 		  prop0)))
 	  (cur (org-entry-get nil prop))
-	  (prompt (concat prop  value
-			  (if (and cur (string-match \\S- cur))
-			  (concat  [ cur ]) ) : ))
 	  (allowed (org-property-get-allowed-values nil prop 'table))
 	  (existing (mapcar 'list (org-property-values prop)))
 	  (val (if allowed
-		   (org-completing-read prompt allowed nil
+		   (org-completing-read Value:  allowed nil
 		  (not (get-text-property 0 'org-unrestricted
 	  (caar allowed
 		 (let (org-completion-use-ido org-completion-use-iswitchb)
-		   (org-completing-read prompt existing nil nil  nil cur)
+		   (org-completing-read
+		(concat Value (if (and cur (string-match \\S- cur))
+	(concat  [ cur ]) )
+			: )
+		existing nil nil  nil cur)
  (list prop (if (equal val ) cur val
   (unless (equal (org-entry-get nil property) value)
 (org-entry-put nil property value)))
@@ -13014,9 +13011,8 @@ in the current file.
   In the current entry, delete PROPERTY.
   (interactive
(let* ((completion-ignore-case t)
-	  (prop (or (progn (org-at-property-p) 

[Orgmode] Re: [PATCH] org-at-property-p and related

2010-03-11 Thread Mikael Fornius

Sorry the attached patch is inverted! :-)

Try this.

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5aece42..e9d7065 100755
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,17 @@
+2010-03-06  Mikael Fornius  m...@abc.se
+
+	* org.el (org-set-property, org-delete-property): When cursor is
+	on a property key value pair do not prompt for property name
+	instead use name at cursor.
+	(org-ctrl-c-ctrl-c): Still do org-property-action when cursor is
+	on the first line of a property drawer.
+
+2010-03-05  Mikael Fornius  m...@abc.se
+
+	* org.el (org-at-property-p): Check if we are inside a property
+	drawer not just any drawer.
+	(org-property-end-re): Spell check.
+
 2010-03-01  Carsten Dominik  carsten.domi...@gmail.com
 
 	* org-list.el (org-toggle-checkbox): No errors when updating
diff --git a/lisp/org.el b/lisp/org.el
index fd906f0..ba0c739 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -12435,7 +12435,7 @@ Being in this list makes sure that they are offered for completion.)
   Regular expression matching the first line of a property drawer.)
 
 (defconst org-property-end-re ^[ \t]*:END:[ \t]*$
-  Regular expression matching the first line of a property drawer.)
+  Regular expression matching the last line of a property drawer.)
 
 (defconst org-clock-drawer-start-re ^[ \t]*:CLOCK:[ \t]*$
   Regular expression matching the first line of a property drawer.)
@@ -12512,13 +12512,16 @@ allowed value.
 (message %s is now %s prop val)))
 
 (defun org-at-property-p ()
-  Is the cursor in a property line?
-  ;; FIXME: Does not check if we are actually in the drawer.
-  ;; FIXME: also returns true on any drawers.
-  ;; This is used by C-c C-c for property action.
+  Is cursor inside a property drawer?
   (save-excursion
 (beginning-of-line 1)
-(looking-at (org-re ^[ \t]*\\(:\\([[:alpha:]][[:alnum:]_-]*\\):\\)[ \t]*\\(.*\\)
+(when (looking-at (org-re ^[ \t]*\\(:\\([[:alpha:]][[:alnum:]_-]*\\):\\)[ \t]*\\(.*\\)))
+ (let ((match (match-data)) ;; Keep match-data for use by calling
+	   (p (point))  ;; procedures.
+	   (range (unless (org-before-first-heading-p)
+		(org-get-property-block
+   (prog1 (and range (= (car range) p) ( p (cdr range)))
+	 (set-match-data match))
 
 (defun org-get-property-block (optional beg end force)
   Return the (beg . end) range of the body of the property drawer.
@@ -12949,7 +12952,8 @@ in the current file.
   (interactive
(let* ((completion-ignore-case t)
 	  (keys (org-buffer-property-keys nil t t))
-	  (prop0 (org-icompleting-read Property:  (mapcar 'list keys)))
+	  (prop0 (or (progn (org-at-property-p) (org-match-string-no-properties 2))
+		 (org-icompleting-read Property:  (mapcar 'list keys
 	  (prop (if (member prop0 keys)
 		prop0
 		  (or (cdr (assoc (downcase prop0)
@@ -12957,18 +12961,17 @@ in the current file.
 	  keys)))
 		  prop0)))
 	  (cur (org-entry-get nil prop))
+	  (prompt (concat prop  value
+			  (if (and cur (string-match \\S- cur))
+			  (concat  [ cur ]) ) : ))
 	  (allowed (org-property-get-allowed-values nil prop 'table))
 	  (existing (mapcar 'list (org-property-values prop)))
 	  (val (if allowed
-		   (org-completing-read Value:  allowed nil
+		   (org-completing-read prompt allowed nil
 		  (not (get-text-property 0 'org-unrestricted
 	  (caar allowed
 		 (let (org-completion-use-ido org-completion-use-iswitchb)
-		   (org-completing-read
-		(concat Value (if (and cur (string-match \\S- cur))
-	(concat  [ cur ]) )
-			: )
-		existing nil nil  nil cur)
+		   (org-completing-read prompt existing nil nil  nil cur)
  (list prop (if (equal val ) cur val
   (unless (equal (org-entry-get nil property) value)
 (org-entry-put nil property value)))
@@ -12977,8 +12980,9 @@ in the current file.
   In the current entry, delete PROPERTY.
   (interactive
(let* ((completion-ignore-case t)
-	  (prop (org-icompleting-read
-		 Property:  (org-entry-properties nil 'standard
+	  (prop (or (progn (org-at-property-p) (org-match-string-no-properties 2))
+		(org-icompleting-read
+		 Property:  (org-entry-properties nil 'standard)
  (list prop)))
   (message Property %s %s property
 	   (if (org-entry-delete nil property)
@@ -15976,7 +15980,8 @@ This command does many different things, depending on context:
 	   (fboundp org-finish-function))
   (funcall org-finish-function))
  ((run-hook-with-args-until-success 'org-ctrl-c-ctrl-c-hook))
- ((org-at-property-p)
+ ((or (looking-at (org-re org-property-start-re))
+	  (org-at-property-p))
   (call-interactively 'org-property-action))
  ((org-on-target-p) (call-interactively 'org-update-radio-target-regexp))
  ((and (org-in-regexp \\[\\([0-9]*%\\|[0-9]*/[0-9]*\\)\\])

-- 
Mikael Fornius
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org

[Orgmode] Re: [PATCH] org-at-property-p and related

2010-03-11 Thread Mikael Fornius

Oh man! That was old.

Sorry. Third attempt:

This is the one:

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 6d30f08..d6a0f76 100755
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,14 @@
+2010-03-11  Mikael Fornius  m...@abc.se
+
+	* org.el (org-at-property-p): Check if we are inside a property
+	drawer not just any drawer.
+	(org-set-property, org-delete-property): When cursor is on a
+	property key value pair do not prompt for property name instead
+	use name at cursor.
+	(org-ctrl-c-ctrl-c): Still do org-property-action when cursor is
+	on the first line of a property drawer.
+	(org-property-end-re): Spell check.
+
 2010-03-11  Carsten Dominik  carsten.domi...@gmail.com
 
 	* org-exp.el (org-export-attach-captions-and-attributes): Add the
diff --git a/lisp/org.el b/lisp/org.el
index 463ae46..ad15d5e 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -12469,7 +12469,7 @@ Being in this list makes sure that they are offered for completion.)
   Regular expression matching the first line of a property drawer.)
 
 (defconst org-property-end-re ^[ \t]*:END:[ \t]*$
-  Regular expression matching the first line of a property drawer.)
+  Regular expression matching the last line of a property drawer.)
 
 (defconst org-clock-drawer-start-re ^[ \t]*:CLOCK:[ \t]*$
   Regular expression matching the first line of a property drawer.)
@@ -12546,13 +12546,16 @@ allowed value.
 (message %s is now %s prop val)))
 
 (defun org-at-property-p ()
-  Is the cursor in a property line?
-  ;; FIXME: Does not check if we are actually in the drawer.
-  ;; FIXME: also returns true on any drawers.
-  ;; This is used by C-c C-c for property action.
+  Is cursor inside a property drawer?
   (save-excursion
 (beginning-of-line 1)
-(looking-at (org-re ^[ \t]*\\(:\\([[:alpha:]][[:alnum:]_-]*\\):\\)[ \t]*\\(.*\\)
+(when (looking-at (org-re ^[ \t]*\\(:\\([[:alpha:]][[:alnum:]_-]*\\):\\)[ \t]*\\(.*\\)))
+ (let ((match (match-data)) ;; Keep match-data for use by calling
+	   (p (point))  ;; procedures.
+	   (range (unless (org-before-first-heading-p)
+		(org-get-property-block
+   (prog1 (and range (= (car range) p) ( p (cdr range)))
+	 (set-match-data match))
 
 (defun org-get-property-block (optional beg end force)
   Return the (beg . end) range of the body of the property drawer.
@@ -12983,7 +12986,8 @@ in the current file.
   (interactive
(let* ((completion-ignore-case t)
 	  (keys (org-buffer-property-keys nil t t))
-	  (prop0 (org-icompleting-read Property:  (mapcar 'list keys)))
+	  (prop0 (or (progn (org-at-property-p) (org-match-string-no-properties 2))
+		 (org-icompleting-read Property:  (mapcar 'list keys
 	  (prop (if (member prop0 keys)
 		prop0
 		  (or (cdr (assoc (downcase prop0)
@@ -12991,18 +12995,17 @@ in the current file.
 	  keys)))
 		  prop0)))
 	  (cur (org-entry-get nil prop))
+	  (prompt (concat prop  value
+			  (if (and cur (string-match \\S- cur))
+			  (concat  [ cur ]) ) : ))
 	  (allowed (org-property-get-allowed-values nil prop 'table))
 	  (existing (mapcar 'list (org-property-values prop)))
 	  (val (if allowed
-		   (org-completing-read Value:  allowed nil
+		   (org-completing-read prompt allowed nil
 		  (not (get-text-property 0 'org-unrestricted
 	  (caar allowed
 		 (let (org-completion-use-ido org-completion-use-iswitchb)
-		   (org-completing-read
-		(concat Value (if (and cur (string-match \\S- cur))
-	(concat  [ cur ]) )
-			: )
-		existing nil nil  nil cur)
+		   (org-completing-read prompt existing nil nil  nil cur)
  (list prop (if (equal val ) cur val
   (unless (equal (org-entry-get nil property) value)
 (org-entry-put nil property value)))
@@ -13011,8 +13014,9 @@ in the current file.
   In the current entry, delete PROPERTY.
   (interactive
(let* ((completion-ignore-case t)
-	  (prop (org-icompleting-read
-		 Property:  (org-entry-properties nil 'standard
+	  (prop (or (progn (org-at-property-p) (org-match-string-no-properties 2))
+		(org-icompleting-read
+		 Property:  (org-entry-properties nil 'standard)
  (list prop)))
   (message Property %s %s property
 	   (if (org-entry-delete nil property)
@@ -16010,7 +16014,8 @@ This command does many different things, depending on context:
 	   (fboundp org-finish-function))
   (funcall org-finish-function))
  ((run-hook-with-args-until-success 'org-ctrl-c-ctrl-c-hook))
- ((org-at-property-p)
+ ((or (looking-at (org-re org-property-start-re))
+	  (org-at-property-p))
   (call-interactively 'org-property-action))
  ((org-on-target-p) (call-interactively 'org-update-radio-target-regexp))
  ((and (org-in-regexp \\[\\([0-9]*%\\|[0-9]*/[0-9]*\\)\\])

-- 
Mikael Fornius
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org

Re: [Orgmode] Re: [PATCH] org-at-property-p and related

2010-03-11 Thread Carsten Dominik

Applied, thanks!

- Carsten

On Mar 11, 2010, at 2:06 PM, Mikael Fornius wrote:



Oh man! That was old.

Sorry. Third attempt:

This is the one:

org-at-property-p-2.diff
--
Mikael Fornius
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: [PATCH] org-at-property-p and related

2010-03-11 Thread Mikael Fornius

Sorry, I did a little wrong again. It is not my day today...

Please also apply this for correct behavior:

diff --git a/lisp/org.el b/lisp/org.el
index ad15d5e..a4932a2 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -12986,7 +12986,7 @@ in the current file.
   (interactive
(let* ((completion-ignore-case t)
 	  (keys (org-buffer-property-keys nil t t))
-	  (prop0 (or (progn (org-at-property-p) (org-match-string-no-properties 2))
+	  (prop0 (or (when (org-at-property-p) (org-match-string-no-properties 2))
 		 (org-icompleting-read Property:  (mapcar 'list keys
 	  (prop (if (member prop0 keys)
 		prop0
@@ -13014,7 +13014,7 @@ in the current file.
   In the current entry, delete PROPERTY.
   (interactive
(let* ((completion-ignore-case t)
-	  (prop (or (progn (org-at-property-p) (org-match-string-no-properties 2))
+	  (prop (or (when (org-at-property-p) (org-match-string-no-properties 2))
 		(org-icompleting-read
 		 Property:  (org-entry-properties nil 'standard)
  (list prop)))

-- 
Mikael Fornius
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: [PATCH] org-at-property-p and related

2010-03-11 Thread Carsten Dominik

Done, thanks...

- Carsten

On Mar 11, 2010, at 3:01 PM, Mikael Fornius wrote:



Sorry, I did a little wrong again. It is not my day today...

Please also apply this for correct behavior:

diff --git a/lisp/org.el b/lisp/org.el
index ad15d5e..a4932a2 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -12986,7 +12986,7 @@ in the current file.
  (interactive
   (let* ((completion-ignore-case t)
  (keys (org-buffer-property-keys nil t t))
-	  (prop0 (or (progn (org-at-property-p) (org-match-string-no- 
properties 2))
+	  (prop0 (or (when (org-at-property-p) (org-match-string-no- 
properties 2))

 (org-icompleting-read Property:  (mapcar 'list keys
  (prop (if (member prop0 keys)
prop0
@@ -13014,7 +13014,7 @@ in the current file.
  In the current entry, delete PROPERTY.
  (interactive
   (let* ((completion-ignore-case t)
-	  (prop (or (progn (org-at-property-p) (org-match-string-no- 
properties 2))
+	  (prop (or (when (org-at-property-p) (org-match-string-no- 
properties 2))

(org-icompleting-read
 Property:  (org-entry-properties nil 'standard)
 (list prop)))

--
Mikael Fornius


- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Tabel of contents - html export

2010-03-11 Thread Jörg Hagmann

When exporting this minimal.org  to html ...

--
* [[file:./a-file-to-download][file:./an-icon]] First

* [[file:./a-file-to-download][file:./an-icon]] Second
---

... the table of contents lists file:./  etc.
Is it possible to have it ignore what's in the brackets and just list 
First, Second?


Not a big problem, I can edit the html file by hand.

Thanks, Jörg


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [babel] problems with org-babel-src-block-regexp

2010-03-11 Thread Maurizio Vitale

There're problems with org-babel-src-block-regexp when the src block
contains the block delimiters (for instance in strings or comments).

Granted, this is an uncommon occurrence (which I discovered by accident)
editing an org-file containing elisp code that needed to insert
#+begin_src...#+end_src pairs, but if it is not too difficult to fix it
would be nice to have a more useful behaviour.

This is my setting:
org-babel-src-block-regexp is a variable defined in `org-babel.el'.
Its value is 
^[ ]*#\\+begin_src[]+\\(python\\|sh\\|emacs-lisp\\)[   
]*\\([^\:\n]*\[^\\n*]*\[^\:\n]*\\|[^\:\n]*\\)\\([^\n]*\\)\n\\([^



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: [babel] problems with org-babel-src-block-regexp (full text)

2010-03-11 Thread Maurizio Vitale

[sorry for the double posting, but the control char in the regexp
prevented the full message from appearing. This is what I meant to send]

There're problems with org-babel-src-block-regexp when the src block
contains the block delimiters (for instance in strings or comments).

Granted, this is an uncommon occurrence (which I discovered by accident)
editing an org-file containing elisp code that needed to insert
#+begin_src...#+end_src pairs, but if it is not too difficult to fix it
would be nice to have a more useful behaviour.

This is my setting (replaced 0x0 with ^@ to avoid posting problems):
org-babel-src-block-regexp is a variable defined in `org-babel.el'.
Its value is 
^[ ]*#\\+begin_src[]+\\(python\\|sh\\|emacs-lisp\\)[   
]*\\([^\:\n]*\[^\\n*]*\[^\:\n]*\\|[^\:\n]*\\)\\([^\n]*\\)\n\\([...@]+?\\)#\\+end_src

And these are two test cases. I'm particularly puzzled by the first,
because the regexp seems to be anchored to the begin of line and hence
it shouldn't match the begin_src inside the string.
For end_src, it should probably be anchored to the begin of line.

#+begin_src emacs-lisp
;;; evaluating the following C-x C-e with the point at the end is ok
(org-babel-where-is-src-block-head)
(defun foo () (insert #+begin_src emacs-lisp))
;;; evaluating the following C-x C-e with the point at the end is not ok
(org-babel-where-is-src-block-head)
#+end_src

#+begin_src emacs-lisp
;;; evaluating the following C-x C-e with the point at the end is ok
(org-babel-where-is-src-block-head)
(defun foo () (insert #+end_src emacs-lisp))
;;; evaluating the following C-x C-e with the point at the end is not ok
(org-babel-where-is-src-block-head)
#+end_src

Best regards,

 Maurizio 





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Wrong reference of ISO 6801, should be ISO 8601?

2010-03-11 Thread Yee Keat Phuah
In the latest org user manual pdf that I downloaded, on page 61,
there's a mention that the date format is inspired by ISO 6801,
however, I think the correct ISO should be ISO 8601?

Cheers,
Phuah Yee Keat


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: [PATCH] org-set/delete-property

2010-03-11 Thread Mikael Fornius

Hmm... I realize I should have thought some more about this before
posting the original patch.

I have second thoughts:

I think the behavior to take property under cursor as the one intended
to change when editing properties feels forcing and may be confusing.

Therefore I suggest two alternatives:

make it default alternative

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d6a0f76..425be41 100755
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,13 @@
 2010-03-11  Mikael Fornius  m...@abc.se
 
+	* org.el (org-set-property, org-delete-property)
+	(org-delete-property-globally): Suggest property at cursor as
+	initial input in completing-read instead of taking it as chosen.
+	For a more natural behavior. (Initial input does not work with
+	iswtichb.)
+
+2010-03-11  Mikael Fornius  m...@abc.se
+
 	* org.el (org-at-property-p): Check if we are inside a property
 	drawer not just any drawer.
 	(org-set-property, org-delete-property): When cursor is on a
diff --git a/lisp/org.el b/lisp/org.el
index a4932a2..0ba61fe 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -12986,8 +12986,8 @@ in the current file.
   (interactive
(let* ((completion-ignore-case t)
 	  (keys (org-buffer-property-keys nil t t))
-	  (prop0 (or (when (org-at-property-p) (org-match-string-no-properties 2))
-		 (org-icompleting-read Property:  (mapcar 'list keys
+	  (prop0 (org-icompleting-read Property:  (mapcar 'list keys) nil nil
+   (when (org-at-property-p) (org-match-string-no-properties 2
 	  (prop (if (member prop0 keys)
 		prop0
 		  (or (cdr (assoc (downcase prop0)
@@ -13014,9 +13014,8 @@ in the current file.
   In the current entry, delete PROPERTY.
   (interactive
(let* ((completion-ignore-case t)
-	  (prop (or (when (org-at-property-p) (org-match-string-no-properties 2))
-		(org-icompleting-read
-		 Property:  (org-entry-properties nil 'standard)
+	  (prop (org-icompleting-read Property:  (org-entry-properties nil 'standard) nil nil
+  (when (org-at-property-p) (org-match-string-no-properties 2)
  (list prop)))
   (message Property %s %s property
 	   (if (org-entry-delete nil property)
@@ -13027,9 +13026,9 @@ in the current file.
   Remove PROPERTY globally, from all entries.
   (interactive
(let* ((completion-ignore-case t)
-	  (prop (org-icompleting-read
-		 Globally remove property: 
-		 (mapcar 'list (org-buffer-property-keys)
+	  (prop (org-icompleting-read Globally remove property: 
+  (mapcar 'list (org-buffer-property-keys))  nil nil
+  (when (org-at-property-p) (org-match-string-no-properties 2)
  (list prop)))
   (save-excursion
 (save-restriction

or always prompt (like before)

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d6a0f76..4c4aac7 100755
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,10 @@
 2010-03-11  Mikael Fornius  m...@abc.se
 
+	* org.el (org-set-property, org-delete-property): Reverted to old
+	behaviour: do not use property at cursor but prompt always.
+
+2010-03-11  Mikael Fornius  m...@abc.se
+
 	* org.el (org-at-property-p): Check if we are inside a property
 	drawer not just any drawer.
 	(org-set-property, org-delete-property): When cursor is on a
diff --git a/lisp/org.el b/lisp/org.el
index a4932a2..72dfa9d 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -12986,8 +12986,7 @@ in the current file.
   (interactive
(let* ((completion-ignore-case t)
 	  (keys (org-buffer-property-keys nil t t))
-	  (prop0 (or (when (org-at-property-p) (org-match-string-no-properties 2))
-		 (org-icompleting-read Property:  (mapcar 'list keys
+	  (prop0 (org-icompleting-read Property:  (mapcar 'list keys)))
 	  (prop (if (member prop0 keys)
 		prop0
 		  (or (cdr (assoc (downcase prop0)
@@ -13014,9 +13013,7 @@ in the current file.
   In the current entry, delete PROPERTY.
   (interactive
(let* ((completion-ignore-case t)
-	  (prop (or (when (org-at-property-p) (org-match-string-no-properties 2))
-		(org-icompleting-read
-		 Property:  (org-entry-properties nil 'standard)
+	  (prop (org-icompleting-read Property:  (org-entry-properties nil 'standard
  (list prop)))
   (message Property %s %s property
 	   (if (org-entry-delete nil property)

For me they feels the same but I think the always prompt alternative
is better because it is simpler.

Simple is always good.

Sorry for spamming the change-log.

-- 
Mikael Fornius
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] docs bug for babel's R colnames support

2010-03-11 Thread Ian Fiske
Hi all,

Thanks for this awesome piece of software.  This is just a docs bug, I
think.  Following the online examples for babel's R language support,
the :colnames t option did not work for me.  It began to work only after
I used :colnames yes.

Best,
Ian

Emacs  : GNU Emacs 23.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.3)
 of 2009-11-10 on crested, modified by Debian
Package: Org-mode version 6.34trans

current state:
==
(setq
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-babel-interpreters '(R sh emacs-lisp)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe
org-hide-block-toggle-maybe)
 org-src-mode-hook '(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-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-mode-hook '((lambda nil
  (org-add-hook (quote change-major-mode-hook) (quote
org-babel-show-result-all)
   (quote append) (quote local))
  )
 org-babel-result-hide-spec org-babel-hide-all-hashes
 #[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook org-show-block-all append local] 5]
 )
 org-ctrl-c-ctrl-c-hook '(org-babel-lob-execute-maybe
org-babel-hash-at-point
  org-babel-execute-src-block-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src
org-babel-exp-inline-src-blocks))
 org-occur-hook '(org-first-headline-recenter)
 org-from-is-user-regexp \\Ian Fiske\\
 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-blocks nil)
 (comment org-export-blocks-format-comment t)
 (ditaa org-export-blocks-format-ditaa nil)
 (dot org-export-blocks-format-dot nil))
 )


-- 
Ian Fiske
PhD Candidate
Department of Statistics
North Carolina State University
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Showing scheduled blocked tasks

2010-03-11 Thread Carsten Dominik

Hi Phil,

On Mar 11, 2010, at 9:43 AM, Matthew Phillips wrote:


Hi Carsten,

reply inline below.

On 11/03/2010, at 4:40 PM, Carsten Dominik wrote:


On Mar 11, 2010, at 2:34 AM, Matthew Phillips wrote:

I am trying to get a TODO tags view in my daily agenda just shows  
the first TODO of a “Project” (a la the “next action” in GTD).  
This allows me to have a TODO “tags” block in my custom agenda  
that doesn’t run to several pages: I just see the next action for  
each project, and, as each action is marked DONE, the next one  
pops up.


I have *almost* managed to get this working by turning on org- 
enforce-todo-dependencies, setting “ORDERED: t” as a property on  
projects, and then using (setq org-agenda-dim-blocked-tasks  
'invisible).


However, this hides scheduled tasks from the agenda view if they  
are also blocked (I want them to show up if they are scheduled  
regardless). It seems that org-agenda-dim-blocked-tasks is not  
supported as a local setting on custom commands, so I can’t just  
make blocked tasks visible in the agenda view and invisible in the  
TODO tags query.


what do you mean by is not supported as a local option?  Does  
that mean you miss it in the customize menu for local option, or  
does that mean you have added it using the any variable entry and  
then it does not have the desired effect?


What I mean is setting it as an option in the custom commands does  
not seem to work, e.g. see list line in:


(setq org-agenda-custom-commands
...
   (d Daily Action List
((agenda  ((org-agenda-ndays 1)
 (org-agenda-sorting-strategy
  (quote ((agenda time-up priority-down tag-up) )))
 (org-deadline-warning-days 7)))
(tags TODO=\STARTED\+SCHEDULED=\\+DEADLINE=\\
  ((org-agenda-dim-blocked-tasks 'invisible)))
...

The org-agenda-dim-blocked-tasks on the generated tags view does  
not get honoured. It *does* get honoured as a setting one level  
higher, i.e. as a local setting to the whole org-agenda-custom- 
commands block, but that's not very useful here.


OK, I see now what is happening here.  The dimming of blocked tasks is
done only once, at the very end, when the agenda has been made.  And  
that is outside the scope of the local options.


You can use a normal (custom) agenda command and do the setting there.  
Or you can use the global options for the block agenda to set this for  
the entire block agenda.  But not for a single segment in a bloc  
agenda, I am afraid.


Changing this would be significant work, and I don't want to do this  
based on a single use case.


- Carsten








IMPORTANT: This email remains the property of the Australian  
Defence Organisation and is subject to the jurisdiction of section  
70 of the CRIMES ACT 1914.  If you have received this email in  
error, you are requested to contact the sender and delete the email.


Wow, this sounds scary.  Maybe you need to find a webmail host? :-)


Heh, well it's all legally binding as soon as you open the email,  
just like a EULA you realise? ;)


This is an unsightly side-effect of posting from an organisation  
that blocks webmail, requires the ugly [SEC=UNCLASSIFIED] for  
outside email, and adds that footer automatically.


Cheers,

Matthew.


- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [BUG] block agenda faces

2010-03-11 Thread Carsten Dominik


On Mar 7, 2010, at 2:34 PM, Łukasz Stelmach wrote:


Hello.

I've create a block agenda entry in my org-agenda custom commands:

--8---cut here---start-8---
(Ha agenda at home
 ((agenda 
  ((org-agenda-skip-function
'(org-agenda-skip-entry-if 'todo 'todo
 (tags-todo -SCHOOL-WORK-BUY
((org-agenda-sorting-strategy '(tag-up category-up))
--8---cut here---end---8---

(`org-agenda-skip-entry-if' for todos is my own invention I will share
soon (I think I've posted it somewhere but it might have been lost))


Have I not applied that patch?  I remember looking at it, but
have lost track what happened to it.



Everything's great except that DONE todos in the calendar block have
their DONE keyword in bold red instead of green.


I am so far unable to reproduce this, and I suspect that
something is wrong in your setup.  Maybe you can try to make a single
test file and a minimal .emacs file which still shows this problem?

- Carsten




The same agenda action launched as a single, toplevel command in
org-agenda-custom-commands works fine, wiht DONEs in green.

--
Miłego dnia,
Łukasz Stelmach



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] RE: Org-Mode for Nexus One?

2010-03-11 Thread Carsten Dominik


On Mar 5, 2010, at 9:34 PM, Dennis Groves wrote:


Gentlemen,

So what I had in mind was something like the attached A3.org  
describing the A3 quality process... Agenda allows you to see what  
is needs doing and when; but what I was wanting is a way to see what  
has been done compared with what needs doing at a given point of  
time (eg how does the current condition compare to the target  
condition?)


Hi Dennis,

I see a bit what you mean, but this is sill way too vague
to be actionable, I think.

- Carsten



Denni

--
Dennis Groves
m: 07917 711890
e: dennis.gro...@gmail.com
Think it, Ink it, Do it, Review it


On Wed, Mar 3, 2010 at 3:10 PM, Scot Becker scot.bec...@gmail.com  
wrote:
On that page, I assume it's the check it phase of the cycle.  It's  
a little confusing since the article has similar concepts to your  
signature, think it, ink it... but it's not exactly the same  
loop.  You review last.  He checks third.


But anyway, wouldn't checking/reviewing be quite different depending  
on what sort of work you're doing?   And org does have certain  
visibility and export features which could help--not to mention  
checkboxes with dynamically updated cumulative 'done' percentages--- 
but as you said, a short description like you gave would need to be  
filled out with a little more detail.  What do you mean by 'review  
it'  and what aspect of the review stage do want to facilitate?


Scot


On Wed, Mar 3, 2010 at 12:55 PM, Carsten Dominik carsten.domi...@gmail.com 
 wrote:

Hi Dennis,

I did read the PDCA page you mentioned - but the word review does
not even appear in it.  So I guess I do not understand yet what you
might mean with a review-it mode.

Either I am too stupid, or you have enemies that edit Wikipedia
as soon as you have referenced an article, or you linked to the  
wrong page, or ...?


:-)

Anyway, please enlighten me.

- Carsten


On Feb 28, 2010, at 4:36 PM, Dennis Groves wrote:

Hello fellow org-mode users and Carsten,

Since 2008 I have used org-mode to manage my work and life, and likely
in the most rudimentary ways compared to many of you, especially
considering the features of org-mode...

Recently, I have recently procured a google android nexus-one phone
and would love to see something like the mobileorg for nexus; does
anybody else have a similar interest?

Carsten: org mode allows us to think it, ink it, and do it: any chance
of getting a review it mode into org-mode? if you have no idea what I
am talking about (http://en.wikipedia.org/wiki/PDCA) and this is a
fairly vague requirement I will be happy to discuss it further...

--
Dennis Groves
co-founder of OWASP.org

E: dennis dot groves at gmail dot com

Think it, Ink it, Do it, Review it


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten






___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


A3.org


- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [PATCH 2/2] Fix adaptive filling.

2010-03-11 Thread Carsten Dominik

Hi everyone,


I know that a few people have been using this patch.

How has it been working?

- Carsten

On Mar 1, 2010, at 2:49 PM, Dan Hackney wrote:

For paragraph text, `org-adaptive-fill-function' did not handle the  
base case of
regular text which needed to be filled. This commit saves a buffer- 
local value
of `adaptive-fill-regexp' and uses it if none of the org-specific  
regexps match.

This allows email-style  comments to be filled correctly.

Signed-off-by: Dan Hackney d...@haxney.org
---
lisp/org.el |   25 -
1 files changed, 20 insertions(+), 5 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 8ba782a..073061e 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -17289,6 +17289,12 @@ which make use of the date at the cursor.
   t t))
(org-move-to-column column)))

+(defvar org-adaptive-fill-regexp-backup adaptive-fill-regexp
+  Variable to store copy of `adaptive-fill-regexp'.
+Since `adaptive-fill-regexp' is set to never match, we need to
+store a backup of its value before entering `org-mode' so that
+the functionality can be provided as a fall-back.)
+
(defun org-set-autofill-regexps ()
  (interactive)
  ;; In the paragraph separator we include headlines, because filling
@@ -17324,8 +17330,11 @@ which make use of the date at the cursor.
  ;; and fixed-width regions are not wrapped.  That function will pass
  ;; through to `fill-paragraph' when appropriate.
  (org-set-local 'fill-paragraph-function 'org-fill-paragraph)
-  ; Adaptive filling: To get full control, first make sure that
+  ;; Adaptive filling: To get full control, first make sure that
  ;; `adaptive-fill-regexp' never matches.  Then install our own  
matcher.

+  (unless (local-variable-p 'adaptive-fill-regexp)
+(org-set-local 'org-adaptive-fill-regexp-backup
+   adaptive-fill-regexp))
  (org-set-local 'adaptive-fill-regexp \000)
  (org-set-local 'adaptive-fill-function
 'org-adaptive-fill-function)
@@ -17354,8 +17363,11 @@ which make use of the date at the cursor.
  Return a fill prefix for org-mode files.
In particular, this makes sure hanging paragraphs for hand-formatted  
lists

work correctly.
-  (cond ((looking-at #[ \t]+)
-(match-string 0))
+  (cond
+   ;; Comment line
+   ((looking-at #[ \t]+)
+(match-string-no-properties 0))
+   ;; Description list
((looking-at [ \t]*\\([-*+] .*? :: \\))
 (save-excursion
   (if ( (match-end 1) (+ (match-beginning 1)
@@ -17363,11 +17375,14 @@ work correctly.
   (goto-char (+ (match-beginning 1) 5))
 (goto-char (match-end 0)))
   (make-string (current-column) ?\ )))
-   ((looking-at [ \t]*\\([-*+] \\|[0-9]+[.)]  ?\\)?)
+;; Ordered or unordered list
+   ((looking-at [ \t]*\\([-*+] \\|[0-9]+[.)]  ?\\))
 (save-excursion
   (goto-char (match-end 0))
   (make-string (current-column) ?\ )))
-   (t nil)))
+;; Other text
+((looking-at org-adaptive-fill-regexp-backup)
+ (match-string-no-properties 0

;;; Other stuff.

--
1.6.3.3



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Customizing checkbox statistics faces

2010-03-11 Thread Carsten Dominik

Hi Thomas,

I don't think matching the colors of checkbox statistics to the TODO  
keyword does not seem to carry useful additional information, so I am  
not applying your patch.  Maybe the best would be for you to remove  
the coloring of these structures alltogether?  By customizing the  
faces org-checkbox-statistics-*   ?


Best wishes, and thanks for your post.

- Carsten


On Feb 23, 2010, at 4:10 PM, Thomas Jost wrote:


Hello world,

In my TODO-list, I like to have custom colors for TODO keywords,  
such as

described in http://orgmode.org/worg/org-hacks.php#sec-19.
However I find it annoying to have different colors for the checkbox
statistics: instead of org-checkbox-statistics-done and
org-checkbox-statistics-todo, I'd like to have the same colors as for
the TODO keywords.

In order to do that, I tried to use org-font-lock-hook, I tried to
redefine the org-get-checkbox-statistics-face function, ... but it did
not work, because the regexp used to detect checkbox statistics does  
not

capture the TODO keyword.

So I wrote a little patch that changes this behavior. It matches the
TODO-keywords too, so that I can redefine
org-get-checkbox-statistics-face in my .emacs to do what I want.

The patch is available in my git repo:
http://code.schnouki.net/p/org-mode/source/commit/937dffeeb112e6ee6d02c0fe31767cee3b57275c/

Could you please merge it in the official git tree?

My .emacs is available on GitHub. The necessary code for  
customizingthe

checkbox statistics faces is here:
http://github.com/Schnouki/emacs-config/commit/d7ce3da1dbd40b3c4e425d069c3cf17b940644f8

Regards,

--
Thomas/Schnouki

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] clock resolver never stops if task hasn't been clocked before

2010-03-11 Thread Carsten Dominik

Hi Simon,

somehow I don't seem to be able to reproduce this bug.  Maybe I don't  
have some of your settings?  How about a minimal file and a  
minimal .emacs, or a full bug report according to the manual?


- Carsten

On Feb 28, 2010, at 8:31 AM, Simon Campese wrote:


Hello,

I just noticed a bug in the clock resolver while testing its
functionality which can be reproduced as follows:

 - Start the clock on a task which doesn't contain any clocked time
   (i.e. no clock-entries in the :LOGBOOK: property).

 - Leave emacs idle until the resolver gets active (I set my
   'org-clock-idle-time' to '1', maybe that's the cause of the bug)

 - Cancel the clock altogether (i.e. choose 'C' in the resolver), so
   that any clock information gets erased from the tasks'
   :LOGBOOK:.

 - If you now leave emacs idle again, the resolver gets active
   although no clock is running


At first I thought that this has something to do with my rather
unusual setting of 'org-clock-idle-time' to '1', but this can also be
reproduced with other settings (though I must confess that I just
tested a value of '2' additionally).

Unfortunately I'm an elisp-illiterate so that I can not look into it
myself.


Kind regards,

Simon
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Export to latex ignores user-mail-address

2010-03-11 Thread Jambunathan K

On 3/9/2010 10:40 PM, Carsten Dominik wrote:


On Mar 7, 2010, at 5:48 PM, Jambunathan K wrote:


Hi  Carsten

What can I do to get the email address automagically as in the header 
as below:


... [Snipped from Wikibook] 

\title{How to Structure a \LaTeX{} Document}
\author{Andrew Roberts\\
\texttt{an...@comp.leeds.ac.uk}}
\date{\today}
\maketitle

Ascii export does plugin the email-address based on email property.  
Shouldn't  (org-export-latex-make-header ...)  test the email 
property and emit the required latex line?


Maybe this will work:

AUTHOR: Andrew Roberts\newline\textttEMAIL}




On 3/10/2010 8:34 AM, Nick Dokos wrote:

Andrew Roberts\cr\textttEMAIL
   


Thanks for this suggestion. This satisfactorily addresses the concern 
that I had raised.


For completion's sake, let me register my observations here.

I was trying to get in a newline (in sort of a roundabout way).

Facts
1. Author string can have macros
2. Macro arguments allow linebreaks to be reproduced verbatim in 
exported files


Putting 1  2 together, I had a partial success.

Variant-1:

 org-input 

#+MACRO: verbatim $1
#+AUTHOR: {{{verbatim(Jambunathan K)}}}
* Section

  {{{verbatim(Jambunathan K)}}}

  {{{verbatim(Jambunathan
  K)}}}

 --- tex outut ---
...
\author{Jambunathan K}
...
\section{Section}
\label{sec-1}
  Jambunathan K
  Jambunathan
K
...

This is a well-formed tex file. Key thing is it validates facts 1  2 above.

Variant-2:

--- org input ---

#+MACRO: verbatim $1
#+AUTHOR:   {{{verbatim(Jambunathan
  K)}}}

* Section
  {{{verbatim(Jambunathan K)}}}
  {{{verbatim(Jambunathan
  K)}}}

--- tex output ---
...
\author{{\{{verbatim(Jambunathan}
...
\section{Section}
\label{sec-1}
  Jambunathan K
  Jambunathan
K

This is not a well-formed latex file.

My gut feelings is that although macros are enabled for author string, 
the parsing is broken when the invocation spans multiple lines.


Thanks,
Jambunathan K











Btw, I would like to thank you and all other contributors for making 
available this wonderful module.


Jambunathan K.


On 3/7/2010 8:54 PM, Carsten Dominik wrote:

Hi Jambunathan,

that is because \maketitle does not show an email address.

- Carsten

On Mar 6, 2010, at 5:47 PM, Jambunathan K wrote:

I am seeing latex export honors user-full-name but not 
user-mail-address.


The document header goes something like.

#+TITLE:My Title
#+DESCRIPTION:
#+STARTUP: showall
#+LaTeX: \setlength\parindent{0.0in}
#+LaTeX: \setlength\parskip{0.1in}

orgmode-version is 6.33x -  Emacs 23.1.91.1 (i386-mingw-nt5.1.2600).






___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten







- Carsten



- Carsten







___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] docs bug for babel's R colnames support

2010-03-11 Thread Thomas S. Dye

Thanks Ian,

I've made the changes and pushed them to Worg.

Tom

On Mar 11, 2010, at 6:54 AM, Ian Fiske wrote:


Hi all,

Thanks for this awesome piece of software.  This is just a docs bug,  
I think.  Following the online examples for babel's R language  
support, the :colnames t option did not work for me.  It began to  
work only after I used :colnames yes.


Best,
Ian

Emacs  : GNU Emacs 23.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.3)
 of 2009-11-10 on crested, modified by Debian
Package: Org-mode version 6.34trans

current state:
==
(setq
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial- 
vars)

 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-babel-interpreters '(R sh emacs-lisp)
 org-export-latex-format-toc-function 'org-export-latex-format-toc- 
default

 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-hide- 
block-toggle-maybe)

 org-src-mode-hook '(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-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-mode-hook '((lambda nil
		  (org-add-hook (quote change-major-mode-hook) (quote org-babel- 
show-result-all)

   (quote append) (quote local))
  )
 org-babel-result-hide-spec org-babel-hide-all-hashes
 #[nil \300\301\302\303\304$\207
		   [org-add-hook change-major-mode-hook org-show-block-all append  
local] 5]

 )
 org-ctrl-c-ctrl-c-hook '(org-babel-lob-execute-maybe org-babel-hash- 
at-point

  org-babel-execute-src-block-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src  
org-babel-exp-inline-src-blocks))

 org-occur-hook '(org-first-headline-recenter)
 org-from-is-user-regexp \\Ian Fiske\\
 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-blocks nil)
 (comment org-export-blocks-format-comment t)
 (ditaa org-export-blocks-format-ditaa nil)
 (dot org-export-blocks-format-dot nil))
 )


--
Ian Fiske
PhD Candidate
Department of Statistics
North Carolina State University
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




Thomas S. Dye, Ph.D.
T. S. Dye  Colleagues, Archaeologists, Inc.
Phone: (808) 529-0866 Fax: (808) 529-0884
http://www.tsdye.com


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Precision setting for spreadsheet calculation

2010-03-11 Thread Michael Brand

Eric S Fraga wrote:

Either destination within index.html is obviously fine (at least to
me!).  I guess Michael's query must have been due to the fact that
depending on where you click from, you get placed in a different place
in the index.html file?


Almost yes. Even the _same_ section_link can take you to different places at 
different times. Only now I found the probably easiest way to reproduce: 
start with

http://orgmode.org/manual/index.html
and repeat these two steps as many times as you like

1) click `1 Introduction' (or any other first level node) in the frame on the 
left side
2) click any `Top' (`1 Introduction' has two of them) in the frame on the 
right side or `Org Mode Manual' in the frame on the left side


Every second time doing these steps I am taken to the info_node_navigation
`Next: Introduction, Previous: (dir), Up: (dir)'
This is what I expect since following a `Top' from a info_node_navigation 
should take you simply to a info_node_navigation again in my opinion.

But every other second time I am taken to
`The Org Manual'
This is only the very top of the whole page but not the HTML_anchor
a name=Top/a


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Export to latex ignores user-mail-address

2010-03-11 Thread Jambunathan K


My gut feelings is that although macros are enabled for author string, 
the parsing is broken when the invocation spans multiple lines.


I would like to add the following observation as well -

--- org input ---
#+AUTHOR: Jambunathan K\cr\href{mailto:{{{EMAILEMAIL

--- actual tex output ---
\author{Jambunathan 
K\cr\href{mailto:kjambunat...@gmail.com}\{kjambunathan@gmail.com\}}


The above tex snippet has the effect of getting the Url Box wrong.

I was hoping to produce the following line -
\author{Jambunathan 
K\cr\href{mailto:kjambunat...@gmail.com}{kjambunathan@gmail.com}}


Generally speaking, macro expansion in author string behaves strangely.

Thanks,
Jambunathan K.




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Precision setting for spreadsheet calculation

2010-03-11 Thread Eric S Fraga
On Thu, 11 Mar 2010 14:49:28 -0500, Nick Dokos nicholas.do...@hp.com wrote:
 
 Michael Brand michael.br...@alumni.ethz.ch wrote:

[...]

 
 o I visit http://orgmode.org/manual/index.html
 o I click `1 Introduction' in the frame on the left side.
 o I click 'Previous: Top' in the Navigation line - I don't see a frame
   on the right side at all.
 
 Repeating the last two steps ad nauseam always takes me to the same place:
 the Navigation line above Org Mode Manual; it never takes me to the very
 top The Org Manual. I also tried other first level nodes with the same
 results.
 
 Firefox 3.0.18 on Ubuntu 8.10 (Jaunty).
 
 HTH,
 Nick

In case this is a useful data point, I am using Firefox 3.5.5 on Debian.


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org-mode and Nokia N900

2010-03-11 Thread Christopher Allan Webber
BTW, as an update to this ood discussion:

You can run emacs, git and orgmode natively on the n900 phone.  In fact,
this is what I do these days (I run emacs in a terminal, so I can use
the escape key that is part of the bottom menu-bar in place of meta).

Emacs + Git + Orgmode + n900 == awesome mobile orgmode (without needing
a special mobile org application)

 - cwebb

Thierry Guillemin tguille...@gmail.com writes:

 Hello

 This question comes after 
 reading http://lifehacker.com/5419988/five-best-outlining-tools
 and before buying a N900...

 Will it be possible to install Org-mode on the N900 (only Emacs available is 
 Qemacs) ?

 Merci d'avance

 T.

 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Org refile within current buffer?

2010-03-11 Thread Ryan Thompson
Is there an org-mode command to refile only within the current buffer?


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Active, fontified org hyperlinks in any major mode

2010-03-11 Thread Paul Sexton
To activate and correctly fontify org [[hyperlinks]] in any
major mode, add the following to your .emacs:

(defun orgl-do-font-lock (add-or-remove)
  Add or remove font-lock rules for org hyperlinks.
  (funcall add-or-remove nil '((org-activate-bracket-links (0 'org-link t)


(defun orgl-enable ()
  Enable fontification of org-style hyperlinks in the current buffer.
  (interactive)
  ;; The following variable has to be bound to a string, or opening links
  ;; will not work.
  ;; There is probably a more elegant solution.
  (unless org-todo-line-tags-regexp
(set (make-local-variable 'org-todo-line-tags-regexp)
 DSFSFSFSF_UTTER_NONSENSE_TAG_SDSDFSFDF))
  (orgl-do-font-lock 'font-lock-add-keywords)
  (font-lock-fontify-buffer))


(defun orgl-disable ()
  Disable fontification of org-style hyperlinks in the current buffer.
  (interactive)
  (remove-text-properties
 (point-min) (point-max)
   '(mouse-face t keymap t org-linked-text t
invisible t intangible t
org-no-flyspell t))
  (orgl-do-font-lock 'font-lock-remove-keywords)
  (font-lock-fontify-buffer))


;; Change lisp-mode-hook to whatever you want
(add-hook 'lisp-mode-hook 'orgl-enable)


I was amazed at how easy this was. The most obvious use for me is to put
[[hyperlinks]] in source code comments. The link behaves the same as in org 
mode, i.e. by default it looks for a matching target, then searches for
the text of the link starting from the top of the buffer.

Useful extensions would be:
- Figure out how to force hiding of the [[ ... ]] brackets. They disappear 
  only if the text is in the 'default' face.
- Fontification of targets to make them stand out would be useful
- Figure out how to define special link types outside org mode proper.
  eg in an emacs lisp file it would be good if the link [[defun:my-function]]
  would jump to a (defun my-function  toplevel form.

Paul







___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Org refile within current buffer?

2010-03-11 Thread Bernt Hansen
Ryan Thompson r...@thompsonclan.org writes:

 Is there an org-mode command to refile only within the current buffer?

Not natively unless you want to make that a global change.  You could
easily create a function that does that though I think.  Just bind that
to your favourite key sequence or use M-x my-refile

(defun my-refile ()
  (interactive)
  (let ((org-refile-targets '((nil :maxlevel . 5
(org-refile)))

HTH,
Bernt


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: [PATCH 2/2] Fix adaptive filling.

2010-03-11 Thread Austin Frank
On Thu, Mar 11 2010, Carsten Dominik wrote:

 Hi everyone,


 I know that a few people have been using this patch.

 How has it been working?

Brilliant.  When composing messages in mml-mode with orgstruct++-mode
enabled, I now get mml-appropriate wrapping in non-orgish parts of the
message.  This mostly means that on message sections with more than one
level of quoting I get proper wrapping.

Thanks for the patch, and I'd be in favor of including it in core org.

Thanks,
/au

-- 
Austin Frank
http://aufrank.net
GPG Public Key (D7398C2F): http://aufrank.net/personal.asc


pgp3WQ7bjFkqV.pgp
Description: PGP signature
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: [PATCH 2/2] Fix adaptive filling.

2010-03-11 Thread Samuel Wales
Unable to test it now.

On 2010-03-11, Austin Frank austin.fr...@gmail.com wrote:
 On Thu, Mar 11 2010, Carsten Dominik wrote:

 Hi everyone,


 I know that a few people have been using this patch.

 How has it been working?

 Brilliant.  When composing messages in mml-mode with orgstruct++-mode
 enabled, I now get mml-appropriate wrapping in non-orgish parts of the
 message.  This mostly means that on message sections with more than one
 level of quoting I get proper wrapping.

 Thanks for the patch, and I'd be in favor of including it in core org.

 Thanks,
 /au

 --
 Austin Frank
 http://aufrank.net
 GPG Public Key (D7398C2F): http://aufrank.net/personal.asc



-- 
Q: How many CDC scientists does it take to change a lightbulb?
A: You only think it's dark. [CDC has denied a deadly disease for 25 years]
==
Retrovirus: http://www.wpinstitute.org/xmrv/index.html


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode