[Orgmode] org-archive-subtree complains

2009-08-10 Thread Stefan Vollmar

Hello,

org 6.29trans

org-archive-subtree yields
The kill is not a (set of) tree(s) - please use S-insertchar to  
yank anyway


(1) I believe this has worked before, maybe a problem with the new  
Aquamacs-prerelease (2.0 preview 2)? It seems I can reproduce this  
message anywhere in my org-buffer.


(2) What is insertchar?

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







___
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] MACRO calls with linebreaks?

2009-08-10 Thread Carsten Dominik

Hi Stefan,

this should now work.

But note that the opening parenthesis must be attached to the macro  
name and the closing parenthesis must be attached to the }}}, just  
as you have done in your proposal.


I have not tested this, please verify.

- Carsten

On Aug 9, 2009, at 2:40 AM, Stefan Vollmar wrote:


Hello,

I find org-mode's MACRO feature very useful for exporting to HTML as  
it allows you to generate literally any HTML construct that you  
need, here is a simple example: http://www.nf.mpg.de/kinderuni/kinderuni_en.html 
 (see the Colophon section; thanks again to everybody from the  
list who helped!).


For another project, we need to generate a table with many (multi- 
line) rows like this:


| logo.png | somebody.jpg | name \\ telephone \\ email... |

The images have different sizes (so some alignment is needed) and  
the text in the last column should have several lines (which should  
be next to the person's portrait). This can (currently) not been  
done with standard org tables (I am not complaining).


With something like this:

#+macro: person #+HTML: tabletrtd style=vertical- 
align:middle;margin-right:2em;margin-left:2em;padding:5px;[...]/ 
table


{{{person(logo.png, somebody.jpg, someb...@nf.mpg.de, namebr/ 
telephonebr/roombr/groupbr/[...])}}}


the problem can be solved and yet again org-mode's flexibility is  
demonstrated.


The MACRO can be hidden in a setup-file. However, the MACRO call can  
not and it looks like a kludge and is awkward to read. MACRO calls  
work well with few and short arguments - different from this case.  
The problem is that org-mode seems to require the brackets in one  
line for MACROs to work. Assuming this restriction was not there,  
one could write in a much more readable fashion:


{{{person(
logo.png, somebody.jpg,
someb...@nf.mpg.de,
namebr/
telephonebr/
roombr/
groupbr/
[...]
)}}}

and (just a thought) might expect white space in front of an  
argument to be ignored and linebreaks in arguments conserved. Maybe  
there is a better way to pass longer arguments to MACROs?


Any help is appreciated.
Warm regards,
Stefan
--
Dr. Stefan Vollmar, Dipl.-Phys.
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
Email: voll...@nf.mpg.de   http://www.nf.mpg.de







___
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-archive-subtree complains

2009-08-10 Thread Carsten Dominik


On Aug 10, 2009, at 9:53 AM, Stefan Vollmar wrote:


Hello,

org 6.29trans

org-archive-subtree yields
The kill is not a (set of) tree(s) - please use S-insertchar to  
yank anyway


(1) I believe this has worked before, maybe a problem with the new  
Aquamacs-prerelease (2.0 preview 2)? It seems I can reproduce this  
message anywhere in my org-buffer.


I cannot reproduce this, but I am not using AquaEmacs



(2) What is insertchar?



This should be yank, so C-y.  Obviously some other key on your  
keyboard has this function attached to it as well.


- 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: Faces in agenda view

2009-08-10 Thread Rainer Stengele

On 07.08.2009 11:00, Carsten Dominik wrote:


On Jul 30, 2009, at 11:07 AM, Rainer Stengele wrote:


Bastien schrieb:

Paul Mead paul.d.m...@gmail.com writes:


Can anyone give me a quick and easy way of changing this without
breaking something else?


Go to the face you want to change and hit M-x customize-face RET



is it possible to change the font of the currently clocked in agenda
item?


This is a useful idea, works now.

- Carsten



rainer


___
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



Dear Carsten,

I tried to find out how to configure this but could'nt find how to.
Please give me a hint!

- Rainer




___
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] If org-mode can be used with auctex ?

2009-08-10 Thread Scot Becker
Welcome,

Do search for AucTeX in the list archives, and you may find a nice
description of what Matt does,  which involves composing in org-mode
and then using AucTeX to polish the layout.  So far I myself compose
in org-mode, use Ebib to insert references, and convert to LaTeX,
without (yet) much need to tweak the latex using AucTeX.

org-mode and AucTeX are both (AFAIK) major modes, so using them both
at the same time (to edit LaTeX blocks embedded in org) would involve
one of the hacks for using multiple major modes simultaneously, a
topic on which I can't help, but see the EmacsWiki.

Unless you really need to do advanced LaTeXing in longish blocks (in
which case you might be better off composing in LaTeX to begin with),
you might be happy just composing in org, and then tweaking the LaTeX
(using AucTeX, say) to adjust the final results if you find you need
to.



On Sun, Aug 9, 2009 at 9:18 PM, waterloowaterloo2...@gmail.com wrote:
 If org-mode can be used with auctex ?

 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




___
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: Latex export to documentclass beamer

2009-08-10 Thread Carsten Dominik


On Aug 9, 2009, at 5:45 PM, RC wrote:


Carsten Dominik carsten.dominik at gmail.com writes:




On Aug 9, 2009, at 3:05 PM, RC wrote:


Hi,
Following an earlier suggestion on the list:
http://thread.gmane.org/gmane.emacs.orgmode/15010/focus=15077

I added the following to my .emacs file:

(add-to-list 'org-export-latex-classes
  ...



For this line to be working, the variable must have been defined.
Either precede the code with
 (require 'org-latex)
or wrap it into
(eval-after-load org-latex '(add-to-list))
- Carsten


Thanks! That worked.

I had a a couple more questions about using latex-export.

1.
* Slide 5
\uncover2-
{appear from slide 2 on\\ }
\uncover3-4
{appears from 3 to slide 4\\ }
\uncover4{appears on slide 4\\ }
\uncover3-{appears from slide 3 on\\ }


You can warp this code in #+begin_latex ... #+end_latex



gets output as:

\begin{frame}\frametitle{Slide 5}
\label{sec-5}
\uncover2-
\{appear from slide 2 on\\ \}
\uncover3-4
\{appears from 3 to slide 4\\ \}
\uncover4\{appears on slide 4\\ \}
\uncover3-\{appears from slide 3 on\\ \}
\end{frame}

Is there a way to avoid { and } being output as \{ and \} ,  
respectively.


2. Is there a way to add an attribute to latex lists (itemize,  
enumerate,

description} so that:

* Slide 1
- x
- y
- z

gets output as:
\begin{itemize}[+-]
\item x
\item y
\item z
\end{itemize}


No.

- 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] 6.29c bug: (void-variable org-export-html-special-string-regexps)

2009-08-10 Thread Leo
Hi all,

Here is how to reproduce the bug:

1. create a file kk.el with the following content:

(setq org-modules nil)
(define-key mode-specific-map [?a] 'org-agenda)
(define-key mode-specific-map [?l] 'org-store-link)
(setq org-agenda-files '(~/kk.org))
(setq org-export-with-LaTeX-fragments t
  org-highlight-latex-fragments-and-specials t)

2. create an empty file named kk.org

3. emacs -q -l kk.el

4. C-c a a

Backtrace:

Debugger entered--Lisp error: (void-variable 
org-export-html-special-string-regexps)
  org-compute-latex-and-specials-regexp()
  org-set-regexps-and-options()
  org-mode()
  set-auto-mode-0(org-mode nil)
  set-auto-mode()
  normal-mode(t)
  after-find-file(nil t)
  find-file-noselect-1(#buffer kk.org ~/kk.org nil nil ~/kk.org (1861876 
234881026))
  find-file-noselect(~/kk.org)
  org-get-agenda-file-buffer(~/kk.org)
  byte-code(.!ƒ\f.qˆ‚...!ˆ.!qˆ~ˆ. .. 
ˆ.\n\..\f.\..\...\..Š.ed..#ˆ..ƒc.ebˆ.#ƒc...!ƒG... 
..!.#ˆ‚G.ebˆ.. .Q.!..!..#ƒƒ...”..!.\#ˆ‚m.).  !‡ [file bmp 
org-todo-keywords-for-agenda org-todo-keywords-1 org-done-keywords-for-agenda 
org-done-keywords bufferp org-check-agenda-file org-get-agenda-file-buffer 
buffer-modified-p org-refresh-category-properties append remove-text-properties 
re-search-forward nil t org-on-heading-p add-text-properties point-at-bol 
org-end-of-subtree ^\\*+ + \\ 0 set-buffer-modified-p 
org-todo-keyword-alist-for-agenda org-todo-key-alist org-tag-alist-for-agenda 
org-tag-alist pall org-agenda-skip-archived-trees rea pa org-comment-string re 
pc] 4)
  org-prepare-agenda-buffers((~/kk.org))
  org-prepare-agenda(Day/Week)
  org-agenda-list(nil)
  call-interactively(org-agenda-list)
  byte-code(.. .   \\.p... 
!..�...@.‰.a.b.‰.c.d.e„.#ˆ..f.g.‰“ˆ.h.‰“ˆ#ˆp.i.j„z..!�...@.j.da.k.e„...kƒ.\fc#ˆ.k.=ƒ†...f.g.
 .“ˆ.H. .“ˆ‚...K.=ƒ..Š..F..!ˆ.G`.“ˆ.H..!.“ˆ)..!ˆ..J 
\‰.ƒ89„.8!ƒœ...8.A..8.B..8.CC#ˆ.A.=ƒC.\‚...A.=ƒC.\‚...A.=ƒC.\‚...A.=ƒC.\‚...A.=ƒ\...C.\‚...A.=ƒ1...C.\‚...a@...c.\‚...A.=ƒR..
 ˆ..C.\‚...A.=ƒd.. ˆ..C.\‚...A.=ƒv.. 
ˆ..C.\‚A!ƒ…...C.\‚A!ƒ”...C.\‚.A\‚.@.‰.laa)\‚...J.šƒ..\n...!‚...J.šƒ...Q.!‚...JR.šƒ...S.!‚...JT.šƒ...U.!‚...JV.šƒ..U..M†..W..M.N.M.O..N!+‚...JX.šƒ
 
..Y.!‚...JZ.šƒD.Y..M†4.[..M.N.M.O..N!+‚...J\\.šƒU..].!‚...J^.šƒ..P_.=„m..`.!ˆ.K?….\fC#ˆa..M.M.N.M.O..N!+‚...Jb.šƒ...c.!‚...Jd.šƒ...e.!‚...Jf.šƒ...g.!‚...h.!.
‡ [prefix-descriptions org-agenda-custom-commands 
org-agenda-custom-commands-orig buf bfn entry nil delq mapcar #[(x) A;ƒ\f.   
B..‡A@;ƒ..�...@„'@.‰.aa)bb...@.abb‡ [x prefix-descriptions nil ] 
4] buffer-file-name buffer-base-buffer put org-agenda-files org-restrict 
org-agenda-redo-command org-lprops org-agenda-get-restriction-and-command 
region t region-beginning region-end subtree org-back-to-heading 
org-end-of-subtree require calendar assoc 2 functionp 3 4 agenda org-let 
(org-agenda-list current-prefix-arg) alltodo (org-todo-list current-prefix-arg) 
search (org-search-view current-prefix-arg match nil) stuck 
(org-agenda-list-stuck-projects current-prefix-arg) tags (org-tags-view 
current-prefix-arg match) tags-todo (org-tags-view (quote ...) match) todo 
(org-todo-list match) tags-tree org-check-for-org-mode (org-match-sparse-tree 
current-prefix-arg match) ...] 6)
  org-agenda(nil)
  call-interactively(org-agenda nil nil)

-- 
Emacs uptime: 7 minutes, 29 seconds



___
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: 6.29c bug: (void-variable org-export-html-special-string-regexps)

2009-08-10 Thread Leo

Another bug maybe related to this one is trying to complete #+ produces
another error:

Debugger entered--Lisp error: (args-out-of-range  2 10)
  match-string(2 )
  (cons (match-string 2 x) (match-string 1 x))
  (lambda (x) (string-match ^#\\+\\(\\([A-Z_]+:?\\).*\\) x) (cons 
(match-string 2 x) (match-string 1 x)))()
  mapcar((lambda (x) (string-match ^#\\+\\(\\([A-Z_]+:?\\).*\\) x) (cons 
(match-string 2 x) (match-string 1 x))) (#+TITLE: Tasks.org #+AUTHOR:
Leo Shidai Liu #+EMAIL: sl...@cam.ac.uk #+DATE:  2009-08-10 Mon 
#+DESCRIPTION:  #+KEYWORDS:  #+LANGUAGE:  en #+OPTIONS:   H:3 num:t 
toc:t \\n:nil @:t ::t |:t ^:t -:t f:t *:t :t #+OPTIONS:   TeX:t LaTeX:t 
skip:nil d:nil todo:t pri:nil tags:not-in-toc  #+EXPORT_SELECT_TAGS: 
export #+EXPORT_EXCLUDE_TAGS: noexport #+LINK_UP:#+LINK_HOME:  
#+CATEGORY:  Tasks #+SEQ_TODO:  TODO FEEDBACK VERIFY DONE #+TYP_TODO:  Me 
Jason Marie DONE #+PRIORITIES: A C B #+DRAWERS:   PROPERTIES CLOCK LOGBOOK 
#+STARTUP:   content odd hidestars noalign nil #+TAGS:  @Computer(c) 
@Errands(e) @Home(h) @None(n) @Office(o) @Phone(p) #+FILETAGS:   #+ARCHIVE: 
  %s_archive:: #+LINK:  org file:~/org/%s.org))
  (append (mapcar (lambda ... ... ...) (org-split-string ... \n)) (mapcar 
(quote list) org-additional-option-like-keywords))
  (cond (opt (setq type :opt) (require ...) (append ... ...)) (startup (setq 
type :startup) org-startup-options) (link (append org-link-abbrev-alist-local 
org-link-abbrev-alist)) (texp (setq type :tex) org-html-entities) 
((string-match \\`\\*+[   ]+\\' ...) (setq type :todo) (mapcar ... 
org-todo-keywords-1)) (searchhead (setq type :searchhead) (save-excursion ... 
...) tbl) (tag (setq type :tag beg beg1) (or org-tag-alist ...)) (prop (setq 
type :prop beg beg1) (mapcar ... ...)) (t (progn ... ...)))
  (let* ((a nil) (end ...) (beg1 ...) (beg ...) (confirm ...) (searchhead ...) 
(struct ...) (tag ...) (prop ...) (texp ...) (link ...) (opt ...) (startup ...) 
(completion-ignore-case opt) (type nil) (tbl nil) (table ...) (pattern ...) 
(completion ...)) (cond (... ...) (... ... ...) (... ... ... ... ... ... ...) 
(t ... ... ...)))
  (catch (quote exit) (let* (... ... ... ... ... ... ... ... ... ... ... ... 
... ... ... ... ... ... ...) (cond ... ... ... ...)))
  (progn (if pc-mode (partial-completion-mode -1)) (catch (quote exit) (let* 
... ...)))
  (unwind-protect (progn (if pc-mode ...) (catch ... ...)) (if pc-mode 
(partial-completion-mode 1)))
  (let ((pc-mode ...)) (unwind-protect (progn ... ...) (if pc-mode ...)))
  (org-without-partial-completion (catch (quote exit) (let* ... ...)))
  org-complete(nil)
  call-interactively(org-complete nil nil)

-- 
Emacs uptime: 18 minutes, 25 seconds



___
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: Positioning Latex diagram on PDF output

2009-08-10 Thread Graham Smith
leo

2009/8/9 Leo sdl@gmail.com:
 On 2009-08-09 08:33 +0100, Graham Smith wrote:
 Leo,

 Thanks again, it seems the answer lies in Latex, rather than OrgMode,
 so I will work  away at that.

 having said that, the commands you gave me are extremely useful for
 making a stand alone diagram to insert as a graphic into some other
 document. So well worth knowing.

 You're welcome, Graham.

 Leo

Just for completeness, and should anyone search the forum with a
similar problem,the answer lay in the wide margins used by default in
the article class, so new headers are:

#+LATEX_HEADER: \usepackage{tikz}
#+LATEX_HEADER: \usetikzlibrary{mindmap,trees}
#+LATEX_HEADER: \usepackage[a4paper, left=3cm,right=2cm]{geometry}

Plus you can scale the tikz drawing using

\begin{tikzpicture}[scale=0.85]

However, it doesn't scale very well and the different elements do not
scale proportionally, so while it works fine for a small tweak, it is
useless for the large changes.

Graham


___
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] Lisp error: (args-out-of-range 2 10) (was: 6.29c bug: (void-variable org-export-html-special-string-regexps))

2009-08-10 Thread Leo
On 2009-08-10 12:55 +0100, Leo wrote:
 Another bug maybe related to this one is trying to complete #+ produces
 another error:

 Debugger entered--Lisp error: (args-out-of-range  2 10)
   match-string(2 )
   (cons (match-string 2 x) (match-string 1 x))
   (lambda (x) (string-match ^#\\+\\(\\([A-Z_]+:?\\).*\\) x) (cons 
 (match-string 2 x) (match-string 1 x)))()
   mapcar((lambda (x) (string-match ^#\\+\\(\\([A-Z_]+:?\\).*\\) x) (cons 
 (match-string 2 x) (match-string 1 x))) (#+TITLE: Tasks.org #+AUTHOR:  
   Leo Shidai Liu #+EMAIL: sl...@cam.ac.uk #+DATE:  2009-08-10 
 Mon #+DESCRIPTION:  #+KEYWORDS:  #+LANGUAGE:  en #+OPTIONS:   H:3 
 num:t toc:t \\n:nil @:t ::t |:t ^:t -:t f:t *:t :t #+OPTIONS:   TeX:t 
 LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc  
 #+EXPORT_SELECT_TAGS: export #+EXPORT_EXCLUDE_TAGS: noexport #+LINK_UP:  
   #+LINK_HOME:  #+CATEGORY:  Tasks #+SEQ_TODO:  TODO FEEDBACK VERIFY 
 DONE #+TYP_TODO:  Me Jason Marie DONE #+PRIORITIES: A C B #+DRAWERS:   
 PROPERTIES CLOCK LOGBOOK #+STARTUP:   content odd hidestars noalign nil 
 #+TAGS:  @Computer(c) @Errands(e) @Home(h) @None(n) @Offic
  e(o) @Phone(p) #+FILETAGS:   #+ARCHIVE:   %s_archive:: #+LINK:  
 org file:~/org/%s.org))
   (append (mapcar (lambda ... ... ...) (org-split-string ... \n)) (mapcar 
 (quote list) org-additional-option-like-keywords))
   (cond (opt (setq type :opt) (require ...) (append ... ...)) (startup (setq 
 type :startup) org-startup-options) (link (append org-link-abbrev-alist-local 
 org-link-abbrev-alist)) (texp (setq type :tex) org-html-entities) 
 ((string-match \\`\\*+[ ]+\\' ...) (setq type :todo) (mapcar ... 
 org-todo-keywords-1)) (searchhead (setq type :searchhead) (save-excursion ... 
 ...) tbl) (tag (setq type :tag beg beg1) (or org-tag-alist ...)) (prop (setq 
 type :prop beg beg1) (mapcar ... ...)) (t (progn ... ...)))
   (let* ((a nil) (end ...) (beg1 ...) (beg ...) (confirm ...) (searchhead 
 ...) (struct ...) (tag ...) (prop ...) (texp ...) (link ...) (opt ...) 
 (startup ...) (completion-ignore-case opt) (type nil) (tbl nil) (table ...) 
 (pattern ...) (completion ...)) (cond (... ...) (... ... ...) (... ... ... 
 ... ... ... ...) (t ... ... ...)))
   (catch (quote exit) (let* (... ... ... ... ... ... ... ... ... ... ... ... 
 ... ... ... ... ... ... ...) (cond ... ... ... ...)))
   (progn (if pc-mode (partial-completion-mode -1)) (catch (quote exit) (let* 
 ... ...)))
   (unwind-protect (progn (if pc-mode ...) (catch ... ...)) (if pc-mode 
 (partial-completion-mode 1)))
   (let ((pc-mode ...)) (unwind-protect (progn ... ...) (if pc-mode ...)))
   (org-without-partial-completion (catch (quote exit) (let* ... ...)))
   org-complete(nil)
   call-interactively(org-complete nil nil)

Here is how to reproduce this one:

1. kk.el with the following line:

(setq org-modules nil)

2. emacs -q -l kk.el

3. open an org file

4. type in #+

5. press M-TAB

Backtrace is as in the previous post.

-- 
Emacs uptime: 11 minutes, 34 seconds



___
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] 6.29c bug: (void-variable org-export-html-special-string-regexps)

2009-08-10 Thread Carsten Dominik

Fixed, thanks.

- Carsten
On Aug 10, 2009, at 1:47 PM, Leo wrote:


Hi all,

Here is how to reproduce the bug:

1. create a file kk.el with the following content:

(setq org-modules nil)
(define-key mode-specific-map [?a] 'org-agenda)
(define-key mode-specific-map [?l] 'org-store-link)
(setq org-agenda-files '(~/kk.org))
(setq org-export-with-LaTeX-fragments t
 org-highlight-latex-fragments-and-specials t)

2. create an empty file named kk.org

3. emacs -q -l kk.el

4. C-c a a

Backtrace:

Debugger entered--Lisp error: (void-variable org-export-html-special- 
string-regexps)

 org-compute-latex-and-specials-regexp()
 org-set-regexps-and-options()
 org-mode()
 set-auto-mode-0(org-mode nil)
 set-auto-mode()
 normal-mode(t)
 after-find-file(nil t)
 find-file-noselect-1(#buffer kk.org ~/kk.org nil nil ~/ 
kk.org (1861876 234881026))

 find-file-noselect(~/kk.org)
 org-get-agenda-file-buffer(~/kk.org)
 byte-code(.!ƒ\f.qˆ‚...!ˆ.!qˆ~ˆ. .. ˆ.\n\..\f.\.. 
\...\..Š.ed..#ˆ..ƒc.ebˆ.#ƒc...!ƒ 
G... ..!.#ˆ‚G.ebˆ.. .Q.!..!..#ƒƒ...”..!.\#ˆ‚m.).	!‡ [file bmp org- 
todo-keywords-for-agenda org-todo-keywords-1 org-done-keywords-for- 
agenda org-done-keywords bufferp org-check-agenda-file org-get- 
agenda-file-buffer buffer-modified-p org-refresh-category-properties  
append remove-text-properties re-search-forward nil t org-on-heading- 
p add-text-properties point-at-bol org-end-of-subtree ^\\*+ + \ 
\ 0 set-buffer-modified-p org-todo-keyword-alist-for-agenda org- 
todo-key-alist org-tag-alist-for-agenda org-tag-alist pall org- 
agenda-skip-archived-trees rea pa org-comment-string re pc] 4)

 org-prepare-agenda-buffers((~/kk.org))
 org-prepare-agenda(Day/Week)
 org-agenda-list(nil)
 call-interactively(org-agenda-list)
 byte-code(..	.	 
\\.p 
... !..‰ 
@.‰ 
.A 
.B 
.‰ 
.C 
.D.E„.#ˆ..f.g.‰“ˆ.h.‰“ˆ#ˆp.i.j„z..!Â...@.j.da.k.e„...kƒ. 
\fC 
#ˆ.K.=ƒ†...F.G. .“ˆ.H. .“ˆ‚...K.=ƒ..Š..F..!ˆ.G`.“ˆ.H..!.“ˆ)..!ˆ..J	 
\‰.ƒ89„.8!ƒœ...8.A..8.B..8.CC#ˆ.A.=ƒC. 
\‚...A.=ƒC.\‚...A.=ƒC.\‚...A.=ƒC.\‚...A.=ƒ\...C. 
\‚...A.=ƒ1...C.\‚...a@...c.\‚...A.=ƒR.. ˆ..C.\‚...A.=ƒd..  
ˆ..C.\‚...A.=ƒv.. ˆ..C.\‚A!ƒ
...C.\‚A!ƒ”...C.\‚.A\‚.@.‰.laa)\‚...J.šƒ.. 
\n 
...!‚ 
...J 
.š 
ƒ 
... 
Q 
.!‚ 
...JR.šƒ...S.!‚...JT.šƒ...U.!‚...JV.šƒ..U..M†..W..M.N.M.O..N! 
+‚...JX.šƒ ..Y.!‚...JZ.šƒD.Y..M†4.[..M.N.M.O..N!+‚...J\ 
\.šƒU..].!‚...J^.šƒ..P_.=„m..`.!ˆ.K?
.\fC#ˆa..M.M.N.M.O..N! 
+‚...Jb.šƒ...c.!‚...Jd.šƒ...e.!‚...Jf.šƒ...g.!‚...h.!. 
‡ [prefix-descriptions org-agenda-custom-commands org-agenda-custom- 
commands-orig buf bfn entry nil delq mapcar #[(x) A;ƒ\f.	 
B..‡A@;ƒ..Â...@„'@.‰.aa)bb...@.abb‡ [x prefix-descriptions nil  
] 4] buffer-file-name buffer-base-buffer put org-agenda-files org- 
restrict org-agenda-redo-command org-lprops org-agenda-get- 
restriction-and-command region t region-beginning region-end subtree  
org-back-to-heading org-end-of-subtree require calendar assoc 2  
functionp 3 4 agenda org-let (org-agenda-list current-prefix-arg)  
alltodo (org-todo-list current-prefix-arg) search (org-search-view  
current-prefix-arg match nil) stuck (org-agenda-list-stuck-projects  
current-prefix-arg) tags (org-tags-view current-prefix-arg match)  
tags-todo (org-tags-view (quote ...) match) todo (org-todo-list  
match) tags-tree org-check-for-org-mode (org-match-sparse-tree  
current-prefix-arg match) ...] 6)

 org-agenda(nil)
 call-interactively(org-agenda nil nil)

--
Emacs uptime: 7 minutes, 29 seconds



___
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] Re: 6.29c bug: (void-variable org-export-html-special-string-regexps)

2009-08-10 Thread Carsten Dominik

Fixed, thanks.

- Carsten

On Aug 10, 2009, at 1:55 PM, Leo wrote:



Another bug maybe related to this one is trying to complete #+  
produces

another error:

Debugger entered--Lisp error: (args-out-of-range  2 10)
 match-string(2 )
 (cons (match-string 2 x) (match-string 1 x))
 (lambda (x) (string-match ^#\\+\\(\\([A-Z_]+:?\\).*\\) x) (cons  
(match-string 2 x) (match-string 1 x)))()
 mapcar((lambda (x) (string-match ^#\\+\\(\\([A-Z_]+:?\\).*\\) x)  
(cons (match-string 2 x) (match-string 1 x))) (#+TITLE:  
Tasks.org #+AUTHOR:Leo Shidai Liu #+EMAIL:  
sl...@cam.ac.uk #+DATE:  2009-08-10 Mon #+DESCRIPTION:  # 
+KEYWORDS:  #+LANGUAGE:  en #+OPTIONS:   H:3 num:t toc:t \\n:nil  
@:t ::t |:t ^:t -:t f:t *:t :t #+OPTIONS:   TeX:t LaTeX:t  
skip:nil d:nil todo:t pri:nil tags:not-in-toc  # 
+EXPORT_SELECT_TAGS: export #+EXPORT_EXCLUDE_TAGS: noexport # 
+LINK_UP:#+LINK_HOME:  #+CATEGORY:  Tasks #+SEQ_TODO:   
TODO FEEDBACK VERIFY DONE #+TYP_TODO:  Me Jason Marie DONE # 
+PRIORITIES: A C B #+DRAWERS:   PROPERTIES CLOCK LOGBOOK # 
+STARTUP:   content odd hidestars noalign nil #+TAGS:   
@Computer(c) @Errands(e) @Home(h) @None(n) @Office(o) @Phone(p) # 
+FILETAGS:   #+ARCHIVE:   %s_archive:: #+LINK:  org file:~/ 
org/%s.org))
 (append (mapcar (lambda ... ... ...) (org-split-string ... \n))  
(mapcar (quote list) org-additional-option-like-keywords))
 (cond (opt (setq type :opt) (require ...) (append ... ...))  
(startup (setq type :startup) org-startup-options) (link (append org- 
link-abbrev-alist-local org-link-abbrev-alist)) (texp (setq  
type :tex) org-html-entities) ((string-match \\`\\*+[ 	]+\\' ...)  
(setq type :todo) (mapcar ... org-todo-keywords-1)) (searchhead  
(setq type :searchhead) (save-excursion ... ...) tbl) (tag (setq  
type :tag beg beg1) (or org-tag-alist ...)) (prop (setq type :prop  
beg beg1) (mapcar ... ...)) (t (progn ... ...)))
 (let* ((a nil) (end ...) (beg1 ...) (beg ...) (confirm ...)  
(searchhead ...) (struct ...) (tag ...) (prop ...) (texp ...)  
(link ...) (opt ...) (startup ...) (completion-ignore-case opt)  
(type nil) (tbl nil) (table ...) (pattern ...) (completion ...))  
(cond (... ...) (... ... ...) (... ... ... ... ... ... ...)  
(t ... ... ...)))
 (catch (quote exit) (let*  
(... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (cond 
 ... ... ... ...)))
 (progn (if pc-mode (partial-completion-mode -1)) (catch (quote  
exit) (let* ... ...)))
 (unwind-protect (progn (if pc-mode ...) (catch ... ...)) (if pc- 
mode (partial-completion-mode 1)))
 (let ((pc-mode ...)) (unwind-protect (progn ... ...) (if pc- 
mode ...)))

 (org-without-partial-completion (catch (quote exit) (let* ... ...)))
 org-complete(nil)
 call-interactively(org-complete nil nil)

--
Emacs uptime: 18 minutes, 25 seconds



___
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] Re: Faces in agenda view

2009-08-10 Thread Manish
On Mon, Aug 10, 2009 at 2:49 PM, Carsten Dominik wrote:

 M-x customize-face RET org-agenda-clocking RET

 - Carsten


Awesome!  Thanks.

-- 
Manish


___
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] Fireforg and the mac

2009-08-10 Thread Robert Goldman
Is Fireforg expected to work on the Mac?  Or should we expect it to fail
because of the bug in Mac Firefox that keeps protocol registration from
working?

thanks!

Robert


___
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: Orgmodeorg-export-generic gives an error

2009-08-10 Thread Wes Hardaker
 On Thu, 23 Jul 2009 15:31:19 +0100, James TD Smith 
 ahktenz...@mohorovi.cc said:

JTS You could use the aput function instead. which does the same thing. It's in
JTS assoc.el which is included with both GNU Emacs and XEmacs.

I think that sounds like the easiest approach.  Thanks!
-- 
\ Wes Hardaker   http://pontifications.hardakers.net /
 \_ In the bathtub of history the truth is harder to hold than /
   \___ the soap, and much more difficult to find. ___/
   \_ -- Terry Pratchett __/
 \__/


___
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] Fireforg and the mac

2009-08-10 Thread Andreas Burtzlaff
On Mon, 10 Aug 2009 10:14:55 -0500
Robert Goldman rpgold...@sift.info wrote:

 Is Fireforg expected to work on the Mac?  Or should we expect it to fail
 because of the bug in Mac Firefox that keeps protocol registration from
 working?

At the moment org-protocol is only used to let emacs visit an
annotation on selection. So that - and of course store-link and
remember - will fail, but the annotations should be displayed anyway.

Andreas


___
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: Emacs crashes when using S-TAB in drawer

2009-08-10 Thread Markus Heller

Carsten Dominik wrote:

Are you using org-indent-mode?


Yes I do.

This is the configuration I use:

#+DRAWERS: IDEAS COMMENTS REVIEW
#+STARTUP: content
#+STARTUP: hidestars
#+STARTUP: indent

followed by 3 lines of #+TAG.

I use the :COMMENTS: drawer very frequently to jot down comments on 
specific tasks etc. and the :IDEAS: drawer only occasionally, but the 
crash happens when point is in either of them.


I'm sorry I couldn't reproduce a minimal file that shows the crash.

Please let me know if you need further info.

Cheers
M


- Carsten

On Aug 8, 2009, at 12:30 AM, Markus Heller wrote:


Hello all,

emacs crashes reproducibly when using S-Tab in an expended drawer.  
I've noticed this with my org-file, which is rather big.  I tried to 
narrow it down to a minimal org file, but could not reproduce the 
crash.  While trying to narrow things down, I noticed that drawers get 
corrupted when using S-Tab multiple times, looks like the :END: line 
goes missing.


I'm happy to provide more info if you tell me what you're looking for, 
but as I said, I wasn't able to create a minimal org file showing the 
crash.  I'm wondering if anybody else has the same problems ...


Here are my versions:

Emacs version: GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600) of 
2009-06-30 on LENNART-69DE564


