[O] [OT] Grouping of buffers by type when C-left_mouse sometimes there sometimes not

2013-03-01 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

I know this is very likely not related to org, but this is such a knowledgable 
group in regards to
emacs, and as I use emacs to 90% with org (amnd I got no response on the emacs 
mailing list), I'll
ask here:

I have absolutely no idea why, but sometimes I have the buffers grouped by type 
when I
C-left_mouse_click and at othertimes just grouped in Buffers 1 Buffers 2 
and so on.

I have tabbar installed (ELSP Githup) (if this is relevant) and I am using GNU 
Emacs 24.2.1
(i686-pc-linux-gnu, GTK+ Version 2.24.13)

Any suggestions? I really love this grouping by type...

Thanks,

Rainer
- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys.
(Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRMGR7AAoJENvXNx4PUvmCpKIH+wblYHfDNrkjb+DTzopKKtND
kCPLc0Ny42sERxsKWgx7ozNDFxUxs2BGVCpdHDwFEM8BofeDnOfquxuujGkXgxCQ
WDqIx0MskU9/eBYq11kYkny0Bo3P5EG1gBXtMeTbajh4pOcvb9ta5d+dkXAjzFU/
a+8TcvpjzVHI5VCtGTc1GY0lQYjPhR6YjWWcMvESNxc5DLGR7TkthMO874YEJ5HV
+fzj5A+hcS3vIatm0CNIPhPRY5uZrZq6yQ12JDjqJJvFUo0UzhcxMByR/nte8Gv1
+DLJYFPjXRqJdFONeMdNr5k/oX+YSnX8v+cgKUIpzfvq8sKOJe/WygYL7zvDe/I=
=QkR+
-END PGP SIGNATURE-



[O] New beamer export error with top-level TODOs

2013-03-01 Thread James Harkins
Bug or not?

In the *new* beamer exporter, if I have a top level heading with a
TODO keyword, LaTeX chokes on the exported .tex file.

E.g.,

~~
* TODO Quiz review
--
\section{\textbf{\textsf{\textsc{TODO}}} Quiz review}

byte-code: PDF file ./slides.pdf wasn't produced: [undefined control
sequence] Runaway argument
~~

My export options have H:2, so a top level heading as above becomes a
section. Second-level headings become frames, and there is no export
error with a TODO keyword on that level or below.

Use case: I'd like to track the status of a section at the top level,
so I can open the file (with all top-level headings folded) and see
instantly what needs attention, e.g.

TODO = nothing written yet for this section
INPROG = started, but not finished
DONE = (obvious)

org-version:
Org-mode version 7.9.3e (7.9.3e-1141-gc561d1 @
/home/dlm/share/org-mode.git/lisp/)

LaTeX:
pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 2009/Debian)
kpathsea version 5.0.0
Copyright 2009 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
...
Compiled with libpng 1.2.46; using libpng 1.2.46
Compiled with zlib 1.2.3.4; using zlib 1.2.3.4
Compiled with poppler version 0.18.2

Hope it's an easy fix...
hjh



[O] How can I stop org-agenda-write from overwriting existing files.

2013-03-01 Thread Rainer Stengele
Hi all,

constructing an agenda with clocktable for 1 month takes some time here..
Writing the agenda to /patch/agenda-201302.html works fine.
Then creating the agenda for the previous month I also want to write it
to a html file. I would like to use /patch/agenda-201301.html for it.
providing /path/ag and pressing TAB expands the existing path and -
overwrites the uniquely found file!

How can I stop org-agenda-write from overwriting existing files?
Should we consider to introduce an option instead of advising the function?


Thanks,
Rainer




Re: [O] Tips for using orgmode + ledger to record events?

2013-03-01 Thread Eric S Fraga
Harum,

I am not entirely sure what you are asking.  I use ledger with org all
the time to track my finances.  I use babel for this so have entries
that look like this:

#+name: expenses
#+begin_src ledger :noweb yes
expenses-car
expenses-council
expenses-credit-cards
expenses-insurance
expenses-taxes
expenses-utilities
#+end_src

and then have individual blocks for each of these sub-items.  I then
also have something that brings everything together, including expenses
(as noted above), income, etc.:

#+name: assets
#+begin_src ledger :cmdline -V -s bal assets :results output :noweb yes
commodity-prices
opening-balances
income
savings
expenses
#+end_src

I use :noweb to allow me to build up the complete ledger file.

HTH,
eric

-- 
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.3.50.1 and Org release_7.9.3f-1199-g3a0e55




Re: [O] New beamer export error with top-level TODOs

2013-03-01 Thread Nicolas Goaziou
Hello,

James Harkins jamshar...@gmail.com writes:

 In the *new* beamer exporter, if I have a top level heading with a
 TODO keyword, LaTeX chokes on the exported .tex file.

It should be fixed in master. Could you confirm it?

Thanks for reporting the error.


Regards,

-- 
Nicolas Goaziou



Re: [O] Tips for using orgmode + ledger to record events?

2013-03-01 Thread Harum Budi
I was not being clear at all, sorry. Let me rephrase, but bear with me as
English is my secondary language.

For more than a decade, I've maintained a log.txt file with content like
this (events are fictional):

