[Orgmode] Re: Error "while: Stack overflow in regexp matcher"

2009-09-03 Thread Sébastien Vauban
Hi Carsten,

Carsten Dominik wrote:
> On Sep 2, 2009, at 6:05 PM, Sébastien Vauban wrote:
>> Carsten Dominik wrote:
>>> On Jul 15, 2009, at 11:12 AM, Sébastien Vauban wrote:

 I'm trying to publish my `.emacs' file onto the Web, for interested people
 to come and copy stuff they find valuable. My turn to do it.

 But, now, I wanna do it... and I've always an error when trying to
 publish my config file: "while: Stack overflow in regexp matcher".
>>>
>>> Sebastien has now (off-list) made it possible for me to reproduce this
>>> bug. Which is why it finally has been fixed.
>>
>> Thank you very much. This works as expected [²]. Fan-tas-tic!
>>
>> Thanks for all,
>>  Seb
>>
>> [²] The only minor thing -- this is a small detail! -- is that my buffer
>> uses `outline-minor-mode' and Org-level-* titles in comments (based on
>> the code of Tassilo) for enhancing the readability of any long file
>> (here, my `.emacs').
>>
>> While these titles are properly highlighted (other color, bigger font)
>> when read under Emacs, they are not in the HTMLized version of the
>> buffer.
>>
>> --8<---cut here---start->8---
>>;;** --[ Environment ]-
>> --8<---cut here---end--->8---
>>
>>simply becomes:
>>
>> --8<---cut here---start->8---
>> ;;
>> ** --
>> [ Environment ]-
>> --8<---cut here---end--->8---
>>
>>in HTML, while it should be fontified as the Org-level-1 face:
>>
>> --8<---cut here---start->8---
>>(org-level-1 ((t (:foreground "cornflower blue" :weight bold
>>:height 1.8 :family "Arial"
>> --8<---cut here---end--->8---
>
> What is the setup for getting this special fontification?

Having such a code in your `.emacs' file:

--8<---cut here---start->8---
;; Org-style folding for a `.emacs' (and much more)

(defun my-outline-regexp ()
  "Calculate the outline regexp for the current mode."
  (let ((comment-starter (replace-regexp-in-string
  "[[:space:]]+" "" comment-start)))
(when (string= comment-start ";")
  (setq comment-starter ";;"))
(concat comment-starter "[*]+ ")))

(defun my-outline-minor-mode-hook ()
  (interactive)
  (setq outline-regexp (my-outline-regexp))

  ;; highlight the headings
  (let ((heading-1-regexp
  (concat (substring outline-regexp 0 -1) "\\{1\\} \\(.*\\)"))
(heading-2-regexp
  (concat (substring outline-regexp 0 -1) "\\{2\\} \\(.*\\)"))
(heading-3-regexp
  (concat (substring outline-regexp 0 -1) "\\{3\\} \\(.*\\)"))
(heading-4-regexp
  (concat (substring outline-regexp 0 -1) "\\{4,\\} \\(.*\\)")))
(font-lock-add-keywords
 nil
 `((,heading-1-regexp 1 'org-level-1 t)
   (,heading-2-regexp 1 'org-level-2 t)
   (,heading-3-regexp 1 'org-level-3 t)
   (,heading-4-regexp 1 'org-level-4 t)

(add-hook 'outline-minor-mode-hook
  'my-outline-minor-mode-hook)
--8<---cut here---end--->8---


> How do you activate it?  In a mode hook?

... and adding "outline-minor" as a cookie or local variable in the file where
you want to use the `org-level-*' titles.

In my case, I have this at the bottom of my `.emacs' file:

--8<---cut here---start->8---
;; This is for the sake of Emacs.
;; Local Variables:
;; coding: utf-8
;; mode: emacs-lisp
;; mode: outline-minor
;; ispell-local-dictionary: "american"
;; End:

;;; .emacs ends here
--8<---cut here---end--->8---

Now, you can add `;;*' and `;;**', etc. as headings in your `.emacs' and cycle
using `M-tab', `M-left' and `M-right' will collapse or expand all headings
respectively.

See the thread "Org-style folding for a .emacs" discussed here in mid-July:

http://www.mail-archive.com/emacs-orgmode@gnu.org/msg15439.html


> Org just sets the proper mode to get the fontification, so
> I do not understand why this would not work.

Best regards,
  Seb

-- 
Sébastien Vauban



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


[Orgmode] Re: Workshop invitation to Berlin this weekend

2009-09-03 Thread Sébastien Vauban
Hi Sebastian,

Sebastian Rose wrote:
> September 5th 2PM I will conduct a workshop on Org-mode in Berlin.
> The title is
>
>   Working and publishing with GNU Emacs and Org-mode
>
> We will start setting up org-mode and have run through all the basics
> like tasks, time tracking, remember, tables and so on, to adjust the
> levels of all participants.
>
> We will go on and use Org-mode as the glue for projects, which involves
> time tracking as well as bug tracking and code management, radio tables,
> use the agenda and more.
>
> We will then go ahead and show how Org-mode can be used for
> authoring. The emphasis will be on publishing to XHTML and LaTeX/PDF.
>
> Note, that we have open end, so we might discuss more topics if we feel
> like it. E.g. check out some contributions in the contrib/lisp/
> directory.

Will there be a video of this event?  I think it always is interesting to
review how others do similar things than ours. At least, I'd like to see...

Best regards,
  Seb

-- 
Sébastien Vauban



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


Re: [Orgmode] Re: Error "while: Stack overflow in regexp matcher"

2009-09-03 Thread Carsten Dominik

Hi Sebastien,

I see.

Well, Org does not *visit* the file, so these variables are
not evaluated. Also, the argument of the #+include line determines
the major mode, not the local variable setting.

You can hack your way through this by adding a function
to org-src-mode-hook that will scan for

   mode: outline-minor

and turn it on if found.

I guess I could also consider to fully *visit* an include file,
to work around these restrictions.  The main reason why I am not
doing this right now is because the exact same mechanism is used for
inline examples and include files, and it would be significant
work to change this.

- Carsten

On Sep 3, 2009, at 9:54 AM, Sébastien Vauban wrote:


Hi Carsten,

Carsten Dominik wrote:

On Sep 2, 2009, at 6:05 PM, Sébastien Vauban wrote:

Carsten Dominik wrote:

On Jul 15, 2009, at 11:12 AM, Sébastien Vauban wrote:


I'm trying to publish my `.emacs' file onto the Web, for  
interested people

to come and copy stuff they find valuable. My turn to do it.

But, now, I wanna do it... and I've always an error when trying to
publish my config file: "while: Stack overflow in regexp matcher".


Sebastien has now (off-list) made it possible for me to reproduce  
this

bug. Which is why it finally has been fixed.


Thank you very much. This works as expected [²]. Fan-tas-tic!

Thanks for all,
Seb

[²] The only minor thing -- this is a small detail! -- is that my  
buffer
   uses `outline-minor-mode' and Org-level-* titles in comments  
(based on
   the code of Tassilo) for enhancing the readability of any long  
file

   (here, my `.emacs').

   While these titles are properly highlighted (other color,  
bigger font)
   when read under Emacs, they are not in the HTMLized version of  
the

   buffer.

--8<---cut here---start->8---
  ;;** --[ Environment ]-
--8<---cut here---end--->8---

  simply becomes:

--8<---cut here---start->8---
;;
** --
[ Environment ]-
--8<---cut here---end--->8---

  in HTML, while it should be fontified as the Org-level-1 face:

--8<---cut here---start->8---
  (org-level-1 ((t (:foreground "cornflower blue" :weight bold
  :height 1.8 :family "Arial"
--8<---cut here---end--->8---


What is the setup for getting this special fontification?


Having such a code in your `.emacs' file:

--8<---cut here---start->8---
;; Org-style folding for a `.emacs' (and much more)

(defun my-outline-regexp ()
 "Calculate the outline regexp for the current mode."
 (let ((comment-starter (replace-regexp-in-string
 "[[:space:]]+" "" comment-start)))
   (when (string= comment-start ";")
 (setq comment-starter ";;"))
   (concat comment-starter "[*]+ ")))

(defun my-outline-minor-mode-hook ()
 (interactive)
 (setq outline-regexp (my-outline-regexp))

 ;; highlight the headings
 (let ((heading-1-regexp
 (concat (substring outline-regexp 0 -1) "\\{1\\} \\(.*\\)"))
   (heading-2-regexp
 (concat (substring outline-regexp 0 -1) "\\{2\\} \\(.*\\)"))
   (heading-3-regexp
 (concat (substring outline-regexp 0 -1) "\\{3\\} \\(.*\\)"))
   (heading-4-regexp
 (concat (substring outline-regexp 0 -1) "\\{4,\\} \\(.*\ 
\)")))

   (font-lock-add-keywords
nil
`((,heading-1-regexp 1 'org-level-1 t)
  (,heading-2-regexp 1 'org-level-2 t)
  (,heading-3-regexp 1 'org-level-3 t)
  (,heading-4-regexp 1 'org-level-4 t)

(add-hook 'outline-minor-mode-hook
 'my-outline-minor-mode-hook)
--8<---cut here---end--->8---



How do you activate it?  In a mode hook?


... and adding "outline-minor" as a cookie or local variable in the  
file where

you want to use the `org-level-*' titles.

In my case, I have this at the bottom of my `.emacs' file:

--8<---cut here---start->8---
;; This is for the sake of Emacs.
;; Local Variables:
;; coding: utf-8
;; mode: emacs-lisp
;; mode: outline-minor
;; ispell-local-dictionary: "american"
;; End:

;;; .emacs ends here
--8<---cut here---end--->8---

Now, you can add `;;*' and `;;**', etc. as headings in your `.emacs'  
and cycle
using `M-tab', `M-left' and `M-right' will collapse or expand all  
headings

respectively.

See the thread "Org-style folding for a .emacs" discussed here in  
mid-July:


http://www.mail-archive.com/emacs-orgmode@gnu.org/msg15439.html



Org just sets the proper mode to get the fontification, so
I do not understand why this would not work.


Best regards,
 Seb

--
Sébastien Vauban



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

Re: [Orgmode] Re: small emacs for using org on Android

2009-09-03 Thread Sven Bretfeld
 writes:

> Actually I find it significantly slower using ssh - there is a
> noticeable lag. I only really want to use it for org-mode so I don't
> need any heavy computation.
> However I must admit I get a more reliable cursor position using SSH
> (with a local connection it is sometimes off by a line).

Just checked the exact time: It takes 10 seconds to have Emacs ready via
ssh. Within the same time an app like the music player starts. How long
would a native Emacs running on the phone take to start? 

I use ssh with key authentication, no password-typing: 8 sec. to
connect. Additional 2 seconds to type a bash-alias for emacsclient -t.
For me, it's fast enough for adding a note via org-remember, even during
a conversation.

Greetings

Sven


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


[Orgmode] Re: wrong-type-argument when publishing to HTML

2009-09-03 Thread Sébastien Vauban
Hi Carsten,

Carsten Dominik wrote:
> On Sep 2, 2009, at 1:44 PM, Sébastien Vauban wrote:
>
>> A colleague of mine gets the error `(wrong-type-argument stringp nil)' when
>> executing the command (from a script, under Ubuntu and Emacs 22.2.1 with
>> Org-mode 6.29c):
>>
>> --8<---cut here---start->8---
>> emacs --batch \
>>  --load ./Org2HTML.el \
>>  --visit=agile-software-development.org \
>>  --funcall org-publish-current-file
>> --8<---cut here---end--->8---
>>
>> The detailed result is:
>>
>> --8<---cut here---start->8---
>> [...]
>> Publishing file /home/llg/devel/Internet/source/agile-software-
>> development.org using `org-publish-org-to-html'
>> Exporting...
>> Warning: defvar ignored because description is let-bound
>> Exporting...
>> Exporting...
>> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>>  string-match(nil "")
>>  (while (string-match org-maybe-keyword-time-regexp s) (or b (setq b ...))
>> (setq r (concat r ... " @" ... ...
>> "@") s (substring s ...)))
>>  (let (r b) (while (string-match org-maybe-keyword-time-regexp s) (or b ...)
>> (setq r ... s ...)) (if (not r) s (setq r ...)  (unless ... ...) r))
>>  (catch (quote exit) (let (r b) (while ... ... ...) (if ... s ... ... r)))
>>  org-html-handle-time-stamps("")
>>  (setq line (org-html-handle-time-stamps line))
>>  (catch (quote nextline) (when (and inquote ...) (insert "\n")
>> [...]
>> --8<---cut here---end--->8---
>>
>> I tried to understand what could be wrong, but don't see anything special
>> with the time-stamps.
>>
>> Here is the contents of Org2HTML.el:
>>
>> --8<---cut here---start->8---
>> ;; Org-mode
>> (require 'org)
>>
>> ;; publish related Org-mode files as a website
>> (require 'org-publish)
>>
>> ;; association list to control publishing behavior
>> (setq org-publish-project-alist
>>  '(("Project"
>> :base-directory "./"
>> :recursive t
>> :publishing-directory "../public_html/"
>> :base-extension "org"
>> :publishing-function org-publish-org-to-html
>> :section-numbers nil
>> :table-of-contents nil
>> :author-info nil
>> :creator-info nil
>> :style-include-default nil
>> :style ">   \"assets/css/common.css\"/>"
>> :timestamp nil
>> [...]
>> :auto-preamble nil
>> :auto-postamble nil
>> :auto-index t  ; Generate index.org automagically...
>> :index-filename "sitemap.org"  ; ... call it sitemap.org ...
>> :index-title "Sitemap" ; ... with title 'Sitemap'.
>> )))
>> --8<---cut here---end--->8---
>
> This looks to me as if the the file being published is not in org-mode. So
> my first guess would be that Org2HTML.el misses the following line:
>
> (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
>
> Remember that --batch processing implies -q, i.e. the .emacs file will not
> be evalated.

I knew that, but I thought that

--8<---cut here---start->8---
;; Org-mode
(require 'org)
--8<---cut here---end--->8---

would add the association `.org' in `auto-mode-alist' on its own.

Anyway, adding the above `add-to-list' line (just after the `require org')
solved the problem of my colleague. Thanks.


> Another solution might be to add
>
> --load ~/.emacs
>
> directly after --batch, but that only works if the .emacs files does not do
> seomthing strange. For example, some people have their .emacs file
> automatically switch to a certain file or displaying the agenda or so. That
> may not be a good idea in batch mode.

Like you, I would not be in favor of such a solution. My goal is having a kind
of minimal `.emacs' file (this is the goal of Org2HTML.el) that can be used by
anybody using my Makefile.

Best regards,
  Seb

-- 
Sébastien Vauban



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


Re: [Orgmode] Re: wrong-type-argument when publishing to HTML

2009-09-03 Thread Carsten Dominik


On Sep 3, 2009, at 10:11 AM, Sébastien Vauban wrote:


Hi Carsten,

Carsten Dominik wrote:

On Sep 2, 2009, at 1:44 PM, Sébastien Vauban wrote:

A colleague of mine gets the error `(wrong-type-argument stringp  
nil)' when
executing the command (from a script, under Ubuntu and Emacs  
22.2.1 with

Org-mode 6.29c):

--8<---cut here---start->8---
emacs --batch \
--load ./Org2HTML.el \
--visit=agile-software-development.org \
--funcall org-publish-current-file
--8<---cut here---end--->8---

The detailed result is:

--8<---cut here---start->8---
[...]
Publishing file /home/llg/devel/Internet/source/agile-software-
development.org using `org-publish-org-to-html'
Exporting...
Warning: defvar ignored because description is let-bound
Exporting...
Exporting...
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
string-match(nil "")
(while (string-match org-maybe-keyword-time-regexp s) (or b (setq  
b ...))
(setq r (concat r ... " @\">" ... ...

"@") s (substring s ...)))
(let (r b) (while (string-match org-maybe-keyword-time-regexp s)  
(or b ...)

(setq r ... s ...)) (if (not r) s (setq r ...)  (unless ... ...) r))
(catch (quote exit) (let (r b) (while ... ... ...) (if ...  
s ... ... r)))

org-html-handle-time-stamps("")
(setq line (org-html-handle-time-stamps line))
(catch (quote nextline) (when (and inquote ...) (insert "\n")
[...]
--8<---cut here---end--->8---

I tried to understand what could be wrong, but don't see anything  
special

with the time-stamps.

Here is the contents of Org2HTML.el:

--8<---cut here---start->8---
;; Org-mode
(require 'org)

;; publish related Org-mode files as a website
(require 'org-publish)

;; association list to control publishing behavior
(setq org-publish-project-alist
'(("Project"
   :base-directory "./"
   :recursive t
   :publishing-directory "../public_html/"
   :base-extension "org"
   :publishing-function org-publish-org-to-html
   :section-numbers nil
   :table-of-contents nil
   :author-info nil
   :creator-info nil
   :style-include-default nil
   :style " \"assets/css/ 
common.css\"/>"

   :timestamp nil
   [...]
   :auto-preamble nil
   :auto-postamble nil
   :auto-index t  ; Generate index.org  
automagically...

   :index-filename "sitemap.org"  ; ... call it sitemap.org ...
   :index-title "Sitemap" ; ... with title 'Sitemap'.
   )))
--8<---cut here---end--->8---


This looks to me as if the the file being published is not in org- 
mode. So

my first guess would be that Org2HTML.el misses the following line:

(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))

Remember that --batch processing implies -q, i.e. the .emacs file  
will not

be evalated.


I knew that, but I thought that

--8<---cut here---start->8---
;; Org-mode
(require 'org)
--8<---cut here---end--->8---

would add the association `.org' in `auto-mode-alist' on its own.


No, this is, I think, against Emacs conventions, because
it would overrule user setup - some people might want to
use .org for a different purpose.

In Emacs 23, the default value for auto-mode-alist contains the
regexp for org-mode, but I guess you are not running 23 in this case.



Anyway, adding the above `add-to-list' line (just after the `require  
org')

solved the problem of my colleague. Thanks.


You are welcome.

- Carsten



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


[Orgmode] Re: wrong-type-argument when publishing to HTML

2009-09-03 Thread Sébastien Vauban
Hi Carsten,

Carsten Dominik wrote:
> On Sep 3, 2009, at 10:11 AM, Sébastien Vauban wrote:
>> Carsten Dominik wrote:
>>> On Sep 2, 2009, at 1:44 PM, Sébastien Vauban wrote:
>>>
 A colleague of mine gets the error `(wrong-type-argument stringp nil)'
 when executing the command (from a script, under Ubuntu and Emacs 22.2.1
 with Org-mode 6.29c):

 --8<---cut here---start->8---
 emacs --batch \
--load ./Org2HTML.el \
--visit=agile-software-development.org \
--funcall org-publish-current-file
 --8<---cut here---end--->8---

 Here is the contents of Org2HTML.el:

 --8<---cut here---start->8---
 ;; Org-mode
 (require 'org)

 ;; publish related Org-mode files as a website
 (require 'org-publish)

 ;; association list to control publishing behavior
 (setq org-publish-project-alist
 '(("Project"
:base-directory "./"
:recursive t
:publishing-directory "../public_html/"
:base-extension "org"
:publishing-function org-publish-org-to-html
[...]
)))
 --8<---cut here---end--->8---
>>>
>>> This looks to me as if the the file being published is not in org- mode.
>>> So my first guess would be that Org2HTML.el misses the following line:
>>>
>>> (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
>>>
>>> Remember that --batch processing implies -q, i.e. the .emacs file will not
>>> be evalated.
>>
>> I knew that, but I thought that
>>
>> --8<---cut here---start->8---
>> ;; Org-mode
>> (require 'org)
>> --8<---cut here---end--->8---
>>
>> would add the association `.org' in `auto-mode-alist' on its own.
>
> No, this is, I think, against Emacs conventions, because it would overrule
> user setup - some people might want to use .org for a different purpose.

Can you really imagine that? ;-)

OK. I was totally unaware of this fact, that we had to do such an association
(between the `.org' extension and the Org-mode) "manually" ...


> In Emacs 23, the default value for auto-mode-alist contains the regexp for
> org-mode, but I guess you are not running 23 in this case.

... or had to use Emacs 23 -- what I'm doing for a long while already, but not
my colleague (still using Emacs 22).

Well seen!


>> Anyway, adding the above `add-to-list' line (just after the `require org')
>> solved the problem of my colleague. Thanks.
>
> You are welcome.

Thanks again.

Seb

-- 
Sébastien Vauban



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


[Orgmode] Re: Some table questions

2009-09-03 Thread andrea crotti
Nick Dokos  writes:

>
> Check out section 12.6.4 (Tables in HTML export) of the Org manual.
>

Thanks I found it very nice, my info manual differs from the online,
maybe because I'm still using version 6.28..

Anyway another thing, nested tables are not allowed, is it correct?
Sometimes I would like to have one row longer than one cell only but it
doesn't look possible..

Every cell can't contain '\n' also as I found out, is that correct?




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


Re: [Orgmode] Footnote references don't belong in the table of contents

2009-09-03 Thread Andrew Stribblehill
Verified, thanks.

2009/9/3 Carsten Dominik :
> Hi Andrew,
>
> I think this is fixed now, please verify.
>
> Thanks!
>
> - Carsten
>
> On Sep 2, 2009, at 3:01 PM, Andrew Stribblehill wrote:
>
>> Emacs  : GNU Emacs 22.1.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll
>> bars)
>> of 2008-05-02 on king, modified by Ubuntu
>> Package: Org-mode version 6.30
>>
>> current state:
>> ==
>> (setq
>> org-clock-in-switch-to-state "DOING"
>> org-todo-keyword-faces '(("BLOCKING" . org-agenda-dimmed-todo-face)
>>                          ("DOING" . stribb/org-agenda-doing))
>> org-agenda-clockreport-parameter-plist '(:link t :maxlevel 2 :effort t)
>> org-agenda-custom-commands '(("S" "snippet view" agenda ""
>>                               ((org-agenda-show-log t)
>>                                (org-agenda-log-mode-items (quote (state)))
>>                                (org-agenda-archives-mode t)
>>                                (org-agenda-include-inactive-timestamps t)
>>                                (org-agenda-clockreport-mode t))
>>                               )
>>                              )
>> org-agenda-files '("~/org/feedback-template.org"
>>                    "~/org/kill-all-gateways.org" "~/org/notes.org"
>>                    "~/org/objectives.org" "~/org/perms.org"
>>                    "~/org/proj-sanitised.org" "~/org/tax.org"
>>                    "~/org/todo.org" "~/org/whisky.org")
>> org-after-todo-state-change-hook '(org-clock-out-if-current)
>> org-clock-history-length 35
>> org-clock-in-prepare-hook '(stribb/org-mode-ask-effort)
>> org-export-preprocess-hook '(org-export-blocks-preprocess)
>> org-tab-first-hook '(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-todo-keywords '((sequence "TODO(t)" "DOING(w!)" "|" "DONE(d!)"
>>                      "CANCELLED(c@)")
>>                     (sequence "BLOCKING(b@/!)"))
>> org-agenda-before-write-hook '(org-agenda-add-entry-text)
>> org-agenda-start-with-follow-mode t
>> org-default-notes-file "~/org/refile.org"
>> org-directory "~/org/"
>> org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
>>                  org-cycle-show-empty-lines
>>                  org-optimize-window-after-visibility-change)
>> org-publish-project-alist '(("org" :base-directory "~/org/"
>> :base-extension
>>                              "org" :publishing-directory
>>                              "~/public_html/org/" :style-include-default
>> nil
>>                              :style
>>                              "> type=\"text/css\">")
>>                             )
>> org-refile-target-verify-function '(lambda nil
>>                                     (not (member "ARCHIVE"
>> (org-get-tags
>> org-mode-hook '((lambda nil (auto-fill-mode 1))
>>                 #[nil "\300\301\302\303\304$\207"
>>                   [org-add-hook change-major-mode-hook org-show-block-all
>>                    append local]
>>                   5]
>>                 )
>> org-clock-out-remove-zero-time-clocks t
>> org-refile-targets '((org-agenda-files :maxlevel . 2))
>> org-confirm-elisp-link-function 'yes-or-no-p
>> org-refile-use-outline-path 'file
>> org-log-into-drawer t
>> org-occur-hook '(org-first-headline-recenter)
>> org-remember-templates '(("refile" 114
>>                           "* %?\n  :PROPERTIES:\n  :Filed: %U\n  :END:\n
>>  %i\n  %a")
>>                          )
>> org-link-abbrev-alist '(("b" . "http://b/";) ("tick" . "http://tick/";)
>>                         ("cl" . "http://cl/";) ("googler" . "http://who/";)
>>                         ("p4" . "http://s/file=";)
>>                         ("wiki" . "http://wiki/Main/";)
>>                         ("google3" . "file:///Depot/google3/"))
>> )
>>
>>
>>
>> I have a file:
>> 8<-
>> * Foo
>> * Bar [fn:1]
>>
>> [fn:1] this explains bar
>> 8<-
>>
>> When I export it to HTML, I see Bar[1] in the ToC. The number there
>> isn't clickable but I don't think it should be there at all.
>>
>>
>> ___
>> Emacs-orgmode mailing list
>> Remember: 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
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Exporting latex formulas

2009-09-03 Thread andrea crotti

When I export to html my latex formulas are not "touched" at all, the
only variable that should be in charge
(setq export-with-LaTex-fragments t)

is already set to t, and the formula is nicely converted to image inside
emacs, what else could that be?

Thanks



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


[Orgmode] auto export via git hook

2009-09-03 Thread andrea crotti

I want to automatically export to html or something else in my pre- 
commit hook with git, I tried many things but I always get the same 
error 

mbpro:rt-simulate andrea$ cat .git/hooks/pre-commit.bak 
emacs --batch --load=$HOME/.emacs.d/org-mode/org.el --eval "(setq org- 
export-headline-levels 2)" --visit=README.org --funcall org-export-as- 
html-batch 

mbpro:rt-simulate andrea$ sh .git/hooks/pre-commit.bak 
Cannot open load file: org-macs 
org-macs is a library which is situated ~/.emacs.d/org-mode which 
should be automatically in the load path (not using --quiet), so what 
could be the problem? 

Thanks again



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


Re: [Orgmode] Re: Workshop invitation to Berlin this weekend

2009-09-03 Thread Sebastian Rose
Sébastien Vauban  writes:
> Hi Sebastian,
>
> Sebastian Rose wrote:
>> September 5th 2PM I will conduct a workshop on Org-mode in Berlin.
>> The title is
>>
>>   Working and publishing with GNU Emacs and Org-mode
>>
>> We will start setting up org-mode and have run through all the basics
>> like tasks, time tracking, remember, tables and so on, to adjust the
>> levels of all participants.
>>
>> We will go on and use Org-mode as the glue for projects, which involves
>> time tracking as well as bug tracking and code management, radio tables,
>> use the agenda and more.
>>
>> We will then go ahead and show how Org-mode can be used for
>> authoring. The emphasis will be on publishing to XHTML and LaTeX/PDF.
>>
>> Note, that we have open end, so we might discuss more topics if we feel
>> like it. E.g. check out some contributions in the contrib/lisp/
>> directory.
>
> Will there be a video of this event?  I think it always is interesting to
> review how others do similar things than ours. At least, I'd like to see...

Unfortunately not.

There are two main reasons for this:

  a) I don't have a camera capable of recording 6 or more hours in good
 quality.

  b) The organizer doesn't want that. Maybe they had issues with
 attendants not willing to be seen/heard on video in the past.

As for me, a video would have been fine. I don't do such things very
often, and I know it's fun to see all the stumbling and sweat on video
:-D

A chance to learn something, too.


Best wishes

  Sebastian


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


Re: [Orgmode] Re: BUG: blank items in the agenda

2009-09-03 Thread Peter Westlake
On Thu, 03 Sep 2009 08:50 +0200, "Carsten Dominik"
 wrote:
> Hi Peter,
> 
> I have pushed a fix, please verify.
> 
> - Carsten

Yes, the line is no longer there.

Thank you for always fixing bugs so quickly!

Peter.


> On Sep 3, 2009, at 12:07 AM, Peter Westlake wrote:
> 
> >
> >
> > On Wed, 02 Sep 2009 23:35 +0200, "Carsten Dominik"
> >  wrote:
> >> Hi Peter,
> >>
> >> is this only happening if the entry is the *first* entry in the list
> >> in the agenda?
> >
> > No, it's the same if it's second or third too (or more, but I stopped
> > there).
> >
> > Thanks for looking at this,
> >
> > Peter.
> >
> >> - Carsten
> >>
> >> On Sep 2, 2009, at 11:02 PM, Peter Westlake wrote:
> >>
> >>>
> >>>
> >>> On Wed, 02 Sep 2009 14:11 -0400, "Nick Dokos"
> >>>  wrote:
>  Matt Lundin  wrote:
> >>> ...
> >>>
> > I can't duplicate this.
> >
> > GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.16.5)
> >
> > Org-mode version 6.30c
> >
> 
>  Neither can I (same versions, more-or-less).
> 
>  Peter, can you check the faces? Maybe the item disappears in a   
>  same-
>  color background? I get 'org-agenda-dimmed-todo-face' for your item
>  and 'org-scheduled-previously' for other items (not sure why), so
>  it's conceivable that a face setting is responsible.
> 
>  M-x describe-face while the cursor is on the appropriate text will
>  do it (if you have hl-line-mode on, you may have to turn it off
>  first).
> >>>
> >>> It's org-scheduled-today, foreground DarkGreen. That's the colour it
> >>> appears  when it isn't a TODO item. It doesn't change when I add a
> >>> TODO, or when the agenda is redisplayed with the blank line.
> >>>
> >>> One reason for treating this as a bug rather than an oddity of
> >>> display is that the apparently blank line still responds to
> >>> commands, so it could be modified without the user knowing.
> >>>
> >>> Peter.
> >>>
> >>>
> >>> ___
> >>> Emacs-orgmode mailing list Remember: 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
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Org-mode version 6.30trans; 'q' key doesn't quit agenda

2009-09-03 Thread Neal Thomison

The 'q' key fails to quit an agenda buffer.

The error message is:

org-agenda-quit: Wrong number of arguments: window-dedicated-p, 0

I looked at the code and the problem seems to be here:

(defun org-agenda-quit ()
  "Exit agenda by removing the window or the buffer."
  (interactive)
  (if org-agenda-columns-active
  (org-columns-quit)
(if (window-dedicated-p) (delete-other-windows))
...))

'window-dedicated-p' requires a window arg

Thanks,
Neal


Emacs  : GNU Emacs 22.3.1 (i386-apple-darwin9.7.0, Carbon Version 1.6.0)
 of 2009-08-05 on viewport3-2.local
Package: Org-mode version 6.30trans

current state:
==
(setq
 org-log-done '(done state)
 org-todo-keyword-faces '(("TODO" :foreground "green4" :slant italic)
  ("NEXT" :foreground "green" :slant italic)
  ("WAIT" :foreground "OrangeRed1" :weight bold)
  ("DONE" :foreground "SteelBlue1"))
 org-agenda-custom-commands '(("p" tags-tree #(":PROJECT:/+TODO|+NEXT" 0
21 (face org-warning)))
  ("w" tags-tree #(":PROJECT:/WAIT" 0 14 (face
org-warning)))
  ("i" tags #(":PROJECT:" 0 9 (face org-warning))
   ((org-agenda-skip-function
 (lambda nil
  (let ((subtree-end (save-excursion (org-end-of-subtree
t
   (if (re-search-forward "TODO\\|NEXT\\|WAIT"
subtree-end t)
subtree-end nil)
   )
  )
 )
(org-agenda-overriding-header "Malformed projects: "))
   )
  ("x" tags-tree #(":PROJECT:" 0 9 (face org-warning))
   ((org-agenda-skip-function
 (quote
  (org-agenda-skip-entry (quote regexp)
"TODO\\|NEXT\\|WAIT"))
 )
(org-agenda-overriding-header "Projects & steps list: "))
   )
  )
 org-agenda-files '("~/Desktop/Org/work.org"
"~/Desktop/Org/home.org")
 org-agenda-include-diary t
 org-agenda-window-setup 'current-window
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-agenda-sorting-strategy '((agenda time-up category-down
priority-down) (todo priority-down)
   (tags priority-down))
 org-agenda-restore-windows-after-quit t
 org-agenda-skip-scheduled-if-done t
 org-agenda-time-grid '((daily today require-timed remove-match)