org version: 6.269c

Cheers
Markus




___
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] performance problems with drawers

2009-08-10 Thread Al
Hello Carsten,

I'm just back from holidays and I've checked with current git version
6.29 trans (instead of the 6.27a I was using). It is much faster, even
for vertical cursor motion. Thank you very much for your work.


Carsten Dominik wrote:
 Hi Al,
 
 I think I have now been able to speed this up a lot.  There is
 still a strange delay when you switch to CHILDREN view in
 your Bookmark entry *for the first time*.  However, after that
 things seem to be much faster.  I have no idea where this
 initial delay comes from, it might have to do with the way
 Emacs handles character properties internally.
 
 Anyway, even the first time you use CHILDREN view is now much
 faster than it used to be.
 
 Please let me know if this solves the issue for you.
 
 - Carsten
 
 P.S.  Unfortunatey, I cannot fix the performance issues
 regarding vertical cursor motion, this is in the guts of
 Emacs.  `C-c C-f' and `C-c C-b' do help a bit...
 
 On Jul 7, 2009, at 5:33 PM, Al wrote:
 
 Hello,

 I'm trying to use emacs org-mode to keep my bookmarks (using the
 org-annotation-helper.el method). I find this really great, except
 performance
 issues.

 My .org file contains ~5000 entries, organized in a tree like this:

 #+DRAWERS: MYDATA

 ** net
 *** www
  [[http://www.w3.org/][W3C - The World Wide Web Consortium]]
 :MYDATA:
  :Entered:   [2000-03-06 10:29:04]
  :LastVisit: [2000-08-31 16:32:15]
 :END:

 Some optional text

  [[http://www.xml.com/pub][XML.com - XTech 2000 Conference]]
 :AEDATA:
  :Entered:   [2000-03-06 10:29:49]
  :LastVisit: [2001-10-08 15:37:09]
 :END:

 The problem is that with the drawers activated, it's *very* slow.
 Cycling the
 visibility mode takes more than 10 seconds.
 If I remove the drawers configuration line (#+DRAWERS: MYDATA), speed
 comes back
 to reasonable levels, but obviously I lose the drawer effect.

 Is there a solution to improve the speed and using the drawers ?

 Thanks in advance.




 ___
 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] Cannot install 6.29c on Ubuntu 8.04 with emacs 22.1.1

2009-08-10 Thread Charles Howard
2009/8/9 Manish mailtomanish.sha...@gmail.com:
 On Sun, Aug 9, 2009 at 3:08 AM, Charles Howard wrote:

 I am trying to install 6.29c onto Ubuntu 8.04 with emacs 22.1.1 and

(cut)

 I don't know the answer to your problem but some of the following might help:

  1. Why is there no (require 'org-install) in excerpt from .emacs?
  2. Where is 6.06 getting loaded from (check using locate-library
 org-install RET)?
  3. Try (add-to-list 'load-path ~/org-6.29c/lisp) instead of the
 version with cons.
  4. Check set up section (2.1) from http://doc.norang.ca/org-mode.html

 HTH
 --
 Manish


Thanks Manish, that's a considerable help. I'm very glad to be told
about the norang site.
My .emacs didn't have (require 'org-install) because this was the file
before running make.

Org-mode loads now and mostly works, but I cannot export to latex.
When I do C-c C-e l
(or L or p) I get the message `Loading tabify ...done' and emacs
freezes. No cursor movement,
no response to input.  Doing C-g unfreezes but there is no .tex
output. HTML export works fine.

Somebody asked about this problem back in January at
http://lists.gnu.org/archive/html/emacs-orgmode/2009-01/msg00104.html
but there was no solution. Does anyone know what causes this?

The *Message* file follows. Chas

=

(emacs ks.org)
Loading 00debian-vars...done
Loading /etc/emacs/site-start.d/50ccrypt.el (source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Loading debian-ispell...
Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...done
Loading debian-ispell...done
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
Loading /etc/emacs/site-start.d/50emacs-goodies-el.el (source)...done
Loading /etc/emacs/site-start.d/50lbdb.el (source)...done
Loading /usr/share/emacs22/site-lisp/emacs-goodies-el/color-theme.el (source)...
Loading edmacro...done
Loading /usr/share/emacs22/site-lisp/emacs-goodies-el/color-theme.el
(source)...done
Loading desktop...done
No desktop file.
Loading cl-macs...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Loading tex-mode...
Loading regexp-opt...done
Loading tex-mode...done
Loading org...
Loading easy-mmode...done
Loading advice...done
Loading byte-opt...done
Loading org...done
OVERVIEW
Select command:
Loading org-latex...done
Exporting to LaTeX...
Loading latexenc...done
Loading tex-mode...done
Loading tabify...done
Quit




___
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] Cannot install 6.29c on Ubuntu 8.04 with emacs 22.1.1

2009-08-10 Thread Sebastian Rose
Hi Charles,


You'll need some LaTeX environment installed. On Debian (and thus Ubuntu
IMO), install texlive everything that package pulls
in. Plus the packages you might use in the future.

Synaptic will help here.


   Sebastian



Charles Howard terminalbeach...@googlemail.com writes:
 2009/8/9 Manish mailtomanish.sha...@gmail.com:
 On Sun, Aug 9, 2009 at 3:08 AM, Charles Howard wrote:

 I am trying to install 6.29c onto Ubuntu 8.04 with emacs 22.1.1 and

 (cut)

 I don't know the answer to your problem but some of the following might help:

  1. Why is there no (require 'org-install) in excerpt from .emacs?
  2. Where is 6.06 getting loaded from (check using locate-library
 org-install RET)?
  3. Try (add-to-list 'load-path ~/org-6.29c/lisp) instead of the
 version with cons.
  4. Check set up section (2.1) from http://doc.norang.ca/org-mode.html

 HTH
 --
 Manish


 Thanks Manish, that's a considerable help. I'm very glad to be told
 about the norang site.
 My .emacs didn't have (require 'org-install) because this was the file
 before running make.

 Org-mode loads now and mostly works, but I cannot export to latex.
 When I do C-c C-e l
 (or L or p) I get the message `Loading tabify ...done' and emacs
 freezes. No cursor movement,
 no response to input.  Doing C-g unfreezes but there is no .tex
 output. HTML export works fine.

 Somebody asked about this problem back in January at
 http://lists.gnu.org/archive/html/emacs-orgmode/2009-01/msg00104.html
 but there was no solution. Does anyone know what causes this?

 The *Message* file follows. Chas

 =

 (emacs ks.org)
 Loading 00debian-vars...done
 Loading /etc/emacs/site-start.d/50ccrypt.el (source)...done
 Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
 Loading debian-ispell...
 Loading /var/cache/dictionaries-common/emacsen-ispell-default.el 
 (source)...done
 Loading debian-ispell...done
 Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done
 Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
 Loading /etc/emacs/site-start.d/50emacs-goodies-el.el (source)...done
 Loading /etc/emacs/site-start.d/50lbdb.el (source)...done
 Loading /usr/share/emacs22/site-lisp/emacs-goodies-el/color-theme.el 
 (source)...
 Loading edmacro...done
 Loading /usr/share/emacs22/site-lisp/emacs-goodies-el/color-theme.el
 (source)...done
 Loading desktop...done
 No desktop file.
 Loading cl-macs...done
 For information about GNU Emacs and the GNU system, type C-h C-a.
 Loading tex-mode...
 Loading regexp-opt...done
 Loading tex-mode...done
 Loading org...
 Loading easy-mmode...done
 Loading advice...done
 Loading byte-opt...done
 Loading org...done
 OVERVIEW
 Select command:
 Loading org-latex...done
 Exporting to LaTeX...
 Loading latexenc...done
 Loading tex-mode...done
 Loading tabify...done
 Quit

 




___
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: Emacs crashes when using S-TAB in drawer

2009-08-10 Thread Carsten Dominik


On Aug 10, 2009, at 6:08 PM, Markus Heller wrote:


Carsten Dominik wrote:

Are you using org-indent-mode?


Yes I do.

This is the configuration I use:

#+DRAWERS: IDEAS COMMENTS REVIEW
#+STARTUP: content
#+STARTUP: hidestars
#+STARTUP: indent

followed by 3 lines of #+TAG.

I use the :COMMENTS: drawer very frequently to jot down comments on  
specific tasks etc. and the :IDEAS: drawer only occasionally, but  
the crash happens when point is in either of them.


I'm sorry I couldn't reproduce a minimal file that shows the crash.


Hi,

does the crash happen reproducible in the big file?
If yes, would you mind sharing that file with just me?

I have Emacs crash occasionally with org-indent-mode as well, I think
this is an Emacs bug, the features with line-prefix are still new.
But if there is a reproducible case, we could at least make a good
backtrace including the C code and a core dump, maybe some Emacs
developer could do something with it.

Please also test if the crashes disappear when you no longer
use org-indent-mode.

- Carsten





Please let me know if you need further info.

Cheers
M


- Carsten
On Aug 8, 2009, at 12:30 AM, Markus Heller wrote:

Hello all,

emacs crashes reproducibly when using S-Tab in an expended  
drawer.  I've noticed this with my org-file, which is rather big.   
I tried to narrow it down to a minimal org file, but could not  
reproduce the crash.  While trying to narrow things down, I  
noticed that drawers get corrupted when using S-Tab multiple  
times, looks like the :END: line goes missing.


I'm happy to provide more info if you tell me what you're looking  
for, but as I said, I wasn't able to create a minimal org file  
showing the crash.  I'm wondering if anybody else has the same  
problems ...


Here are my versions:

Emacs version: GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600) of  
2009-06-30 on LENNART-69DE564


org version: 6.269c

Cheers
Markus




___
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: Day workflow: need your opinion

2009-08-10 Thread Xavier Maillard
At Tue, 4 Aug 2009 15:09:30 +0530,
Vedang wrote:
 
 [1  multipart/alternative (7bit)]
 [1.1  text/plain; ISO-8859-1 (7bit)]
 Hi Xavier,
 
  a) I doing some non urgent (planned) DBA tasks (call this project A)
  b) someone calls me (interrupting Project A)
  c) I am doing what urgency of b) is needed
  d) when c) is finished, I get back to project A
 
 I think the Time Clocking
 sectionhttp://doc.norang.ca/org-mode.html#sec-7.2of this
 document http://doc.norang.ca/org-mode.html%20 by Bernt Hansen would be
 quite helpful in your case. In fact, the entire document is excellent
 reading for getting things done using org-mode.

