Re: [Orgmode] Printing Multiple Lines For Agenda Export

2010-08-21 Thread Manish
On Sat, Aug 21, 2010 at 10:39 AM, Carsten Dominik wrote:
 Hi,

 this is now fixed.

 Thanks for the report.


Debug on error gives this dump:
,
| Debugger entered--Lisp error: (wrong-number-of-arguments eobp 1)
|   (eobp (forward-char 1))
|   (or (eobp (forward-char 1)))
|   (if (string-match \\S- txt) (insert \n txt) (or (eobp ...)))
|   (if (not (setq m ...)) (beginning-of-line 2) (setq txt
(org-agenda-get-some-entry-text m org-agenda-add-entry-text-maxlines 
)) (end-of-line 1) (if (string-match \\S- txt) (insert \n
txt) (or ...)))
|   (while (not (eobp)) (if (not ...) (beginning-of-line 2) (setq txt
...) (end-of-line 1) (if ... ... ...)))
|   (let (m txt) (goto-char (point-min)) (while (not ...) (if ... ...
... ... ...)))
|   (progn (let (m txt) (goto-char ...) (while ... ...)))
|   (if (and ( org-agenda-add-entry-text-maxlines 0) (not ...))
(progn (let ... ... ...)))
|   (when (and ( org-agenda-add-entry-text-maxlines 0) (not ...))
(let (m txt) (goto-char ...) (while ... ...)))
|   org-agenda-add-entry-text()
|   run-hooks(org-agenda-before-write-hook)
|   (progn (rename-buffer Agenda View t) (set-buffer-modified-p nil)
(insert bs) (org-agenda-remove-marked-text (quote org-filtered))
(while (setq beg ...) (delete-region beg ...)) (run-hooks (quote
org-agenda-before-write-hook)) (cond (... ...) (... ... ... ... ...
... ...) (... ... ... ...) (... ... ... ... ... ...) (... ... ...) (t
...)))
|   (unwind-protect (progn (rename-buffer Agenda View t)
(set-buffer-modified-p nil) (insert bs) (org-agenda-remove-marked-text
...) (while ... ...) (run-hooks ...) (cond ... ... ... ... ... ...))
(and (buffer-name temp-buffer) (kill-buffer temp-buffer)))
|   (save-current-buffer (set-buffer temp-buffer) (unwind-protect
(progn ... ... ... ... ... ... ...) (and ... ...)))
|   (with-current-buffer temp-buffer (unwind-protect (progn ... ...
... ... ... ... ...) (and ... ...)))
|   (let ((temp-buffer ...)) (with-current-buffer temp-buffer
(unwind-protect ... ...)))
|   (with-temp-buffer (rename-buffer Agenda View t)
(set-buffer-modified-p nil) (insert bs) (org-agenda-remove-marked-text
(quote org-filtered)) (while (setq beg ...) (delete-region beg ...))
(run-hooks (quote org-agenda-before-write-hook)) (cond (... ...) (...
... ... ... ... ... ...) (... ... ... ...) (... ... ... ... ... ...)
(... ... ...) (t ...)))
|   (let ((bs ...) beg) (org-agenda-unmark-filtered-text)
(with-temp-buffer (rename-buffer Agenda View t)
(set-buffer-modified-p nil) (insert bs) (org-agenda-remove-marked-text
...) (while ... ...) (run-hooks ...) (cond ... ... ... ... ... ...)))
|   (save-window-excursion (org-agenda-mark-filtered-text) (let (...
beg) (org-agenda-unmark-filtered-text) (with-temp-buffer ... ... ...
... ... ... ...)))
|   (save-excursion (save-window-excursion
(org-agenda-mark-filtered-text) (let ... ... ...)))
|   (let ((ps-number-of-columns 1) (ps-landscape-mode t)
(htmlize-output-type ...) (ps-print-color-p ...)) (save-excursion
(save-window-excursion ... ...)) #buffer *Org Agenda*)
|   eval((let ((ps-number-of-columns 1) (ps-landscape-mode t)
(htmlize-output-type ...) (ps-print-color-p ...)) (save-excursion
(save-window-excursion ... ...)) #buffer *Org Agenda*))
|   org-let(((ps-number-of-columns 1) (ps-landscape-mode t)
(htmlize-output-type (quote css)) (ps-print-color-p (quote
black-white))) (save-excursion (save-window-excursion
(org-agenda-mark-filtered-text) (let ... ... ...))) #buffer *Org
Agenda*)
|   org-write-agenda(d:/home/zms/zrepo.hg/org/2010-08-21.txt nil)
|   call-interactively(org-write-agenda nil nil)
`

Could my setup be messed up somehow?

Thanks
-- Manish

___
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] Printing Multiple Lines For Agenda Export

2010-08-21 Thread Carsten Dominik


On Aug 21, 2010, at 8:09 AM, Manish wrote:


On Sat, Aug 21, 2010 at 10:39 AM, Carsten Dominik wrote:

Hi,

this is now fixed.

Thanks for the report.



Debug on error gives this dump:


Not anymore. Thanks.

- Carsten


,
| Debugger entered--Lisp error: (wrong-number-of-arguments eobp 1)
|   (eobp (forward-char 1))
|   (or (eobp (forward-char 1)))
|   (if (string-match \\S- txt) (insert \n txt) (or (eobp ...)))
|   (if (not (setq m ...)) (beginning-of-line 2) (setq txt
(org-agenda-get-some-entry-text m org-agenda-add-entry-text-maxlines 

)) (end-of-line 1) (if (string-match \\S- txt) (insert \n

txt) (or ...)))
|   (while (not (eobp)) (if (not ...) (beginning-of-line 2) (setq txt
...) (end-of-line 1) (if ... ... ...)))
|   (let (m txt) (goto-char (point-min)) (while (not ...) (if ... ...
... ... ...)))
|   (progn (let (m txt) (goto-char ...) (while ... ...)))
|   (if (and ( org-agenda-add-entry-text-maxlines 0) (not ...))
(progn (let ... ... ...)))
|   (when (and ( org-agenda-add-entry-text-maxlines 0) (not ...))
(let (m txt) (goto-char ...) (while ... ...)))
|   org-agenda-add-entry-text()
|   run-hooks(org-agenda-before-write-hook)
|   (progn (rename-buffer Agenda View t) (set-buffer-modified-p nil)
(insert bs) (org-agenda-remove-marked-text (quote org-filtered))
(while (setq beg ...) (delete-region beg ...)) (run-hooks (quote
org-agenda-before-write-hook)) (cond (... ...) (... ... ... ... ...
... ...) (... ... ... ...) (... ... ... ... ... ...) (... ... ...) (t
...)))
|   (unwind-protect (progn (rename-buffer Agenda View t)
(set-buffer-modified-p nil) (insert bs) (org-agenda-remove-marked-text
...) (while ... ...) (run-hooks ...) (cond ... ... ... ... ... ...))
(and (buffer-name temp-buffer) (kill-buffer temp-buffer)))
|   (save-current-buffer (set-buffer temp-buffer) (unwind-protect
(progn ... ... ... ... ... ... ...) (and ... ...)))
|   (with-current-buffer temp-buffer (unwind-protect (progn ... ...
... ... ... ... ...) (and ... ...)))
|   (let ((temp-buffer ...)) (with-current-buffer temp-buffer
(unwind-protect ... ...)))
|   (with-temp-buffer (rename-buffer Agenda View t)
(set-buffer-modified-p nil) (insert bs) (org-agenda-remove-marked-text
(quote org-filtered)) (while (setq beg ...) (delete-region beg ...))
(run-hooks (quote org-agenda-before-write-hook)) (cond (... ...) (...
... ... ... ... ... ...) (... ... ... ...) (... ... ... ... ... ...)
(... ... ...) (t ...)))
|   (let ((bs ...) beg) (org-agenda-unmark-filtered-text)
(with-temp-buffer (rename-buffer Agenda View t)
(set-buffer-modified-p nil) (insert bs) (org-agenda-remove-marked-text
...) (while ... ...) (run-hooks ...) (cond ... ... ... ... ... ...)))
|   (save-window-excursion (org-agenda-mark-filtered-text) (let (...
beg) (org-agenda-unmark-filtered-text) (with-temp-buffer ... ... ...
... ... ... ...)))
|   (save-excursion (save-window-excursion
(org-agenda-mark-filtered-text) (let ... ... ...)))
|   (let ((ps-number-of-columns 1) (ps-landscape-mode t)
(htmlize-output-type ...) (ps-print-color-p ...)) (save-excursion
(save-window-excursion ... ...)) #buffer *Org Agenda*)
|   eval((let ((ps-number-of-columns 1) (ps-landscape-mode t)
(htmlize-output-type ...) (ps-print-color-p ...)) (save-excursion
(save-window-excursion ... ...)) #buffer *Org Agenda*))
|   org-let(((ps-number-of-columns 1) (ps-landscape-mode t)
(htmlize-output-type (quote css)) (ps-print-color-p (quote
black-white))) (save-excursion (save-window-excursion
(org-agenda-mark-filtered-text) (let ... ... ...))) #buffer *Org
Agenda*)
|   org-write-agenda(d:/home/zms/zrepo.hg/org/2010-08-21.txt nil)
|   call-interactively(org-write-agenda nil nil)
`

Could my setup be messed up somehow?

Thanks
-- Manish


- 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] cells are deformed in Japanese

2010-08-21 Thread soichi

hi.  I am a newbie in org-mode.  
My environment is: Emacs 23 and org-mode 7.01h.

I am trying to set up a spreadsheet and its entries are partially in Japanese.  
But if I type in Japanese and hit TAB, the cells do not align properly. 

| word  | meaning | date | reference |
|---+-+--+---|
| today | 今日| 0821 | rss   |
|---+-+--+---|
|   | |  |   |

Typing in English is fine.  Only in Japanese.

Is there anyway to resolve this?

soichi


___
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: Composing letters using org-mode and scrlttr2

2010-08-21 Thread Jambunathan K

Hi Carsten

Carsten Hi, Is someone working on producing a clean version of the
Carsten changes required to integrate this?

This is in my workqueue. I will followup on this very soon. 

Of late, mustering some org-fu and elisp-fu. This is delaying submission
of a cleaner version.

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


[Orgmode] Re: Request for opinions: [ANN] List improvement v.2o

2010-08-21 Thread Bernt Hansen
Nicolas Goaziou n.goaz...@gmail.com writes:

Hi Nicolas,

I just started trying out your new list code in one of my org-mode
setups and I think I found a problem.

Today I entered an org-capture task like this

,
| ** NEXT Investigate errors in log
|:CLOCK:
|CLOCK: [2010-08-21 Sat 07:00]
|:END:
|:LOGBOOK:
|- State NEXT   from TODO   [2010-08-21 Sat 07:00]
|:END:
|[2010-08-21 Sat 07:00]
`

and when I hit TAB at the end of this to add details I get this

,
| ** NEXT Investigate errors in log
|:CLOCK:
|CLOCK: [2010-08-21 Sat 07:00]
|:END:
|:LOGBOOK:
|- State NEXT   from TODO   [2010-08-21 Sat 07:00]
|:END:
|[2010-08-21 Sat 07:00]
|  cursor goes here
|instead of here
`

The tab indent is treating the list in the :LOGBOOK: as active even
though I'm not in the drawer.

Regards,
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


Re: [Orgmode] cells are deformed in Japanese

2010-08-21 Thread Carsten Dominik


On Aug 21, 2010, at 8:40 AM, soichi wrote:



hi.  I am a newbie in org-mode.
My environment is: Emacs 23 and org-mode 7.01h.

I am trying to set up a spreadsheet and its entries are partially in  
Japanese.  But if I type in Japanese and hit TAB, the cells do not  
align properly.


| word  | meaning | date | reference |
|---+-+--+---|
| today | 今日| 0821 | rss   |
|---+-+--+---|
|   | |  |   |

Typing in English is fine.  Only in Japanese.


Hi, this question is now answered in the FAQ:

http://orgmode.org/worg/org-faq.php#table-alignment-asian-characters

HTH

- 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] Error using Calc time format in table

2010-08-21 Thread Christian Moe

PS: It works with vsum:

| 1@ 23' 45 |
| 1@ 14' 45 |
||
| 2@ 38' 30 |
#+TBLFM: @3$1=vsum(@1$...@2$1)

But not with simple addition, subtraction etc.

I now see this was already stated at:
http://www.hollenback.net/index.php?pagename=EmacsOrgTimestamps

Unlike him, though, I'm not hung in an infinite loop, I just get 
#ERROR messages.


Yours,
CM



Christian Moe wrote:

Hi,

When I use Calc time format in the spreadsheet, it fails to deal with 
hours. (Using 7.01trans, pulled today.)


E.g. this simple sum gives an error:

| 1@ 23' 45 |
| 1@ 14' 45 |
||
| #ERROR |
#+TBLFM: @3...@1$1+@2$1

But summing just the minutes and seconds works:

| 23' 45|
| 14' 45|
||
| 0@ 38' 30 |
#+TBLFM: @3...@1$1+@2$1

I see there's been an issue with the `@' syntax, but it seems to have 
been solved:

http://article.gmane.org/gmane.emacs.orgmode/8520

Am I doing something wrong?

Yours,
Christian

___
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




--

Christian Moe
E-mail:  m...@christianmoe.com
Website: http://christianmoe.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


[Orgmode] Re: Request for opinions: [ANN] List improvement v.2o

2010-08-21 Thread Nicolas Goaziou
Hello,

 Bernt Hansen writes:

 Today I entered an org-capture task like this

 ,
 | ** NEXT Investigate errors in log
 |:CLOCK:
 |CLOCK: [2010-08-21 Sat 07:00]
 |:END:
 |:LOGBOOK:
 |- State NEXT   from TODO   [2010-08-21 Sat 07:00]
 |:END:
 |[2010-08-21 Sat 07:00]
 `

 and when I hit TAB at the end of this to add details I get this

 ,
 | ** NEXT Investigate errors in log
 |:CLOCK:
 |CLOCK: [2010-08-21 Sat 07:00]
 |:END:
 |:LOGBOOK:
 |- State NEXT   from TODO   [2010-08-21 Sat 07:00]
 |:END:
 |[2010-08-21 Sat 07:00]
 |  cursor goes here
 |instead of here
 `

 The tab indent is treating the list in the :LOGBOOK: as active even
 though I'm not in the drawer.

It is now fixed.

Thank you very much for testing this branch and reporting this bug.

Regards

-- Nicolas

___
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: Request for opinions: [ANN] List improvement v.2o

2010-08-21 Thread Bernt Hansen
Nicolas Goaziou n.goaz...@gmail.com writes:

 The tab indent is treating the list in the :LOGBOOK: as active even
 though I'm not in the drawer.

 It is now fixed.

 Thank you very much for testing this branch and reporting this bug.

Thanks for the quick fix and for also fixing the other two issues I
reported to you on IRC.  I'll let you know if I find any other issues.

Currently I'm only testing this on weekends but if it seems to be stable
enough I'll also add it to the system I use at work (on Windows).

Regards,
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] [PATCH] can't :include files in org-publish-project-alist

