[Orgmode] xemacs error when calling org-install

2010-12-08 Thread Dr. Volker Zell
Hi

Under xemacs when calling the following from org-mode-7.3 I get:

(require 'org-install)  - Wrong number of arguments: custom-autoload, 3


This is because xemacs defines custom-autoload only with two arguments:

`custom-autoload' is a compiled Lisp function
  -- loaded from 
/misc/src/release/xemacs-21.5.28-3/src/xemacs-21.5.28/lisp/custom.elc
(custom-autoload SYMBOL LOAD)

Documentation:
Mark SYMBOL as autoloaded custom variable and add dependency LOAD.

Ciao
  Volker
  

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


[Orgmode] Generating an org file actually including the #+INCLUDE files

2010-12-08 Thread Miguel Ruiz
Hi,

I am working on a document split in several chunks. I need to generate the full 
document in order to do different sorting processes before exporting.

It would be nice if that generation could be recursive ... you know, one master 
file, one included file with another included file. 

I suppose orgmode already does this before any exporting. Actually I am asking 
for an Org export option instead LaTeX or Docbook export. Now, sorry, I am 
thinking it would be fantastic that noexport tag would be available as well.

How can achieve this?

TIA




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


Re: [Orgmode] Export of quoted region to HTML

2010-12-08 Thread Nicolas Goaziou
Hello,

 Vincent Belaïche writes:

 The /li/ul closure is missing.

 Is that a bug?

At the moment, there is no real support for lists inside blocks.

Regards,

-- Nicolas

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


[Orgmode] Re: Can't close Emacs+org-mode if /tmp and /home on different partitions

2010-12-08 Thread Dan Davison
Antti Kaihola akaih...@gmail.com writes:

 I have /tmp on my root partition and a separate partition for /home.
 When trying to close an Emacs session which is using org-mode, I get
 this error:

 move-file-to-trash: Non-regular file: Is a directory, /tmp/babel-XXX

 (where XXX are random characters).

 I tracked down the problem to org-babel-remove-temporary-directory
 which ob.el adds to kill-emacs-hook. It tries to remove the temporary
 directory using delete-directory, which in turn tries to move the
 directory (by renaming) into trash, which is in my home directory.

I've just added some exception handling which should allows Emacs to
close down (without removing the temporary directory) in this situation.

Thanks for the clear report.

Dan


 Here's the debugger traceback:

 Debugger entered--Lisp error: (file-error Non-regular file Is a
 directory /tmp/babel-4893rR1)
   rename-file(/tmp/babel-4893rR1
 /home/akaihola/.local/share/Trash/files/babel-4893rR1_4893HqQ)
   move-file-to-trash(/tmp/babel-4893rR1)
   delete-directory(/tmp/babel-4893rR1)
   (progn (mapc (lambda ... ...) (directory-files
 org-babel-temporary-directory ...
 ^\\([^.]\\|\\.\\([^.]\\|\\..\\)\\).*)) (delete-directory
 org-babel-temporary-directory))
   (if (and (boundp ...) (file-exists-p org-babel-temporary-directory))
 (progn (mapc ... ...) (delete-directory
 org-babel-temporary-directory)))
   (when (and (boundp ...) (file-exists-p
 org-babel-temporary-directory)) (mapc (lambda ... ...)
 (directory-files org-babel-temporary-directory ...
 ^\\([^.]\\|\\.\\([^.]\\|\\..\\)\\).*)) (delete-directory
 org-babel-temporary-directory))
   org-babel-remove-temporary-directory()
   eval((org-babel-remove-temporary-directory))
   eval-last-sexp-1(nil)
   eval-last-sexp(nil)
   call-interactively(eval-last-sexp nil nil)

 I added this to my ~/.emacs.d/init.el:

(custom-set-variables '(temporary-file-directory /home/akaihola/tmp/))

 and closing Emacs works correctly again. However, since my init.el is
 part of emacs-starter-kit which I update frequently, I'd prefer not to
 modify that file. Unfortunately the customization hook
 emacs-starter-kit provides (~/.emacs.d/custom.el) is loaded too late
 to affect the temporary directory.

 I'm running emacs-snapshot 1:20090909-1 in Ubuntu 10.10. Looks like
 this is really an Emacs bug and is already fixed:
 http://groups.google.com/group/gnu.emacs.bug/browse_thread/thread/0446b8684a8ef504

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

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


[Orgmode] Very strange indenting behaviour with CLOCKING drawers.

2010-12-08 Thread Rainer Stengele
Hi all,

I have a very strange indenting behaviour with CLOCKING drawers.
I can easily reproduce it with a section like this:

* INARBEIT test
  :LOGBOOK:
  CLOCK: [2010-12-08 Mi 12:53]--[2010-12-08 Mi 12:53] =  0:00
  CLOCK: [2010-12-08 Mi 12:53]--[2010-12-08 Mi 12:53] =  0:00
  CLOCK: [2010-12-08 Mi 12:53]--[2010-12-08 Mi 12:53] =  0:00
  CLOCK: [2010-12-08 Mi 12:53]--[2010-12-08 Mi 12:53] =  0:00
  CLOCK: [2010-12-08 Mi 12:53]--[2010-12-08 Mi 12:53] =  0:00
  CLOCK: [2010-12-08 Mi 12:53]--[2010-12-08 Mi 12:53] =  0:00
  CLOCK: [2010-12-08 Mi 12:53]--[2010-12-08 Mi 12:53] =  0:00

  :END:
  text

Note the location of the :END: string after pressing TAB on alle lines of 
the section.
The value of org-clock-into-drawer is 6.

Strangely, at another place in my org file I have this after pressing TAB in 
each line:

 INARBEIT [#A] [2010-12-08 Mi] PROJECT: Besprechung - Review Charts 
(+Vorbereitung/Nachbereitung)
 SCHEDULED: 2010-12-08 Mi 14:00-17:00
 :LOGBOOK:
 CLOCK: [2010-12-08 Mi 13:00]--[2010-12-08 Mi 17:30] =  4:30
 CLOCK: [2010-12-06 Mo 11:15]--[2010-12-06 Mo 12:00] =  0:45
 CLOCK: [2010-12-06 Mo 08:30]--[2010-12-06 Mo 10:00] =  1:30
 CLOCK: [2010-12-03 Fr 13:00]--[2010-12-03 Fr 14:00] =  1:00
 CLOCK: [2010-12-01 Mi 16:30]--[2010-12-01 Mi 17:00] =  0:30
 CLOCK: [2010-11-29 Mo 16:45]--[2010-11-29 Mo 17:00] =  0:15
 CLOCK: [2010-11-29 Mo 09:00]--[2010-11-29 Mo 10:00] =  1:00
 CLOCK: [2010-11-18 Do 13:30]--[2010-11-18 Do 14:00] =  0:30
 CLOCK: [2010-11-18 Do 10:15]--[2010-11-18 Do 11:00] =  0:45
:END:
   - text

Note the location of :END: at the beginning of the line.
Org-mode version 7.3 (release_7.3.235.g6d07)

- Rainer


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


Re: [Orgmode] Re: Automatically insert inactive timestamps

2010-12-08 Thread Andrew J. Korty

Bernt Hansen be...@norang.ca wrote:


(add-hook 'org-insert-heading-hook 'bh/insert-heading-inactive-timestamp)


Using org-insert-heading-hook is more elegant than my way, but I only
want timestamps on TODO entries, so I use

#+begin_src emacs-lisp
(defadvice org-insert-todo-heading (after ajk/org-time-stamp-new-headline 
activate
 compile)
 (let ((previous-location (point))); not sure why save-excursion doesn't 
work
   (org-insert-time-stamp (current-time) t t
  (concat \n  (make-string (org-current-level) ? )))
   (goto-char previous-location)))
#+end_src

Here's my vote for a new hook, org-insert-todo-heading-hook. :-)

ajk

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


Re: [Orgmode] [Babel] The first line of the code blocks disappears in the tangled file

2010-12-08 Thread Chris Malone
Hi Seb,

I can't say that I understand the problem, but I can reproduce it - any line
right after the #+begin_src org :results latex is being stripped upon
tangle.  Not sure if it helps or not, but I'm using org-mode version 7.3
=release_7.3.89.g97f4c.dirty= with emacs 22.2.1.

Chris

2010/12/8 Sébastien Vauban wxhgmqzgw...@spammotel.com

 #+TITLE: Isodoc letter (to be tangled to LaTeX file)
 #+DATE:  2010-12-08
 #+LANGUAGE:  fr_FR

 Right now, this letter *must be tangled* and post-processed via =PDFLaTeX=.
 It
 can't be exported directly to PDF/HTML (=args out of range= error).

 The problem I'm reporting here is visible *in the tangled file* (TeX). So,
 to
 reproduce it, just do =C-c C-v C-t= on this file, and look at the tangled
 one.

 * To
 #+begin_src csv :tangle addresses.csv
 FirstName,LastName,Address,PostCode,Town
 Anybody,Kind Enough,to look,at,this
 #+end_src

 * Subject
 #+srcname: subject
 #+begin_src org :results latex
 This is my subject line
 #+end_src

 * Opening
 #+srcname: opening
 #+begin_src org :results latex
 Dear,
 #+end_src

 * Body
 #+srcname: body
 #+begin_src org :results latex
 This example was working for me in the past but is having problems now (at
 least, on my new Windows machine -- after the Ubuntu one died): the first
 line
 of every block of text is simply eaten when being tangled.

 The second paragraph does not exhibit any particular trouble, so it really
 is
 the first line of every code block. Notice, *in the TeX tangled file*,
 that:

 - the one-liner subject becomes void
 - the one-liner opening becomes void
 - the body looses its first line
 - the one-liner closing becomes void
 #+end_src

 * Closing
 #+srcname: closing
 #+begin_src org :results latex
 Can you reproduce this?
 #+end_src

 * Letter composition
 #+begin_src latex :noweb yes :tangle yes
 \documentclass[11pt]{isodoc}
 \usepackage[utf8x]{inputenc}
 \usepackage[T1]{fontenc}
 \usepackage{datatool}
 \DTLloaddb{addresses}{addresses.csv}

 \usepackage[scorpios]{isodoc-style}

 \setupdocument{
subject = {%
  subject()},
opening = {%
  opening()},
closing = {%
  closing()}
 }

 \begin{document}
 \DTLforeach{addresses}{%
  \firstname=FirstName,%
  \lastname=LastName,%
  \addressi=Address,%
  \postcode=PostCode,%
  \town=Town%
 }{%
 \letter[to={\firstname~\lastname\\\addressi\\\postcode~\town}]{%
 body()
 }}
 \end{document}
 #+end_src

 Best regards,
  Seb

 --
 Sébastien Vauban


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

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


[Orgmode] preventing strikethrough, italics and underline fontification

2010-12-08 Thread Eric Holbrook
I have several org files that contain simulator command arguments that look
like this:

+ADTL_ARG+somethingOrOther
or
/long/path/to//somewhere/
or
  _token_to_get_inserted_in_something_

These appear in both headlines and non-headline text. It's pretty
distracting, particularly when i'm trying to put together groups of these
things to build a long command line. Sometimes i have to just switch to
fundamental mode for a while.

Is there a way to inhibit fontification of this kind of thing? It'd be nice
if i could do it on a per-line or per-region basis. Maybe in response to a
tag in the headline? Maybe in response to a property?
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Automatically insert inactive timestamps

2010-12-08 Thread Nick Dokos
Andrew J. Korty a...@iu.edu wrote:

 Bernt Hansen be...@norang.ca wrote:
 
  (add-hook 'org-insert-heading-hook 'bh/insert-heading-inactive-timestamp)
 
 Using org-insert-heading-hook is more elegant than my way, but I only
 want timestamps on TODO entries, so I use
 

I think you should be able to use org-entry-get in the hook to get the
TODO property of the entry and then conditionally add the timestamp -
something like this:

   (if (equal (org-entry-get (point) TODO) TODO)
  add the timestamp

Nick



   

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


[Orgmode] What is the proper way to set the time span for a diary-float appointment?

2010-12-08 Thread Robert Horn
I wanted to set up a regular meeting that would appear in the agenda
grid.  I discovered that the following works:

... Regular Meeting 13:00-14:00
%%(diary-float t 2 1)

This creates a first tuesday of each month meeting, from 1300h to 1400h.
This works because the default for the
org-agenda-search-headline-for-time is t.

Is there a better way to do this?  It seems odd to split the date from
the time.  I didn't find anything that combines the date rules of
diary-float with the ability to also specify a time interval.

If this is the best way, I'll write up a patch to put this into the info
file.

R Horn

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