Thanks a lot. I read it several times.

Xavier



___
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: Day workflow: need your opinion

2009-08-10 Thread Xavier Maillard
At Tue, 04 Aug 2009 10:46:40 +0100,
Leo wrote:
 
 On 2009-08-04 06:57 +0100, Xavier Maillard wrote:
  a) I doing some non urgent (planned) DBA tasks (call this project A)
  b) someone calls me (interrupting Project A)
  c) I am doing what urgency of b) is needed
  d) when c) is finished, I get back to project A
 
  At my job, they often rules the retro planning concept which is
  bloat. So how would you manage such situation in org-mode ?
 
 Let me give it a try.
 
 When I am at Task A but interupted for Task B, I will mark Task A with
 one of the todo-keywords (you can create one specific for interruption
 for example PAUSE).
 
 Then you need to review what is on your plate by C-c a t to decide your
 next action after Task B.

Already tried that but it failed for me. The less I do, the
better for me :D

Xavier



___
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: Day workflow: need your opinion

2009-08-10 Thread Xavier Maillard
Thanks a lot Bernt. This is how I am doing things right now which
partially works for me.

I need a way to tag a TODO as INTERRUPTED automatically when
clocking-in a new item through remember.

Eg:

Working on task A which is marked as STARTED. Someone calls me
asking for help. I C-M-r a new clocked item, automatically
marking previous clocked-in item (task A) as INTERRUPTED.

