[O] org-agenda-clockreport-mode does not include archived entries? How to?

2012-02-20 Thread Rainer Stengele
Hi!

Last week I archived lots of headlines in order to speed up the agenda refresh.
This week I am checking my monthly clock report in the agenda with v R (Toggle 
Clockreport mode).

What I find is that org-agenda-clockreport-mode does not seem to include 
archived entries,
which seems to be a contradiction to the documentation where I find

(org-clock-report) .. The clock table always includes also trees with :ARCHIVE: 
tag.


This is bad as I now have lots of holes in my clock report view.
How can I include archived entries?

Rainer




Re: [O] org-agenda-clockreport-mode does not include archived entries? How to?

2012-02-20 Thread Carsten Dominik

On Feb 20, 2012, at 9:03 AM, Rainer Stengele wrote:

 Hi!
 
 Last week I archived lots of headlines in order to speed up the agenda 
 refresh.
 This week I am checking my monthly clock report in the agenda with v R 
 (Toggle Clockreport mode).
 
 What I find is that org-agenda-clockreport-mode does not seem to include 
 archived entries,
 which seems to be a contradiction to the documentation where I find
 
 (org-clock-report) .. The clock table always includes also trees with 
 :ARCHIVE: tag.
 

Did you archive using the ARCHIVE tag, or did you archive to a separate file?

- Carsten

 
 This is bad as I now have lots of holes in my clock report view.
 How can I include archived entries?
 
 Rainer
 
 






Re: [O] org-agenda-clockreport-mode does not include archived entries? How to?

2012-02-20 Thread Rainer Stengele
Am 20.02.2012 09:36, schrieb Carsten Dominik:
 
 On Feb 20, 2012, at 9:03 AM, Rainer Stengele wrote:
 
 Hi!

 Last week I archived lots of headlines in order to speed up the agenda 
 refresh.
 This week I am checking my monthly clock report in the agenda with v R 
 (Toggle Clockreport mode).

 What I find is that org-agenda-clockreport-mode does not seem to include 
 archived entries,
 which seems to be a contradiction to the documentation where I find

 (org-clock-report) .. The clock table always includes also trees with 
 :ARCHIVE: tag.

 
 Did you archive using the ARCHIVE tag, or did you archive to a separate file?
 
 - Carsten
 

 This is bad as I now have lots of holes in my clock report view.
 How can I include archived entries?

 Rainer


 


Carsten, I think I made a mistake in describing my problem.
WHat I find is that doing a v c in agenda to check the clock overlappings I
suddenly found lots of holes after archiving a lot of headlines with the 
ARCHIV tag.

Can I do a v c including the archived entries?

- Rainer



Re: [O] [babel] problem with sh blocks

2012-02-20 Thread Sebastien Vauban
Hi Andreas Leha,

Andreas Leha wrote:
 Hi all,

 why is it, that I can not use this code in sh blocks (I get sh: 2: Bad
 substitution), even though it is valid when I run the tangled
 script?  Is this a known thing?

 #+begin_src sh :shebang #!/bin/bash :tangle test.sh
   for i in *.org; do
   echo cp $i ${i/%.org/.bak.org}
   done
 #+end_src

 How can I get the above block to execute?

I just copied your block into a fresh test.org file, and eval'ed the code
block:

#+begin_src sh :shebang #!/bin/bash :tangle test.sh
  for i in *.org; do
  echo cp $i ${i/%.org/.bak.org}
  done
#+end_src

#+results:
| cp | test-export4.org | test-export4.bak.org |
| cp | test-export5.org | test-export5.bak.org |
| cp | test-export7.org | test-export7.bak.org |

Works perfectly for me, it seems, on:

GNU Emacs 24.0.92.1 (i386-mingw-nt5.1.2600) of 2012-01-23 on MARVIN
Org-mode version 7.8.03 (release_7.8.03.410.g77fb)

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] [babel] problem with sh blocks

2012-02-20 Thread Andreas Leha
Hi Seb

 why is it, that I can not use this code in sh blocks (I get sh: 2: Bad
 substitution), even though it is valid when I run the tangled
 script?  Is this a known thing?

 #+begin_src sh :shebang #!/bin/bash :tangle test.sh
   for i in *.org; do
   echo cp $i ${i/%.org/.bak.org}
   done
 #+end_src

 How can I get the above block to execute?

 I just copied your block into a fresh test.org file, and eval'ed the code
 block:

 #+begin_src sh :shebang #!/bin/bash :tangle test.sh
   for i in *.org; do
   echo cp $i ${i/%.org/.bak.org}
   done
 #+end_src

 #+results:
 | cp | test-export4.org | test-export4.bak.org |
 | cp | test-export5.org | test-export5.bak.org |
 | cp | test-export7.org | test-export7.bak.org |

 Works perfectly for me, it seems, on:

 GNU Emacs 24.0.92.1 (i386-mingw-nt5.1.2600) of 2012-01-23 on MARVIN
 Org-mode version 7.8.03 (release_7.8.03.410.g77fb)

 Best regards,
   Seb

thanks for testing!

That's what I'd like to get as well.  I tried with emacs -Q with no
success.  Seems the sh block is not executed by my bash.

After more thoughts on this my guess is that it has to do with dash
being the default shell in debian.

#+begin_src sh :shebang #!/bin/bash :tangle test.sh
  echo $_
  ls -l /bin/sh
#+end_src

#+RESULTS:
| /bin/sh|   |  |  |   | ||   | ||  |
| lrwxrwxrwx | 1 | root | root | 4 | Sep | 27 | 14:23 | /bin/sh | - | dash |

How can I get this to be /bin/bash?  Preferably from within org mode,
but I am grateful for any hint.

(Somehow this question seems familiar to me...)

My setup:

I am on Debian testing with
GNU Emacs 24.0.93.1 (x86_64-pc-linux-gnu, GTK+ Version 3.2.3) of
2012-02-16 on zelenka, modified by Debian
Org-mode version 7.8.03, pulled last week
  (how do I get the release info as well?)

Regards,
Andreas




Re: [O] org-agenda-clockreport-mode does not include archived entries? How to?

2012-02-20 Thread Carsten Dominik

