Re: [Orgmode] Literate programming

2010-05-11 Thread Carsten Dominik


On May 11, 2010, at 7:55 AM, Jan Böcker wrote:


Ivanov Dmitry usr...@gmail.com writes:


The tree buffer seems an ideal tool for this project.


What is this tree buffer you speak of?
Are you telling me that I can already use Org to view the outline
Leo-style, with the outline structure (folded to the content startup
visibility) in one window and an indirect buffer narrowed to the body
text of the current headline in a second window?

That would be wonderful! (If not, I would definitely be interested in
creating such a feature, but I have no idea where to start.)


Maybe start with org-toc.el, in the contrib directory.

- Carsten



I had used Leo at the end of high school to make an overview of all  
the
topics I needed to know for the exams. This particular feature has  
been

an entry on my ideas to implement if I ever have infinite time list
for some time.

Regards,
Jan

___
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


- Carsten




___
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: huge font in column view

2010-05-11 Thread Sébastien Vauban
Hi Carsten,

Carsten Dominik wrote:
 Carsten Dominik wrote:
 On May 10, 2010, at 11:53 AM, Sébastien Vauban wrote:
 Carsten Dominik wrote:
 On May 7, 2010, at 8:20 PM, Eraldo Helal wrote:
 When I press 'C-c C-x C-c' on a headline in org-mode, I get into column
 view as expected, however the font is huuuge! I remember seeing the
 same sized font when starting emacs without my config file. I have set
 the font size for this very reason... but column mode seems to ignore
 it

 what is the spec of the face org-column in your setup? Does it make a
 difference to specify the size for org-column explicitly?

 I tried setting the size explicitly:

 --8---cut here---start-8---
 (org-column ((t (:background gold :height 80 :family Consolas
 (org-agenda-column-dateline ((t (:background deep sky blue :height 80
 :family Consolas
 --8---cut here---end---8---

 but it does not help.

 What do you get if you do M-x describe-face on the following faces:

 default

 --8---cut here---start-8---
 Face: default (sample) (customize this face)

Family: Consolas
   Foundry: microsoft
Height: 79
  Font: #font-object -microsoft-Consolas-normal-normal-
 normal-*-11-*-*-*-m-0-iso10646-1
   Fontset: -microsoft-Consolas-normal-normal-normal-*-11-*-*-*-
 m-0-fontset-auto1
 --8---cut here---end---8---


 org-level-1

 --8---cut here---start-8---
 Face: org-level-1 (sample) (customize this face)

Family: Arial
Height: 1.8
Weight: bold
 --8---cut here---end---8---


 org-level-2

 --8---cut here---start-8---
 Face: org-level-2 (sample) (customize this face)

Family: Arial
Height: 1.6
Weight: bold
 --8---cut here---end---8---


 org-column

 --8---cut here---start-8---
 Face: org-column (sample) (customize this face)

Family: DejaVu Sans Mono
Height: 122
 --8---cut here---end---8---

 In summary, the problem is -- from my point of view -- that the face
 specification (in my color-theme) is not honored:

 - org-column is NOT Consolas
 - org-column is NOT 80 in height (8pt, if I correctly get that the unit is
  1/10 of point)


 Are you talking about column view in the agenda or in an org file?

 Both...

 Header line `ITEM | TODO | PRI | TAGS' is much narrower than the normal
 rows.

 well, you org-column face says that it wants to be 122/10 points, so that is
 already relatively big. It is possible (but I am not sure) that the factor
 1.8 you have set for level on faces still shines through as well, but I
 don't think this should be the case.

 You need to find out how the 122 gets into the definition for org- column.

I have scanned all the potential files for `122' and `DejaVu': my `.emacs'
file, and my `color-theme' (published a couple of days ago on this same
mailing list). No trace...

I have no idea how that face is selected. For example, the only face I'm using
throughout my Emacs daily use, everywhere, is `Consolas'. It's the `default',
and the only other families I'm using are `Arial' and `Sans Serif' -- though,
for faces that have nothing to do with Org.

I'm clueless.

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


Re: [Orgmode] Re: huge font in column view

2010-05-11 Thread Carsten Dominik


On May 11, 2010, at 9:21 AM, Sébastien Vauban wrote:


Hi Carsten,

Carsten Dominik wrote:

Carsten Dominik wrote:

On May 10, 2010, at 11:53 AM, Sébastien Vauban wrote:

Carsten Dominik wrote:

On May 7, 2010, at 8:20 PM, Eraldo Helal wrote:
When I press 'C-c C-x C-c' on a headline in org-mode, I get  
into column
view as expected, however the font is huuuge! I remember  
seeing the
same sized font when starting emacs without my config file. I  
have set
the font size for this very reason... but column mode seems to  
ignore

it


what is the spec of the face org-column in your setup? Does it  
make a

difference to specify the size for org-column explicitly?


I tried setting the size explicitly:

--8---cut here---start-8---
(org-column ((t (:background gold :height 80 :family  
Consolas
(org-agenda-column-dateline ((t (:background deep sky  
blue :height 80

:family Consolas
--8---cut here---end---8---

but it does not help.


What do you get if you do M-x describe-face on the following faces:

default


--8---cut here---start-8---
Face: default (sample) (customize this face)

  Family: Consolas
 Foundry: microsoft
  Height: 79
Font: #font-object -microsoft-Consolas-normal-normal-
normal-*-11-*-*-*-m-0-iso10646-1
 Fontset: -microsoft-Consolas-normal-normal-normal-*-11-*-*-*-
m-0-fontset-auto1
--8---cut here---end---8---



org-level-1


--8---cut here---start-8---
Face: org-level-1 (sample) (customize this face)

  Family: Arial
  Height: 1.8
  Weight: bold
--8---cut here---end---8---



org-level-2


--8---cut here---start-8---
Face: org-level-2 (sample) (customize this face)

  Family: Arial
  Height: 1.6
  Weight: bold
--8---cut here---end---8---



org-column


--8---cut here---start-8---
Face: org-column (sample) (customize this face)

  Family: DejaVu Sans Mono
  Height: 122
--8---cut here---end---8---

In summary, the problem is -- from my point of view -- that the face
specification (in my color-theme) is not honored:

- org-column is NOT Consolas
- org-column is NOT 80 in height (8pt, if I correctly get that the  
unit is

1/10 of point)



Are you talking about column view in the agenda or in an org file?


Both...

Header line `ITEM | TODO | PRI | TAGS' is much narrower than the  
normal

rows.


well, you org-column face says that it wants to be 122/10 points,  
so that is
already relatively big. It is possible (but I am not sure) that the  
factor
1.8 you have set for level on faces still shines through as well,  
but I

don't think this should be the case.

You need to find out how the 122 gets into the definition for org-  
column.


I have scanned all the potential files for `122' and `DejaVu': my  
`.emacs'
file, and my `color-theme' (published a couple of days ago on this  
same

mailing list). No trace...

I have no idea how that face is selected. For example, the only face  
I'm using
throughout my Emacs daily use, everywhere, is `Consolas'. It's the  
`default',
and the only other families I'm using are `Arial' and `Sans Serif'  
-- though,

for faces that have nothing to do with Org.

I'm clueless.


Me too.  Maybe you need to go to the Emacs forums?

- Carsten


___
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] information in minibuffer quickly dissappear in agenda view

2010-05-11 Thread Jevgeni Holodkov
Hello,

   When I use the org-mode in agenda view, I want to estimate the
tasks so I hit e. The information about estimations appears in the
minibuffer (such as press 0-9.. , etc) and quickly dissappear,
showing me just e- . Probably, this is more emacs question, but how
do I make minibuffer not to clear the information? I'm using emacsw32
and org-mode v 6.35.

With kind regards,
Jevgeni Holodkov

___
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] org-export-as-html: Does not increment index values

2010-05-11 Thread Carsten Dominik

Hi Chandan,

list structure is governed by indentation, so you need to indent the  
source code snippets.


- Carsten

On May 11, 2010, at 7:38 AM, chandan wrote:


Hi all,
  Consider the following org file:

* list
1. First item.
#+BEGIN_SRC txt
Some text.
#+END_SRC
2. Second item.
#+BEGIN_SRC txt
Some more text.
#+END_SRC

Exporting an org file with the above listed contents generates an  
HTML page with non-incrementing indicies for First item and  
Second item. Both have 1 as their indicies.


I am using GNU/Emacs 23.2.

Regards,
chandan r



___
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


- Carsten




___
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] Poll: Who is using these commands

2010-05-11 Thread Andrew Burrow
On Mon, May 10, 2010 at 4:33 PM, Carsten Dominik
carsten.domi...@gmail.comwrote:


 On May 9, 2010, at 12:03 AM, Scott Randby wrote:

  On 05/08/2010 04:22 PM, Friedrich Delgado Friedrichs wrote:

 Hi!
 Carsten Dominik schrieb:

 I am wondering:

 How many of your are using these keys

 C-c C-f
 C-c C-b
 C-c C-n
 C-c C-p


 Never. I always use the speed commands since they became available.


 The problem I have with speed commands is that, according to the manual,
 they only work when the cursor is at the beginning of a headline. I need
 commands that work when the cursor is anywhere on the headline.


 How about if C-M-a went back to the beginning of the heading and then you
 use speed commands?  Would that be an alternative, or is that one command to
 much?

 - Carsten


This makes a great deal of sense to me.

I am frequently frustrated when locating the start or end of a tree: how to
reliably place point so that M-Enter creates a new tree of the desired
level?  I suggest the following postconditions: C-M-a guarantees that speed
keys are applicable, and C-M-e guarantees that M-Enter is applicable.

Andrew
___
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] Poll: Who is using these commands

2010-05-11 Thread Andrew Burrow
On Sat, May 8, 2010 at 7:14 PM, Carsten Dominik
carsten.domi...@gmail.comwrote:

 I am wondering:

 How many of your are using these keys

 C-c C-f
 C-c C-b
 C-c C-n
 C-c C-p

 for navigation through the outline?  These are first class keys,
 and I would have good uses for these keys if most people don't actually use
 them.


I found their action difficult to follow.  Compare C-left.  In most
environments, if the cursor is within a word, it first moves to the start of
the word, and subsequently moves to the preceding word.

C-c C-b breaks this idiom.  I found this so jarring that I gave up using
these keys.

regards

Andrew
___
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] org-export-as-html: Does not increment index values

2010-05-11 Thread chandan

Thanks a lot for the reply.

Carsten Dominik wrote:

Hi Chandan,

list structure is governed by indentation, so you need to indent the 
source code snippets.


- Carsten

On May 11, 2010, at 7:38 AM, chandan wrote:


Hi all,
  Consider the following org file:

* list
1. First item.
#+BEGIN_SRC txt
Some text.
#+END_SRC
2. Second item.
#+BEGIN_SRC txt
Some more text.
#+END_SRC

Exporting an org file with the above listed contents generates an 
HTML page with non-incrementing indicies for First item and Second 
item. Both have 1 as their indicies.


I am using GNU/Emacs 23.2.

Regards,
chandan r



___
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


- Carsten




___
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] Xemacs incompatibilities

2010-05-11 Thread Dr. Volker Zell
Hi

I'm using org-6.35i

1.)

   org-babel-python.el requires

   (require 'python)

whereas Xemacs wants

   (require 'python-mode)

2.)

  (require 'htmlize nil t)
  
should be changed to

  (require 'htmlize)

for Xemacs in org-exp.el


3.)

When editing a src block with C-c ' in a temporary buffer in it's native
mode and then switching back with C-c ' to the original org file, whenever
I try to save a file with C-x C-s (not only the org file) I'll get the message

   This is not a sub-editing buffer, something is wrong...

Any body seeing this ?
   
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] Re: unique id=-values in aggregated html-exported docs

2010-05-11 Thread Christian Egli
Dirk-Jan C. Binnema djcb.b...@gmail.com writes:

 I found a small issue when aggregating multiple org-exported-to-html
 entries into one page. The problem is that some of the html-elements have
 id=... attributes, which are supposed to be unique in a html document;
 however, this fails when aggregating different elements into one.

Can you list which html elements are the problem? 

Does it help if you use the BODY-ONLY option (C-h f org-export-as-html)?

HTH
Christian
-- 
Christian Egli
Swiss Library for the Blind, Visually Impaired and Print Disabled
Grubenstrasse 12, CH-8045 Zürich, Switzerland


___
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] org-babel and Xemacs incompatibilities

2010-05-11 Thread Dr. Volker Zell
Hi

When trying to do Source Code Execution with C-c C-c in Xeamcs with 
org-babel-6.35i
I get:

  args-out-of-range #buffer ora.org 0 0


  
Debugger entered--Lisp error: (args-out-of-range #buffer ora.org 0 0)
  map-extents(#compiled-function (extent ignored) ...(14) [buffer-or-string 
extent end start remove-text-properties extent-property text-prop nil] 6 nil 0 
0 nil nil text-prop)
  set-text-properties(0 0 nil nil)
  org-babel-clean-text-properties(nil)
  org-babel-result-hash((ruby \This file was last evaluated on 
#{Date.today}\\n ((:cache . no) (:comments . ) (:exports . code) 
(:noweb . no) (:results . replace) (:session . none) (:shebang . ) 
(:tangle . )) ))
  (let* ((info ...) (lang ...) (params ...) (new-hash ...) (old-hash ...) (body 
...) (result-params ...) (result-type ...) (cmd ...) (dir ...) 
(default-directory ...) (call-process-region-original ...) result) 
(unwind-protect (flet ... ... ...) (setq call-process-region ...)))
  org-babel-execute-src-block(nil (ruby \This file was last evaluated on 
#{Date.today}\\n ((:cache . no) (:comments . ) (:exports . code) 
(:noweb . no) (:results . replace) (:session . none) (:shebang . ) 
(:tangle . )) ))
  (progn (org-babel-execute-src-block current-prefix-arg info) t)
  (if info (progn (org-babel-execute-src-block current-prefix-arg info) t) nil)
  (let ((info ...)) (if info (progn ... t) nil))
  org-babel-execute-src-block-maybe()
  run-hook-with-args-until-success(org-babel-execute-src-block-maybe)
  (cond ((or ... org-occur-highlights org-latex-fragment-image-overlays) (and 
... ...) (org-remove-occur-highlights) 
(org-remove-latex-fragment-image-overlays) (message Temporary 
highlights/overlays removed from current buffer)) ((and ... ...) (funcall 
org-finish-function)) ((run-hook-with-args-until-success ...)) ((or ... ...) 
(call-interactively ...)) ((org-on-target-p) (call-interactively ...)) ((and 
... ...) (call-interactively ...)) ((org-on-heading-p) (call-interactively 
...)) ((org-at-table\.el-p) (message Use C-c ' to edit table.el tables)) 
((org-at-table-p) (org-table-maybe-eval-formula) (if arg ... ...) 
(call-interactively ...)) ((or ... ...) (call-interactively ...)) 
((org-at-item-checkbox-p) (call-interactively ...)) ((org-at-item-p) (if arg 
... ...)) ((save-excursion ... ...) (beginning-of-line 1) (save-excursion ...)) 
((save-excursion ... ...) (cond ... ...)) ((org-clock-update-time-maybe)) (t 
(error C-c C-c can do nothing useful at this location)))
  (let ((org-enable-table-editor t)) (cond (... ... ... ... ...) (... ...) 
(...) (... ...) (... ...) (... ...) (... ...) (... ...) (... ... ... ...) (... 
...) (... ...) (... ...) (... ... ...) (... ...) (...) (t ...)))
  org-ctrl-c-ctrl-c(nil)
  call-interactively(org-ctrl-c-ctrl-c)


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


Re: [Orgmode] Question: org-remember and level1 target headline

2010-05-11 Thread Martin Pohlack

Let my rephrase the question.

How do I specify the target for a org-remember template such that new 
entries become children of b:


* a
** b
*** new entry

If I specify a/b, a new node named a/b is created

* a
** b
* a/b
** new entry

Cheers,
Martin

___
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: Poll: Who is using these commands

2010-05-11 Thread Matt Lundin
Carsten Dominik carsten.domi...@gmail.com writes:

 How many of your are using these keys

 C-c C-f
 C-c C-b
 C-c C-n
 C-c C-p

 for navigation through the outline?  These are first class keys,
 and I would have good uses for these keys if most people don't
 actually use them.

I use C-c C-n and C-c C-p quite frequently. The others I do not use at
all.

My primary use for C-c C-n and C-c C-p is to move from an entry to a
heading so that I can then use speed keys to climb and descend the
outline. I would not mind if they were rebound.

Best,
Matt

___
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] Modifying the clocktable

2010-05-11 Thread christoph.knieh...@t-online.de
One thing that I repeatedly am wondering about: Is
it possible to modify the clocktable? I would like to NOT include the
file from which the entry is made (i.e. column 1) and possibly change
the layout of the table. I found in the org manual (which is superb)
that some tweaking can be done via TBLMF. This appears to offer great
flexibility if one knows LISP (which I don't), but are there other ways
to modify the clocktable?Best,Christoph



___
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] Bug: Invalid function: ignore-errors [6.36]

2010-05-11 Thread Robert Andersson

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.


After upgrading from orgmode 6.34c to 6.36 I get an error Invalid
function: ignore-errors when toggling checkboxes, and also running

  (org-update-statistics-cookies all)

will not work at all. Downgrading back to 6.34c helps.

yours,
/robert

Emacs  : GNU Emacs 23.1.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54)
 of 2009-08-16 on black.local
Package: Org-mode version 6.36

current state:
==
(setq
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-link-frame-setup '((vm . vm-visit-folder) (gnus . gnus) (file . 
find-file-other-window))
 org-agenda-custom-commands '((i Inbox entries tags CATEGORY=\Stuff\))
 org-agenda-files '(~/gtd/inbox.org ~/gtd/tasks.org ~/gtd/projects.org)
 org-agenda-include-diary t
 org-clock-into-drawer t
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-archive-location archive/%s.old::* Archive
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-tab-first-hook '(org-hide-block-toggle-maybe)
 org-src-mode-hook '(org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-reveal-start-hook '(org-decrypt-entry)
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-include-all-todo t
 org-todo-keywords '(TODO(t!) NEXT(n!) WAITING(w@/!) | CANCELLED(c@) 
DEFERRED(m@) DONE(d!))
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-effort-property effort
 org-directory ~/gtd
 org-tag-alist '((@home . 104) (@office . 111) (@phone . 112) (@cms . 
119) (@computer . 99) (@errands . 101) (@bvc . 98)
 (@ltlunch . 108) (@2020 . 50) (someday . 115) (@emacs 
. 103) (flov . 102))
 org-blank-before-new-entry '((heading) (plain-list-item))
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers 
org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-publish-project-alist '((org-web :base-directory ~/web :base-extension 
org :publishing-directory /Volumes/robert/.www
  :recursive t :publishing-function 
org-publish-org-to-html :headline-levels 4 :auto-preamble t)
 (org-web-static :base-directory ~/web 
:base-extension
  
css\\|js\\|png\\|jpg\\|jpeg\\|gif\\|pdf\\|mp3\\|ogg\\|swf 
:publishing-directory /Volumes/robert/.www
  :recursive t :publishing-function 
org-publish-attachment)
 (web :components (org-web org-web-static)))
 org-export-latex-classes '((article
 
\\documentclass{article}\n\\usepackage[utf8x]{inputenc}\n\\usepackage{graphicx}\n\\usepackage{longtable}\n\\usepackage{hyperref}\n\\usepackage[swedish]{babel}
 (\\section{%s} . \\section*{%s}) 
(\\subsection{%s} . \\subsection*{%s})
 (\\subsubsection{%s} . \\subsubsection*{%s}) 
(\\paragraph{%s} . \\paragraph*{%s})
 (\\subparagraph{%s} . \\subparagraph*{%s}))
)
 org-export-preprocess-before-normalizing-links-hook 
'(org-remove-file-link-modifiers)
 org-mode-hook '(#[nil \300\301\302\303\304$\207 [add-hook before-save-hook 
org-encrypt-entries nil t] 5]
 #[nil \300\301\302\303\304$\207 [org-add-hook 
change-major-mode-hook org-show-block-all append local] 5]
 (lambda nil (auto-fill-mode 1) (local-set-key (kbd C-c t) 
(quote org-todo))
  (local-set-key (kbd C-c e) (quote org-set-effort)) 
(local-set-key (kbd C-c i) (quote ra/gtd-inbox))
  (local-set-key (kbd C-c C-r) (quote org-decrypt-entry)))
 )
 org-global-properties '((effort_ALL . 0:10 0:30 1:00 2:00 3:00 4:00 5:00 
6:00 8:00))
 org-refile-targets '((someday.org :level . 1) (inbox.org :level . 1) 
(tasks.org :level . 1) (projects.org :maxlevel . 2))
 org-confirm-elisp-link-function 'yes-or-no-p
 org-log-into-drawer LOGBOOK
 org-agenda-mode-hook '(hl-line-mode)
 org-link-mailto-program '(vm-mail %a %s)
 org-crypt-key 93A4BE9DEAB7218E
 org-occur-hook '(org-first-headline-recenter)
 org-export-preprocess-before-selecting-backend-code-hook 
'(org-beamer-select-beamer-code)
 org-tags-column -90
 org-modules '(org-bbdb org-bibtex org-vm org-crypt)
 org-columns-default-format %60ITEM %TODO %TAGS %6effort(EFFORT){:}
 org-remember-templates '((Task 121
   * TODO %^{description} %^g%^{effort}p\n  
:LOGBOOK:\n  - State \TODO\   from \\   %U\n  :END:\n\n  %?%i 
\n  :%a: inbox.org Inbox)
 

Re: [Orgmode] Bug: Invalid function: ignore-errors [6.36]

2010-05-11 Thread Robert Andersson
Hi,

 RA == Robert Andersson robert.anders...@gu.se writes:

RA After upgrading from orgmode 6.34c to 6.36 I get an error Invalid
RA function: ignore-errors when toggling checkboxes, and also running

RA   (org-update-statistics-cookies all)

RA will not work at all. Downgrading back to 6.34c helps.

I also just now installed version 6.35, which also gave me the same
errors stated above when working with checkboxes. A clean build of
6.34c does not produce these errors... Hope this helps.

yours,
/robert

-- 
ROBERT ANDERSSON, Systems Engineer
Swedish National Graduate School of Language Technology
Department of Philosophy, Linguistics, and Theory of Science
UNIVERSITY OF GOTHENBURG
Phone +46 (0)31 786 5915 | Mobile +46 (0)733 339699

___
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: Bug: Invalid function: ignore-errors [6.36]

2010-05-11 Thread Adam Elliott
Robert Andersson robert.andersson at gu.se writes:

 RA After upgrading from orgmode 6.34c to 6.36 I get an error Invalid
 RA function: ignore-errors when toggling checkboxes, and also running
 
 RA   (org-update-statistics-cookies all)
 
 RA will not work at all. Downgrading back to 6.34c helps.
 
 I also just now installed version 6.35, which also gave me the same
 errors stated above when working with checkboxes. A clean build of
 6.34c does not produce these errors... Hope this helps.

Problem exists in some 6.35 versions as well.  Looks like org-list.el uses
`ignore-errors' macro defined in cl-macs.el.  Adding following line near top of
org-list.el file fixes problem for me:

(require 'cl)

Does not appear that cl-macs can be required separately.

Adam


___
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: unique id=-values in aggregated html-exported docs

2010-05-11 Thread Dirk-Jan C . Binnema
Hi,

 On Tue, 11 May 2010 11:07:15 +0200, Christian Egli (CE) wrote:

  CE Dirk-Jan C. Binnema djcb.b...@gmail.com writes:
   I found a small issue when aggregating multiple org-exported-to-html
   entries into one page. The problem is that some of the html-elements have
   id=... attributes, which are supposed to be unique in a html document;
   however, this fails when aggregating different elements into one.

  CE Can you list which html elements are the problem? 
  CE Does it help if you use the BODY-ONLY option (C-h f org-export-as-html)?

Actually, that's what I'm doing already (through org-publish). The final
(aggegated) result is at:
http://www.djcbsoftware.nl/changelog/index.html 
I got warned by tidy. I think it wouldn't be too hard easy to fix this by
adding a per-document random cookie to these ids.

BTW, tidy also warned me about missing summary= attributes for tables; is
there some way to add those?

Best wishes,
Dirk.

-- 
Dirk-Jan C. Binnema  Helsinki, Finland
e:d...@djcbsoftware.nl   w:www.djcbsoftware.nl
pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C

___
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: Bug: Invalid function: ignore-errors [6.36]

2010-05-11 Thread Magnus Henoch
Adam Elliott a...@mbl.ca writes:

 Problem exists in some 6.35 versions as well.  Looks like org-list.el uses
 `ignore-errors' macro defined in cl-macs.el.  Adding following line near top 
 of
 org-list.el file fixes problem for me:

 (require 'cl)

 Does not appear that cl-macs can be required separately.

The canonical way to require cl only for macros is:
(eval-when-compile (require 'cl))
See (info (elisp)Coding Conventions).

-- 
Magnus Henoch


___
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: unique id=-values in aggregated html-exported docs

2010-05-11 Thread Sebastian Rose
Dirk-Jan C. Binnema djcb.b...@gmail.com writes:
 Hi,

 On Tue, 11 May 2010 11:07:15 +0200, Christian Egli (CE) wrote:

   CE Dirk-Jan C. Binnema djcb.b...@gmail.com writes:
I found a small issue when aggregating multiple org-exported-to-html
entries into one page. The problem is that some of the html-elements have
id=... attributes, which are supposed to be unique in a html document;
however, this fails when aggregating different elements into one.

   CE Can you list which html elements are the problem? 
   CE Does it help if you use the BODY-ONLY option (C-h f org-export-as-html)?

 Actually, that's what I'm doing already (through org-publish). The final
 (aggegated) result is at:
 http://www.djcbsoftware.nl/changelog/index.html 
 I got warned by tidy. I think it wouldn't be too hard easy to fix this by
 adding a per-document random cookie to these ids.

Can you verify, that those are clashing IDs?

I get an error from PHP's DOMDocument, that an ID is already
defined. But it is not.  There's still that old compatibility `name'
attribute left with the same value as the ID attribute. That's all.


I would through out.
The decision to keep it is two years old. And it was point of discussion
even by then.


 BTW, tidy also warned me about missing summary= attributes for tables; is
 there some way to add those?

Yes, summary is required. We all forgot to add it. It's meant to take a
description of the table's content and some browsers use it for
accessability purposes (I guess the summary is read aloud then).

A quick fix would be to just add `summary=' to the table definition:

   table summary= ...



Tehom, how far is the HTML-exporter-overhaul?


  Sebastian

___
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: Wow -- adding images to an org file

2010-05-11 Thread Russell Adams
On Sat, May 08, 2010 at 12:51:41PM +0200, Carsten Dominik wrote:
 We have now native inline image display in Org-mode, you can toggle it  
 with

 C-c C-x C-v

 This implementation uses overlays instead of text properties and  
 therefore does not interfere with font-lock.

 - Carsten

I'm using Org-Babel and R, and when I use C-c C-c to update the output
from a block of code, the image in emacs doesn't change.

Ideas? v6.36

Thanks.

--
Russell Adamsrlad...@adamsinfoserv.com

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

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

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


Re: [Orgmode] remote reference

2010-05-11 Thread Karl Eichwalder
Carsten Dominik carsten.domi...@gmail.com writes:

 For tables in a different file, the remote table must be the first
 table in an outline node, and the outline node must have an ID
 property.

 First configure org-modules and turn on the id module.
 Then prepare your target file like this

 * here is my table
   :PROPERTIES:
   :ID: DDE64190-0C3D-4088-A303-DA3B60ECEB48
   :END:

and here we have the table.

|...|...|...|


 The ID can be an arbitrary string, but then you must
 make sure yourself that it is globally unique.  Or you
 can have Org-mode make the ID for you.

This way it works nicely, thanks for the example.  Something related:

C-c C-c in a TBLFM with a remote table reference updates the table as
expected, but also jumps to the referenced table in the remote file.  Is
this intended?  If yes, is it possible to avoid it?

-- 
Karl Eichwalder

___
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] VISIBILITY:folded hides all empty lines after heading if org-cycle-separator-lines is set to negative

2010-05-11 Thread Tom
Here is an org file:

 file begin -
* test1
:PROPERTIES:
:VISIBILITY: folded
:END:
** test2




* test3

 file end -

org-cycle-separator-lines is set to -2, so org should hide one empty
line after the heading when it's folded and leave the others there.

If I fold the test1 tree with TAB then it collapses only one empty 
line after test2 and leaves the other empty lines, so this is correct.

If I add VISIBILITY:folded to the test1 tree then and reopen the file
all the empty lines are hidden after test2 regardless of how many there are.
If I then unfold and then fold the test1 tree manually with TAB it 
works correctly.

So it looks like VISIBILTY:folded doesn't take the negative value of
org-cycle-separator-lines into account.

Org-mode version 6.33x



___
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: unique id=-values in aggregated html-exported docs

2010-05-11 Thread Dirk-Jan C . Binnema
 On Tue, 11 May 2010 21:11:04 +0200, Sebastian Rose (SR) wrote:

  SR Dirk-Jan C. Binnema djcb.b...@gmail.com writes:
   Hi,
   
   On Tue, 11 May 2010 11:07:15 +0200, Christian Egli (CE) wrote:
   
  CE Dirk-Jan C. Binnema djcb.b...@gmail.com writes:
I found a small issue when aggregating multiple org-exported-to-html
entries into one page. The problem is that some of the html-elements 
have
id=... attributes, which are supposed to be unique in a html document;
however, this fails when aggregating different elements into one.
   
  CE Can you list which html elements are the problem? 
  CE Does it help if you use the BODY-ONLY option (C-h f org-export-as-html)?
   
   Actually, that's what I'm doing already (through org-publish). The final
   (aggegated) result is at:
   http://www.djcbsoftware.nl/changelog/index.html 
   I got warned by tidy. I think it wouldn't be too hard easy to fix this by
   adding a per-document random cookie to these ids.

  SR Can you verify, that those are clashing IDs?

Sure:

--8---cut here---start-8--
  % cat index.html | grep id=
[]
  
   div id=outline-container-1 class=outline-3
h3 id=sec-1
div class=outline-text-3 id=text-1
  div id=outline-container-1 class=outline-3
h3 id=sec-1
div class=outline-text-3 id=text-1
  div id=outline-container-2 class=outline-3
h3 id=sec-2
div class=outline-text-3 id=text-2
  div id=outline-container-1 class=outline-3
h3 id=sec-1
div class=outline-text-3 id=text-1
  div id=outline-container-2 class=outline-3
[...]
--8---cut here---end---8---

So, the issue is with aggregating separate exported html blobs into one page;
of course org-mode has no real control over the uniqueness of the ids then.

My idea would be that we could add some per-exported org-file cookie, so the
ids could be something like:

   id=text-456EF-1
   
Then we shouldn't get these clashes when aggregating them later. It's a bit of
a small imperfection, except when you want to do something with those ids.

There is a somewhat related issue with footnotes (id=footnotes and
href=#fnr.1), that could be a practical problem, i.e.. you might jump to the
wrong footnote.

   BTW, tidy also warned me about missing summary= attributes for tables; is
   there some way to add those?

  SR Yes, summary is required. We all forgot to add it. It's meant to take a
  SR description of the table's content and some browsers use it for
  SR accessability purposes (I guess the summary is read aloud then).

  SR A quick fix would be to just add `summary=' to the table definition:

  SRtable summary= ...

Well, it's easy to shut up the html-validators (like tidy), but for true
accessibility it'd be nice to set the summary to something meaningful (same
for the alt= attribute of images). Not sure if that is a priority right now,
and I guess it might add some complexity.

Anyway, these are all fairly minor points (for me at least, I don't use the
a11y stuff -- in general I'd like to applaud the excellent work that has been
done in the html-export area, which I enjoy every day.

Best wishes,
Dirk.

[1] http://tidy.sourceforge.net/


-- 
Dirk-Jan C. Binnema  Helsinki, Finland
e:d...@djcbsoftware.nl   w:www.djcbsoftware.nl
pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C

___
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: VISIBILITY:folded hides all empty lines after heading if org-cycle-separator-lines is set to negative

2010-05-11 Thread Tom
Tom levelhalom at gmail.com writes:

 Org-mode version 6.33x
 

I just realized it's not the latest version, because emacs 23.2 preloads
its own org for some reason, before I could set the load path and I
don't yet know how to prevent it and use the latest org.

But I have a feeling this bug is present in the latest version too.



___
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] Displaying day-resources (or a secondary time-line)

2010-05-11 Thread Sven Bretfeld
Hi to all

I don't want to reinforce my request. I'd just be interested if I
asked something which I could have found out myself. Is there already a
solution that escaped my reading?

Greetings,

Sven

Sven Bretfeld sven.bretf...@gmx.ch writes:

 Hi all

 I'm looking for a way to display dates in the Agenda View which are
 not appointments but, in GTD-speak, belong to the availability of
 resources.

 That's a little too abstract. A concrete example. Say, your secretary is
 on duty only Mondays and Wednesdays from 8:00 to 12:00 and Fridays from
 8:00 to 10:00. This is a resource that enables or disables you to do
 certain things. So you want to see these dates in your Day Agenda View,
 but not mixed with your own appointments. You'd rather have this
 information at the end of the Day Agenda, maybe in a different color
 and/or separated by a line, like this:

 Montag 10 Mai 2010 W19
   Office:  10:00-12:00 Meeting with the Boss
   Lunch:   12:00-13:00 Meet Jens in the Pub
   Teaching:14:00-16:00 Lecture
   Project_X:   16:00-18:00 Preparation Meeting
   Leisure: 20:15   Cinema
   - /from here in a different color/
   Office:  8:00-12:00  Secretary is present
   Family:  14:00-20:00 Mary will not be at home
   On_Holiday:  Ina

 The last entry, which says that Ina is on holiday today, can principally
 be solved as:

 ** Holidays
:PROPERTIES:
:CATEGORY: On_Holiday
:END:
 %%(diary-block 05 05 2010 14 05 2010) Ina

 But the other entries can not be done like this, I guess. These contain
 certain times of the day, and the first one (secretary) is thought to be
 a _repeating_ date.

 How is that possible with Orgmode? Any ideas?

 Thanks,

 Sven


 ___
 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




-- 
Mit freundlichen Grüßen

Sven Bretfeld

___
Prof. Dr. Sven Bretfeld
  \ CEntrum für
CERES  \ REligionswissenschaftliche
\_Studien__
Ruhr-Universität Bochum
Universitätsstraße 150
D-44780 Bochum
http://www.ruhr-uni-bochum.de/ceres/de/organisation/beteiligte/sven_bretfeld.html

___
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: Wow -- adding images to an org file

2010-05-11 Thread Dan Davison
Russell Adams rlad...@adamsinfoserv.com writes:

 On Sat, May 08, 2010 at 12:51:41PM +0200, Carsten Dominik wrote:
 We have now native inline image display in Org-mode, you can toggle it  
 with

 C-c C-x C-v

 This implementation uses overlays instead of text properties and  
 therefore does not interfere with font-lock.

 - Carsten

 I'm using Org-Babel and R, and when I use C-c C-c to update the output
 from a block of code, the image in emacs doesn't change.

 Ideas? v6.36

Hi Russell,

I struggled with this when images were text properties, i.e. before
Carsten's implementation using overlays (thanks for C-c C-x C-v
Carsten!)

I think the answer may be clear-image-cache. I just tried that and C-c
C-x C-v showed the new image afterwards. I'm not sure whether the
following is acceptable in terms of emacs ecology, but it seems to do
the trick:

--8---cut here---start-8---
diff --git a/lisp/org.el b/lisp/org.el
index c52aeb0..85f1219 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -15507,6 +15507,7 @@ with a description part will be inlined.
   Remove inline display of images.
   (interactive)
   (mapc 'delete-overlay org-inline-image-overlays)
+  (clear-image-cache)
   (setq org-inline-image-overlays nil))
--8---cut here---end---8---

Note also that we can make image display happen automatically after
executing a babel block:

(add-hook 'org-babel-after-execute-hook 'org-display-inline-images)

In fact that was what I had in mind when adding that hook; it was just
waiting for Carsten's function. So in my mind this gets us some of the
way towards org-babel as an interactive notebook, as discussed in
another recent thread.

Dan

p.s. For what its worth, here is the code I was using to make images
appear using text properties and Org font lock. I was intending to post
this when I was happy with the image refresh stuff, but it is probably
redundant in light of the new functions using overlays. A certain amount
of messing about with image redisplay and cache functions is evident.

--8---cut here---start-8---
(defun dan/org-fontify-image-links (limit)
  Display links to images as images.
If the description part of the link is empty display the image,
otherwise do nothing. This function is intended to be called
during font-lock fontification.
  (let ((case-fold-search t) file image)
(and dan/org-display-inline-images
 (re-search-forward
  (concat \\[\\[file:\\( iimage-mode-image-filename-regex 
\\)\\]\\]) limit t)
 (setq file (match-string 1))
 (setq file (iimage-locate-file file (list default-directory)))
 (setq image (create-image file))
 (add-text-properties (match-beginning 0) (match-end 0) (list 'display 
image))
 ;; (clear-image-cache)
 (image-refresh image)
 ;; (redisplay)
 ;; (redraw-frame)
 ;; (redraw-display)
 ;; (image-refresh image)
 )))

(setq dan/org-display-inline-images t)
(add-hook 'org-font-lock-hook 'dan/org-fontify-image-links)
--8---cut here---end---8---




 Thanks.

 --
 Russell Adamsrlad...@adamsinfoserv.com

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

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

 ___
 Emacs-orgmode mailing list
 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] Newbie: Custom link type formatting in LaTeX export?

2010-05-11 Thread Christian Moe

Hi,

(I'm new to the list; have been an enthusiastic Org user for a year and
half; now using version 6.36; am an Elisp novice.)

It looks like support for formatting custom link types in LaTeX export
is broken?

I was trying to implement a custom link type with its own formatting
function for HTML and LaTeX export, following the steps in
org-bbdb.el.

I've found that org-bbdb-export does not italicize bbdb links in
LaTeX, nor does my own org-cite-export turn my custom =cite:= links
into LaTeX =\cite{}= citations. Everything works fine in HTML export,
but in LaTeX all custom link types get formatted as =\texttt{descr}=.

I see that org-export-as-html and org-export-as-docbook look up
org-link-protocols to get the function for formatting the link, but it
seems that org-export-as-latex doesn't.

Yours,
Christian Moe



___
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[2]: [Orgmode] Literate programming

2010-05-11 Thread Ivanov Dmitry
 What is this tree buffer you speak of?

The tree buffer is a library from CEDET project, widely used in ECB. Look at 
this screenshot, and you'll see tree buffers at the top of the frame:

http://ecb.sourceforge.net/screenshots/12.png


 Are you telling me that I can already use Org to view the outline
 Leo-style, with the outline structure (folded to the content startup
 visibility) in one window and an indirect buffer narrowed to the body
 text of the current headline in a second window?

I did it with org-babel. Install it, using this manual:

http://orgmode.org/worg/org-contrib/babel/intro.php

then you can try treir sample, that I rewrote in Perl:

* Prefix

Here we have the code, that is output in the beginning of the file

#+srcname: hello-world-prefix
#+begin_src perl
print /---\\\n;
#+end_src

* Postfix

This code will be used at the end of the file.

#+srcname: hello-world-postfix
#+begin_src perl
  print \---/;
#+end_src

* File body

This is the main code of the file.

#+srcname: hello-world
#+begin_src perl :tangle hello.pl
  hello-world-prefix
  print |   hello world |\n;
  hello-world-postfix
#+end_src

-end sample-
You can edit the code in an indirect buffer, using C-c '. Tangle it with 
(org-babel-tangle).



 That would be wonderful! (If not, I would definitely be interested in
 creating such a feature, but I have no idea where to start.)

The first step will be understanding, how does the CEDET library tree-buffer.el 
work.


___
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] Displaying day-resources (or a secondary time-line)

2010-05-11 Thread Daniel Martins
Sven,

I cannot help but I reinforce the need of something as proposed by you.

I really miss these secondary apointments and tried to find something
similar a couple of months ago. Unfortunately, I gave up.

Maybe they should appear as an option overlapping our appts or not.

These secondary agendas include third parties agendas and they are not so
easy to add.

Using tags is easy to remove them in a specific agenda view BUT the default
agenda becomes quite messy.

Maybe we could add different files to each agenda : secretary.org,
Friend1.org Boss.org Wife.org etc but we need a practical way to add or
remove them or select just one or a couple of them to show intersections.

Google Calendar could be an inspiration of what I meant.

Daniel

2010/5/11 Sven Bretfeld sven.bretf...@gmx.ch

 Hi to all

 I don't want to reinforce my request. I'd just be interested if I
 asked something which I could have found out myself. Is there already a
 solution that escaped my reading?

 Greetings,

 Sven

 Sven Bretfeld sven.bretf...@gmx.ch writes:

  Hi all
 
  I'm looking for a way to display dates in the Agenda View which are
  not appointments but, in GTD-speak, belong to the availability of
  resources.
 
  That's a little too abstract. A concrete example. Say, your secretary is
  on duty only Mondays and Wednesdays from 8:00 to 12:00 and Fridays from
  8:00 to 10:00. This is a resource that enables or disables you to do
  certain things. So you want to see these dates in your Day Agenda View,
  but not mixed with your own appointments. You'd rather have this
  information at the end of the Day Agenda, maybe in a different color
  and/or separated by a line, like this:
 
  Montag 10 Mai 2010 W19
Office:  10:00-12:00 Meeting with the Boss
Lunch:   12:00-13:00 Meet Jens in the Pub
Teaching:14:00-16:00 Lecture
Project_X:   16:00-18:00 Preparation Meeting
Leisure: 20:15   Cinema
- /from here in a different color/
Office:  8:00-12:00  Secretary is present
Family:  14:00-20:00 Mary will not be at home
On_Holiday:  Ina
 
  The last entry, which says that Ina is on holiday today, can principally
  be solved as:
 
  ** Holidays
 :PROPERTIES:
 :CATEGORY: On_Holiday
 :END:
  %%(diary-block 05 05 2010 14 05 2010) Ina
 
  But the other entries can not be done like this, I guess. These contain
  certain times of the day, and the first one (secretary) is thought to be
  a _repeating_ date.
 
  How is that possible with Orgmode? Any ideas?
 
  Thanks,
 
  Sven
 
 
  ___
  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
 



 --
 Mit freundlichen Grüßen

 Sven Bretfeld

 ___
 Prof. Dr. Sven Bretfeld
  \ CEntrum für
 CERES  \ REligionswissenschaftliche
 \_Studien__
 Ruhr-Universität Bochum
 Universitätsstraße 150
 D-44780 Bochum

 http://www.ruhr-uni-bochum.de/ceres/de/organisation/beteiligte/sven_bretfeld.html

 ___
 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


Re: [Orgmode] Re: Wow -- adding images to an org file

2010-05-11 Thread ro...@iinet.net.au

 
I very much like the idea of native inline image display in Org-mode but can't seem to make it work.

Given a 6.36 snapshot or 6.36 release and these org file contents

* Test image
Test image
[[Screenshot.png]]


I hoped org would display that image after C-c C-x C-v. Rather Org-mode returns "No images to display inline".

I've tried different ways of linking that image, different image formats, relative vs complete paths, and my regular .emacs vs a near empty one and always the same result. If I toggle iimage-mode the image displays fine per se but does not affect how Org-mode works.

Seems clear I am missing something simple. What?


Cheers,

Robert Cunningham

 

On Tue May 11 17:29 , Dan Davison  sent:

Russell Adams rlad...@adamsinfoserv.com writes:

 On Sat, May 08, 2010 at 12:51:41PM +0200, Carsten Dominik wrote:
 We have now native inline image display in Org-mode, you can toggle it  
 with

 C-c C-x C-v

 This implementation uses overlays instead of text properties and  
 therefore does not interfere with font-lock.

 - Carsten

 I'm using Org-Babel and R, and when I use C-c C-c to update the output
 from a block of code, the image in emacs doesn't change.

 Ideas? v6.36

Hi Russell,

I struggled with this when images were text properties, i.e. before
Carsten's implementation using overlays (thanks for C-c C-x C-v
Carsten!)

I think the answer may be clear-image-cache. I just tried that and C-c
C-x C-v showed the new image afterwards. I'm not sure whether the
following is acceptable in terms of emacs ecology, but it seems to do
the trick:

--8---cut here---start->8---
diff --git a/lisp/org.el b/lisp/org.el
index c52aeb0..85f1219 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -15507,6 +15507,7 @@ with a description part will be inlined."
   "Remove inline display of images."
   (interactive)
   (mapc 'delete-overlay org-inline-image-overlays)
+  (clear-image-cache)
   (setq org-inline-image-overlays nil))
--8---cut here---end--->8---

Note also that we can make image display happen automatically after
executing a babel block:

(add-hook 'org-babel-after-execute-hook 'org-display-inline-images)

In fact that was what I had in mind when adding that hook; it was just
waiting for Carsten's function. So in my mind this gets us some of the
way towards org-babel as an "interactive notebook", as discussed in
another recent thread.

Dan

p.s. For what its worth, here is the code I was using to make images
appear using text properties and Org font lock. I was intending to post
this when I was happy with the image refresh stuff, but it is probably
redundant in light of the new functions using overlays. A certain amount
of messing about with image redisplay and cache functions is evident.

--8---cut here---start->8---
(defun dan/org-fontify-image-links (limit)
  "Display links to images as images.
If the description part of the link is empty display the image,
otherwise do nothing. This function is intended to be called
during font-lock fontification."
  (let ((case-fold-search t) file image)
(and dan/org-display-inline-images
 (re-search-forward
  (concat "\\[\\[file:\\(" iimage-mode-image-filename-regex "\\)\\]\\]") limit t)
 (setq file (match-string 1))
 (setq file (iimage-locate-file file (list default-directory)))
 (setq image (create-image file))
 (add-text-properties (match-beginning 0) (match-end 0) (list 'display image))
 ;; (clear-image-cache)
 (image-refresh image)
 ;; (redisplay)
 ;; (redraw-frame)
 ;; (redraw-display)
 ;; (image-refresh image)
 )))

(setq dan/org-display-inline-images t)
(add-hook 'org-font-lock-hook 'dan/org-fontify-image-links)
--8---cut here---end--->8---




 Thanks.

 --
 Russell Adamsrlad...@adamsinfoserv.com

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

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

 ___
 Emacs-orgmode mailing list
 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
)


___
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] Poll: Who is using these commands

2010-05-11 Thread Scott Randby

On 05/10/2010 02:33 AM, Carsten Dominik wrote:


On May 9, 2010, at 12:03 AM, Scott Randby wrote:


On 05/08/2010 04:22 PM, Friedrich Delgado Friedrichs wrote:

Hi!
Carsten Dominik schrieb:

I am wondering:

How many of your are using these keys

C-c C-f
C-c C-b
C-c C-n
C-c C-p


Never. I always use the speed commands since they became available.


The problem I have with speed commands is that, according to the
manual, they only work when the cursor is at the beginning of a
headline. I need commands that work when the cursor is anywhere on
the headline.


How about if C-M-a went back to the beginning of the heading and then
you use speed commands? Would that be an alternative, or is that one
command to much?


I don't understand why C-M-a should be bound to take one back to the beginning 
of a heading when C-a already does this. With the proposed changes, one might 
press C-M-a and then C-M-p which is a total of 4 keys, when the current set-up 
is to press C-c C-p which is only 3 keys.  I'm not in favor of increasing the 
number of keys one needs to press to perform a basic motion.

Scott



- Carsten



Scott Randby




for navigation through the outline? These are first class keys,
and I would have good uses for these keys if most people don't
actually use them.

Another question:

C-c C-v currently make the TODO sparse tree.


I use that one quite often. If you decided to use it for something
else, I would override it in my config.





___
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


- Carsten







___
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] Poll: Who is using these commands

2010-05-11 Thread Eric Schulte
Scott Randby sran...@gmail.com writes:

[...]

 I don't understand why C-M-a should be bound to take one back to the
 beginning of a heading when C-a already does this. With the proposed
 changes, one might press C-M-a and then C-M-p which is a total of 4
 keys, when the current set-up is to press C-c C-p which is only 3
 keys.  I'm not in favor of increasing the number of keys one needs to
 press to perform a basic motion.


I haven't been following this thread so take this with a grain of salt,
but I count key-chords as single keys -- since they can all be pressed
in a single motion, which would mean

| C-M-a   | 1 key press   |
| C-c C-a | 2 key presses |

but maybe my hands are just too accustomed to typing in Emacs and it's
skewing my perception.

Best -- Eric
___
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] Poll: Who is using these commands