Even better would be to have something that could clock-out
automatically when a task hits some tags: WAITING or INTERRUPTED.

Do you know if it is possible ?

Also, while at it: how do you access a daily report of what has
been done and how long it took to do ?

Thank you a lot everybody.

Xavier



___
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] 6.29c export latex bug?

2009-08-10 Thread zwz
Here is the content of my org file:
  
 * Test
   | | A | B | 
   |-+---+---| 
   | com | 1 | 2 | 
   | org | 3 | 4 | 
   
   Some math formulae: 
   
   y = x_1^2 + x_2^2   
   
   y^2 = 2x^2 + 1  
   
   z_2 = x_1 + x_2 + 2 (y_1 + y_2 + r) 
  

Then I press C-c C-e l, I get the debug back-trace:

Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
  replace-regexp-in-string(|| | nil)
  org-export-latex-tables(t)
  org-export-latex-content(#(\n  | | A | B |\n  |-+---+---|\n  | com | 
1 | 2 |\n  | org | 3 | 4 |\n\n  Some math formulae:\n\n  y = x_1^2 + x_2^2\n\n  
y^2 = 2x^2 + 1\n\n  z_2 = x_1 + x_2 + 2 (y_1 + y_2 + r)\n\n\n 0 1 (fontified 
nil) 1 3 (fontified nil org-caption nil org-attributes nil org-label nil) 3 5 
(fontified nil org-caption nil org-attributes nil org-label nil) 5 6 (fontified 
nil hilit-chg hilit-chg org-caption nil org-attributes nil org-label nil) 6 7 
(fontified nil hilit-chg hilit-chg org-caption nil org-attributes nil org-label 
nil) 7 8 (fontified nil hilit-chg hilit-chg org-caption nil org-attributes nil 
org-label nil) 8 9 (fontified nil hilit-chg hilit-chg org-caption nil 
org-attributes nil org-label nil) 9 10 (fontified nil hilit-chg hilit-chg 
org-caption nil org-attributes nil org-label nil) 10 18 (fontified nil 
org-caption nil org-attributes nil org-label nil) 18 19 (fontified nil) 19 21 
(fontified nil) 21 36 (fontified nil) 36 37 (fontified nil) 37 39 (fontified 
nil org-caption nil org-attributes nil org-label nil) 39 54 (fontified nil 
org-caption nil org-attributes nil org-label nil) 54 55 (fontified nil) 55 57 
(fontified nil org-caption nil org-attributes nil org-label nil) 57 72 
(fontified nil org-caption nil org-attributes nil org-label nil) 72 117 
(fontified nil) 117 174 (fontified nil) 174 175 (fontified nil) 175 176 
(fontified nil)))
  org-export-latex-subcontent(((pos . 2) (level . 1) (occur . 1) (heading . #( 
Test  1 2 ... 2 5 ...)) (content . #(\n  | | A | B |\n  |-+---+---|\n 
 | com | 1 | 2 |\n  | org | 3 | 4 |\n\n  Some math formulae:\n\n  y = x_1^2 + 
x_2^2\n\n  y^2 = 2x^2 + 1\n\n  z_2 = x_1 + x_2 + 2 (y_1 + y_2 + r)\n\n\n 0 1 
... 1 3 ... 3 5 ... 5 6 ... 6 7 ... 7 8 ... 8 9 ... 9 10 ... 10 18 ... 18 19 
... 19 21 ... 21 36 ... 36 37 ... 37 39 ... 39 54 ... 54 55 ... 55 57 ... 57 72 
... 72 117 ... 117 174 ... 174 175 ... 175 176 ...)) (subcontent)) t)
  #[(x) Â \‡ [x num org-export-latex-subcontent] 3](((pos . 2) (level . 