""
(800 1000 1200 1400 1600 1800 2000))
 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-tab-first-hook '(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-todo-keywords '((sequence "TODO(t)" "NEXT(n)" "WAIT(w@/!)" "DONE(d!)"))
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-default-notes-file "~/Desktop/Org/notes.org"
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-show-empty-lines
org-optimize-window-after-visibility-change)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207"
   [org-add-hook change-major-mode-hook org-show-block-all
append local] 5]
 )
 org-indirect-buffer-display 'new-frame
 org-refile-targets '((org-agenda-files :maxlevel . 2))
 org-confirm-elisp-link-function 'yes-or-no-p
 org-fast-tag-selection-single-key 'expert
 org-log-into-drawer t
 org-agenda-mode-hook '((lambda nil (hl-line-mode 1)))
 org-agenda-skip-deadline-if-done t
 org-reverse-note-order t
 org-occur-hook '(org-first-headline-recenter)
 org-from-is-user-regexp "\\"
 org-remember-templates '(("home" 104 "* TODO %?  %u\n\n"
"~/Desktop/Org/home.org" "Tasks" nil)
  ("notes" 110 "* %u %?" "~/Desktop/Org/notes.org" "Notes" nil)
  ("work" 119 "* TODO %?  %u\n\n" "~/Desktop/Org/work.org"
"Tasks" nil))
 org-icalendar-include-todo t
 )