2005-01-02 [friend] Met high school buddy Frank, talked about A, B, C. He
is now married, his wife's name is Laura.
2006-04-06 [gadget] Bought Nokia Communicator 9300 for $500.
2007-12-30 [health] Took worm medicine, along with all family members
@1000mg (Fido included, 125mg).
2008-10-20 -2008-10-22 [vacation] Went to Bali with Denise. Took many
photos (burnt to CD #2341).

This log helps me:
* remember when I bought stuffs (not all purchases are being recorded of
course). Sometimes I update these records to note service/repair, when I
resold the stuffs to others, when the stuff got stolen, etc.
* remember when I got sick, had my blood tested, donated blood, had
doctor/dentist appointment, etc.
* remember when I last meet people (again, not all people).

The format of the file makes it convenient to grep. I plan to convert this
to log.org with format like this:

* [2013-02-21 ] Met high school buddy Lucie:friend:
* [2013-03-01 ] Fido died :(   :pet:

The last 1-2 years of using org/org-mode (and later, ledger-cli) has
brought me much joy because of the outline, richer formatting, syntax
highlighting of timestamps, etc. But it also leads to some issues.

* Duplication. Financial events like buying stuffs are now recorded twice,
once in log.org and another in ledger journal. Should I just stop logging
in log.org for this? Or should I use Org links to link to the appropriate
ledger journal entry?

Past events that are in the reminder are also now in the LOGBOOK drawer,
but not all of them yet. Some events do not have reminders so they will
still need log.org.

* Sometimes I want to write a longer entry than just a long line. The new
log.org format is nice and will let me put detailed note under each
heading. But then I will lose the nice property of one-record-on-each-line
and grep-ping things will not be as straightforward.

If this is still unclear, it is because I'm still not sure how to organize
it all. I have hundreds of .org files now and things are getting rather
messy. But I guess my main issue is: I still want to maintain log.txt/
log.org and would like to have some scripts/utilities to automatically add
records to this file instead of me having to do it manually. log.txt + grep
has been quite useful for me for quick-searching/counting/viewing past
events, and I don't think I want to lose this.

But other thoughts and ideas are certainly welcome.

Harum


2013/3/1 Eric S Fraga e.fr...@ucl.ac.uk

 Harum,

 I am not entirely sure what you are asking.  I use ledger with org all
 the time to track my finances.  I use babel for this so have entries
 that look like this:

 #+name: expenses
 #+begin_src ledger :noweb yes
 expenses-car
 expenses-council
 expenses-credit-cards
 expenses-insurance
 expenses-taxes
 expenses-utilities
 #+end_src

 and then have individual blocks for each of these sub-items.  I then
 also have something that brings everything together, including expenses
 (as noted above), income, etc.:

 #+name: assets
 #+begin_src ledger :cmdline -V -s bal assets :results output :noweb yes
 commodity-prices
 opening-balances
 income
 savings
 expenses
 #+end_src

 I use :noweb to allow me to build up the complete ledger file.

 HTH,
 eric

 --
 : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
 : in Emacs 24.3.50.1 and Org release_7.9.3f-1199-g3a0e55




Re: [O] bug: org-export-preprocess-string: Wrong number of arguments when doing org-export-as-html

2013-03-01 Thread Karl Voit
* Neuwirth Erich erich.neuwi...@univie.ac.at wrote:
 As I learned the correct name for elisp to use with begin_src is emacs-lisp, 
 not elisp

Oh, thanks for this side-mark. I did not look it up, wrote elisp,
and babel executed as expected. But good to know. I'll remember now
:-)

-- 
Karl Voit




Re: [O] bug: org-export-preprocess-string: Wrong number of arguments when doing org-export-as-html

2013-03-01 Thread Karl Voit
* Achim Gratz strom...@nexgo.de wrote:
 Karl Voit devnull at Karl-Voit.at writes:
 #+BEGIN_SRC elisp
 (org-export-as-html 3 nil nil htmlized-output nil nil)
 #+END_SRC

 Am I doing something wrong or is this a bug?

 You are trying to use the old exporter and pick up code from an earlier 
 version
 of Org.

Oh, am I? :-O I was not aware of this. Obviously, I am no insider of
emacs-lisp nor the exporting mechanism of Org.

What is the equivalent elisp expression for using the new exporter?

Or should I just wait until Org 8.0 which would not be of any
problem for me now? I know, that these days, a lot of changes are
going on on the exporting parts of Org - which I appreciate very
much!




Background: I was testing a weird idea of mine. Writing a shell
script which uses «emacs -Q --script exportscript.el» for batch
converting an Org-mode file to HTML «from outside» of Emacs.

-- 
Karl Voit




[O] Beamer presentation using new exporter

2013-03-01 Thread Vikas Rawal
I am finally trying to use the new exporter to create a beamer
presentation. I started with a simple orgmode file. My file is as
follows:

#+STARTUP: hidestars
#+TITLE: Title
#+AUTHOR: My name
#+OPTIONS: H:2 toc:nil
#+E-MAIL: usern...@email.org
#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [presentation]
#+BEAMER_THEME: default
#+COLUMNS: %45ITEM %10BEAMER_env(Env) %10BEAMER_act(Act) %4BEAMER_col(Col) 
%8BEAMER_opt(Opt)
#+PROPERTY: BEAMER_col_ALL 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0.0 :ETC
#+OPTIONS: H:2

* Introduction
** temp1
+ temp123
** temp2
+ skjdskjdk

--cut here


The log file showing the error is attached herewith.

I am using org-version 7.9.3f.

Will be grateful if somebody could explain why am I getting an error.

Vikas

This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)
 restricted \write18 enabled.