1) (occur . 1) (heading . #( Test  1 2 ... 2 5 ...)) (content . #(\n  | 
| A | B |\n  |-+---+---|\n  | com | 1 | 2 |\n  | org | 3 | 4 |\n\n  Some 
math formulae:\n\n  y = x_1^2 + x_2^2\n\n  y^2 = 2x^2 + 1\n\n  z_2 = x_1 + x_2 
+ 2 (y_1 + y_2 + r)\n\n\n 0 1 ... 1 3 ... 3 5 ... 5 6 ... 6 7 ... 7 8 ... 8 9 
... 9 10 ... 10 18 ... 18 19 ... 19 21 ... 21 36 ... 36 37 ... 37 39 ... 39 54 
... 54 55 ... 55 57 ... 57 72 ... 72 117 ... 117 174 ... 174 175 ... 175 176 
...)) (subcontent)))
  mapc(#[(x) Â\‡ [x num org-export-latex-subcontent] 3] (((pos . 2) 
(level . 1) (occur . 1) (heading . #( Test  1 2 ... 2 5 ...)) (content . 
#(\n  | | A | B |\n  |-+---+---|\n  | com | 1 | 2 |\n  | org | 3 | 4 
|\n\n  Some math formulae:\n\n  y = x_1^2 + x_2^2\n\n  y^2 = 2x^2 + 1\n\n  z_2 
= x_1 + x_2 + 2 (y_1 + y_2 + r)\n\n\n 0 1 ... 1 3 ... 3 5 ... 5 6 ... 6 7 ... 
7 8 ... 8 9 ... 9 10 ... 10 18 ... 18 19 ... 19 21 ... 21 36 ... 36 37 ... 37 
39 ... 39 54 ... 54 55 ... 55 57 ... 57 72 ... 72 117 ... 117 174 ... 174 175 
... 175 176 ...)) (subcontent
  org-export-latex-subpos . 2) (level . 1) (occur . 1) (heading . #( Test 
 1 2 ... 2 5 ...)) (content . #(\n  | | A | B |\n  |-+---+---|\n  | 
com | 1 | 2 |\n  | org | 3 | 4 |\n\n  Some math formulae:\n\n  y = x_1^2 + 
x_2^2\n\n  y^2 = 2x^2 + 1\n\n  z_2 = x_1 + x_2 + 2 (y_1 + y_2 + r)\n\n\n 0 1 
... 1 3 ... 3 5 ... 5 6 ... 6 7 ... 7 8 ... 8 9 ... 9 10 ... 10 18 ... 18 19 
... 19 21 ... 21 36 ... 36 37 ... 37 39 ... 39 54 ... 54 55 ... 55 57 ... 57 72 
... 72 117 ... 117 174 ... 174 175 ... 175 176 ...)) (subcontent
  org-export-latex-global... ... ... ... ... ...
  org-export-as-latex(nil)
  call-interactively(org-export-as-latex)
  org-export(nil)
  call-interactively(org-export nil nil)



___
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: Day workflow: need your opinion

2009-08-10 Thread Bernt Hansen
Xavier Maillard x...@gnu.org writes:

 Thanks a lot Bernt. This is how I am doing things right now which
 partially works for me.

 I need a way to tag a TODO as INTERRUPTED automatically when
 clocking-in a new item through remember.

 Eg:

 Working on task A which is marked as STARTED. Someone calls me
 asking for help. I C-M-r a new clocked item, automatically
 marking previous clocked-in item (task A) as INTERRUPTED.

There is a variable for changing task states when clocking out a task.
Every task that clocks out but isn't finished is essentially
interrupted.

The variable org-clock-out-switch-to-state controls that IIRC but I've
never actually tried that (yet).  I just leave my tasks in a STARTED
state.  Anything for me that is STARTED is interrupted (partially worked
on and unfinished).  My STARTED list tends to be less than 20 tasks
total (13 right now).  I just use my STARTED agenda view to pick up the
in-progress tasks easily and clock one in.


 Even better would be to have something that could clock-out
 automatically when a task hits some tags: WAITING or INTERRUPTED.

 Do you know if it is possible ?

There is a org-after-todo-state-change-hook which you could probably use
to accomplish this.


 Also, while at it: how do you access a daily report of what has
 been done and how long it took to do ?

I look at my clock report data in the agenda.  Just pull up a day or
week view and hit R for the report.  You can insert clock reports in
your org files and this is the way I used to do this... but when agenda
reporting came along I abandoned that altogether.

HTH,
Bernt


___
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: 6.29c export latex bug?

2009-08-10 Thread zwz
And as far as I have tested, I found that when there's a bland line or a
headline right before the table, this error pops.



___
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] MACRO calls with linebreaks?