On Feb 20, 2012, at 9:39 AM, Rainer Stengele wrote:

 Am 20.02.2012 09:36, schrieb Carsten Dominik:
 
 On Feb 20, 2012, at 9:03 AM, Rainer Stengele wrote:
 
 Hi!
 
 Last week I archived lots of headlines in order to speed up the agenda 
 refresh.
 This week I am checking my monthly clock report in the agenda with v R 
 (Toggle Clockreport mode).
 
 What I find is that org-agenda-clockreport-mode does not seem to include 
 archived entries,
 which seems to be a contradiction to the documentation where I find
 
 (org-clock-report) .. The clock table always includes also trees with 
 :ARCHIVE: tag.
 
 
 Did you archive using the ARCHIVE tag, or did you archive to a separate file?
 
 - Carsten
 
 
 This is bad as I now have lots of holes in my clock report view.
 How can I include archived entries?
 
 Rainer
 
 
 
 
 
 Carsten, I think I made a mistake in describing my problem.
 WHat I find is that doing a v c in agenda to check the clock overlappings I
 suddenly found lots of holes after archiving a lot of headlines with the 
 ARCHIV tag.


 
 Can I do a v c including the archived entries?


You could try to do first `v a' or even `v A' to add
archived stuff, and then `v c' to get to the clock issues.

Not sure if it will work, but it may be worth a try.

- Carsten

 
 - Rainer

- Carsten






Re: [O] [dev] Implement ref link types

2012-02-20 Thread Nicolas Goaziou
Hello,

Carsten Dominik carsten.domi...@gmail.com writes:

 On Feb 20, 2012, at 1:51 AM, Nicolas Goaziou wrote:

 There are still a few limitations. For example, you cannot reference
 a precise list item since items do not accept affiliated keywords.

 Ah, yes, this is right.

Thinking about it, there may exist a better alternative to [[ref:name]]
links: fuzzy links. In other words, #+name: something could be made an
alternate of something, with a lower priority.

On the Org side, when a link like [[something]] or [[something][text]]
is encountered in a buffer, the search would go on like this:

  1. Search any something or #+target: something[1].
  2. If none is found, search any #+name: something.
  3. If it fails, try to find the headline * something.
  4. Eventually offer to create such headline. This step doesn't apply
 during export.

On the export side, it depends on the description part of the link:

  - If there's a description (i.e. [[something][description]]), display
it and link to target if possible, whatever that target is.

  - If there's no description:

1. A link to an invisible target will be replaced with _nothing_
   (that's the point of being invisible).

2. A link to a target (i.e. something) will be replaced with the
   sequence number of the closest item or headline[2]. Examples:

   #+begin_src org
   - item one
   - item two
 - here item two dot one
   #+end_src

   Any link like [[here]] will be replaced with 2.1 during export.

   #+begin_src org
   * Headline one
   * Headline two
 * Headline two dot one

   Some paragraph.

   Another paragraph warning.
   #+end_src

   Here [[warning]] will also be replaced with 2.1 during export.
   Note that [[Headline two dot one]] would also be replaced with
   2.1.

3. An link to an element (i.e. #+name: something) would return the
   sequence number of that element among elements of the same type
   with a caption, a name affiliated keyword, or both. Example:

   #+begin_src org
   #+name: letters
   #+caption: I know my alphabet.
   |a|b|c|

   |foo|bar|

   #+name: numbers
   |1|2|3|
   #+end_src

   Here, a [[numbers]] link would be replaced with 2, since middle
   table has no name nor caption.


To sum it up, at a quick glance, I can see the following:

  - Pros ::
+ No new syntax,
+ Possibly number every element, including items.
  - Cons ::
+ Fuzzy links are a bit overloaded, but, on the other hand, linking to
  headlines is not very useful since custom-id and id implementation.
+ There is more documentation to write.

Again, what do you think?


Regards,

[1] This is the replacement for invisible targets, since they cannot
live in comments anymore.

[2] If headlines are not numbered (i.e. num:nil), replace link with
headline's title instead.

-- 
Nicolas Goaziou



[O] error when completing in org-contacts

2012-02-20 Thread Tamas Papp
Hi,

I started using org-contacts (from the contrib directory of the
org-mode git repo, with the emacs-snapshot package in Debian), with
the following configuration:

(require 'org-contacts)
(setq org-contacts-files '(~/org/contacts.org)
  org-capture-templates '((c contacts entry (file ~/org/contacts.org)
   * %(mu4e-view-snarf-from 'name)
:PROPERTIES:
:EMAIL %(mu4e-view-snarf-from 'email)
:NICK:
:BIRTHDAY:
:END:\n\n))
  org-contacts-completion-ignore-case t)

Capturing contacts works fine (they show up in the file), but I cannot
recall/complete contacts in message mode: when I

M-: (org-contacts-complete-name) 

(on eg a To: field), I get

(64 64 #[771 \301?\303\300$)\207 [nil nil completion-ignore-case 
complete-with-action] 8 

(fn STRING PRED ACTION)])

I wonder if this is a known bug, a result of some invalid combination
of versions, or me not using org-contacts in the way it was intended.

Best,

Tamas





Re: [O] Setting multiple variables for code blocks in one property drawer

2012-02-20 Thread Viktor Rosenfeld
Hi Eric,

Eric Schulte wrote:

 Viktor Rosenfeld listuse...@googlemail.com writes:
 
  Hi Eric,
 
  thanks for your input. I just pulled the latest code from git and while
  my original example works, the following does not:
 
  :PROPERTIES:
  :var: foo=1
  :var+: bar=2 
  :var+: baz=3
  :END:
 
  #+BEGIN_SRC sh
  echo foo: $foo
  echo bar: $bar
  echo baz: $baz
  #+END_SRC
 
 
 Thanks for reporting, I've just pushed up a fix for this bug.

Thanks for your fix. The above example now works for me.

However, I've noticed a problem with inheriting var properties. They are
inherited in a child task only if the child task itself has no var
property. Is this the intended behavior? See the example below.

Cheers,
Viktor

* Parent task
:PROPERTIES:
:var: foo=1
:var+: bar=2
:END:
** Child task without own properties

#+BEGIN_SRC sh
echo foo: $foo
echo bar: $bar
#+END_SRC

#+RESULTS:
| foo: | 1 |
| bar: | 2 |

** Child task with own properties
:PROPERTIES:
:var: foo=a
:END:

#+BEGIN_SRC sh
echo foo: $foo
echo bar: $bar
#+END_SRC

#+RESULTS:
| foo: | a |
| bar: |   |




Re: [O] org-agenda-clockreport-mode does not include archived entries? How to?

2012-02-20 Thread Bernt Hansen
Carsten Dominik carsten.domi...@gmail.com writes:

 
 Can I do a v c including the archived entries?


 You could try to do first `v a' or even `v A' to add
 archived stuff, and then `v c' to get to the clock issues.

 Not sure if it will work, but it may be worth a try.

 - Carsten

v A v c works for me to include data from archive files.

Regards,
Bernt



Re: [O] [babel] problem with sh blocks

2012-02-20 Thread Sebastien Vauban
Hi Andreas Leha,

Andreas Leha wrote:
 Hi Seb

 why is it, that I can not use this code in sh blocks (I get sh: 2: Bad
 substitution), even though it is valid when I run the tangled
 script?  Is this a known thing?

 #+begin_src sh :shebang #!/bin/bash :tangle test.sh
   for i in *.org; do
   echo cp $i ${i/%.org/.bak.org}
   done
 #+end_src

 How can I get the above block to execute?

 I just copied your block into a fresh test.org file, and eval'ed the code
 block:

 #+begin_src sh :shebang #!/bin/bash :tangle test.sh
   for i in *.org; do
   echo cp $i ${i/%.org/.bak.org}
   done
 #+end_src

 #+results:
 | cp | test-export4.org | test-export4.bak.org |
 | cp | test-export5.org | test-export5.bak.org |
 | cp | test-export7.org | test-export7.bak.org |

 Works perfectly for me, it seems.

 thanks for testing!

 That's what I'd like to get as well.  I tried with emacs -Q with no
 success.  Seems the sh block is not executed by my bash.

 After more thoughts on this my guess is that it has to do with dash
 being the default shell in debian.

 #+begin_src sh :shebang #!/bin/bash :tangle test.sh
   echo $_
   ls -l /bin/sh
 #+end_src

 #+RESULTS:
 | /bin/sh|   |  |  |   | ||   | ||  |
 | lrwxrwxrwx | 1 | root | root | 4 | Sep | 27 | 14:23 | /bin/sh | - | dash |

 How can I get this to be /bin/bash?  Preferably from within org mode,
 but I am grateful for any hint.

I have the following for my Emacs config:

--8---cut here---start-8---
  (setq shell-file-name bash)
  (setenv SHELL shell-file-name)
--8---cut here---end---8---

Note that this is related to an old discussion I had with Eric Schulte. See
http://lists.gnu.org/archive/html/emacs-orgmode/2009-12/msg00078.html.

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] [babel] problem with sh blocks

2012-02-20 Thread Bernt Hansen
Andreas Leha andreas.l...@med.uni-goettingen.de writes:

 Org-mode version 7.8.03, pulled last week
   (how do I get the release info as well?)

If you are running from a git repository then M-x org-version should
show the results of 'git describe' automatically.

C-u M-x org-version RET
Org-mode version 7.8.03 (release_7.8.03.420.gaf2a4)

Regards,
Bernt



Re: [O] org-agenda-clockreport-mode does not include archived entries? How to?

2012-02-20 Thread Rainer Stengele


Am 20.02.2012 11:09, schrieb Carsten Dominik:
 On Feb 20, 2012, at 9:39 AM, Rainer Stengele wrote:

 Am 20.02.2012 09:36, schrieb Carsten Dominik:
 On Feb 20, 2012, at 9:03 AM, Rainer Stengele wrote:

 Hi!

 Last week I archived lots of headlines in order to speed up the agenda 
 refresh.
 This week I am checking my monthly clock report in the agenda with v R 
 (Toggle Clockreport mode).

 What I find is that org-agenda-clockreport-mode does not seem to include 
 archived entries,
 which seems to be a contradiction to the documentation where I find

 (org-clock-report) .. The clock table always includes also trees with 
 :ARCHIVE: tag.

 Did you archive using the ARCHIVE tag, or did you archive to a separate 
 file?

 - Carsten

 This is bad as I now have lots of holes in my clock report view.
 How can I include archived entries?

 Rainer



 Carsten, I think I made a mistake in describing my problem.
 WHat I find is that doing a v c in agenda to check the clock overlappings I
 suddenly found lots of holes after archiving a lot of headlines with the 
 ARCHIV tag.

 Can I do a v c including the archived entries?

 You could try to do first `v a' or even `v A' to add
 archived stuff, and then `v c' to get to the clock issues.

 Not sure if it will work, but it may be worth a try.

 - Carsten

 - Rainer
 - Carsten

Thanks! Yes, 'v a' and then 'v c' does it!
Can I build a custom agenda view including all archived trees, showing the 'v 
c' entries and appending the clock report?

- Rainer



Re: [O] orgmode and auctex

2012-02-20 Thread Christopher Witte
Hi all,

(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master nil)
(make-variable-buffer-local 'TeX-master) ;; I think this is need because
the variable is not buffer local until Auctex is active

(defun org-mode-reftex-setup ()
  (setq TeX-master t)
  (load-library reftex)
  (and (buffer-file-name)
   (file-exists-p (buffer-file-name))
   (progn
 (reftex-parse-all)
 (reftex-set-cite-format [[cite:%l][%l]])))
  (define-key org-mode-map (kbd C-c )) 'reftex-citation)
  (define-key org-mode-map (kbd C-c () 'org-mode-reftex-search))
(add-hook 'org-mode-hook 'org-mode-reftex-setup)

This appears to work for me.  This should make the buffer local version of
TeX-master t for all org buffer and keep it the default otherwise.  Is
this a good way to work around this problem?

Cheers,
Chris.



On 11 February 2012 19:11, Nick Dokos nicholas.do...@hp.com wrote:

 Carsten Dominik carsten.domi...@gmail.com wrote:

 
  On 9.2.2012, at 21:08, Nick Dokos wrote:
 
   Thomas Alexander Gerds tagt...@sund.ku.dk wrote:
  
  
   Hi Chris,
  
   maybe I cannot follow exactly what you are trying to do, but when I
   start emacs -q and evaluate (setq-default TeX-master nil) and then
 open
   a new file test.tex, then I get the same prompt Master file:.
  
  
   I think Chris means that he gets the prompt when he opens a .org file.
   I couldn't reproduce that behavior when I tried it but I have not tried
   it again yet.
 
  I think this prompt comes from the function `reftex-TeX-master-file'.
 

 Indeed - the backtrace is as follows:

  ...
  completing-read-default(Master file:  read-file-name-internal
 file-exists-p t ~/src/org/ file-name-history ~/src/org/foo.org nil)
  completing-read(Master file:  read-file-name-internal file-exists-p t
 ~/src/org/ file-name-history ~/src/org/foo.org)
  read-file-name-default(Master file:  nil nil t nil nil)
  read-file-name(Master file:  nil nil t nil)
  reftex-TeX-master-file()
  reftex-tie-multifile-symbols()
  reftex-access-scan-info((16))
  reftex-parse-all()
   (and (buffer-file-name) (file-exists-p (buffer-file-name))
 (reftex-parse-all))
   org-mode-reftex-setup()
  run-hooks(change-major-mode-after-body-hook text-mode-hook
 outline-mode-hook org-mode-hook)
  apply(run-hooks (change-major-mode-after-body-hook text-mode-hook
 outline-mode-hook org-mode-hook))
  run-mode-hooks(org-mode-hook)
  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 foo.org ~/src/org/foo.org nil nil
 ~/src/org/foo.org (3018153 2055))
  find-file-noselect(~/src/org/foo.org nil nil t)
  find-file(~/src/org/foo.org t)
  call-interactively(find-file nil nil)


  The user is prompted when TeX-master is an existing variable
  (i.e. AUCTeX is loaded), and when its value is nil or `shared'.

 It's actually a bit more complicated than that: it checks if
 TeX-master-file is defined as a function (i.e. AUCTEX is loaded) and if
 so calls it. It then checks if tex-main-file is defined as a function
 (i.e. Emacs LaTeX mode is loaded) and if so calls it. Then it check if
 TeX-master is t (in which case (buffer-file-name) is called to set the
 master, or 'shared (in which case it reads the file name) or non-nil (in
 which case it is used verbatim) or nil (in which case it reads the file
 name - the operative case here).

 I'll leave it here for now: I've been sick for a couple of days and I
 can't think straight right now (or ever...)

 Nick


  Greetings
 
  - Carsten
 
  
   Nick
  
  
   so maybe, if you do not want to get prompted, you could try setting
   (setq-default TeX-master t).
  
   Cheers
   Tomy
  
  
  
   Christopher Witte ch...@witte.net.au writes:
  
   OK so using the setq-default inside a hook is probably not a good
   idea.
   But I can reliably reproduce this problem, I'm surprised you
 couldn't.
   If
   I start emacs using emacs -Q and open an org file everything is fine.
   If I
   then evaluate this
  
   (setq-default TeX-master nil)
  
   (defun org-mode-reftex-setup ()
(load-library reftex)
(and (buffer-file-name)
 (file-exists-p (buffer-file-name))
 (reftex-parse-all))
(define-key org-mode-map (kbd C-c )) 'reftex-citation))
   (add-hook 'org-mode-hook 'org-mode-reftex-setup)
  
   and try to open an org file I get prompted Master file: ~/.  I'm
   running
   Ubuntu 11.10 and the emacs-snapshot package: GNU Emacs 23.3.1
   (i686-pc-linux-gnu, GTK+ Version 2.24.5), latest org pulled from git
   today.
   Is there any more information I could provide to help diagnose this
   problem?
  
   Cheers
   Chris.
  
   On 7 February 2012 19:15, Nick Dokos nicholas.do...@hp.com wrote:
  
   Christopher Witte ch...@witte.net.au wrote:
  
   I've had a small problem with orgmode and auctex.  Follwing the
   auctex
   quickstart I added the
   following to my .emacs
  
   (setq-default TeX-master nil)
  
   and then from the orgmode FAQ to setup reftex in orgmode I 

[O] org-mode code / verbatim delimiters don't work with quotation marks

2012-02-20 Thread Leo Alekseyev
I noticed that strings like ='foo'= or =di= don't get recognized by
org as code, which is somewhat unfortunate because it forces me to
edit exported HTML by hand.  Are there any workarounds for this
behavior?

--Leo



Re: [O] requesting help debugging tangle on windows

2012-02-20 Thread Andrew Cheng
#1 worked. My assumption about how I could get the latest org was wrong.
Thanks very much for the help!

On Sat, Feb 18, 2012 at 10:16 AM, Eric Schulte eric.schu...@gmx.com wrote:

 Unfortunately I don't have access to a windows machine for testing of
 tangle behavior.  Before we delve deeper, could you confirm two things.

 1. It sounds as though you are not using the latest version of Org-mode
   from git.  Please upgrade to the latest -- which should also get you
   the latest ob-clojure.el so you don't have to evaluate the snippet
   posted below.  There are instructions for keeping current with org
   development at http://orgmode.org/worg/org-faq.html#Keeping-current.

 2. Try to reproduce the problem using emacs -Q which will launch emacs
   without any personal configuration.  That way we can see if this
   windows issue is someone related to your config, or is general.

 Thanks,

 Andrew Cheng ache...@gmail.com writes:

  Tangle works in my linux environment but doesn't quite work in my windows
  environment. Here's my org file. It defines a code snippet named block
  and then has a tangle section that refers to block. Tangle results in a
  file with two blank lines in my windows environment.
 
  #+name: block
  #+begin_src clojure :results silent
  (+ 2 3)
  #+end_src
 
  #+begin_src clojure :tangle ../src/tmp.clj :results silent :exports none
  :noweb yes
  block
  #+end_src
 
  But --- If my tangle section has regular code in it instead of referring
 to
  other named blocks then the resulting file after tangle has the code
  you'd expect.
 
  Below is my org setup. The *Messages* buffer doesn't contain any
  interesting error messages. What can I do to find out what's going on?
 
  I did evaluate the following snippet to get C-c C-c to properly evaluate
 a
  clojure code block successfully on my machine. It didn't affect the issue
  of tangling. Just thought I'd mention it to be thorough. The snippet is
  from Eric Schulte. I thought that by deleting my elpa org folder and
  starting emacs again I'd get the latest (with his fix) but I discovered
  that I still needed to run this snippet to get C-c C-c to work.
 
  Thanks in advance for any help!
 
  (defun org-babel-execute:clojure (body params)
   Execute a block of Clojure code with Babel.
   (require 'slime)
   (with-temp-buffer
 (insert (org-babel-expand-body:clojure body params))
 ((lambda (result)
(let ((result-params (cdr (assoc :result-params params
  (if (or (member scalar result-params)
  (member verbatim result-params))
  result
(condition-case nil (org-babel-script-escape result)
  (error result)
  (slime-eval
   `(swank:eval-and-grab-output
 ,(buffer-substring-no-properties (point-min) (point-max)))
   (cdr (assoc :package params))
 
  Emacs  : GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
   of 2011-09-03 on SHAN-PC
  Package: Org-mode version 7.7
 
  current state:
  ==
  (setq
   org-export-blocks '((src org-babel-exp-src-block nil) (comment
  org-export-blocks-format-comment t)
   (ditaa org-export-blocks-format-ditaa nil) (dot
  org-export-blocks-format-dot nil))
   org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
  org-babel-execute-safely-maybe)
   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-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-show-empty-lines