2010-05-11 Thread Livin Stephen Sharma
On 12 May 2010 06:48, Eric Schulte schulte.e...@gmail.com wrote:

 Scott Randby sran...@gmail.com writes:

 [...]
 
  I don't understand why C-M-a should be bound to take one back to the
  beginning of a heading when C-a already does this. With the proposed
  changes, one might press C-M-a and then C-M-p which is a total of 4
  keys, when the current set-up is to press C-c C-p which is only 3
  keys.  I'm not in favor of increasing the number of keys one needs to
  press to perform a basic motion.
 


 I haven't been following this thread so take this with a grain of salt, but
 I count key-chords as single keys – since they can all be pressed in a
 single motion,

I agree that chording makes for single commands.


Scott,
Also,
the C-M-a to go back to beginning of heading works when one is somewhere
'under' the heading: in the 'content'/text in that section... so I think it
is different from C-a (did I understand you right?).
:)

Scott, you had said

 I'm not in favor of increasing the number of keys one needs to press to
 perform a basic motion.


I too hope there is a 'good' resolution to this.

FWIW, I have already followed the example of other responders and bound
C-M-... to work like the C-c C-... equivalents -- I find this change to be
an improvement over C-c C-... :
 the trivial loss being that C-M-.. no longer works for parentheses-based