___
Emacs-orgmode mailing list
Remember: 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 version 6.30trans; 'q' key doesn't quit agenda

2009-09-03 Thread Carsten Dominik

Hi Neal,

Yes, in Emacs 22 it seems that this argument is needed.

Fixed, thanks.

- Carsten

On Sep 3, 2009, at 1:43 PM, Neal Thomison wrote:



The 'q' key fails to quit an agenda buffer.

The error message is:

org-agenda-quit: Wrong number of arguments: window-dedicated-p, 0

I looked at the code and the problem seems to be here:

(defun org-agenda-quit ()
 "Exit agenda by removing the window or the buffer."
 (interactive)
 (if org-agenda-columns-active
 (org-columns-quit)
   (if (window-dedicated-p) (delete-other-windows))
...))

'window-dedicated-p' requires a window arg

Thanks,
Neal


Emacs  : GNU Emacs 22.3.1 (i386-apple-darwin9.7.0, Carbon Version  
1.6.0)

of 2009-08-05 on viewport3-2.local
Package: Org-mode version 6.30trans

current state:
==
(setq
org-log-done '(done state)
org-todo-keyword-faces '(("TODO" :foreground "green4" :slant italic)
 ("NEXT" :foreground "green" :slant italic)
 ("WAIT" :foreground "OrangeRed1" :weight bold)
 ("DONE" :foreground "SteelBlue1"))