entering extended mode
(/home/vikas/Rural-credit/credit.tex
LaTeX2e 2011/06/27
Babel v3.8m and hyphenation patterns for english, dumylang, nohyphenation, lo
aded.
! Undefined control sequence.
l.2 \usetheme
 {default}

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H return  for immediate help.
 ...  
  
l.2 \usetheme{d
   efault}
! Undefined control sequence.
l.6 \hypersetup
   {
(/home/vikas/Rural-credit//credit.aux)

! LaTeX Error: The font size command \normalsize is not defined:
   there is probably something wrong with the class file.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H return  for immediate help.
 ...  
  
l.10 \begin{document}
 
! Undefined control sequence.
l.12 \maketitle
   

! LaTeX Error: The font size command \normalsize is not defined:
   there is probably something wrong with the class file.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H return  for immediate help.
 ...  
  
l.30 \end{document}
   
[1
! Undefined control sequence.
write \newlabel{sec-1}{{1}{\thepage 
  }}
l.30 \end{document}
   
] (/home/vikas/Rural-credit//credit.aux) )
(see the transcript file for additional information)
Output written on /home/vikas/Rural-credit//credit.pdf (1 page, 988 bytes).
Transcript written on /home/vikas/Rural-credit//credit.log.


Re: [O] Beamer presentation using new exporter

2013-03-01 Thread Nicolas Goaziou
Hello,

Vikas Rawal vikasli...@agrarianresearch.org writes:

 I am finally trying to use the new exporter to create a beamer
 presentation. I started with a simple orgmode file. My file is as
 follows:

 #+STARTUP: hidestars
 #+TITLE: Title
 #+AUTHOR: My name
 #+OPTIONS: H:2 toc:nil
 #+E-MAIL: usern...@email.org

This is unrelated to your problem, but it should be #+EMAIL:

 #+LaTeX_CLASS: beamer

beamer class is probably not defined in `org-latex-classes', hence
your problem.

Note the name of the class doesn't matter, but it should be associated
to a beamer documentclass anyway, unless you have loaded a specific
package for Beamer article mode.

 #+LaTeX_CLASS_OPTIONS: [presentation]
 #+BEAMER_THEME: default
 #+COLUMNS: %45ITEM %10BEAMER_env(Env) %10BEAMER_act(Act) %4BEAMER_col(Col) 
 %8BEAMER_opt(Opt)
 #+PROPERTY: BEAMER_col_ALL 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0.0 :ETC
 #+OPTIONS: H:2


Regards,

-- 
Nicolas Goaziou



Re: [O] bug: org-export-preprocess-string: Wrong number of arguments when doing org-export-as-html

2013-03-01 Thread Nicolas Goaziou
Hello,

Karl Voit devn...@karl-voit.at writes:

 * Achim Gratz strom...@nexgo.de wrote:
 Karl Voit devnull at Karl-Voit.at writes:
 #+BEGIN_SRC elisp
 (org-export-as-html 3 nil nil htmlized-output nil nil)
 #+END_SRC

 Am I doing something wrong or is this a bug?

 You are trying to use the old exporter and pick up code from an earlier 
 version
 of Org.

 Oh, am I? :-O I was not aware of this. Obviously, I am no insider of
 emacs-lisp nor the exporting mechanism of Org.

 What is the equivalent elisp expression for using the new exporter?

`org-html-export-to-html' (output to file) and `org-html-export-as-html'
(output to temporary buffer).

For batch processing, you can also use `org-export-as', in conjunction
with `html' backend, which will output a string.

There's also `org-export-string-as', which will do the same as
`org-export-as' but will work from an input string instead of the
current buffer.


Regards,

-- 
Nicolas Goaziou



Re: [O] [patch] ox-koma-letter

2013-03-01 Thread Alan Schmitt
Hi,

Sorry for not replying earlier, I've been in a mode where I let my
orgmode mail accumulate.

Rasmus writes:

 I have changed the following objects:

   1. Make keys sane; no reason why open pdf is O rather than o and why
  k is used in place of l (as in the tex exporter).

Yes, it's nice to be consistent with the other exporters. Keys were
chosen when latex export was not hierarchic, so keys had to be disjoint.

   2. Added AFTER_CLOSING and AFTER_LETTER keywords for arbitrary code
  after \closing{.} and \end{letter}, respectively.
  a. A weird bug I don't understand is why I cannot have
 #+AFTER_CLOSING{\ps{ps:}}
  b. Would it be better to have a dedicated, say, PS and ENCL rather
 than the generic AFTER_CLOSING?

As the order matters, as said in some replies, I prefer the
AFTER_CLOSING approach.

   3. Added from-bank, invoice and other keywords like that.  Still
  many to go, but some of them would probably need some thought.
  For instance firstfoot should work differently depending on
  whether it is given a NAMEd table or a string.  Any though? 

I rely on an lco for that. To give you an idea of my setup, here it is.

A letter starts like this:

#+BEGIN_SRC org
#+latex_class: my-letter-fr
#+lco: InriaRennesFR
#+title: Lettre de Recommandation pour ...
#+opening: ~
#+closing: ~

blah blah
#+END_SRC

My latex class looks like this:

#+BEGIN_SRC elisp
(add-to-list 'org-latex-classes
 '(my-letter-fr
   \\documentclass\[%
  DIV=14,
  fontsize=10pt,
  parskip=half,
  subject=untitled,
  backaddress=true,
  fromalign=right,
  fromemail=true,
  fromphone=false\]\{scrlttr2\}
  \[DEFAULT-PACKAGES]
  \[PACKAGES]
  \[EXTRA]))
#+END_SRC

(I realize writing this that it is ugly: some should go in the lco
file. I just hacked this until it worked.)

Finally, my lco file

#+BEGIN_SRC latex
\ProvidesFile{InriaRennesFR.lco}

\usepackage[french]{babel}
\usepackage{xltxtra}

\setkomavar{fromname}{Alan Schmitt}
\setkomavar{fromaddress}{Projet ...\\Company}
\setkomavar{place}{blab bla}
\setkomavar{date}{le \today}

\setkomavar{signature}{\includegraphics[width=2.5cm]{AlanSig}\\Alan Schmitt}

\KOMAoptions{fromlogo=true,foldmarks=off,subject=left,addrfield=false}
\setkomavar{fromlogo}{\includegraphics[width=59mm]{somelogo}}
\@addtoplength{firstfootvpos}{-2cm}
\setkomavar{firstfoot}{\includegraphics[width=4cm]{another logo}}
\setkomavar{fromemail}{alan.schmitt@...}

\endinput
#+END_SRC

I found that with this setup I can quickly write a letter. If someday
I need letters with a different setup, I just need to change the lco.

Alan



Re: [O] Tips for using orgmode + ledger to record events?

2013-03-01 Thread Eric S Fraga
Harum Budi harumb...@gmail.com writes:

 I was not being clear at all, sorry. Let me rephrase, but bear with me as
 English is my secondary language.

That's fine!

I think I understand what you want.  My view would be to avoid having
two files, an org one and a ledger one, and instead combine them into an
org file.  You could create log capture templates for different kinds of
activities and one of these could be financial.  This latter one could
create a ledger src block that is automatically tangled to the full
ledger file consisting of all such entries.  This is why I showed the
ledger src blocks in my previous email.

A financial entry could be

,
| * [2013-03-01 Fri] Bought a sandwich  :food:
|   #+begin_src ledger :tangle finances.ledger
|   2013/03/01 Bought a sandwich
| expenses  £3.50
| cash
|   #+end_src
`

or something similar...  You could still grep on headings but actually
tag searching would be better of course.

Just a thought.
-- 
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.3.50.1 and Org release_7.9.3f-1313-g7d4812




[O] [BUG] Export to HTML with INFOJS_OPT crashes Emacs

2013-03-01 Thread Allred, Sean
Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

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

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


The feature listed at [1] will break Emacs (at least using the buffer at
[2]).

[1] : http://orgmode.org/manual/JavaScript-support.html
[2] :
https://raw.github.com/vermiculus/stack-mode/ef055b46f3f4eefdd8e0097cf15227c18711ccbf/stack-mode.org

Emacs  : GNU Emacs 24.2.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
 of 2012-08-27 on bob.porkrind.org
Package: Org-mode version 7.8.11

current state:
==
(setq
 org-export-preprocess-final-hook '((lambda nil
 (replace-string  --\n  -- \n))
)
 org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
 org-tab-first-hook '(org-hide-block-toggle-maybe
  org-src-native-tab-command-maybe
  org-babel-hide-result-toggle-maybe)
 org-speed-command-hook '(org-speed-command-default-hook
  org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-export-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
 org-confirm-shell-link-function 'yes-or-no-p
 org-id-link-to-org-use-id 'create-if-interactive-and-no-custom-id
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
   org-beamer-auto-fragile-frames
   org-beamer-place-default-actions-for-lists)
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-default-notes-file ~/Dropbox/org/notes.org
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-from-is-user-regexp \\Sean Allred\\
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
 org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(#[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook org-show-block-all
append local]
   5]
 #[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook
org-babel-show-result-all append local]
   5]
 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
  org-babel-execute-safely-maybe)
 org-directory ~/Dropbox/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-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-export-blocks '((src org-babel-exp-src-block nil)
 (export-comment org-export-blocks-format-comment t)
 (ditaa org-export-blocks-format-ditaa nil)
 (dot org-export-blocks-format-dot nil))
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-export-interblocks '((src org-babel-exp-non-block-elements))
 org-modules '(org-bbdb org-bibtex org-docview org-gnus org-info org-jsinfo
   org-habit org-irc org-mew org-mhe org-rmail org-vm org-wl
   org-w3m)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-ditaa-jar-path
/Applications/Emacs.app/Contents/Resources/lisp/contrib/scripts/ditaa.jar
 org-agenda-files /Users/sean/Dropbox/.emacs.d/org-agenda-files.list
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )


-- 
Sean Allred


Re: [O] Fixed Re: Bug: turn-on-font-lock b

2013-03-01 Thread Bastien
Hi Gijs,

Gijs Hillenius g...@hillenius.net writes:

 The problem has gone away, with GNU Emacs 24.3.50.1 (i486-pc-linux-gnu,
 GTK+ Version 3.4.2), the Debian Snapshot from 2013-02-26 

 whether I have (add-hook 'org-mode-hook 'turn-on-font-lock) on or off
 (;;), org files are fully functional.

Thanks for confirming the bug is gone, best regards,

-- 
 Bastien



Re: [O] [BUG] Export to HTML with INFOJS_OPT crashes Emacs

2013-03-01 Thread Bastien
Hi,

Allred, Sean seall...@smcm.edu writes:

 The feature listed at [1] will break Emacs (at least using the
 buffer at [2]).

Try

#+INFOJS_OPT: view:content
^

instead of 

#+INFOJS_OPT view:content

-- 
 Bastien



Re: [O] How can I stop org-agenda-write from overwriting existing files.

2013-03-01 Thread Bastien
Hi Rainer,

Rainer Stengele rainer.steng...@online.de writes:

 constructing an agenda with clocktable for 1 month takes some time here..
 Writing the agenda to /patch/agenda-201302.html works fine.
 Then creating the agenda for the previous month I also want to write it
 to a html file. I would like to use /patch/agenda-201301.html for it.
 providing /path/ag and pressing TAB expands the existing path and -
 overwrites the uniquely found file!

 How can I stop org-agenda-write from overwriting existing files?
 Should we consider to introduce an option instead of advising the
 function?