org-optimize-window-after-visibility-change)
   org-agenda-before-write-hook '(org-agenda-add-entry-text)
   org-speed-command-hook '(org-speed-command-default-hook
  org-babel-speed-command-hook)
   org-babel-pre-tangle-hook '(save-buffer)
   org-occur-hook '(org-first-headline-recenter)
   org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src
  org-babel-exp-inline-src-blocks))
   org-metaup-hook '(org-babel-load-in-session-maybe)
   org-confirm-elisp-link-function 'yes-or-no-p
   org-export-latex-format-toc-function
 'org-export-latex-format-toc-default
   org-export-preprocess-before-normalizing-links-hook
  '(org-remove-file-link-modifiers)
   org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
   org-export-first-hook '(org-beamer-initialize-open-trackers)
   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-from-is-user-regexp nil
   org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
  org-beamer-auto-fragile-frames
 
  

Re: [O] org-agenda-clockreport-mode does not include archived entries? How to?

2012-02-20 Thread Rainer Stengele
Am 20.02.2012 13:53, schrieb Rainer Stengele:
 
 
 Am 20.02.2012 11:09, schrieb Carsten Dominik:
 On Feb 20, 2012, at 9:39 AM, Rainer Stengele wrote:

 Am 20.02.2012 09:36, schrieb Carsten Dominik:
 On Feb 20, 2012, at 9:03 AM, Rainer Stengele wrote:

 Hi!

 Last week I archived lots of headlines in order to speed up the agenda 
 refresh.
 This week I am checking my monthly clock report in the agenda with v R 
 (Toggle Clockreport mode).

 What I find is that org-agenda-clockreport-mode does not seem to include 
 archived entries,
 which seems to be a contradiction to the documentation where I find

 (org-clock-report) .. The clock table always includes also trees with 
 :ARCHIVE: tag.

 Did you archive using the ARCHIVE tag, or did you archive to a separate 
 file?

 - Carsten

 This is bad as I now have lots of holes in my clock report view.
 How can I include archived entries?

 Rainer



 Carsten, I think I made a mistake in describing my problem.
 WHat I find is that doing a v c in agenda to check the clock overlappings 
 I
 suddenly found lots of holes after archiving a lot of headlines with the 
 ARCHIV tag.

 Can I do a v c including the archived entries?

 You could try to do first `v a' or even `v A' to add
 archived stuff, and then `v c' to get to the clock issues.

 Not sure if it will work, but it may be worth a try.

 - Carsten

 - Rainer
 - Carsten
 
 Thanks! Yes, 'v a' and then 'v c' does it!
 Can I build a custom agenda view including all archived trees, showing the 'v 
 c' entries and appending the clock report?
 
 - Rainer
 
 

A custom agenda command like this does show the logs and the clock report, but 
why do I only get a weeks overview, not a month?

...
(0m agenda + no todos - whole month - log-mode - ARCHIVE included - 
clock report agenda 
 ((org-agenda-sorting-strategy '(time-up priority-down))
  (org-agenda-span 'month)
  (org-agenda-start-with-log-mode t)
  (org-agenda-start-with-clockreport-mode t)
  (org-agenda-overriding-header Month Agenda - +ARCHIVE + clockreport 
+ 'v c' showing gaps etc.)))
...

Thanks,
- Rainer



Re: [O] org-agenda-clockreport-mode does not include archived entries? How to?

2012-02-20 Thread Nick Dokos
Rainer Stengele rainer.steng...@online.de wrote:

 A custom agenda command like this does show the logs and the clock report, 
 but why do I only get a weeks overview, not a month?
 
   ...
   (0m agenda + no todos - whole month - log-mode - ARCHIVE included - 
 clock report agenda 
((org-agenda-sorting-strategy '(time-up priority-down))
 (org-agenda-span 'month)

I was having similar problems and it turned out that I had some setting
of the (obsolete) variable org-agenda-ndays in some init file and that
was causing me problems. I hunted all the settings down, eliminated them
and use *only* org-agenda-span: things seem to work as expected. No idea
of course whether that's your problem, but it might be worth checking.

Nick



Re: [O] [babel] problem with sh blocks

2012-02-20 Thread Eric Schulte
Hi,

As with the other recent sh-block email, the problem is likely due to
the interpreter used (e.g., bash as compared to dash).  See the value of
`org-babel-sh-command' which defaults to sh which defaults to a POSIX
rather than bash shell on many systems.