org-agenda-custom-commands '(("p" tags-tree #(":PROJECT:/+TODO| 
+NEXT" 0

21 (face org-warning)))
 ("w" tags-tree #(":PROJECT:/WAIT" 0 14 (face
org-warning)))
 ("i" tags #(":PROJECT:" 0 9 (face org-warning))
  ((org-agenda-skip-function
(lambda nil
 (let ((subtree-end (save-excursion (org-end-of- 
subtree

t
  (if (re-search-forward "TODO\\|NEXT\\|WAIT"
subtree-end t)
   subtree-end nil)
  )
 )
)
   (org-agenda-overriding-header "Malformed projects: "))
  )
 ("x" tags-tree #(":PROJECT:" 0 9 (face org-warning))
  ((org-agenda-skip-function
(quote
 (org-agenda-skip-entry (quote regexp)
"TODO\\|NEXT\\|WAIT"))
)
   (org-agenda-overriding-header "Projects & steps list:  
"))

  )
 )
org-agenda-files '("~/Desktop/Org/work.org"
   "~/Desktop/Org/home.org")
org-agenda-include-diary t
org-agenda-window-setup 'current-window
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-agenda-sorting-strategy '((agenda time-up category-down
priority-down) (todo priority-down)
  (tags priority-down))
org-agenda-restore-windows-after-quit t
org-agenda-skip-scheduled-if-done t
org-agenda-time-grid '((daily today require-timed remove-match)
""
   (800 1000 1200 1400 1600 1800 2000))
org-export-preprocess-hook '(org-export-blocks-preprocess)
org-tab-first-hook '(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-todo-keywords '((sequence "TODO(t)" "NEXT(n)" "WAIT(w@/!)"  
"DONE(d!)"))

org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-default-notes-file "~/Desktop/Org/notes.org"
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide- 
drawers

 org-cycle-show-empty-lines
org-optimize-window-after-visibility-change)
org-mode-hook '(#[nil "\300\301\302\303\304$\207"
  [org-add-hook change-major-mode-hook org-show-block-all
append local] 5]
)
org-indirect-buffer-display 'new-frame
org-refile-targets '((org-agenda-files :maxlevel . 2))
org-confirm-elisp-link-function 'yes-or-no-p
org-fast-tag-selection-single-key 'expert
org-log-into-drawer t
org-agenda-mode-hook '((lambda nil (hl-line-mode 1)))
org-agenda-skip-deadline-if-done t
org-reverse-note-order t
org-occur-hook '(org-first-headline-recenter)
org-from-is-user-regexp "\\"
org-remember-templates '(("home" 104 "* TODO %?  %u\n\n"
"~/Desktop/Org/home.org" "Tasks" nil)
 ("notes" 110 "* %u %?" "~/Desktop/Org/notes.org"  
"Notes" nil)

 ("work" 119 "* TODO %?  %u\n\n" "~/Desktop/Org/work.org"
"Tasks" nil))
org-icalendar-include-todo t
)