You are now asked before overwriting the file, thanks for suggesting
this.

-- 
 Bastien



Re: [O] Tips for using orgmode + ledger to record events?

2013-03-01 Thread Jeffrey Brent McBeth
On Fri, Mar 01, 2013 at 01:11:59PM +, Eric S Fraga wrote:
 Harum Budi harumb...@gmail.com writes:
 
  I was not being clear at all, sorry. Let me rephrase, but bear with me as
  English is my secondary language.
 
 That's fine!
 
 I think I understand what you want.  My view would be to avoid having
 two files, an org one and a ledger one, and instead combine them into an
 org file.  You could create log capture templates for different kinds of
 activities and one of these could be financial.  This latter one could
 create a ledger src block that is automatically tangled to the full
 ledger file consisting of all such entries.  This is why I showed the
 ledger src blocks in my previous email.
 
 A financial entry could be
 
 ,
 | * [2013-03-01 Fri] Bought a sandwich  :food:
 |   #+begin_src ledger :tangle finances.ledger
 |   2013/03/01 Bought a sandwich
 | expenses  £3.50
 | cash
 |   #+end_src
 `
 
 or something similar...  You could still grep on headings but actually
 tag searching would be better of course.

I'm doing something rather similar with Ledger, and it all works really well 
unless I want to export to HTML, in which case I've had to increase the max 
lisp eval depth about once a week lately
(setq max-lisp-eval-depth 2400)

I'm assuming I'm doing something wrong there.  The datetree is not exported, 
but reports are (I have an example of a report below):

#+name: savingscheckingsummary
#+begin_src ledger :cmdline balance esl:check savings -p until tomorrow :nowe$
budget
checking
savings
anotheraccount
creditcard
#+end_src

I find the noweb tangling to work really well for my purposes, and in 
particular subsetting which bits I want exported to Ledger.

I've also included an example capture template

(setq org-capture-templates
  (append '((l Ledger entries)
(lc Bank:Checking plain
 (file+datetree+prompt ~/Documents/Ledger.org)

#+name: checking
#+begin_src ledger
%(org-read-date) * %^{Payee}
Expenses:%^{Account}  %^{Amount}
Assets:Bank:Checking
#+end_src




-- 
The man who does not read good books has no advantage over 
 the man who cannot read them.
 -- Mark Twain



[O] [bug] changing TODO status with org-after-todo-state-change-hook defined fails

2013-03-01 Thread Eric S Fraga
Hello,

All of a sudden, changing the TODO status (=org-todo=) from anything to
WAIT is failing with:

: Error in post-command-hook (org-add-log-note): (error Can't expand 
minibuffer to full frame)

and ends up asking for a date and time and inserts new SCHEDULED
information.  My TODO sequence is:

: org-todo-keywords '((sequence TODO(t) INPR(i@/!) WAIT(w@/!) | 
DONE(d@/!) (x@) POST(p!)))

I have the following hook defined:

#+begin_src emacs-lisp
(add-hook 'org-after-todo-state-change-hook
  '(lambda ()
 ;; remove the scheduled date/time if present as the activity is no 
longer mine
 ;; based on a suggestion by Manish on the org-mode mailing list
 (if (string= org-state WAIT) (org-schedule t
#+end_src

This used to work in that it would remove any SCHEDULED entry in the
item.  Now not only does it not remove the SCHEDULED information, it
prompts for a date+time after the error message above.  No log note is
requested.  It also seems to delete some text after the logbook drawer
in some cases.

I simply do not understand what is happening!  With emacs -Q and only
the two settings above (i.e. not the rest of my org customisation), the
problem arises.  If I don't have the hook, there is no
problem.  Attached is my simple test file.  The log notes indicated I
was successful in changing from TODO to WAIT before I defined the
hook.  I then switched to TODO and tried to then switch back to
WAIT.  The logging of the latter failed.

I note that nothing appears to have changed in org-schedule recently.

Any suggestions (other than remove the hook ;-)?

Thanks,
eric

-- 
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.3.50.1 and Org release_7.9.3f-1315-g25b5ab
#+TITLE: examplebug.org
#+AUTHOR:Eric S Fraga
#+options: toc:nil num:nil
#+TODO: TODO(t) INPR(i@/!) WAIT(w@/!) | DONE(d@/!) (x@) POST(p!)

* WAIT first test
  SCHEDULED: 2013-03-01 Fri
  - State TODO   from WAIT   [2013-03-01 Fri 14:41]
  - State WAIT   from TODO   [2013-03-01 Fri 14:41] \\
this works as I do not have the hook defined

  Something I need to do.


Re: [O] org-caldav feedback

2013-03-01 Thread Torsten Wagner
Hi David,


On 2 February 2013 17:00, David Engster d...@randomsample.de wrote:

 I pushed a change which should correctly deal with timestamps inside the
 header line. Please let me know if this works for you.


Sorry for the long delay to your patch.
First I thought its working perfect.
However, I noticed the following small glitch. I think its a minor problem.
Syncing back from caldav to org creates the following.

Original in org-mode

TODO Neuer Termin mit Foo und Bar 2013-03-06 Wed 10:00-10:00
:PROPERTIES:
:ID:   8a9651c0-faee-4416-afa6-979e328a3d15
:END:

Synching to caldav work flawless
In SOGo I can find

TODO Neuer Termin mit Foo und Bar
*Please note there is a space at the end of the line. Not sure if this
might trouble*

Now I make a tiny change e.g. change the length of the appointment from
within SOGo and sync back I get

TODO TODO Neuer Termin mit Foo und Bar r2013-03-06 Wed 10:00-11:00
:PROPERTIES:
:ID:   8a9651c0-faee-4416-afa6-979e328a3d15
:END:

As you can see the TODO doubled and the last character of the title is
repeated.

I guess its simply some regexp, which needs some finetuning.

All the best and thanks a lot

Torsten

CC. Did you had a chance to look into calfw and think about how to make use
of it for org-caldav?


[O] org-html-export-to-html instead of old exporter (was: bug: org-export-preprocess-string: Wrong number of arguments when doing org-export-as-html)

2013-03-01 Thread Karl Voit
* Nicolas Goaziou n.goaz...@gmail.com wrote:
 Hello,

Hi!

 Karl Voit devn...@karl-voit.at writes:

 What is the equivalent elisp expression for using the new exporter?

 `org-html-export-to-html' (output to file) and `org-html-export-as-html'
 (output to temporary buffer).

 For batch processing, you can also use `org-export-as', in conjunction
 with `html' backend, which will output a string.