Best,

Andreas Leha andreas.l...@med.uni-goettingen.de writes:

 Hi all,

 why is it, that I can not use this code in sh blocks (I get sh: 2: Bad
 substitution), even though it is valid when I run the tangled
 script?  Is this a known thing?

 #+begin_src sh :shebang #!/bin/bash :tangle test.sh
   for i in *.org; do
   echo cp $i ${i/%.org/.bak.org}
   done
 #+end_src

 How can I get the above block to execute?

 Thanks in advance,
 Andreas



-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



Re: [O] org-agenda-clockreport-mode does not include archived entries? How to?

2012-02-20 Thread Rainer Stengele


Am 20.02.2012 17:32, schrieb Nick Dokos:
 Rainer Stengele rainer.steng...@online.de wrote:

 A custom agenda command like this does show the logs and the clock report, 
 but why do I only get a weeks overview, not a month?

  ...
  (0m agenda + no todos - whole month - log-mode - ARCHIVE included - 
 clock report agenda 
   ((org-agenda-sorting-strategy '(time-up priority-down))
(org-agenda-span 'month)
 I was having similar problems and it turned out that I had some setting
 of the (obsolete) variable org-agenda-ndays in some init file and that
 was causing me problems. I hunted all the settings down, eliminated them
 and use *only* org-agenda-span: things seem to work as expected. No idea
 of course whether that's your problem, but it might be worth checking.

 Nick

Thanks, Nick, that did it.

Having configured 'month in org-agenda-soan how can I start my agenda at the 
beginning of the month?
I only find org-agenda-start-on-weekday and  org-agenda-start-day, but no 
possibility to set the 1st of the current month.
What I really want is a calendar range for current month like 1st of month 
until and including today.

- Rainer



Re: [O] [0][babel][R] Undesired conversion of integers to floats in R code block output

2012-02-20 Thread Achim Gratz
Achim Gratz strom...@nexgo.de writes:
 On my 32-bit Arch machine:
 (string-to-number 123456789): 123456789 (#o726746425, #x75bcd15)
 (string-to-number 987654321): 987654321.0

 Since that latter number is not representable as an integer in Emacs (it
 loses 4 bit due to the way Lisp represents these things), it takes the
 next best thing (FP in that case).  Since you are on Arch, I believe
 there is a way to compile Emacs to use large integers even on 32bit
 systems - it may have other problems, but should solve this.

I've just compiled Emacs again using --with-wide-int as an additional
(or sole) configure option and get:

(string-to-number 987654321): 987654321 (#o7267464261, #x3ade68b1)

So, no need to upgrade the whole system to 64bit if that was the only
problem... :-)


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] org-mode code / verbatim delimiters don't work with quotation marks

2012-02-20 Thread Michael Hannon
 I noticed that strings like ='foo'= or =di= don't get recognized by org as
 code, which is somewhat unfortunate because it forces me to edit exported
 HTML by hand.  Are there any workarounds for this behavior?

Hi, Leo.  You might try inserting a null character before and after the
quotation marks, as:

    =^@'foo'^@=

where:

    ^@

means CTRL-@, in the usual, text-based notation.

-- Mike



Re: [O] [babel] problem with sh blocks

2012-02-20 Thread Andreas Leha
Eric Schulte eric.schu...@gmx.com writes:

Hi Eric,
 Hi,

 As with the other recent sh-block email, the problem is likely due to
 the interpreter used (e.g., bash as compared to dash).  See the value of
 `org-babel-sh-command' which defaults to sh which defaults to a POSIX
 rather than bash shell on many systems.

 Best,

 Andreas Leha andreas.l...@med.uni-goettingen.de writes:

 Hi all,

 why is it, that I can not use this code in sh blocks (I get sh: 2: Bad
 substitution), even though it is valid when I run the tangled
 script?  Is this a known thing?

 #+begin_src sh :shebang #!/bin/bash :tangle test.sh
   for i in *.org; do
   echo cp $i ${i/%.org/.bak.org}
   done
 #+end_src

 How can I get the above block to execute?

 Thanks in advance,
 Andreas



thanks a lot!  The org-babel-sh-command did the trick!

Cheers,
Andreas




Re: [O] org-mode code / verbatim delimiters don't work with quotation marks

2012-02-20 Thread Viktor Rosenfeld
Hi,

this behavior is controlled by the contents of the 3rd element of
org-emphasis-regexp-components.

See this post:
http://thread.gmane.org/gmane.emacs.orgmode/20915/focus=20922

I've removed \ a while ago and haven't noticed any problems so far.

Cheers,
Viktor

Leo Alekseyev wrote:

 I noticed that strings like ='foo'= or =di= don't get recognized by
 org as code, which is somewhat unfortunate because it forces me to
 edit exported HTML by hand.  Are there any workarounds for this
 behavior?
 
 --Leo
 



Re: [O] org-mode code / verbatim delimiters don't work with quotation marks

2012-02-20 Thread Leo Alekseyev
Null character /sort of/ works: it makes org-mode insert the code
delimiters on export, but the presence of null characters breaks
export down the road, at least in my case.  This time, I could
intercept the exported text and remove the null characters by hand,
but it might not always be the case.

What org really needs is a stronger verbatim quoting construct.  In a
lot of cases, you just want your text to be displayed verbatim, with
no interpretation, period.  Near as I can see, there's nothing in org
that can currently do this -- please correct me if I'm wrong.  For
instance, things like =[[foo]]= should _not_ undergo further parsing /
be interpreted as links.  Same goes for quotes, or virtually anything.
 = signs should be allowed provided they are escaped in the usual
manner (=\==).  The current behavior is very unsatisfactory.

On Mon, Feb 20, 2012 at 12:47 PM, Michael Hannon jm_han...@yahoo.com wrote:
 I noticed that strings like ='foo'= or =di= don't get recognized by org as
 code, which is somewhat unfortunate because it forces me to edit exported
 HTML by hand.  Are there any workarounds for this behavior?

 Hi, Leo.  You might try inserting a null character before and after the
 quotation marks, as:

     =^@'foo'^@=

 where:

     ^@

 means CTRL-@, in the usual, text-based notation.

 -- Mike



Re: [O] org-agenda-clockreport-mode does not include archived entries? How to?

2012-02-20 Thread Nick Dokos
Rainer Stengele rainer.steng...@online.de wrote:

 Having configured 'month in org-agenda-soan how can I start my agenda
 at the beginning of the month?  I only find
 org-agenda-start-on-weekday and org-agenda-start-day, but no
 possibility to set the 1st of the current month.  What I really want
 is a calendar range for current month like 1st of month until and
 including today.
 

Adding

  ...
  (org-agenda-start-day (ndk/org-first-of-month))
  (org-agenda-span 'month)
  ...

to your custom agenda command, with

--8---cut here---start-8---
(defun ndk/org-first-of-month ()
  (let ((d (calendar-current-date)))
(calendar-absolute-from-gregorian (list (car d) 1 (caddr d)
--8---cut here---end---8---

should do it.

Nick




Re: [O] org-agenda-clockreport-mode does not include archived entries? How to?

2012-02-20 Thread Nick Dokos
Nick Dokos nicholas.do...@hp.com wrote:

 Adding
 
   ...
   (org-agenda-start-day (ndk/org-first-of-month))
   (org-agenda-span 'month)
   ...
 
 to your custom agenda command, with
 
 (defun ndk/org-first-of-month ()
   (let ((d (calendar-current-date)))
 (calendar-absolute-from-gregorian (list (car d) 1 (caddr d)
 
 should do it.
 

Same thing but somewhat more readable:

--8---cut here---start-8---
(defun ndk/org-first-of-month ()
  (let* ((d (calendar-current-date))
 (m (calendar-extract-month d))
 (y (calendar-extract-year d)))
(calendar-absolute-from-gregorian (list m 1 y
--8---cut here---end---8---

Nick



[O] agenda view for TODOs without deadline and a certain tag

2012-02-20 Thread Renato
Hi, how can I make C-c a M (org-tags-view) respect the variable
org-agenda-todo-ignore-deadlines? What I want to do is list my active
TODOs which do not have a deadline and which do not have a certain tag.

kind regards,
renato



Re: [O] [dev] Implement ref link types

2012-02-20 Thread Nicolas Goaziou
Completing myself, here is a patch implementing the previous suggestion,
along with example output obtained with it.  You may need to
(fmakunbound 'org-e-ascii-target) to avoid an error, since this patch
removes the function.


First, the test buffer.


#+begin_src org
#+TITLE: Cross-references
#+LANGUAGE: en

* First headline.

  Here we demonstrate cross-references to items.

  1. A first item in a list.
  2. Another item
 1. With three subparts. This one.
 2. Another one.
 3. itm:last And the last subpart.

  We end the list at item [[itm:last]].

  Before we continue, here is a rather trivial equation, assuming base
  isn't too low[fn:1].
  
  #+name: eq:trivial
  \begin{equation}
  1 + 1 = 2
  \end{equation}

  We can verify it with the following code:

  #+name: oneplusone
  #+caption: Shortly after the beginning of arithmetic.
  #+BEGIN_SRC emacs-lisp :exports code
  (+ 1 1)
  #+END_SRC

** Sub-topic

   Here we demonstrate cross-references to tables.sec:tables

   #+name: tab:numbers
   #+caption: Test
   | one | 1 |
   | two | 2 |

   #+name: tab:letters
   #+caption: Letters
   | a | aille |
   | b | bi|

   In table [[tab:numbers]] we can only see two numbers.  Yet, in 
[[tab:numbers][the very
   same table]], we can already tell the radix used isn't too low
   (remember footnote [[fn:basetwo]]?).  On the other hand, table
   [[tab:letters]] shows letters, but that's clearly uninteresting.

   #+name: eq:euler
   \begin{equation}
   e^{i\pi} + 1 = 0
   \end{equation}

   Equation [[eq:euler]], also known as Euler's equation, is remarkable
   unlike to the equation [[eq:trivial]], which is boring (except the
   elisp part, in listing [[oneplusone]]).

   #+target: end
   This is the end of section [[sec:tables]]. [[end][Invisible link to line 
above]]

* Footnotes

[fn:1] fn:basetwo That is strictly greater than two.
#+end_src



Then the ASCII output.



#+begin_src text
1 First headline.
=

  Here we demonstrate cross-references to items.

  1. A first item in a list.
  2. Another item
 1. With three subparts. This one.
 2. Another one.
 3. And the last subpart.

  We end the list at item 2.3.

  Before we continue, here is a rather trivial equation, assuming base
  isn't too low[1].

  \begin{equation}
  1 + 1 = 2
  \end{equation}

  We can verify it with the following code:

  ,
  | (+ 1 1)
  `
  Listing 1: Shortly after the beginning of arithmetic.


1.1 Sub-topic
~

  Here we demonstrate cross-references to tables.

   one  1 
   two  2 
  Table 1: Test

   a  aille 
   b  bi
  Table 2: Letters

  In table 1 we can only see two numbers.  Yet, in the very same table,
  we can already tell the radix used isn't too low (remember footnote
  1?).  On the other hand, table 2 shows letters, but that's clearly
  uninteresting.

  \begin{equation}
  e^{i\pi} + 1 = 0
  \end{equation}

  Equation 2, also known as Euler's equation, is remarkable unlike to
  the equation 1, which is boring (except the elisp part, in listing 1).

  This is the end of section 1.1.
#+end_src



And with LaTeX.



#+begin_src latex
\section{First headline.}
\label{sec-1}

Here we demonstrate cross-references to items.

\begin{enumerate}
\item A first item in a list.
\item Another item
\begin{enumerate}
\item With three subparts. This one.
\item Another one.
\item \label{itm:last} And the last subpart.
\end{enumerate}
\end{enumerate}

We end the list at item \ref{itm:last}.

Before we continue, here is a rather trivial equation, assuming base
isn't too low\footnote{\label{fn:basetwo} That is strictly greater than two.}.

\begin{equation}
\label{eq:trivial}
1 + 1 = 2
\end{equation}

We can verify it with the following code:

\begin{figure}[H]
\caption{\label{oneplusone}Shortly after the beginning of arithmetic.}
\begin{verbatim}
(+ 1 1)
\end{verbatim}
\end{figure}

\subsection{Sub-topic}
\label{sec-1-1}

Here we demonstrate cross-references to tables.\label{sec:tables}

\begin{table}[htb]
\caption{\label{tab:numbers}Test}
\begin{center}
\begin{tabular}{lr}
one  1 \\
two  2 \\
\end{tabular}
\end{center}
\end{table}

\begin{table}[htb]
\caption{\label{tab:letters}Letters}
\begin{center}
\begin{tabular}{ll}
a  aille \\
b  bi \\
\end{tabular}
\end{center}
\end{table}

In table \ref{tab:numbers} we can only see two numbers.  Yet, in 
\hyperref[tab:numbers]{the very
   same table}, we can already tell the radix used isn't too low
(remember footnote \ref{fn:basetwo}?).  On the other hand, table
\ref{tab:letters} shows letters, but that's clearly uninteresting.

\begin{equation}
\label{eq:euler}
e^{i\pi} + 1 = 0
\end{equation}

Equation \ref{eq:euler}, also known as Euler's equation, is remarkable
unlike to the equation \ref{eq:trivial}, which is boring (except the
elisp part, in listing \ref{oneplusone}).

This is the end of section \ref{sec:tables}. 
#+end_src


Regards,

-- 
Nicolas Goaziou
From dcae2d1015f958dcb1ed3c92349ad0c2e18a1219 Mon Sep 17 00:00:00 

Re: [O] Bug: Remote state change of repeating TODO fails with calendar open [7.8.03]

2012-02-20 Thread Thomas Morgan
Hi, David,
Thanks, that fixes it for me.
Best wishes,
Thomas



[O] Bug: ^:{} option, underscore in inline task, latex export

2012-02-20 Thread mylesenglish
Hello,

If an underscore appears in an inline task then there are problems for
latex export, as below.

Myles



#+TITLE: Underscore bug
#+OPTIONS:   ^:{}


* This works as expected

Here is an under_score that is escaped upon latex export

*** TODO Fix buggy_bug
That one makes it through to the .tex file
*** END

* LaTeX export results in: :noexport:

\section{This works as expected}
\label{sec-1}


Here is an under\_{}score that is escaped upon latex export

\begin{description}
\item[\textsc{TODO} Fix buggy_bug]~

That one makes it through to the .tex file

\end{description}



Re: [O] [dev] Implement ref link types

2012-02-20 Thread Thomas S. Dye
Nice!

Nicolas Goaziou n.goaz...@gmail.com writes:

 Completing myself, here is a patch implementing the previous suggestion,
 along with example output obtained with it.  You may need to
 (fmakunbound 'org-e-ascii-target) to avoid an error, since this patch
 removes the function.


 First, the test buffer.


 #+begin_src org
 #+TITLE: Cross-references
 #+LANGUAGE: en

 * First headline.

   Here we demonstrate cross-references to items.

   1. A first item in a list.
   2. Another item
  1. With three subparts. This one.
  2. Another one.
  3. itm:last And the last subpart.
 
   We end the list at item [[itm:last]].

   Before we continue, here is a rather trivial equation, assuming base
   isn't too low[fn:1].
   
   #+name: eq:trivial
   \begin{equation}
   1 + 1 = 2
   \end{equation}

   We can verify it with the following code:

   #+name: oneplusone
   #+caption: Shortly after the beginning of arithmetic.
   #+BEGIN_SRC emacs-lisp :exports code
   (+ 1 1)
   #+END_SRC

 ** Sub-topic

Here we demonstrate cross-references to tables.sec:tables

#+name: tab:numbers
#+caption: Test
| one | 1 |
| two | 2 |

#+name: tab:letters
#+caption: Letters
| a | aille |
| b | bi|

In table [[tab:numbers]] we can only see two numbers.  Yet, in 
 [[tab:numbers][the very
same table]], we can already tell the radix used isn't too low
(remember footnote [[fn:basetwo]]?).  On the other hand, table
[[tab:letters]] shows letters, but that's clearly uninteresting.

#+name: eq:euler
\begin{equation}
e^{i\pi} + 1 = 0
\end{equation}

Equation [[eq:euler]], also known as Euler's equation, is remarkable
unlike to the equation [[eq:trivial]], which is boring (except the
elisp part, in listing [[oneplusone]]).

#+target: end
This is the end of section [[sec:tables]]. [[end][Invisible link to line 
 above]]

 * Footnotes

 [fn:1] fn:basetwo That is strictly greater than two.
 #+end_src



 Then the ASCII output.



 #+begin_src text
 1 First headline.
 =

   Here we demonstrate cross-references to items.

   1. A first item in a list.
   2. Another item
  1. With three subparts. This one.
  2. Another one.
  3. And the last subpart.

   We end the list at item 2.3.

   Before we continue, here is a rather trivial equation, assuming base
   isn't too low[1].

   \begin{equation}
   1 + 1 = 2
   \end{equation}

   We can verify it with the following code:

   ,
   | (+ 1 1)
   `
   Listing 1: Shortly after the beginning of arithmetic.


 1.1 Sub-topic
 ~

   Here we demonstrate cross-references to tables.

one  1 
two  2 
   Table 1: Test

a  aille 
b  bi
   Table 2: Letters

   In table 1 we can only see two numbers.  Yet, in the very same table,
   we can already tell the radix used isn't too low (remember footnote
   1?).  On the other hand, table 2 shows letters, but that's clearly
   uninteresting.

   \begin{equation}
   e^{i\pi} + 1 = 0
   \end{equation}

   Equation 2, also known as Euler's equation, is remarkable unlike to
   the equation 1, which is boring (except the elisp part, in listing 1).

   This is the end of section 1.1.
 #+end_src



 And with LaTeX.



 #+begin_src latex
 \section{First headline.}
 \label{sec-1}

 Here we demonstrate cross-references to items.

 \begin{enumerate}
 \item A first item in a list.
 \item Another item
 \begin{enumerate}
 \item With three subparts. This one.
 \item Another one.
 \item \label{itm:last} And the last subpart.
 \end{enumerate}
 \end{enumerate}

 We end the list at item \ref{itm:last}.

 Before we continue, here is a rather trivial equation, assuming base
 isn't too low\footnote{\label{fn:basetwo} That is strictly greater than two.}.

 \begin{equation}
 \label{eq:trivial}
 1 + 1 = 2
 \end{equation}

 We can verify it with the following code:

 \begin{figure}[H]
 \caption{\label{oneplusone}Shortly after the beginning of arithmetic.}
 \begin{verbatim}
 (+ 1 1)
 \end{verbatim}
 \end{figure}

 \subsection{Sub-topic}
 \label{sec-1-1}

 Here we demonstrate cross-references to tables.\label{sec:tables}

 \begin{table}[htb]
 \caption{\label{tab:numbers}Test}
 \begin{center}
 \begin{tabular}{lr}
 one  1 \\
 two  2 \\
 \end{tabular}
 \end{center}
 \end{table}

 \begin{table}[htb]
 \caption{\label{tab:letters}Letters}
 \begin{center}
 \begin{tabular}{ll}
 a  aille \\
 b  bi \\
 \end{tabular}
 \end{center}
 \end{table}

 In table \ref{tab:numbers} we can only see two numbers.  Yet, in 
 \hyperref[tab:numbers]{the very
same table}, we can already tell the radix used isn't too low
 (remember footnote \ref{fn:basetwo}?).  On the other hand, table
 \ref{tab:letters} shows letters, but that's clearly uninteresting.

 \begin{equation}
 \label{eq:euler}
 e^{i\pi} + 1 = 0
 \end{equation}

 Equation \ref{eq:euler}, also known as Euler's equation, is remarkable
 unlike to the equation \ref{eq:trivial}, which is 

Re: [O] [dev] Implement ref link types

2012-02-20 Thread David Maus
At Mon, 20 Feb 2012 23:06:32 +0100,
Nicolas Goaziou wrote:

 Completing myself, here is a patch implementing the previous suggestion,
 along with example output obtained with it.  You may need to
 (fmakunbound 'org-e-ascii-target) to avoid an error, since this patch
 removes the function.

I don't see why we should drop the link type in fuzzy links. After all
they /are/ are special type of link.

Without the link type we will run into trouble, won't we?.

In the example file:

,
| We end the list at item [[itm:last]].
`

So, itm:last is a fuzzy link but it could as well be a regular link
of type itm with a path component of last and no description.

If we say that we use itm:last as a fuzzy link iff there is no
registered link type itm we might put people into trouble if in some
point in the future Org mode introduces a link of type itm and the
fuzzy links stop working.

Or is there any technical reason to use [[itm:last]] instead of
[[ref:itm:last]]?

Best,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de

pgpDlDRSOzYXk.pgp
Description: PGP signature


[O] Inheriting timestamps

2012-02-20 Thread James Harkins
Not sure of the right terminology, but a reasonable description of
what I'm hoping to do is to have some TODO items inherit their
timestamp from a parent level.

This is mainly for things that I need to do soon, but not on a
specific day, and they might roll over to the next day (especially
[#C] items). So I was thinking of something like:

* Pending today 2012-02-21 Tue
** TODO Something
** TODO Something else

And then those items would appear for February 21 in the agenda day/week view.

If I finish one of the tasks, I would move it under another heading
(and its status would be DONE anyway, so it would disappear from the
agenda).

Then tomorrow, I would want to change the Pending today timestamp
and the TODOs underneath would then show up for Wednesday in the
agenda.

If that isn't feasible, I'd be satisfied with an automatic way to
change all the timestamps in subheadings underneath a given heading:
put the Emacs cursor on the Pending today line, hit some keystroke,
and all the dates change underneath.

I have another question about Beamer too, but will put that in a
separate e-mail.

Thanks,
James

-- 
James Harkins /// dewdrop world
jamshar...@dewdrop-world.net
http://www.dewdrop-world.net

Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal.  -- Whitman

blog: http://www.dewdrop-world.net/words
audio clips: http://www.dewdrop-world.net/audio
more audio: http://soundcloud.com/dewdrop_world/tracks



Re: [O] agenda view for TODOs without deadline and a certain tag

2012-02-20 Thread Renato
On Mon, 20 Feb 2012 22:41:21 +0100
Renato renn...@gmail.com wrote:

 Hi, how can I make C-c a M (org-tags-view) respect the variable
 org-agenda-todo-ignore-deadlines? What I want to do is list my active
 TODOs which do not have a deadline and which do not have a certain
 tag.
 

better still, I'd like for org-agenda-list to ignore entries with a
certain tag...

I don't know what's the best way to manage this, but I think it's a
pretty common thing... I've got lots of TODOs for example regarding
my computer software environment (find out how to do this in emacs,
check out this new window manager and so on) - which are all
tagged :computer: - and I really don't want to see those unless I have
an hour of spare time which I decide to dedicate to such things. I
don't want to see them next to do the laundry - that's much more
important.

cheers,
renato