movement in org buffers.



  which would mean
C-M-a1 key press C-c C-a2 key presses

 but maybe my hands are just too accustomed to typing in Emacs and it's
 skewing my perception.

 Best – Eric

 ___
 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] org -- wiki ?

2010-05-11 Thread Matt Price
hi,

I see from the archives that the topic of two-way org -- wiki
export/import has been raised before .  Is anyone doing anything of
this nature, or alternatively, does anyone even have a straightforward
workflow for org -- wiki exports?  I have to start at least one,
maybe an umber of wikis on a small server, and would probably choose
the wiki software based on org compatibility.  The only caveat is that
none of hte other users would likely be emacs or org users, so there'd
have to be some user-friendliness to the web-based editing interface.

thanks as always!

matt

___
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] [PATCH] Re: Wow -- adding images to an org file

2010-05-11 Thread Baoqiu Cui
ro...@iinet.net.au ro...@iinet.net.au writes:

 I very much like the idea of native inline image display in Org-mode but  
 can't
 seem to make it work.

 Given a 6.36 snapshot or 6.36 release and these org file contents

 * Test image
 Test image
 [[Screenshot.png]]


 I hoped org would display that image after C-c C-x C-v. Rather Org-mode 
 returns
 No images to display inline.

 I've tried different ways of linking that image, different image formats,
 relative vs complete paths, and my regular .emacs vs  a near empty one and
 always the same result. If I toggle iimage-mode the image displays fine per se
 but does not affect how Org-mode works.

 Seems clear I am missing something simple. What?