Thank you!

 There's also `org-export-string-as', which will do the same as
 `org-export-as' but will work from an input string instead of the
 current buffer.

Good point - this is quite handy for me as well. Thanks!

-- 
Karl Voit




[O] [PATCH] Improve presentation of entry text lines

2013-03-01 Thread Sebastien Vauban
Hello,

The following patch improves the entry-mode presentation (`E' in the agenda)
by adding a better leader on the side and one for a bottom corner.

The style is a bit like boxquote.

Best regards,
  Seb

From 606a57768d853cba427abd982e133f6b9bc20c94 Mon Sep 17 00:00:00 2001
From: Sebastien Vauban wxhgmqzgw...@spammotel.com
Date: Fri, 1 Mar 2013 17:12:58 +0100
Subject: [PATCH] Improve presentation of entry text lines

2013-03-01  Sebastien Vauban  wxhgmqzgw...@spammotel.com

* org-agenda.el (org-agenda-entry-text-show-here): Improve
  presentation of entry text lines (in entry-mode) by adding two
  customizable vars (for side, and for bottom corner).

---
 lisp/org-agenda.el |   14 +-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 3b6a005..242bb73 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -180,6 +180,16 @@ and `org-agenda-entry-text-maxlines'.
   :group 'org-agenda
   :type 'integer)

+(defcustom org-agenda-entry-text-side-leaders | 
+  Text preceding the side of entry text lines in the agenda view.
+  :group 'org-agenda
+  :type 'string)
+
+(defcustom org-agenda-entry-text-bottom-corner-leaders `--
+  Text preceding the bottom corner of entry text lines in the agenda view.
+  :group 'org-agenda
+  :type 'string)
+
 (defcustom org-agenda-add-entry-text-descriptive-links t
   Non-nil means export org-links as descriptive links in agenda added text.
 This variable applies to the text added to the agenda when
@@ -3853,7 +3863,9 @@ This check for agenda markers in all agenda buffers 
currently active.
   (error No marker points to an entry here))
 (setq txt (concat \n (org-no-properties
(org-agenda-get-some-entry-text
-m org-agenda-entry-text-maxlines  
+m org-agenda-entry-text-maxlines
+org-agenda-entry-text-side-leaders))
+ \n org-agenda-entry-text-bottom-corner-leaders))
 (when (string-match \\S- txt)
   (setq o (make-overlay (point-at-bol) (point-at-eol)))
   (overlay-put o 'evaporate t)
--
1.7.9

-- 
Sebastien Vauban




Re: [O] Inserting a comma as prefix of headlines (in Org code blocks)

2013-03-01 Thread Takafumi Arakaki
Hi,

Indeed, orgparse can parse only subset of org syntax.  It is primary
developed for OrgViz [1] which is an app to view your org files in
various formats including calendar, graph and table.  That's why it
doesn't understand babel stuff.  I thought I'd advertise it in org
ML at some point but I was too lazy to do that.

As orgparse supports `:PROPERTIES:', I think it is not hard to support
babel syntax.  If somebody can write a patch I am happy to review and
pull it.

[1] https://github.com/tkf/orgviz


On Thu, Feb 28, 2013 at 9:06 PM, Yagnesh Raghava Yakkala h...@yagnesh.org 
wrote:

 [CC'ed to Takafumi Arakaki, author of orgparse]

 Hello François,

 Do you know happen to know how conforming it is?

 I can't comment on that, since I haven't really used it for anything.

 I wrote many ad hoc parsers for Org already, but what I would like
 is something really close to the parser which comes with the new
 exporter, both in syntax and concept nomenclature,

 AFAIU it is pretty cleanly written and even includes tests., though its just a
 reader and can't be used for exporting right now. By glancing through It seems
 it doesn't entirely know Org's syntax, especially babel related.

 tkf may tell us more.

 Thanks.,
 --
 ఎందరో మహానుభావులు అందరికి వందనములు.
 YYR



Re: [O] [OT] Grouping of buffers by type when C-left_mouse sometimes there sometimes not

2013-03-01 Thread Charles Berry
Rainer M Krug r.m.krug at gmail.com writes:

 
 
 Hi
 
 I know this is very likely not related to org, but this is such a knowledgable
group in regards to
 emacs, and as I use emacs to 90% with org (amnd I got no response on the emacs
mailing list), I'll
 ask here:
 
 I have absolutely no idea why, but sometimes I have the buffers grouped by
type when I
 C-left_mouse_click and at othertimes just grouped in Buffers 1 Buffers 2
and so on.

C-h k C-down-mouse-1 reveals that this is mouse-buffer-menu.

M-x customize-apropos RET mouse-buffer RET  pops up the customize buffer with an
entry for mouse-buffer-menu-mode-mult which says:

Set to 1 (or even 0!) if you want to group by major mode always ...

HTH,

Chuck

 
 I have tabbar installed (ELSP Githup) (if this is relevant) and I am using GNU
Emacs 24.2.1
 (i686-pc-linux-gnu, GTK+ Version 2.24.13)
 
 Any suggestions? I really love this grouping by type...
 
 Thanks,
 
 Rainer







Re: [O] [PATCH] Improve presentation of entry text lines

2013-03-01 Thread Bastien
Hi Sébastien,

Sebastien Vauban
wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org writes:

 The following patch improves the entry-mode presentation (`E' in the agenda)
 by adding a better leader on the side and one for a bottom corner.

Mhh.. two options is way two much for this, let's have just one.
Also, the output with your patch is wrong when the entry has no text.
I pushed a slightly soberer change, thanks for the idea!

-- 
 Bastien



Re: [O] [bug] changing TODO status with org-after-todo-state-change-hook defined fails

2013-03-01 Thread Bastien
Hi Eric,

Eric S Fraga e.fr...@ucl.ac.uk writes:

 #+begin_src emacs-lisp
 (add-hook 'org-after-todo-state-change-hook
 '(lambda ()
;; remove the scheduled date/time if present as the activity is no 
 longer mine
;; based on a suggestion by Manish on the org-mode mailing list
(if (string= org-state WAIT) (org-schedule t
 #+end_src

You need to use (org-schedule '(4)) here, this is part of a change
in master that allows to use C-u C-u C-c C-s to add a delay (and 
same for C-u C-u C-c C-d which adds a warning delay.)

 Any suggestions (other than remove the hook ;-)?

HTH!

-- 
 Bastien



[O] Bug: URL links in source block cause export to fall in infinite loop [7.9.3f (release_7.9.3f-17-g7524ef @ /usr/local/share/emacs/24.3.50/lisp/org/)]

2013-03-01 Thread Andrey Kotlarski
Here are steps to reproduce with trunk version of GNU Emacs:

1. emacs -Q

2. C-x b test

3. M-x org-mode

4. Insert the following:

#+begin_src sh
http://;
#+end_src

5. C-c C-e H

That's it, export blocks and only C-g takes is out of the loop.

I tried with several source block languages with identical behaviour.  I
bisected bazaar for where this bug has been introduced:

111688: Glenn Morris 2013-02-07 [merge] Merge from emacs-24; up to
r111231

It exports successfully before that.

Emacs  : GNU Emacs 24.3.50.2 (x86_64-fedora-linux-gnu)
 of 2013-03-01 on ws-akotlarski.sf.vayant.com
Package: Org-mode version 7.9.3f (release_7.9.3f-17-g7524ef @ 
/usr/local/share/emacs/24.3.50/lisp/org/)

current state:
==
(setq
 org-export-preprocess-before-selecting-backend-code-hook 
'(org-beamer-select-beamer-code)
 org-tab-first-hook '(org-hide-block-toggle-maybe 
org-src-native-tab-command-maybe
  org-babel-hide-result-toggle-maybe 
org-babel-header-arg-expand)
 org-speed-command-hook '(org-speed-command-default-hook 
org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-export-preprocess-before-normalizing-links-hook 
'(org-remove-file-link-modifiers)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
   org-beamer-auto-fragile-frames
   org-beamer-place-default-actions-for-lists)
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer 
org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(#[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook org-show-block-all 
append local] 5]
 #[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook 
org-babel-show-result-all append local] 5]
 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point 
org-babel-execute-safely-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-show-empty-lines 
org-optimize-window-after-visibility-change)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-export-blocks '((src org-babel-exp-src-block nil)
 (export-comment org-export-blocks-format-comment t)
 (ditaa org-export-blocks-format-ditaa nil)
 (dot org-export-blocks-format-dot nil))
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-export-interblocks '((src org-babel-exp-non-block-elements))
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )



Re: [O] emphasis changes filling

2013-03-01 Thread Bastien
Hi Samuel,

Samuel Wales samolog...@gmail.com writes:

 Thank you.  Not working though.  Reverted?

Mhh no, deeply rooted in some outline oddity.
I fixed this now.  Thanks!

-- 
 Bastien



Re: [O] Tips for using orgmode + ledger to record events?

2013-03-01 Thread Viktor Rosenfeld
Hi,

Eric S Fraga wrote:

 My view would be to avoid having two files, an org one and a ledger
 one, and instead combine them into an org file. 

I'm using both org-mode and ledger but I do not mix them. I'm having a
hard time imagining the benefits of such a system, especially since
ledger's query functionality is so powerful. It seems to that this just
adds lot's of unnecessary complexity. But I'm interested to hear what
advantages you derive from the combined approach.

Cheers,
Viktor



Re: [O] [bug] changing TODO status with org-after-todo-state-change-hook defined fails

2013-03-01 Thread Eric S Fraga
Bastien b...@altern.org writes:

 Hi Eric,

 Eric S Fraga e.fr...@ucl.ac.uk writes:

 #+begin_src emacs-lisp
 (add-hook 'org-after-todo-state-change-hook
'(lambda ()
   ;; remove the scheduled date/time if present as the activity is no 
 longer mine
   ;; based on a suggestion by Manish on the org-mode mailing list
   (if (string= org-state WAIT) (org-schedule t
 #+end_src

 You need to use (org-schedule '(4)) here, this is part of a change
 in master that allows to use C-u C-u C-c C-s to add a delay (and 
 same for C-u C-u C-c C-d which adds a warning delay.)

 HTH!

It does indeed!  I did read the description of org-schedule to remind
myself of why I had what I did there but I kind of skimmed over the
universal argument bit... blush

However, I would suggest that a more graceful exit might be good?  I
still do not understand why the log message wasn't prompted for.

Anyway, thanks: my setup is working again as it should!

-- 
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.3.50.1 and Org release_7.9.3f-1313-g7d4812




Re: [O] CSS link in html export for v. 7.9.3e woes

2013-03-01 Thread Mike McLean
On Tuesday, February 26, 2013, Nicolas Goaziou wrote:

 Hello,

 Mike McLean mike.mcl...@pobox.com javascript:; writes:

  I've noticed an inconsistency with HTML_STYLE. When I have a few lines of
  them in a common file, which I include in all of my Org documents via
  #+SETUPFILE, they work fine. For some specific documents, I have a CSS
  override, something I desire to look different for just that one
 documents.
  Prior to the new exporter I simply added another #+HTML_STYLE line in the
  file itself. The old exporter would add it after the lines from the
  #+SETUPFILE and all would look correct. The new exporter skips any such
  lines from the file while still including the ones from the common
  file.

 I think I have fixed this. Could you confirm it?


Sorry for the delay, but I can confirm that this now works. Thank you.


Re: [O] [bug] changing TODO status with org-after-todo-state-change-hook defined fails

2013-03-01 Thread Sebastien Vauban
Hi Bastien,

Bastien wrote:
 Eric S Fraga e.fr...@ucl.ac.uk writes:

 You need to use (org-schedule '(4)) here, this is part of a change in master
 that allows to use C-u C-u C-c C-s to add a delay (and same for C-u C-u C-c
 C-d which adds a warning delay.)

I find the use of C-u C-u C-c C-d full of promise, but not yet there:

I do C-c C-d and set a deadline on Fri 8 of March.

I do C-u C-u C-d C-d and S-Left twice: in the agenda, I see the date moving to
the 27 of Feb, 2 days before today; but the warning will be applied starting 2
days (the count is right) before the 8 of March.

I think we should see the 8 of March as reference date for fixing the start
date (or length, depending on how we see it) of the warning delay.

It's even more weird if we S-Right from the current date: it seems that the
difference in days is taken in absolute value, but I'm not even sure of that.

Is it possible to put the reference date correctly when we call C-u C-u C-c
C-d?

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] [PATCH] Improve presentation of entry text lines

2013-03-01 Thread Sebastien Vauban
Bastien,

Bastien wrote:
 Sebastien Vauban writes:

 The following patch improves the entry-mode presentation (`E' in the agenda)
 by adding a better leader on the side and one for a bottom corner.

 Mhh.. two options is way two much for this, let's have just one.
 Also, the output with your patch is wrong when the entry has no text.
 I pushed a slightly soberer change, thanks for the idea!

OK.

FYI, there's a bug (not related to this change): if you filter out some events
(for example, a work meeting today, with an active timestamp) by tag (show
only home related things), you don't see the event headline, but well the 5
first entry text lines...

Best regards,
  Seb

-- 
Sebastien Vauban




[O] Inline Images Refresh problem

2013-03-01 Thread Daniel Hawthorne
Hi all, I'm having trouble with the inline image feature. The displayed image
doesn't update. In fact, all the images display an identical image regardless of
the link path. Export works fine, so its something specific to inline
image. Clearing the image cache, flipping org-toggle-inline images on and off,
or org-display- inline-images don't help. Suggestions?  It is with png's
referenced with this syntax (default out of babel)


#+RESULTS:
[[file:plots/193.png]]


OSX 10.7.5
Emacs 24.2.1
Org-mode  7.9.3f (newest at time of posting)





[O] List admin: Plain text attachments appearing in the digest

2013-03-01 Thread James Harkins
Hi, I wonder if there is a way to make the list digest *not* include the
entire contents of plaintext attachments?

For example, this message attaches an updated org-favtable.el:

http://permalink.gmane.org/gmane.emacs.orgmode/67371

Attaching a code file is fine, of course, but it did present a couple of
annoyances while reading the digest:

- I needed to page through screenfuls of code that I'm not using presently.

- My mail reader truncated the digest display at message 27 of 51, leaving
24 messages invisible to me.

I suppose the digest could include a link to the attachment, rather than
replicating the entire file?

Thanks.
hjh


Re: [O] New beamer export error with top-level TODOs

2013-03-01 Thread James Harkins
On Fri, Mar 1, 2013 at 6:07 PM, Nicolas Goaziou n.goaz...@gmail.com wrote:
 Hello,

 James Harkins jamshar...@gmail.com writes:

 In the *new* beamer exporter, if I have a top level heading with a
 TODO keyword, LaTeX chokes on the exported .tex file.

 It should be fixed in master. Could you confirm it?

Yes, fixed, thank you!

BTW, now that I'm actually using the new exporter, (despite my
complaints at first) I find it an improvement over the old beamer
exporter. The org representation of the LaTeX structure seems cleaner
and more consistent. While I would have liked to use my old
presentations without much editing, it's well worth the effort.

A concrete example: Often, I want to have a column of bullet list on
the left and an image on the right. In the old exporter, the columns
had to be marked by headlines, which produced a bullet point. So then,
I had to display silly things like:

 Screenshot (  represents the bullet)
  Image below

In the new exporter, a column is still a headline, but that turns into
a block and a headline is hidden. So this:

*** Right column (screenshot)   :BMCOL:
:PROPERTIES:...
[[./img/whatever.png]]

Displays perfectly cleanly, no extra junk in the PDF. (And the image
even inherits the column width, which the old exporter did not do
nicely IIRC.)

TL;DR -- I take back most of what I said before :)

hjh