2009-08-10 Thread Stefan Vollmar

Dear Carsten,

On 10.08.2009, at 10:09, Carsten Dominik wrote:


this should now work.

But note that the opening parenthesis must be attached to the macro  
name and the closing parenthesis must be attached to the }}}, just  
as you have done in your proposal.


I have not tested this, please verify.


thank you!

Almost perfect: there seems to be some confusion as to when MACRO  
arguments are passed verbatim and when interpreted in org-fashion.  
Ideally, there should be a way to make sure that one gets verbatim  
text, possibly without leading white space.


(1)

{{{person(minerva_logo.png,
...)}}}

and

{{{person(
minerva_logo.png,
...)}}}

differ. The first version passes minerva_log.png as the first  
argument to the MACRO, the second version turns it into  
minervasublogo/sub.png.


(2)

{{{person(minerva_logo.png, somebody.jpg,
line1 br/ line2 br/ line3 br/,
someb...@nf.mpg.de
)}}}

works fine, however,

{{{person(minerva_logo.png, somebody.jpg,
line1 br/
line2 br/
line3 br/,
someb...@nf.mpg.de
)}}}

creates line1 folled by a line break (as expected) but all following  
HTML code rendered as text:

line1 br/ line2 lt;br/gt; line3 lt;br/gt;lt; [...]