___
Emacs-orgmode mailing list
Remember: 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
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Error "while: Stack overflow in regexp matcher"

2009-09-03 Thread Sébastien Vauban
Hi Carsten,

Carsten Dominik wrote:
> I see.
>
> Well, Org does not *visit* the file, so these variables are
> not evaluated. Also, the argument of the #+include line determines
> the major mode, not the local variable setting.
>
> You can hack your way through this by adding a function
> to org-src-mode-hook that will scan for
>
>mode: outline-minor
>
> and turn it on if found.
>
> I guess I could also consider to fully *visit* an include file,
> to work around these restrictions.  The main reason why I am not
> doing this right now is because the exact same mechanism is used for
> inline examples and include files, and it would be significant
> work to change this.

I understand the problem. I'll follow your guideline if I wanna fix it.

Best regards,
  Seb

-- 
Sébastien Vauban



___
Emacs-orgmode mailing list
Remember: 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 version 6.30; Links in categories break layout

2009-09-03 Thread Carsten Dominik


On Sep 3, 2009, at 1:12 PM, Peter Westlake wrote:


On Thu, 03 Sep 2009 08:50 +0200, "Carsten Dominik"
 wrote:

Hi Peter,

links in categories are not supported..


The thing is, they ever so nearly *are* supported: they are  
fontified as
links, and they work if you click on them or type C-c o. The only  
thing

that isn't quite right is this small cosmetic matter of the missing
spaces.

Having a link as a category is very useful, because categories have
meaning and the link can take you to it. Most of mine are links to bug
reports or feature requests, for instance.


But TAB on the entry will get you there as well, right?

- Carsten



Peter.


- Carsten

On Sep 2, 2009, at 7:46 PM, Peter Westlake wrote:



Remember to cover the basics, that is, what you expected to happen  
and

what in fact did happen.  You don't know hoe to make a good report?
See

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

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


Here's a plain-text view of my agenda that shows the problem:

meta:   TODO Report invisible scheduled items
[[foo][test]]:TODO Get layout right when category is a link

Because the link is displayed as "test" in the link face,
it is only four characters long, so it should have seven
spaces after it.

(Aside: I wondered if this might be simple enough for me
to fix it myself. Turns out not :-)

Peter.

Emacs  : GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version  
2.12.12)

of 2009-07-30 on elegiac, modified by Debian
Package: Org-mode version 6.30


___
Emacs-orgmode mailing list
Remember: 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
Remember: 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 version 6.30; Links in categories break layout

2009-09-03 Thread Peter Westlake
On Thu, 03 Sep 2009 08:50 +0200, "Carsten Dominik"
 wrote:
> Hi Peter,
> 
> links in categories are not supported..

The thing is, they ever so nearly *are* supported: they are fontified as
links, and they work if you click on them or type C-c o. The only thing
that isn't quite right is this small cosmetic matter of the missing
spaces.

Having a link as a category is very useful, because categories have
meaning and the link can take you to it. Most of mine are links to bug
reports or feature requests, for instance.

Peter.

> - Carsten
> 
> On Sep 2, 2009, at 7:46 PM, Peter Westlake wrote:
> 
> >
> > Remember to cover the basics, that is, what you expected to happen and
> > what in fact did happen.  You don't know hoe to make a good report?   
> > See
> >
> > http://orgmode.org/manual/Feedback.html#Feedback
> >
> > Your bug report will be posted to the Org-mode mailing list.
> > 
> >
> > Here's a plain-text view of my agenda that shows the problem:
> >
> >  meta:   TODO Report invisible scheduled items
> >  [[foo][test]]:TODO Get layout right when category is a link
> >
> > Because the link is displayed as "test" in the link face,
> > it is only four characters long, so it should have seven
> > spaces after it.
> >
> > (Aside: I wondered if this might be simple enough for me
> > to fix it myself. Turns out not :-)
> >
> > Peter.
> >
> > Emacs  : GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.12.12)
> > of 2009-07-30 on elegiac, modified by Debian
> > Package: Org-mode version 6.30
> >
> >
> > ___
> > Emacs-orgmode mailing list
> > Remember: 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
Remember: 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 version 6.30; Links in categories break layout

2009-09-03 Thread Peter Westlake

On Thu, 03 Sep 2009 14:12 +0200, "Carsten Dominik"
 wrote:
>
> On Sep 3, 2009, at 1:12 PM, Peter Westlake wrote:
>
> > On Thu, 03 Sep 2009 08:50 +0200, "Carsten Dominik"
> >  wrote:
> >> Hi Peter,
> >>
> >> links in categories are not supported..
> >
> > The thing is, they ever so nearly *are* supported: they are
> > fontified as links, and they work if you click on them or type C-c
> > o. The only thing that isn't quite right is this small cosmetic
> >matter of the missing spaces.
> >
> > Having a link as a category is very useful, because categories have
> > meaning and the link can take you to it. Most of mine are links to
> > bug reports or feature requests, for instance.
>
> But TAB on the entry will get you there as well, right?

TAB in the agenda takes me to the entry, TAB in the entry opens it up,
and all of those things work properly. Click, ENTER, or C-c o in the
category column of the agenda will follow the link if the category text
contains one. All of that works properly too.

To clarify, my second paragraph there was just saying how useful links
are in categories. It isn't part of the bug report. That's just about
missing spaces.

You said that links aren't supported in categories, but for a feature
that isn't supported, they work very well! In what sense are they not
supported?

I use categories like this:

,
| * PROJECT Implement BUG-1234, allow users to upload files
|   :PROPERTIES:
|   :CATEGORY: [[http://example.com/bugtracker/1234][BUG-1234]]
|   :ORDERED: t
|   :END:
| ** DONE Design uploader UI
| ** TODO Implement authentication
| ** TODO Write a form for directory navigation
| ...etc...
`

Then the global TODO list (C-c a t) shows this as:

,
| BUG-1234:TODO Implement authentication
`

Where "BUG-1234" is a link that takes me to the bug tracker URL. Except
that the layout is a bit wrong:

,
| plaintext:  TODO Item with a plain text category
| BUG-1234:TODO Implement authentication
| plaintext:  TODO Item with a plain text category
`

There should be some spaces after the colon on the second line,
"BUG-1234:   TODO", so it lines up with the other entries.

Regards,

Peter.

> - Carsten
>
> >
> > Peter.
> >
> >> - Carsten
> >>
> >> On Sep 2, 2009, at 7:46 PM, Peter Westlake wrote:
> >>
> >>>
> >>> Remember to cover the basics, that is, what you expected to happen
> >>> and what in fact did happen.  You don't know hoe to make a good
> >>> report? See
> >>>
> >>>http://orgmode.org/manual/Feedback.html#Feedback
> >>>
> >>> Your bug report will be posted to the Org-mode mailing list.
> >>> --
> >>> --
> >>>
> >>> Here's a plain-text view of my agenda that shows the problem:
> >>>
> >>> meta:   TODO Report invisible scheduled items
> >>> [[foo][test]]:TODO Get layout right when category is a link
> >>>
> >>> Because the link is displayed as "test" in the link face, it
> >>> is only four characters long, so it should have seven spaces
> >>> after it.
> >>>
> >>> (Aside: I wondered if this might be simple enough for me to fix it
> >>> myself. Turns out not :-)
> >>>
> >>> Peter.
> >>>
> >>> Emacs  : GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version
> >>> 2.12.12)of 2009-07-30 on elegiac, modified by Debian Package: Org-
> >>> mode version 6.30
> >>>
> >>>
> >>> ___
> >>> Emacs-orgmode mailing list Remember: 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
Remember: 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 version 6.30; Links in categories break layout

2009-09-03 Thread Carsten Dominik


On Sep 3, 2009, at 3:29 PM, Peter Westlake wrote:



On Thu, 03 Sep 2009 14:12 +0200, "Carsten Dominik"
 wrote:


On Sep 3, 2009, at 1:12 PM, Peter Westlake wrote:


On Thu, 03 Sep 2009 08:50 +0200, "Carsten Dominik"
 wrote:

Hi Peter,

links in categories are not supported..


The thing is, they ever so nearly *are* supported: they are
fontified as links, and they work if you click on them or type C-c
o. The only thing that isn't quite right is this small cosmetic
  matter of the missing spaces.

Having a link as a category is very useful, because categories have
meaning and the link can take you to it. Most of mine are links to
bug reports or feature requests, for instance.


But TAB on the entry will get you there as well, right?


TAB in the agenda takes me to the entry, TAB in the entry opens it up,
and all of those things work properly. Click, ENTER, or C-c o in the
category column of the agenda will follow the link if the category  
text

contains one. All of that works properly too.

To clarify, my second paragraph there was just saying how useful links
are in categories. It isn't part of the bug report. That's just about
missing spaces.

You said that links aren't supported in categories, but for a feature
that isn't supported, they work very well! In what sense are they not
supported?


They are not supported in the sense that I never have tried to make
them work as links.  It is pure "accident" that they are activated
as links, because there is a function running through to activate
links that are in headlines, and by accident the regexp search
matches in the prefix as well.

They are not supported in the way that I guarantee them to continue to
work in future versions.

Unless this thread convinces me otherwise, of course.  I can now
see that they can be useful as a connection to an anchestor of the  
entry


- Carsten




I use categories like this:

,
| * PROJECT Implement BUG-1234, allow users to upload files
|   :PROPERTIES:
|   :CATEGORY: [[http://example.com/bugtracker/1234][BUG-1234]]
|   :ORDERED: t
|   :END:
| ** DONE Design uploader UI
| ** TODO Implement authentication
| ** TODO Write a form for directory navigation
| ...etc...
`

Then the global TODO list (C-c a t) shows this as:

,
| BUG-1234:TODO Implement authentication
`

Where "BUG-1234" is a link that takes me to the bug tracker URL.  
Except

that the layout is a bit wrong:

,
| plaintext:  TODO Item with a plain text category
| BUG-1234:TODO Implement authentication
| plaintext:  TODO Item with a plain text category
`

There should be some spaces after the colon on the second line,
"BUG-1234:   TODO", so it lines up with the other entries.

Regards,

Peter.


- Carsten



Peter.


- Carsten

On Sep 2, 2009, at 7:46 PM, Peter Westlake wrote:



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

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

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

Here's a plain-text view of my agenda that shows the problem:

meta:   TODO Report invisible scheduled items
[[foo][test]]:TODO Get layout right when category is a link

Because the link is displayed as "test" in the link face, it
is only four characters long, so it should have seven spaces
after it.

(Aside: I wondered if this might be simple enough for me to fix it
myself. Turns out not :-)

Peter.

Emacs  : GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version
2.12.12)of 2009-07-30 on elegiac, modified by Debian Package: Org-
   mode version 6.30


___
Emacs-orgmode mailing list Remember: 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
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Exporting latex formulas

2009-09-03 Thread Nick Dokos
andrea crotti  wrote:

> 
> When I export to html my latex formulas are not "touched" at all, the
> only variable that should be in charge
> (setq export-with-LaTex-fragments t)
> 
> is already set to t, and the formula is nicely converted to image inside
> emacs, what else could that be?
> 

Is dvipng installed?

Nick

PS BTW, the variable is org-export-with-LaTeX-fragments - you left out the
org- part above, but that might be just a cut-n-paste error.


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


Re: [Orgmode] Re: Some table questions

2009-09-03 Thread Nick Dokos
andrea crotti  wrote:

> Nick Dokos  writes:
> 
> >
> > Check out section 12.6.4 (Tables in HTML export) of the Org manual.
> >
> 
> Thanks I found it very nice, my info manual differs from the online,
> maybe because I'm still using version 6.28..
> 
> Anyway another thing, nested tables are not allowed, is it correct?
> Sometimes I would like to have one row longer than one cell only but it
> doesn't look possible..
> 

Yes, I think nested tables are not supported.  I think that would be
very difficult to do: the markup is not designed for ease of parsing
(unlike e.g. HTML, where the beginning/end of the table are marked
explicitly).

> Every cell can't contain '\n' also as I found out, is that correct?
> 

Not sure what you mean here: what's a cell? e.g.

| a | b | c |
| d | e | f |

I can consider "a" as the contents of a cell (six cells), or I can consider
"a
 d"

as the contents of a cell (three cells in total). Org itself does not
impose a cell concept on the table: it's just text. How that table gets
translated e.g. to HTML is another matter: the current exporter does
indeed make it into a 6-cell table, but there is nothing stopping you
from enhancing it to do something different. If you do something interesting,
you can always contribute it to org. And if you come up with a compelling
use case, you might even be able to persuade somebody else to do the work
for you !-)

HTH,
Nick








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


Re: [Orgmode] auto export via git hook

2009-09-03 Thread Nick Dokos
andrea crotti  wrote:

> 
> I want to automatically export to html or something else in my pre- 
> commit hook with git, I tried many things but I always get the same 
> error 
> 
> mbpro:rt-simulate andrea$ cat .git/hooks/pre-commit.bak 
> emacs --batch --load=$HOME/.emacs.d/org-mode/org.el --eval "(setq org- 
> export-headline-levels 2)" --visit=README.org --funcall org-export-as- 
> html-batch 
> 
> mbpro:rt-simulate andrea$ sh .git/hooks/pre-commit.bak 
> Cannot open load file: org-macs 
> org-macs is a library which is situated ~/.emacs.d/org-mode which 
> should be automatically in the load path (not using --quiet), so what 
> could be the problem? 
> 

See the following thread in the mail list archive:

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

Basically, --batch implies -q, so you have to do any initialization
(including setting the load-path) as part of the invocation.

HTH,
Nick


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


Fwd: [Orgmode] Mobile org

2009-09-03 Thread Marcelo de Moraes Serpa
-- Forwarded message --
From: Marcelo de Moraes Serpa 
Date: Thu, Sep 3, 2009 at 9:58 AM
Subject: Re: [Orgmode] Mobile org
To: li...@manor-farm.org


Thank you all for the replies!

I will look into Nokia N810, thanks for the tip. A netbook such as Eee PC
might be a pocket-enough experience, even though not the scenario I would
call ideal, but might work well :)

@Ian: Great tips! Looking forward to reading your tutorial on m-org, would
you mind warning us in the list when it's available?

Thanks,

Marcelo.


On Thu, Sep 3, 2009 at 1:33 AM, Ian Barton  wrote:

> org-mode really changed my life, and allowed me to fully implement GTD the
>> way I wanted. However, I miss having access to it everytime, so, I'm looking
>> for a mobile device that could run emacs and org, and that I could keep in
>> sync with my laptop.
>>
>> What do you think?
>>
>> Any suggestions appreciated,
>>
>> Marcelo.
>>
>
> Hi Marcelo,
>
> I am in the middle of writing a tutorial for worg on using org on mobile
> devices. The short answer to your question is that there isn't really a
> pocketable device that runs emacs at the moment. Nokia's Maemo platform can
> run emacs, but I would call it pocketable.
>
> So there are a few alternatives:
>
> Use a device that can run ssh and ssh into one of your computer to run
> emacs in a terminal. Nokia, Android and Windows Mobile all have devices with
> ssh clients.
>
> Use org-publish to make your files available as html or pdf. This gives you
> a read only version of your org files.
>
> Use one of the services like reqall that can accept input via voice,
> Instant Meaaging, etc and publish it as an rss feed. You can then use one of
> the scripts available to import this into your org files.
>
> Ian.
>
>
>
> ___
> Emacs-orgmode mailing list
> Remember: 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
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Clock Table filter by tag or property

2009-09-03 Thread Miguel Fernando Cabrera
Hi Everyone,

First I want to thank all the people that make Org-Mode possible. I have
been using it almost 8 months and it is a life changer. Every week I add
something new to my workflow thanks to Org-Mode capabilities. My setup can
be found in github[1] if anyone is interested in in. I hope to document it
soon.

I was wondering if there is a way to make a clock table to show only entries
with an specify a property or tag. I think it could be useful, for example,
I have to give support to some users (e.g support on application servers and
support on custom software libraries) which can be in different projects. I
want to check how much time I have spent providing support no matter what
project It is related to. So I could use a tag (i.e "support") and generate
a clock report showing the time spentn in all the entries tagged with
"support".


Thanks in advance for your help :-)


[1] http://github.com/mfcabrera/dotemacs/ -> (file orgy.el)

-- 
Miguel Fernando Cabrera
http://mfcabrera.com
"A los hombres fuertes les pasa lo que a los barriletes; se elevan cuando es
mayor el viento que se opone a su ascenso." - José Ingenieros
___
Emacs-orgmode mailing list
Remember: 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 version 6.30; Links in categories break layout

2009-09-03 Thread Sebastian Rose
Carsten Dominik  writes:
>> You said that links aren't supported in categories, but for a feature
>> that isn't supported, they work very well! In what sense are they not
>> supported?
>
> They are not supported in the sense that I never have tried to make
> them work as links.  It is pure "accident" that they are activated
> as links, because there is a function running through to activate
> links that are in headlines, and by accident the regexp search
> matches in the prefix as well.
>
> They are not supported in the way that I guarantee them to continue to
> work in future versions.
>
> Unless this thread convinces me otherwise, of course.  I can now
> see that they can be useful as a connection to an anchestor of the entry


I found this case extremely useful:


>> ,
>> | * PROJECT Implement BUG-1234, allow users to upload files
>> |   :PROPERTIES:
>> |   :CATEGORY: [[http://example.com/bugtracker/1234][BUG-1234]]
>> |   :ORDERED: t
>> |   :END:
>> | ...etc...
>> `
>>
>> Then the global TODO list (C-c a t) shows this as:
>>
>> ,
>> | BUG-1234:TODO Implement authentication
>> `
>>
>> Where "BUG-1234" is a link that takes me to the bug tracker URL.


Wow, that way categories start to make sense. As for me, it's not the
category, it's just the chance to go to some other place from agenda,
but the entry itself.  This could convince me to start to use categories
:)



  Sebastian


___
Emacs-orgmode mailing list
Remember: 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 version 6.30c; org-remember does not honor `org-odd-levels-only' setting

2009-09-03 Thread Anupam Sengupta
Thanks Carsten!
I thought on the same lines after posting (about the global vs. per file
setting) - but the hook you suggested is much nicer!


Thanks again,
--
Anupam
http://slashusr.wordpress.com
My Profile: http://www.google.com/profiles/anupamsg


On Thu, Sep 3, 2009 at 12:20 PM, Carsten Dominik
wrote:

> Hi Anupam,
>
> Remember has no way of knowing what kind of setting for
> org-odd-levels-only will be used in the target file.  Therefore
> you need to take care of setting this value correctly, for example
> with
>
> (add-hook 'org-remember-mode-hook (lambda () (setq org-odd-levels-only t)))
>
> or by setting that variable globally.
>
> - Carsten
>
>
> On Sep 2, 2009, at 7:48 PM, Anupam Sengupta wrote:
>
>  Hi Carsten,
>>
>>
>> *Problem*: `org-odd-levels-only' is not honored in a remember buffer for
>> creating child entries.
>>
>> I have been using the clean outline view using the `org-odd-levels-only'
>> setting (actually via the per file #+STARTUP: odd setting) to simulate
>> the indented view of the outline (info "(org)Clean View")
>>
>> This works perfectly in the main buffer for the org files - where
>> creating a child entry using M-S-Right (`org-demote-subtree') indents
>> the entry by an odd number of stars so that the indentation is preserved
>> and the outline hierarchy is correct.
>>
>> However, in a org-remember buffer, trying to use the same function to
>> create a child entry after the main headline does not honor this
>> setting, and uses the default behavior of incrementing the stars' count
>> by 1.
>>
>> I.e, instead of this happening in the remember buffer:
>>
>> * TODO Parent Entry
>> *** TODO The child entry /after M-S-Right/
>>
>> what actually ends up happening is:
>>
>> * TODO Parent Entry
>> ** TODO The child entry /after M-S-Right/
>>  ^
>>  |
>>  + Notice the missing third star which should have been created
>>
>>
>> This causes problems in the actual org-buffer later on after the remember
>> note is filed - as org-mode seems to get confused on the outline levels.
>>
>>
>> I have added the org-mode settings using the `org-submit-bug-report'
>> with some trimming of private settings that probably are not relevant
>> (e.g. the `org-agenda-custom-commands').
>>
>>
>> -  Anupam Sengupta
>>
>> 
>> Org-mode variable and customization dump follows  >
>> 
>>
>> Emacs  : GNU Emacs 23.1.50.1 (i386-apple-darwin9.7.0, NS
>> apple-appkit-949.46)
>> Package: Org-mode version 6.30c
>>
>> current state:
>> ==
>> (setq
>> org-empty-line-terminates-plain-lists t
>> org-log-done t
>> org-remember-default-headline "INBOX"
>> org-remember-interactive-interface 'outline-path-completion
>> org-todo-keyword-faces '(("MEETING" . hi-blue) ("WAITING" . hi-pink)
>> ("DELEGATED" . hi-pink) ("STARTED" . hi-green))
>> org-special-ctrl-a/e t
>> org-agenda-files '("~/org/work.gpg" "~/org/personal.gpg")
>> org-blocker-hook '(org-block-todo-from-checkboxes
>> org-block-todo-from-children-or-siblings-or-parent)
>> org-tag-faces '(("ISSUE" . org-warning) ("Slipped" . org-warning)
>> ("HEADING" . shadow) ("INFO" . shadow) ("ATTACH" . org-clock-overlay)
>>("Project" . shadow))
>> org-publish-timestamp-directory "~/org/.org-timestamps/"
>> org-agenda-tags-column -90
>> org-hide-leading-stars t
>> org-checklist-export-function 'org-export-as-ascii
>> org-agenda-skip-timestamp-if-done t
>> org-after-todo-state-change-hook '(org-checklist org-clock-out-if-current)
>> org-track-ordered-property-with-tag t
>> org-combined-agenda-icalendar-file "~/org/OrgMode.ics"
>> org-agenda-default-appointment-duration 60
>> org-todo-state-tags-triggers '(("PROJECT" ("Project" . t)) ("TODO"
>> ("Project")) ("MEETING" ("Project")))
>> org-special-ctrl-k t
>> org-remember-mode-hook '(delete-other-windows)
>> org-agenda-restore-windows-after-quit t
>> org-deadline-warning-days 3
>> org-protocol-protocol-alist '(("org-mac-remember" :protocol "mac-remember"
>> :function org-mac-protocol-remember :kill-client t))
>> org-agenda-skip-scheduled-if-done t
>> org-export-preprocess-hook '(org-eval-replace-snippts
>> org-export-blocks-preprocess)
>> org-tags-exclude-from-inheritance '("HEADING" "Project")
>> org-tab-first-hook '(org-hide-block-toggle-maybe)
>> org-src-mode-hook '(org-src-mode-configure-edit-buffer)
>> org-finalize-agenda-hook '(my-org-agenda-to-appt)
>> org-confirm-shell-link-function 'yes-or-no-p
>> org-toc-info-mode t
>> org-clock-persist t
>> org-agenda-before-write-hook '(org-agenda-add-entry-text)
>> org-icalendar-include-sexps nil
>> org-registry-file "~/.emacs.d/data/org-registry.el"
>> org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
>> org-cycle-show-empty-lines
>> org-optimize-window-after-visibility-change)
>> org-publish-project-alist '(("org-notes" :base-directory "~/org/"
>> :base-extension "gpg