2010-08-21 Thread Łukasz Stelmach
EHLO.

I've just discovered that I can't publish a simple webpage anymore (some
options under C-c C-e sitll work but F and P don't). Short investigation
shows that when I run:

(org-publish-get-project-from-filename /home/steelman/dydaktyka/index.org)

in the *scratch* buffer I get

--8---cut here---start-8---
Debugger entered--Lisp error: (wrong-type-argument stringp (index.org))
  string-match((index.org) /home/steelman/dydaktyka/index.org)
  (and i (string-match i filename))
  (or (and i (string-match i filename)) (and (not ...) (string-match xm 
filename)))
  (if (or (and i ...) (and ... ...)) (progn (setq project-name ...) (throw ... 
project-name)))
[...]
--8---cut here---end---8---

assuming my org-publish-project-alist

--8---cut here---start-8---
(setq org-publish-project-alist
  '((dydaktyka-org
 :base-directory ~/dydaktyka
 :base-extension org
 :publishing-directory /some/dir
 :exclude .*
 :table-of-contents nil
 :publishing-function org-publish-org-to-html
 :include (index.org)) ;  HERE
(dydaktyka-files
 :base-directory ~/dydaktyka/data
 :recursive t
 :publishing-directory /some/dir/data
 :base-extension odt
 :publishing-function org-publish-attachment)
(dydaktyka :components (dydaktyka-org dydaktyka-files
--8---cut here---end---8---

However, with parenthesis around index.org removed the function seems to
work fine and returns

--8---cut here---start-8---
(dydaktyka-org :base-directory ~/dydaktyka :base-extension org
 :publishing-directory /some/dir
 :exclude .*
 :table-of-contents nil
 :publishing-function org-publish-org-to-html
 :include index.org)
--8---cut here---end---8---

All this leads to a patch like this:

--8---cut here---start-8---
Fix org-publish to accept list of files to :include again

Fix a regression introduced by Sebastian Rose's 339d6fe4 that makes
org-publish-get-project-from-filename function break if a project's
:include parameter contains a list of strings.

diff --git a/lisp/org-publish.el b/lisp/org-publish.el
index 6324eba..8a02df1 100644
--- a/lisp/org-publish.el
+++ b/lisp/org-publish.el
@@ -466,12 +466,15 @@ matching filenames.
  ;; [[info:org:Selecting%20files]] shows how this is supposed to work:
  (let* ((r (plist-get (cdr prj) :recursive))
 (b (expand-file-name (plist-get (cdr prj) :base-directory)))
+(b (concat b (when (string-match [^/]$ b) /))) ; How about 
Win?
 (x (or (plist-get (cdr prj) :base-extension) org))
 (e (plist-get (cdr prj) :exclude))
 (i (plist-get (cdr prj) :include))
 (xm (concat ^ b (if r .+ [^/]+) \\.\\( x \\)$)))
(when (or
-  (and i (string-match i filename))
+  (and i (stringp i) (string-match i filename))
+  (and i (listp i) (member filename
+   (mapcar (lambda (x) (concat b x)) 
i)))
   (and
(not (and e (string-match e filename)))
(string-match xm filename)))
--8---cut here---end---8---

-- 
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


Re: [Orgmode] [PATCH] can't :include files in org-publish-project-alist

2010-08-21 Thread Nick Dokos
=?utf-8?Q?=C5=81ukasz?= Stelmach lukasz.stelm...@iem.pw.edu.pl wrote:

  :include (index.org)) ;  HERE
... 
 However, with parenthesis around index.org removed the function seems to
 work fine and returns
 

Wasn't that fixed by the following commit?

commit 3529be82eff7906c1182fafbea6012fb6bfec160
Author: Carsten Dominik carsten.domi...@gmail.com
Date:   Mon Aug 16 17:27:25 2010 +0200

Fix interpretation of the :include property as a list of file names

Nick


___
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] Printing Multiple Lines For Agenda Export

2010-08-21 Thread Manish
Yes, it works now.  Sweet.

Thanks a lot.

Regards
-- Manish

On Sat, Aug 21, 2010 at 12:07 PM, Carsten Dominik
carsten.domi...@gmail.com wrote:

 On Aug 21, 2010, at 8:09 AM, Manish wrote:

 On Sat, Aug 21, 2010 at 10:39 AM, Carsten Dominik wrote:

 Hi,

 this is now fixed.

 Thanks for the report.


 Debug on error gives this dump:

 Not anymore. Thanks.

 - Carsten

 ,
 | Debugger entered--Lisp error: (wrong-number-of-arguments eobp 1)
 |   (eobp (forward-char 1))
 |   (or (eobp (forward-char 1)))
 |   (if (string-match \\S- txt) (insert \n txt) (or (eobp ...)))
 |   (if (not (setq m ...)) (beginning-of-line 2) (setq txt
 (org-agenda-get-some-entry-text m org-agenda-add-entry-text-maxlines 

 )) (end-of-line 1) (if (string-match \\S- txt) (insert \n

 txt) (or ...)))
 |   (while (not (eobp)) (if (not ...) (beginning-of-line 2) (setq txt
 ...) (end-of-line 1) (if ... ... ...)))
 |   (let (m txt) (goto-char (point-min)) (while (not ...) (if ... ...
 ... ... ...)))
 |   (progn (let (m txt) (goto-char ...) (while ... ...)))
 |   (if (and ( org-agenda-add-entry-text-maxlines 0) (not ...))
 (progn (let ... ... ...)))
 |   (when (and ( org-agenda-add-entry-text-maxlines 0) (not ...))
 (let (m txt) (goto-char ...) (while ... ...)))
 |   org-agenda-add-entry-text()
 |   run-hooks(org-agenda-before-write-hook)
 |   (progn (rename-buffer Agenda View t) (set-buffer-modified-p nil)
 (insert bs) (org-agenda-remove-marked-text (quote org-filtered))
 (while (setq beg ...) (delete-region beg ...)) (run-hooks (quote
 org-agenda-before-write-hook)) (cond (... ...) (... ... ... ... ...
 ... ...) (... ... ... ...) (... ... ... ... ... ...) (... ... ...) (t
 ...)))
 |   (unwind-protect (progn (rename-buffer Agenda View t)
 (set-buffer-modified-p nil) (insert bs) (org-agenda-remove-marked-text
 ...) (while ... ...) (run-hooks ...) (cond ... ... ... ... ... ...))
 (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))
 |   (save-current-buffer (set-buffer temp-buffer) (unwind-protect
 (progn ... ... ... ... ... ... ...) (and ... ...)))
 |   (with-current-buffer temp-buffer (unwind-protect (progn ... ...
 ... ... ... ... ...) (and ... ...)))
 |   (let ((temp-buffer ...)) (with-current-buffer temp-buffer
 (unwind-protect ... ...)))
 |   (with-temp-buffer (rename-buffer Agenda View t)
 (set-buffer-modified-p nil) (insert bs) (org-agenda-remove-marked-text
 (quote org-filtered)) (while (setq beg ...) (delete-region beg ...))
 (run-hooks (quote org-agenda-before-write-hook)) (cond (... ...) (...
 ... ... ... ... ... ...) (... ... ... ...) (... ... ... ... ... ...)
 (... ... ...) (t ...)))
 |   (let ((bs ...) beg) (org-agenda-unmark-filtered-text)
 (with-temp-buffer (rename-buffer Agenda View t)
 (set-buffer-modified-p nil) (insert bs) (org-agenda-remove-marked-text
 ...) (while ... ...) (run-hooks ...) (cond ... ... ... ... ... ...)))
 |   (save-window-excursion (org-agenda-mark-filtered-text) (let (...
 beg) (org-agenda-unmark-filtered-text) (with-temp-buffer ... ... ...
 ... ... ... ...)))
 |   (save-excursion (save-window-excursion
 (org-agenda-mark-filtered-text) (let ... ... ...)))
 |   (let ((ps-number-of-columns 1) (ps-landscape-mode t)
 (htmlize-output-type ...) (ps-print-color-p ...)) (save-excursion
 (save-window-excursion ... ...)) #buffer *Org Agenda*)
 |   eval((let ((ps-number-of-columns 1) (ps-landscape-mode t)
 (htmlize-output-type ...) (ps-print-color-p ...)) (save-excursion
 (save-window-excursion ... ...)) #buffer *Org Agenda*))
 |   org-let(((ps-number-of-columns 1) (ps-landscape-mode t)
 (htmlize-output-type (quote css)) (ps-print-color-p (quote
 black-white))) (save-excursion (save-window-excursion
 (org-agenda-mark-filtered-text) (let ... ... ...))) #buffer *Org
 Agenda*)
 |   org-write-agenda(d:/home/zms/zrepo.hg/org/2010-08-21.txt nil)
 |   call-interactively(org-write-agenda nil nil)
 `

 Could my setup be messed up somehow?

 Thanks
 -- Manish

 - 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] can't :include files in org-publish-project-alist

2010-08-21 Thread Łukasz Stelmach
Nick Dokos nicholas.do...@hp.com writes:

 =?utf-8?Q?=C5=81ukasz?= Stelmach lukasz.stelm...@iem.pw.edu.pl wrote:

  :include (index.org)) ;  HERE
... 
 However, with parenthesis around index.org removed the function seems to
 work fine and returns
 

 Wasn't that fixed by the following commit?

 commit 3529be82eff7906c1182fafbea6012fb6bfec160
 Author: Carsten Dominik carsten.domi...@gmail.com
 Date:   Mon Aug 16 17:27:25 2010 +0200

 Fix interpretation of the :include property as a list of file names

Yes it was. I forgot to pull. However the part with appending / to b
might still be valuable at least for building xm regexp. If
:base-directory is set to ~/dydaktyka (my example) then xm becomes
^/home/steelman/dydaktyka[^/]+\.\(org\) which not necessarily makes
sense. It may go like this

   (xm (concat ^ b
(when (string-match ^[/]$ b) /)
(if r .+ [^/]+)
 \\.\\( x \\)$)))

-- 
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


Re: [Orgmode] Some useful timestamp s-expressions

2010-08-21 Thread Manish
I added these to Worg.

-- Manish


On Thu, Aug 19, 2010 at 1:52 AM, Paul Sexton psex...@xnet.co.nz wrote:
 In org, timestamps can be in the usual angle-bracket format,
 eg 2010-08-19 +2w, or you can use lisp s-expressions. These are in the same
 format as the s-expressions used in the 'diary'/'calendar' emacs packages. I
 only discovered these recently but have been able to use them to schedule some
 complex recurring items. I thought I would share the code here.

 1. Recurring items with a limited number of occurrences

 For example, say you are taking night classes in Spanish. The class is every
 Wednesday evening at 7pm, starting on 18 August, and runs for 8 weeks. AFAIK
 Org's timestamps do not support limited occurrences of recurrent items -- you
 have to schedule the item with infinite recurrences, then delete it when it
 finishes.

 To schedule the Spanish classes, put the following in your .emacs:

 (defun diary-limited-cyclic (recurrences interval m d y)
  For use in emacs diary. Cyclic item with limited number of recurrences.
 Occurs every INTERVAL days, starting on -MM-DD, for a total of
 RECURRENCES occasions.
  (let ((startdate (calendar-absolute-from-gregorian (list m d y)))
        (today (calendar-absolute-from-gregorian date)))
    (and (not (minusp (- today startdate)))
         (zerop (% (- today startdate) interval))
         ( (floor (- today startdate) interval) recurrences

 The item in the org file looks like this:


 ** 19:00-21:00 Spanish lessons
 %%(diary-limited-cyclic 8 7 8 18 2010)


 2. Public holiday that is the nearest Monday to DATE

 In New Zealand each regional capital has an Anniversary Day. The date of
 Auckland's anniversary day is the nearest Monday to 29 January.

 Put this in your .emacs:

 (defun calendar-nearest-to (target-dayname target-day target-month)
  Recurring event that occurs in the nearest TARGET-DAYNAME to
 the date TARGET-DAY, TARGET-MONTH each year.
  (interactive)
  (let* ((dayname (calendar-day-of-week date))
         (target-date (list target-month target-day (calendar-extract-year 
 date)))
         (days-diff (abs (- (calendar-day-number date)
                            (calendar-day-number target-date)
    (and (= dayname target-dayname)
         ( days-diff 4

 Now we can schedule Auckland Anniversary Day. The first argument, 1, means
 Monday (days of the week are numbered starting with Sunday=0).


 *** Auckland Anniversary Day
 %%(calendar-nearest-to 1 29 1)


 3. Public holiday on the 4th Monday in October.

 This does not require any additions to .emacs:


 *** Labour Day (NZ)
 %%(diary-float 10 1 4)


 4. Easter

 Easter's date moves around from year to year according to a complicated set of
 criteria which I do not claim to understand. However the following code will
 allow you to schedule recurring events relative to Easter sunday.

 Note: the function da-easter is from:
 http://github.com/soren/elisp/blob/master/da-kalender.el

 Put the following in your .emacs:

 (defun da-easter (year)
  Calculate the date for Easter Sunday in YEAR. Returns the date in the
 Gregorian calendar, ie (MM DD YY) format.
  (let* ((century (1+ (/ year 100)))
         (shifted-epact (% (+ 14 (* 11 (% year 19))
                              (- (/ (* 3 century) 4))
                              (/ (+ 5 (* 8 century)) 25)
                              (* 30 century))
                           30))
         (adjusted-epact (if (or (= shifted-epact 0)
                                 (and (= shifted-epact 1)
                                      ( 10 (% year 19
                             (1+ shifted-epact)
                           shifted-epact))
         (paschal-moon (- (calendar-absolute-from-gregorian
                           (list 4 19 year))
                          adjusted-epact)))
    (calendar-dayname-on-or-before 0 (+ paschal-moon 7


 (defun da-easter-gregorian (year)
  (calendar-gregorian-from-absolute (da-easter year)))

 (defun calendar-days-from-easter ()
  When used in a diary sexp, this function will calculate how many days
 are between the current date (DATE) and Easter Sunday.
  (- (calendar-absolute-from-gregorian date)
     (da-easter (calendar-extract-year date

 Now we can schedule the public holidays associated with Easter as
 recurring events. Good Friday is 2 days before Easter, Easter Monday is one
 day after.


 *** Good Friday
 %%(= -2 (calendar-days-from-easter))

 *** Easter Sunday
 %%(= 0 (calendar-days-from-easter))

 *** Easter Monday
 %%(= 1 (calendar-days-from-easter))


 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


___
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] Gnuplot unevenly spaced non-numeric data plot?

2010-08-21 Thread John Hendy
Hi,


I'm interested in plotting with non-numeric data for the x component of the
data points but don't want to have the gnuplot default of automatic spacing.
Does anyone know a way to have a word displayed instead of a number but have
the words unevenly spaced according to a hidden value?

Example:

| 1 | x: where it should be on the scale |  y |
|---++|
| a |  0 | 10 |
| b | 10 | 20 |
| c | 11 | 30 |
| d | 40 | 40 |

Does that make sense? If I just had the table minus the 2nd column, it would
space a-d evenly as if they were 0,1,2,3 or something like that. I'd like
control over their spacing.


Thanks,
John
___
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] Gnuplot unevenly spaced non-numeric data plot?

2010-08-21 Thread Eric S Fraga
On Sat, 21 Aug 2010 14:30:48 -0500, John Hendy jw.he...@gmail.com wrote:
 
 [1  multipart/alternative (7bit)]
 [1.1  text/plain; ISO-8859-1 (7bit)]
 Hi,
 
 
 I'm interested in plotting with non-numeric data for the x component of the
 data points but don't want to have the gnuplot default of automatic spacing.
 Does anyone know a way to have a word displayed instead of a number but have
 the words unevenly spaced according to a hidden value?
 
 Example:
 
 | 1 | x: where it should be on the scale |  y |
 |---++|
 | a |  0 | 10 |
 | b | 10 | 20 |
 | c | 11 | 30 |
 | d | 40 | 40 |
 
 Does that make sense? If I just had the table minus the 2nd column, it would
 space a-d evenly as if they were 0,1,2,3 or something like that. I'd like
 control over their spacing.

It does make sense and gnuplot supports this perfectly fine. From the
gnuplot info manual (commands  set-show  xtics), an example is:

: set xtics (low 0, medium 50, high 100)

however, how to get this from org into gnuplot is something I cannot
help with.  Sorry.  Maybe babel is the way to go but I wouldn't have a
clue where to start...
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
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] [babel] R :session should respect ess-ask-for-ess-directory set by user

2010-08-21 Thread Erik Iverson

Hello,

I have (setq ess-ask-for-ess-directory nil) in my .emacs.  I.e., I don't
want to be asked to set my working directory.  As it stands, if we
run an R code block with the :session argument and no :dir argument,
ess-ask-for-ess-directory gets set to t.  I would prefer if I had
it previously set to nil, to do what ESS usually does to decide
which directory to use.

The following patch should do that, and below is some test code to
make sure it works in each of the 4 cases.

---
 lisp/ob-R.el |3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/lisp/ob-R.el b/lisp/ob-R.el
index 2a11421..e767449 100644
--- a/lisp/ob-R.el
+++ b/lisp/ob-R.el
@@ -155,7 +155,8 @@ This function is called by `org-babel-execute-src-block'.
   If there is not a current R process then create one.
   (unless (string= session none)
 (let ((session (or session *R*))
- (ess-ask-for-ess-directory (not (cdr (assoc :dir params)
+ (ess-ask-for-ess-directory
+  (and ess-ask-for-ess-directory (not (cdr (assoc :dir params))
   (if (org-babel-comint-buffer-livep session)
  session
(save-window-excursion
--
1.7.0.4


;; test code below

(setq ess-ask-for-ess-directory t)

#+begin_src R :session

2 + 2

#+end_src

#+begin_src R :session :dir /tmp

2 + 2

#+end_src


(setq ess-ask-for-ess-directory nil)

#+begin_src R :session

2 + 2

#+end_src

#+begin_src R :session :dir /tmp

2 + 2

#+end_src

___
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] Pretty cool Org-mode/Beamer demo

2010-08-21 Thread Eric S Fraga
On Fri, 20 Aug 2010 14:38:05 +0200, Carsten Dominik carsten.domi...@gmail.com 
wrote:
 
 
 Check out this!
 
http://www.youtube.com/watch?v=Ho6nMWGtepYfeature=player_embedded
 
 - Carsten

Finally found some time to look at this.  Brilliant!
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
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] Gnuplot unevenly spaced non-numeric data plot?

2010-08-21 Thread John Hendy
Nick,

That works from gnuplot. Not sure about orgmode... I tried

#+PLOT: using:2:3:xticlabels(1)

which is not working. There's no using option mentioned on worg:
http://orgmode.org/worg/org-tutorials/org-plot.php

http://orgmode.org/worg/org-tutorials/org-plot.phpPerhaps it's not
possible?

I could try the org-babel method but there seems to be less documentation on
this?

John

On Sat, Aug 21, 2010 at 3:41 PM, Nick Dokos nicholas.do...@hp.com wrote:

 John Hendy jw.he...@gmail.com wrote:

  Hi,
 
  I'm interested in plotting with non-numeric data for the x component of
 the data points but don't want to have the gnuplot default of automatic
 spacing.
  Does anyone know a way to have a word displayed instead of a number but
 have the words unevenly spaced according to a hidden value?
 
  Example:
 
  | 1 | x: where it should be on the scale |  y |
  |---++|
  | a |  0 | 10 |
  | b | 10 | 20 |
  | c | 11 | 30 |
  | d | 40 | 40 |
 
  Does that make sense? If I just had the table minus the 2nd column, it
 would space a-d evenly as if they were 0,1,2,3 or something like that. I'd
 like
  control over their spacing.

 Gnuplot can certainly do it, but whether you can convince org-plot/gnuplot
 to emit the right incantation, I don't know.

 Try the following in gnuplot

plot 'foo.data' using 2:3:xticlabels(1)

 with the data file containing

 ,
 | a  0  10
 | b 10  20
 | c 11  30
 | d 40  40
 `

 HTH,
 Nick

___
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-babel] References Not Expanding

2010-08-21 Thread aditya siram
Hi all,
I have the development version of org-mode and org-babel noweb style
references are not expanding during evaluation, they are instead copied
literally into the temp file. They seem to expand fine when tangling. Here
is file that is failing:
* Root
#+begin_src haskell :noweb yes :tangle Main.hs
  Imports
  Test
  main = print $ test [1,2,3]
#+end_src

* Imports
#+srcname: Imports
#+begin_src haskell
  import Control.Monad.State
#+end_src

* Append Function
#+srcname: Test
#+begin_src haskell
  test = length
#+end_src

I have tried unsuccessfully to make Imports and Append Function children
of Root.

Thanks!
-deech
___
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] Printing Multiple Lines For Agenda Export

2010-08-21 Thread Andre Powell
Is it fixed in 7.x versions?
Andre Powell


On Aug 21, 2010, at 12:25 PM, Manish wrote:

 Yes, it works now.  Sweet.
 
 Thanks a lot.
 
 Regards
 -- Manish
 
 On Sat, Aug 21, 2010 at 12:07 PM, Carsten Dominik
 carsten.domi...@gmail.com wrote:
 
 On Aug 21, 2010, at 8:09 AM, Manish wrote:
 
 On Sat, Aug 21, 2010 at 10:39 AM, Carsten Dominik wrote:
 
 Hi,
 
 this is now fixed.
 
 Thanks for the report.
 
 
 Debug on error gives this dump:
 
 Not anymore. Thanks.
 
 - Carsten
 
 ,
 | Debugger entered--Lisp error: (wrong-number-of-arguments eobp 1)
 |   (eobp (forward-char 1))
 |   (or (eobp (forward-char 1)))
 |   (if (string-match \\S- txt) (insert \n txt) (or (eobp ...)))
 |   (if (not (setq m ...)) (beginning-of-line 2) (setq txt
 (org-agenda-get-some-entry-text m org-agenda-add-entry-text-maxlines 
 
 )) (end-of-line 1) (if (string-match \\S- txt) (insert \n
 
 txt) (or ...)))
 |   (while (not (eobp)) (if (not ...) (beginning-of-line 2) (setq txt
 ...) (end-of-line 1) (if ... ... ...)))
 |   (let (m txt) (goto-char (point-min)) (while (not ...) (if ... ...
 ... ... ...)))
 |   (progn (let (m txt) (goto-char ...) (while ... ...)))
 |   (if (and ( org-agenda-add-entry-text-maxlines 0) (not ...))
 (progn (let ... ... ...)))
 |   (when (and ( org-agenda-add-entry-text-maxlines 0) (not ...))
 (let (m txt) (goto-char ...) (while ... ...)))
 |   org-agenda-add-entry-text()
 |   run-hooks(org-agenda-before-write-hook)
 |   (progn (rename-buffer Agenda View t) (set-buffer-modified-p nil)
 (insert bs) (org-agenda-remove-marked-text (quote org-filtered))
 (while (setq beg ...) (delete-region beg ...)) (run-hooks (quote
 org-agenda-before-write-hook)) (cond (... ...) (... ... ... ... ...
 ... ...) (... ... ... ...) (... ... ... ... ... ...) (... ... ...) (t
 ...)))
 |   (unwind-protect (progn (rename-buffer Agenda View t)
 (set-buffer-modified-p nil) (insert bs) (org-agenda-remove-marked-text
 ...) (while ... ...) (run-hooks ...) (cond ... ... ... ... ... ...))
 (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))
 |   (save-current-buffer (set-buffer temp-buffer) (unwind-protect
 (progn ... ... ... ... ... ... ...) (and ... ...)))
 |   (with-current-buffer temp-buffer (unwind-protect (progn ... ...
 ... ... ... ... ...) (and ... ...)))
 |   (let ((temp-buffer ...)) (with-current-buffer temp-buffer
 (unwind-protect ... ...)))
 |   (with-temp-buffer (rename-buffer Agenda View t)
 (set-buffer-modified-p nil) (insert bs) (org-agenda-remove-marked-text
 (quote org-filtered)) (while (setq beg ...) (delete-region beg ...))
 (run-hooks (quote org-agenda-before-write-hook)) (cond (... ...) (...
 ... ... ... ... ... ...) (... ... ... ...) (... ... ... ... ... ...)
 (... ... ...) (t ...)))
 |   (let ((bs ...) beg) (org-agenda-unmark-filtered-text)
 (with-temp-buffer (rename-buffer Agenda View t)
 (set-buffer-modified-p nil) (insert bs) (org-agenda-remove-marked-text
 ...) (while ... ...) (run-hooks ...) (cond ... ... ... ... ... ...)))
 |   (save-window-excursion (org-agenda-mark-filtered-text) (let (...
 beg) (org-agenda-unmark-filtered-text) (with-temp-buffer ... ... ...
 ... ... ... ...)))
 |   (save-excursion (save-window-excursion
 (org-agenda-mark-filtered-text) (let ... ... ...)))
 |   (let ((ps-number-of-columns 1) (ps-landscape-mode t)
 (htmlize-output-type ...) (ps-print-color-p ...)) (save-excursion
 (save-window-excursion ... ...)) #buffer *Org Agenda*)
 |   eval((let ((ps-number-of-columns 1) (ps-landscape-mode t)
 (htmlize-output-type ...) (ps-print-color-p ...)) (save-excursion
 (save-window-excursion ... ...)) #buffer *Org Agenda*))
 |   org-let(((ps-number-of-columns 1) (ps-landscape-mode t)
 (htmlize-output-type (quote css)) (ps-print-color-p (quote
 black-white))) (save-excursion (save-window-excursion
 (org-agenda-mark-filtered-text) (let ... ... ...))) #buffer *Org
 Agenda*)
 |   org-write-agenda(d:/home/zms/zrepo.hg/org/2010-08-21.txt nil)
 |   call-interactively(org-write-agenda nil nil)
 `
 
 Could my setup be messed up somehow?
 
 Thanks
 -- Manish
 
 - 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] Printing Multiple Lines For Agenda Export

2010-08-21 Thread Nick Dokos
Andre Powell apowell...@gmail.com wrote:

 Is it fixed in 7.x versions?
 Andre Powell
 

No, it is fixed in commit 96bacc020bef95861543b34985c2cc1190fb918c
(which had a typo that was fixed in commit 
a7660225af1737cc887fc57a2d2fa87ba8975206) -
both of those commits were done early this morning:

,
| commit a7660225af1737cc887fc57a2d2fa87ba8975206
| Author: Carsten Dominik carsten.domi...@gmail.com
| Date:   Sat Aug 21 08:37:11 2010 +0200
| 
| Fix code typo
| 
| commit 96bacc020bef95861543b34985c2cc1190fb918c
| Author: Carsten Dominik carsten.domi...@gmail.com
| Date:   Sat Aug 21 07:09:20 2010 +0200
| 
| Fix adding context lines in agenda
| 
| * lisp/org-agenda.el (org-agenda-add-entry-text): Make sure we move
| forward even if there is no text to be added.
| 
| Adding entry text with org-agenda-add-entry-text-maxlines greater than
| 0 could result in an infinite loop.
`

Do

   git show commit

with each of those SHA1 strings to see whether you have the commit in
your repository. Otherwise, you'll need to pull to get them.

Nick


 
 On Aug 21, 2010, at 12:25 PM, Manish wrote:
 
  Yes, it works now.  Sweet.
  
  Thanks a lot.
  
  Regards
  -- Manish
  
  On Sat, Aug 21, 2010 at 12:07 PM, Carsten Dominik
  carsten.domi...@gmail.com wrote:
  
  On Aug 21, 2010, at 8:09 AM, Manish wrote:
  
  On Sat, Aug 21, 2010 at 10:39 AM, Carsten Dominik wrote:
  
  Hi,
  
  this is now fixed.
  
  Thanks for the report.
  
  
  Debug on error gives this dump:
  
  Not anymore. Thanks.
  
  - Carsten
  
  ,
  | Debugger entered--Lisp error: (wrong-number-of-arguments eobp 1)
  |   (eobp (forward-char 1))
  |   (or (eobp (forward-char 1)))
  |   (if (string-match \\S- txt) (insert \n txt) (or (eobp ...)))
  |   (if (not (setq m ...)) (beginning-of-line 2) (setq txt
  (org-agenda-get-some-entry-text m org-agenda-add-entry-text-maxlines 
  
  )) (end-of-line 1) (if (string-match \\S- txt) (insert \n
  
  txt) (or ...)))
  |   (while (not (eobp)) (if (not ...) (beginning-of-line 2) (setq txt
  ...) (end-of-line 1) (if ... ... ...)))
  |   (let (m txt) (goto-char (point-min)) (while (not ...) (if ... ...
  ... ... ...)))
  |   (progn (let (m txt) (goto-char ...) (while ... ...)))
  |   (if (and ( org-agenda-add-entry-text-maxlines 0) (not ...))
  (progn (let ... ... ...)))
  |   (when (and ( org-agenda-add-entry-text-maxlines 0) (not ...))
  (let (m txt) (goto-char ...) (while ... ...)))
  |   org-agenda-add-entry-text()
  |   run-hooks(org-agenda-before-write-hook)
  |   (progn (rename-buffer Agenda View t) (set-buffer-modified-p nil)
  (insert bs) (org-agenda-remove-marked-text (quote org-filtered))
  (while (setq beg ...) (delete-region beg ...)) (run-hooks (quote
  org-agenda-before-write-hook)) (cond (... ...) (... ... ... ... ...
  ... ...) (... ... ... ...) (... ... ... ... ... ...) (... ... ...) (t
  ...)))
  |   (unwind-protect (progn (rename-buffer Agenda View t)
  (set-buffer-modified-p nil) (insert bs) (org-agenda-remove-marked-text
  ...) (while ... ...) (run-hooks ...) (cond ... ... ... ... ... ...))
  (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))
  |   (save-current-buffer (set-buffer temp-buffer) (unwind-protect
  (progn ... ... ... ... ... ... ...) (and ... ...)))
  |   (with-current-buffer temp-buffer (unwind-protect (progn ... ...
  ... ... ... ... ...) (and ... ...)))
  |   (let ((temp-buffer ...)) (with-current-buffer temp-buffer
  (unwind-protect ... ...)))
  |   (with-temp-buffer (rename-buffer Agenda View t)
  (set-buffer-modified-p nil) (insert bs) (org-agenda-remove-marked-text
  (quote org-filtered)) (while (setq beg ...) (delete-region beg ...))
  (run-hooks (quote org-agenda-before-write-hook)) (cond (... ...) (...
  ... ... ... ... ... ...) (... ... ... ...) (... ... ... ... ... ...)
  (... ... ...) (t ...)))
  |   (let ((bs ...) beg) (org-agenda-unmark-filtered-text)
  (with-temp-buffer (rename-buffer Agenda View t)
  (set-buffer-modified-p nil) (insert bs) (org-agenda-remove-marked-text
  ...) (while ... ...) (run-hooks ...) (cond ... ... ... ... ... ...)))
  |   (save-window-excursion (org-agenda-mark-filtered-text) (let (...
  beg) (org-agenda-unmark-filtered-text) (with-temp-buffer ... ... ...
  ... ... ... ...)))
  |   (save-excursion (save-window-excursion
  (org-agenda-mark-filtered-text) (let ... ... ...)))
  |   (let ((ps-number-of-columns 1) (ps-landscape-mode t)
  (htmlize-output-type ...) (ps-print-color-p ...)) (save-excursion
  (save-window-excursion ... ...)) #buffer *Org Agenda*)
  |   eval((let ((ps-number-of-columns 1) (ps-landscape-mode t)
  (htmlize-output-type ...) (ps-print-color-p ...)) (save-excursion
  (save-window-excursion ... ...)) #buffer *Org Agenda*))
  |   org-let(((ps-number-of-columns 1) (ps-landscape-mode t)
  (htmlize-output-type (quote css)) (ps-print-color-p (quote
  black-white))) (save-excursion (save-window-excursion
  (org-agenda-mark-filtered-text) (let ... ... ...))) #buffer *Org
  Agenda*)
  | 

Re: [Orgmode] Gnuplot unevenly spaced non-numeric data plot?

2010-08-21 Thread John Hendy
Problem solved with babel. I was able to get everything I wanted by piecing
together some examples from the mailing list and gnuplot examples/manual
around the web.

Thanks!


On Sat, Aug 21, 2010 at 4:11 PM, John Hendy jw.he...@gmail.com wrote:

 Nick,

 That works from gnuplot. Not sure about orgmode... I tried

 #+PLOT: using:2:3:xticlabels(1)

 which is not working. There's no using option mentioned on worg:
 http://orgmode.org/worg/org-tutorials/org-plot.php

 http://orgmode.org/worg/org-tutorials/org-plot.phpPerhaps it's not
 possible?

 I could try the org-babel method but there seems to be less documentation
 on this?

 John


 On Sat, Aug 21, 2010 at 3:41 PM, Nick Dokos nicholas.do...@hp.com wrote:

 John Hendy jw.he...@gmail.com wrote:

  Hi,
 
  I'm interested in plotting with non-numeric data for the x component of
 the data points but don't want to have the gnuplot default of automatic
 spacing.
  Does anyone know a way to have a word displayed instead of a number but
 have the words unevenly spaced according to a hidden value?
 
  Example:
 
  | 1 | x: where it should be on the scale |  y |
  |---++|
  | a |  0 | 10 |
  | b | 10 | 20 |
  | c | 11 | 30 |
  | d | 40 | 40 |
 
  Does that make sense? If I just had the table minus the 2nd column, it
 would space a-d evenly as if they were 0,1,2,3 or something like that. I'd
 like
  control over their spacing.

 Gnuplot can certainly do it, but whether you can convince org-plot/gnuplot
 to emit the right incantation, I don't know.

 Try the following in gnuplot

plot 'foo.data' using 2:3:xticlabels(1)

 with the data file containing

 ,
 | a  0  10
 | b 10  20
 | c 11  30
 | d 40  40
 `

 HTH,
 Nick



___
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] Printing Multiple Lines For Agenda Export

2010-08-21 Thread Andre Powell
Ok. Now here is the issue, I am somewhat of a mid level power user ( long
time Mac User that is loving the *nix side, but may move to some distro
because now it is becoming cool to own a Mac, but is not as cool as the real
*nix crowd), so simply hunh? I remember reading something on a wiki about
git, is there a sixth grade FAQ on how to make this a reality?

Off topic,but I think there may be a need for an orgmode on Training Wheels
Mailing List for users like me.

Andre

On Aug 21, 2010 6:31 PM, Nick Dokos nicholas.do...@hp.com wrote:

Andre Powell apowell...@gmail.com wrote:

 Is it fixed in 7.x versions?
 Andre Powell

No, it is fixed in commit 96bacc020bef95861543b34985c2cc1190fb918c
(which had a typo that was fixed in commit
a7660225af1737cc887fc57a2d2fa87ba8975206) -
both of those commits were done early this morning:

,
| commit a7660225af1737cc887fc57a2d2fa87ba8975206
| Author: Carsten Dominik carsten.domi...@gmail.com
| Date:   Sat Aug 21 08:37:11 2010 +0200
|
| Fix code typo
|
| commit 96bacc020bef95861543b34985c2cc1190fb918c
| Author: Carsten Dominik carsten.domi...@gmail.com
| Date:   Sat Aug 21 07:09:20 2010 +0200
|
| Fix adding context lines in agenda
|
| * lisp/org-agenda.el (org-agenda-add-entry-text): Make sure we move
| forward even if there is no text to be added.
|
| Adding entry text with org-agenda-add-entry-text-maxlines greater than
| 0 could result in an infinite loop.
`

Do

  git show commit

with each of those SHA1 strings to see whether you have the commit in
your repository. Otherwise, you'll need to pull to get them.

Nick




 On Aug 21, 2010, at 12:25 PM, Manish wrote:

  Yes, it works now. Sweet.
 
  Thanks...

 ___
 Emacs-orgmode mailing list
 Please use `Reply 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


[Orgmode] Re: Printing Multiple Lines For Agenda Export

2010-08-21 Thread Memnon Anon
Andre Powell apowell...@gmail.com writes:

 [...]  so simply hunh? I remember reading
 something on a wiki about git, is there a sixth grade FAQ on how to
 make this a reality?

,[ http://orgmode.org/ ]
| For people who cannot use git, we provide zip or tar.gz snapshot release
| files updated each day and corresponding to the latest git version.
`

hth

Memnon

___
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] Gnuplot unevenly spaced non-numeric data plot?

2010-08-21 Thread Nick Dokos
John Hendy jw.he...@gmail.com wrote:

 Problem solved with babel. I was able to get everything I wanted by
 piecing together some examples from the mailing list and gnuplot
 examples/manual around the web.
 

Good! Maybe you should post the babel solution for future reference.
Here is an org-plot solution for future reference: there is a script
option that allows you to use an arbitrary gnuplot script.  The org
manual (http://orgmode.org/manual/Org_002dPlot.html#Org-Plot) describes
it very well:

,
| script If you want total control, you can specify a script file (place
|the file name between double-quotes) which will be used to
|plot. Before plotting, every instance of $datafile in the
|specified script will be replaced with the path to the generated
|data file. Note: even if you set this option, you may still want
|to specify the plot type, as that can impact the content of the
|data file.
`

foo.org:
--8---cut here---start-8---
#+plot:  type:2d script:myscript.gp
| 1 | x: where it should be on the scale | y  |
|---++|
| a |  0 | 10 |
| b | 10 | 20 |
| c | 11 | 30 |
| d | 40 | 40 |
--8---cut here---end---8---

myscript.gp:
--8---cut here---start-8---
plot '$datafile' using 2:3:xticlabels(1)
--8---cut here---end---8---

Nick

___
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] Printing Multiple Lines For Agenda Export

2010-08-21 Thread Nick Dokos
Andre Powell apowell...@gmail.com wrote:

 Ok. Now here is the issue, I am somewhat of a mid level power user (
 long time Mac User that is loving the *nix side, but may move to some
 distro because now it is becoming cool to own a Mac, but is not as
 cool as the real *nix crowd), so simply hunh? I remember reading
 something on a wiki about git, is there a sixth grade FAQ on how to
 make this a reality?
 

Sorry - I got carried away. AFAIK, git is available on the Mac under
OSX, but I have no idea where to get it: somebody on OSX will have to
point you to it. After you get git installed, read this section of the
Org website:

 http://orgmode.org/index.html#sec-3_2

and follow the pointer to the Keeping current section of the FAQ.

git does tend to blow your mind the first few times you use it (it
shares that characteristic with org-mode, except that the latter keeps
coming up with new ways to blow your mind - git is pretty static by
comparison): don't be discouraged.

OTOH, you don't really need to understand much about git to keep current
with org development: a couple of commands is enough. You'll need to
know a bit more in order e.g. to experiment with Nicolas Goaziou's list
reimplementation since that is not in the upstream master (yet).

OTOOH, if you'd like to dig deeper, there are various git tutorials on
the web: try the git website (http://git.scm.org) and the Wikipedia page
on git. In addition, Scott Chacon's book ProGit is available in both
online and dead-tree versions - I've only read a couple of chapters but
it looks pretty good. The online version is at http://progit.org/book/

 Off topic,but I think there may be a need for an orgmode on Training
 Wheels  Mailing List for users like me.
 

But then you'd miss all the fun and excitement of this list... And you'd
always be wondering what the adults are talking about. Nah, you don't
want to do that :-)

Nick


___
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] Use integer syntax for the MODE argument to #'set-file-modes

2010-08-21 Thread Aidan Kehoe

Hello!

We need this change to get org-mode compiling with recent XEmacs 21.5. On
previous 21.5 and current 21.4, the problem manifests itself at runtime, not
compile time, like so:

  (set-file-modes /tmp/aidan/foo.el ?\755)
  = Wrong type argument: integerp, ?í

One old reason to go for the ?\755 syntax instead of the #o755 syntax under
GNU Emacs was to be that older versions of GNU Emacs didn’t support #o755,
but, to my knowledge, every released GNU Emacs since March 2000 has
supported the latter syntax.

Best,

Aidan Kehoe, the XEmacs project. 

ChangeLog addition:

2010-08-21  Aidan Kehoe  keh...@parhasard.net

* ob-tangle.el (org-babel-tangle): Change the MODE argument to
#'set-file-modes to use integer, not character syntax, avoiding
compile problems with recent XEmacs.

diff --git a/lisp/ob-tangle.el b/lisp/ob-tangle.el
index a7ba072..adc054a 100644
--- a/lisp/ob-tangle.el
+++ b/lisp/ob-tangle.el
@@ -187,7 +187,7 @@ exported source code blocks by language.
  (insert content)
  (write-region nil nil file-name
;; if files contain she-bangs, then make the executable
-   (when she-bang (set-file-modes file-name ?\755))
+   (when she-bang (set-file-modes file-name #o755))
 ;; update counter
 (setq block-counter (+ 1 block-counter))
 (add-to-list 'path-collector file-name)


-- 
“Apart from the nine-banded armadillo, man is the only natural host of
Mycobacterium leprae, although it can be grown in the footpads of mice.”
  -- Kumar  Clark, Clinical Medicine, summarising improbable leprosy research

___
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] Printing Multiple Lines For Agenda Export

2010-08-21 Thread Nick Dokos
Nick Dokos nicholas.do...@hp.com wrote:


 OTOOH, if you'd like to dig deeper, there are various git tutorials on
 the web: try the git website (http://git.scm.org) ...
 

I don't know where/how I came up with that URL, but it's wrong: it should be

   http://git-scm.com/

Sorry about that,
Nick


___
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] Printing Multiple Lines For Agenda Export

2010-08-21 Thread Nick Dokos
Nick Dokos nicholas.do...@hp.com wrote:

 Nick Dokos nicholas.do...@hp.com wrote:
 
 
  OTOOH, if you'd like to dig deeper, there are various git tutorials on
  the web: try the git website (http://git.scm.org) ...
  
 
 I don't know where/how I came up with that URL, but it's wrong: it should be
 
http://git-scm.com/
 

... and there is a pointer to the OSX binary distribution of git in the
Download area of the above website.

I'll-find-something-else-to-supplement-this-email-in-a-minute-ly yours,
Nick



___
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