I like the idea of inline image display too, but hit the similar
problems.  After reading the code in org.el, I found that the inline
image file link has to start with either file: or ./.

For example, the following two links are OK:

   [[file:~/images/myImage.png]]
   [[./figures/org-mode-unicorn.svg]]

but the following two are not:

   [[Screenshot.png]]
   [[~/images/myImage.png]]

Here is a small patch that seems to work well for me, but I'd like
Carsten to check whether it may break anything:

diff --git a/lisp/org.el b/lisp/org.el
index 0381a26..5efc162 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -15502,7 +15502,7 @@ with a description part will be inlined.
   (interactive P)
   (org-remove-inline-images)
   (goto-char (point-min))
-  (let ((re (concat \\[\\[\\(file:\\|\\./\\)\\(~? [-+./_0-9a-zA-Z]+
+  (let ((re (concat \\[\\[\\(file:\\)?\\(~? [-+./_0-9a-zA-Z]+
 		(substring (org-image-file-name-regexp) 0 -2)
 		\\)\\] (if include-linked  \\])))
 	file ov)

Regards,

-- 
Baoqiu
___
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: Wow -- adding images to an org file

2010-05-11 Thread Baoqiu Cui
ro...@iinet.net.au ro...@iinet.net.au writes:

 I very much like the idea of native inline image display in Org-mode but  
 can't
 seem to make it work.

 Given a 6.36 snapshot or 6.36 release and these org file contents

 * Test image
 Test image
 [[Screenshot.png]]


 I hoped org would display that image after C-c C-x C-v. Rather Org-mode 
 returns
 No images to display inline.

 I've tried different ways of linking that image, different image formats,
 relative vs complete paths, and my regular .emacs vs  a near empty one and
 always the same result. If I toggle iimage-mode the image displays fine per se
 but does not affect how Org-mode works.

 Seems clear I am missing something simple. What?

I like the idea of inline image display too, but hit the similar
problems.  After reading the code in org.el, I found that the inline
image file link has to start with either file: or ./.

For example, the following two links are OK:

   [[file:~/images/myImage.png]]
   [[./figures/org-mode-unicorn.svg]]

but the following two are not:

   [[Screenshot.png]]
   [[~/images/myImage.png]]

Here is a small patch that seems to work well for me, but I'd like
Carsten to check whether it may break anything:

diff --git a/lisp/org.el b/lisp/org.el
index 0381a26..5efc162 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -15502,7 +15502,7 @@ with a description part will be inlined.
   (interactive P)
   (org-remove-inline-images)
   (goto-char (point-min))
-  (let ((re (concat \\[\\[\\(file:\\|\\./\\)\\(~? [-+./_0-9a-zA-Z]+
+  (let ((re (concat \\[\\[\\(file:\\)?\\(~? [-+./_0-9a-zA-Z]+
 		(substring (org-image-file-name-regexp) 0 -2)
 		\\)\\] (if include-linked  \\])))
 	file ov)

Regards,

-- 
Baoqiu
___
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