(3)

{{{person(minerva_logo.png, somebody.jpg,
line1 br/
line2 @br/
line3 @br/,
someb...@nf.mpg.de
)}}}

this works (observe the inconsistency between line1 and the other  
lines: no @ here) up to and including line 3, the rest is HTML  
markup rendered as text just as in (2).


Warm regards,
 Stefan



- Carsten

On Aug 9, 2009, at 2:40 AM, Stefan Vollmar wrote:


Hello,

I find org-mode's MACRO feature very useful for exporting to HTML  
as it allows you to generate literally any HTML construct that you  
need, here is a simple example: http://www.nf.mpg.de/kinderuni/kinderuni_en.html 
 (see the Colophon section; thanks again to everybody from the  
list who helped!).


For another project, we need to generate a table with many (multi- 
line) rows like this:


| logo.png | somebody.jpg | name \\ telephone \\ email... |

The images have different sizes (so some alignment is needed) and  
the text in the last column should have several lines (which should  
be next to the person's portrait). This can (currently) not been  
done with standard org tables (I am not complaining).


With something like this:

#+macro: person #+HTML: tabletrtd style=vertical- 
align:middle;margin-right:2em;margin-left:2em;padding:5px;[...]/ 
table


{{{person(logo.png, somebody.jpg, someb...@nf.mpg.de, namebr/ 
telephonebr/roombr/groupbr/[...])}}}


the problem can be solved and yet again org-mode's flexibility is  
demonstrated.


The MACRO can be hidden in a setup-file. However, the MACRO call  
can not and it looks like a kludge and is awkward to read. MACRO  
calls work well with few and short arguments - different from this  
case. The problem is that org-mode seems to require the brackets in  
one line for MACROs to work. Assuming this restriction was not  
there, one could write in a much more readable fashion:


{{{person(
logo.png, somebody.jpg,
someb...@nf.mpg.de,
namebr/
telephonebr/
roombr/
groupbr/
[...]
)}}}

and (just a thought) might expect white space in front of an  
argument to be ignored and linebreaks in arguments conserved. Maybe  
there is a better way to pass longer arguments to MACROs?


Any help is appreciated.
Warm regards,
Stefan


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







___
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] Sort by tag?

2009-08-10 Thread David A. Gershman

I just looked up for how to sort and couldn't find how to sort by tag. 
Anyone have ideas?

Thanks.


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


Re: [Orgmode] 6.29c export latex bug?

2009-08-10 Thread Nick Dokos
zwz zhangwe...@gmail.com wrote:

 Here is the content of my org file:
   
  * Test
| | A | B | 
|-+---+---| 
| com | 1 | 2 | 
| org | 3 | 4 | 

Some math formulae: 

y =3D x_1^2 + x_2^2   

y^2 =3D 2x^2 + 1  

z_2 =3D x_1 + x_2 + 2 (y_1 + y_2 + r) 
   
 
 Then I press C-c C-e l, I get the debug back-trace:
 
 Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
   replace-regexp-in-string(|| | nil)
   org-export-latex-tables(t)
 

I can reproduce this. I also tried with a different table and I can
verify zwz's subsequent finding that a non-empty, non-headline line
above the table fixes it. I looked at the org-export-latex-tables
code, but since I couldn't come up with something obvious, I did
a git bisect and got this:

31ceed47ffd3070418dd34316fef8869d2434c26 is first bad commit
commit 31ceed47ffd3070418dd34316fef8869d2434c26
Author: Carsten Dominik carsten.domi...@gmail.com
Date:   Tue Jun 30 07:24:57 2009 +0200

New minor mode org-indent-mode

This mode implements outline indentation similar to clean view, but in
a dynamic and virtual way, at display time.

HTH,
Nick

PS. Note that org-indent-mode is *not* enabled. I get an error when I try
to enable it, but that's another story.


___
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] Sort by tag?

2009-08-10 Thread Nick Dokos
David A. Gershman dagershman_...@dagertech.net wrote:

 
 I just looked up for how to sort and couldn't find how to sort by tag. 
 Anyone have ideas?
 

Choose 'r' (i.e. sort by property) and use the Special Property TAGS.
See section 7.2 of the manual for other special properties.

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] Sort by tag?

2009-08-10 Thread David A. Gershman

Beautiful...thanks!


 David A. Gershman dagershman_...@dagertech.net wrote:
 
  
  I just looked up for how to sort and couldn't find how to sort by tag. 
  Anyone have ideas?
  
 
 Choose 'r' (i.e. sort by property) and use the Special Property TAGS.
 See section 7.2 of the manual for other special properties.
 
 Nick
 
 


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


Re: [Orgmode] 6.29c export latex bug?

2009-08-10 Thread Nick Dokos
Nick Dokos nicholas.do...@hp.com wrote:


 31ceed47ffd3070418dd34316fef8869d2434c26 is first bad commit
 commit 31ceed47ffd3070418dd34316fef8869d2434c26
 Author: Carsten Dominik carsten.domi...@gmail.com
 Date:   Tue Jun 30 07:24:57 2009 +0200
 
 New minor mode org-indent-mode
 
 This mode implements outline indentation similar to clean view, but in
 a dynamic and virtual way, at display time.
 

I looked over the commit and saw this change to org-table.el:

...
(if (equal (char-before) ?\n)
;; This hack is for org-indent, to force redisplay of the
;; line prefix of the first line. Apparently the redisplay
;; is tied to the newline, which is, I think, a bug.
;; To force this redisplay, we remove and re-insert the
;; newline, so that the redisplay engine thinks it belongs
;; to the changed text.
(progn
  (backward-delete-char 1)
  (insert \n)))
...

I commented it out and the export of the table worked - but I have no
idea why.

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] Re: Latex export to documentclass beamer

2009-08-10 Thread William Henney
On Mon, Aug 10, 2009 at 6:46 AM, Carsten
Dominikcarsten.domi...@gmail.com wrote:
 2. Is there a way to add an attribute to latex lists (itemize, enumerate,
 description} so that:

 * Slide 1
 - x
 - y
 - z

 gets output as:
 \begin{itemize}[+-]
 \item x
 \item y
 \item z
 \end{itemize}

 No.

Although you could always add

\beamerdefaultoverlayspecification{+-}

to the preamble.

Cheers

Will

-- 

  Dr William Henney, Centro de Radioastronomía y Astrofísica,
  Universidad Nacional Autónoma de México, Campus Morelia


___
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