Re: [Orgmode] Org-mode version 6.30; Links in categories break layout

2009-09-03 Thread Peter Westlake

On Thu, 03 Sep 2009 15:56 +0200, "Carsten Dominik"
 wrote:
> 
> On Sep 3, 2009, at 3:29 PM, Peter Westlake wrote:
> 
> >
> > On Thu, 03 Sep 2009 14:12 +0200, "Carsten Dominik"
> >  wrote:
> >>
> >> On Sep 3, 2009, at 1:12 PM, Peter Westlake wrote:
...
> > You said that links aren't supported in categories, but for a feature
> > that isn't supported, they work very well! In what sense are they not
> > supported?
> 
> They are not supported in the sense that I never have tried to make
> them work as links.  It is pure "accident" that they are activated
> as links, because there is a function running through to activate
> links that are in headlines, and by accident the regexp search
> matches in the prefix as well.
>
> They are not supported in the way that I guarantee them to continue to
> work in future versions.
> 
> Unless this thread convinces me otherwise, of course.  I can now
> see that they can be useful as a connection to an anchestor of the  
> entry

Well, I would be in favour of that - as you may have guessed!
It's very convenient to have the link always be there without
having to put it into every entry.

Peter.

P.S. Apologies if you get two copies of this - X crashed while I was
sending it.


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


[Orgmode] Org-remember and org-back-to-heading

2009-09-03 Thread Matt Lundin
Hi everyone,

When I call org-remember or org-store-link above the first headline in
an org buffer, I receive the following error message:

Before first headline at position 1 in buffer index.org

It seems that either org-remember or org-store-link (or both) calls
org-back-to-heading in order to grab the relevant heading for
annotation. As a result, if I try to store a link above the first
heading, emacs spits out the error message above because there is no
heading to return to.

Is this the intended behavior? Sometimes I prefer to create a link to
the file as a whole rather than to a particular headline. E.g., I might
want to create a todo to organize notes.org, which is not an agenda
file. In this instance, it does not matter whether org-remember creates
a link to a particular headline. In fact, I would prefer a link to the
file as a whole and thus expect to be able to store a link while on the
first empty line of the file or on #+TITLE.

Thanks,
Matt


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


Re: [Orgmode] Re: autoload filed to load ical functions....more info

2009-09-03 Thread David A. Gershman
Carsten,

You are a gentlemen, sir.  I downloaded, compiled, and installed Org. 
When I launched emacs and went to Org-Mode, things seemed to work (at
least that which I normally use: indentation, links, etc).  As such, I
figured the 'require' statement was only needed when Org was installed
in a non-emacs location (requiring a .emacs config setting to find
additional .el files).  I added the line below and what do you think
happened?  It worked.

I say you are a gentlement because, unfortunately, my personal
tendencies would have led to a simple reply of RTFM. *looking down in shame*

Thanks for the help...

> > Any thoughts on this?  I'm still stuck.  I have the same version of
> > emacs on both my desktop and laptop, same version of Org on both, and
> > same .emacs on both.  Yet on my laptop I get the errors but on my
> > desktop I don't.
> 
> Please read the installation section in the manual and extract from
> it that you need to say
> 
> (require 'org-install)
> 
> in .emacs.
> 
> - Carsten



David A. Gershman
gersh...@dagertech.net
http://dagertech.net/gershman/
"It's all about the path!" --d. gershman


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


[Orgmode] Latex export - setq: Wrong type argument: arrayp, nil

2009-09-03 Thread Chris Willard
Hello All,

Firstly thanks to Carsten for an excellent product.

I am getting this error when exporting to latex. Am I missing another required 
program? The export works on my windows version of emacs and org-mode but not 
on Ubuntu!

Any pointers would be appreciated.

Regards,

Chris


-- 
---(  "All right, Wakko, we got the point." - Yakko   )
---(  )
Chris -(  ) Willard
 Htag.pl 0.0.24


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


Re: [Orgmode] Latex export - setq: Wrong type argument: arrayp, nil

2009-09-03 Thread Chris Willard
> I am getting this error when exporting to latex. Am I missing another 
> required program? The export works on my windows version of emacs and 
> org-mode but not on Ubuntu!

Just found this error in the log file.

,
| ! LaTeX Error: File `soul.sty' not found.
`



Chris.

-- 
[ he reached for the reset button. ]


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


Re: [Orgmode] Latex export - setq: Wrong type argument: arrayp, nil

2009-09-03 Thread Nick Dokos
Chris Willard  wrote:


> I am getting this error when exporting to latex. Am I missing another
> required program? The export works on my windows version of emacs and
> org-mode but not on Ubuntu!
> 
> Any pointers would be appreciated.
> 

Please read the "Feedback" section of the manual (section 1.4),
particularly the subsection about "How to create a useful backtrace".
Once you get a useful backtrace, send it to the list.

HTH,
Nick


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


Re: [Orgmode] Latex export - setq: Wrong type argument: arrayp, nil

2009-09-03 Thread Nick Dokos
Chris Willard  wrote:

> > I am getting this error when exporting to latex. Am I missing another 
> > required program? The export works on my windows version of emacs and 
> > org-mode but not on Ubuntu!
> 
> Just found this error in the log file.
> 
> ,
> | ! LaTeX Error: File `soul.sty' not found.
> `
> 
> 
> 
> Chris.
> 

That's part of the package texlive-latex-extra. You can install
it with 'sudo apt-get install texlive-latex-extra'.

However, I thought you were getting an error when exporting the org file
to latex. The above is a latex error. How did you get a latex file if
the export failed?

Nick

PS. I'd encourage you to get the backtrace and send it on. There may be
multiple problems and it's best to attack them one at a time.



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


[Orgmode] Latex Export Errors (and ideas!)

2009-09-03 Thread Russell Adams
I discovered today that using a large #+LATEX_HEADER consisting of
many lines (35!) that to my surprise a multiple lines of the raw
header (including #+LATEX_HEADER: ...) was inserted after the begin
document markup.

I edited out an compiled latex normally. I'm on 6.28e, I'll upgrade
shortly to 6.30 just in case.

On the other hand, an item I had considered given many of my documents
are written in org what kind of 'unit testing" can we do on latex
exporting to check the TeX output conforms to the expectation?

Just an idea. Thanks!

--
Russell Adamsrlad...@adamsinfoserv.com

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3


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


[Orgmode] Re: Making an org file more readable

2009-09-03 Thread PT
Carsten Dominik  gmail.com> writes:

> 
> I have just pushed a modification so that you can, after pulling
> from git, set org-cycle-separator-lines to a negative number.
> If you set it to -N, N empty lines will be required in order
> to get a separation.  But, if there are enough empty lines,
> all will be shown.
> 
> You might want to set this to -1., I like my old value of +2 best.

I tried this new setting with 6.30 and it works well, thanks for
this.

The only strange case is when a header line doesn't have any
content, only empty lines.

So if there are 2 empty lines between headers

* header1


* header2


Then the first empty line after header1 is folded regardless of
the -1 setting.  If I understand the feature correctly no folding
should occur in this case either.



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


[Orgmode] Easier customization of TODO keyword colors

2009-09-03 Thread Ryan C. Thompson
Here is some code I came up with some code to make it easier to 
customize the colors of various TODO keywords. As long as you just want 
a different color and nothing else, you can customize the variable 
org-todo-keyword-faces and use just a string color (i.e. a string of the 
color name) as the face, and then org-get-todo-face will convert the 
color to a face, inheriting everything else from the standard org-todo face.


To demonstrate, I currently have org-todo-keyword-faces set to
(("IN PROGRESS" . "dark orange")
 ("WAITING" . "red4")
 ("CANCELED" . "saddle brown"))

Here's the code, in a form you can put in your .emacs.

(eval-after-load 'org-faces
  '(progn
 (defcustom org-todo-keyword-faces nil
   "Faces for specific TODO keywords.
This is a list of cons cells, with TODO keywords in the car and
faces in the cdr.  The face can be a symbol, a color, or a
property list of attributes, like (:foreground \"blue\" :weight
bold :underline t)."
   :group 'org-faces
   :group 'org-todo
   :type '(repeat
   (cons
(string :tag "Keyword")
(choice color (sexp :tag "Face")))

(eval-after-load 'org
  '(progn
 (defun org-get-todo-face-from-color (color)
   "Returns a specification for a face that inherits from org-todo
  face and has the given color as foreground. Returns nil if
  color is nil."
   (when color
 `(:inherit org-warning :foreground ,color)))

 (defun org-get-todo-face (kwd)
   "Get the right face for a TODO keyword KWD.
If KWD is a number, get the corresponding match group."
   (if (numberp kwd) (setq kwd (match-string kwd)))
   (or (let ((face (cdr (assoc kwd org-todo-keyword-faces
 (if (stringp face)
 (org-get-todo-face-from-color face)
   face))
   (and (member kwd org-done-keywords) 'org-done)
   'org-todo


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