Re: [Orgmode] Re: Displaying your Org agenda after idle time

2010-03-23 Thread Carsten Dominik


On Mar 23, 2010, at 6:15 AM, Alan E. Davis wrote:


I like this also.  It would be fantastic if the agenda were displayed,
as it is now, while a simple keystroke would return one to the point
he was at when the function was called.   I might one day have time to
try to figure out how to do this, not saying I would be able to do so
easily.


Basically:

Use a variable to store the (current-window-configuration) and then  
have a
separate function restoring that configuration using set-window- 
configuration.


- Carsten



Alan Davis

On Sun, Mar 21, 2010 at 9:45 PM, Ross A. Laird r...@rosslaird.com  
wrote:

John Wiegley jwieg...@gmail.com writes:


I have the following snippet in my .emacs file, which I find very
useful. Basically what it does is that if I don't touch my Emacs  
for 5

minutes, it displays the current agenda. This keeps my tasks always
in mind whenever I come back to Emacs after doing something else,
whereas before I had a tendency to forget that it was there.

John

(defun jump-to-org-agenda ()
  (interactive)
  (let ((buf (get-buffer *Org Agenda*))
  wind)
(if buf
  (if (setq wind (get-buffer-window buf))
  (select-window wind)
(if (called-interactively-p)
(progn
  (select-window (display-buffer buf t t))
  (org-fit-window-to-buffer)
  ;; (org-agenda-redo)
  )
  (with-selected-window (display-buffer buf)
(org-fit-window-to-buffer)
;; (org-agenda-redo)
)))
  (call-interactively 'org-agenda-list)))
  ;;(let ((buf (get-buffer *Calendar*)))
  ;;  (unless (get-buffer-window buf)
  ;;(org-agenda-goto-calendar)))
  )

(run-with-idle-timer 300 t 'jump-to-org-agenda)



This is fantastically useful.
Thanks very much!

Ross

--
Ross A. Laird, PhD
www.rosslaird.com



___
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


- 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] Bug: Meta-return on an empty headline breaks the headline instead of leaving it empty

2010-03-23 Thread Carsten Dominik

Fixed, thanks.

- Carsten

On Mar 23, 2010, at 6:13 AM, Ryan Thompson wrote:


I have found a bug. When the point is at the end of an empty headline
and you press M-RET (or C-RET) to make a new headline, it deletes all
the whitespace at the end of the empty headline first, which causes
the headline to break. I'm not sure if the correct behavior is to
leave an empty headline, or maybe just do nothing and leave the point
at the end of the empty headline without creating a new one, but the
correct thing is definitely *not* to break the headline.


___
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] bug exporting code blocks to html

2010-03-23 Thread Carsten Dominik


On Mar 22, 2010, at 7:40 PM, Eric Schulte wrote:


Hi Martin,

This appears to be a bug in org-mode at large, rather than anything
specifically babel related.

notice that the following slight alteration of your new reference  
syntax

works as expected

#+begin_src xml -n -r -l ref:%s
test
 important/ ref:imp
/test
#+end_src

Line no. [[(imp)]] is important!



The docstring of org-coderef-label-format says (please note the final  
paragraph):


  The default coderef format.
This format string will be used to search for coderef labels in literal
examples (EXAMPLE and SRC blocks).  The format can be overwritten in
an individual literal example with the -f option, like

#+BEGIN_SRC pascal +n -r -l \((%s))\
...
#+END_SRC

If you want to use this for HTML export, make sure that the format does
not introduce special font-locking, and avoid the HTML special
characters `', `', and `'.  The reason for this restriction is that
the labels are searched for only after htmlize has done its job.

- Carsten




Best -- Eric

Martin G. Skjæveland mart...@ifi.uio.no writes:


Hi,

when I export

---start
* test
#+begin_src xml -n -r -l !--(ref:%s)--
test
 important/ !--(ref:imp)--
/test
#+end_src

Line no. [[(imp)]] is important!
---end

to html I get (copying from my browser)

---start
1 test

1:  test
2:important/ !--(ref:imp)--
3:  /test

Line no. nil is important!
---end

I would like !--(ref:imp)-- in line 2 of the block to be removed
from output and the last line to read Line no. 2 is important!.

Thanks!

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



___
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] [feature request] use relative path in the file set by org-agenda-files

2010-03-23 Thread zwz
The variable org-agenda-files can be a list of file names or a single file 
name. I prefer the latter, since it is much easier to maintain one ordinary 
file without modifying the .emacs.

So in my .emacs I just use:
(setq org-agenda-files (expand-file-name agenda org-directory))

However, it seems that only absolute path works in that agenda file, e.g.
-
in /path/to/org-directory/agenda:
/path/to/org-directory/home.org
/path/to/org-directory/lab.org
-
Here I hope that I can use ./home.org and ./lab.org instead, so that when 
I copy the /path/to/org-directory/ to another place, I do not have to modify 
the agenda file at all.



___
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] 'Double-entry' journals

2010-03-23 Thread Haroldo Stenger
hi ,

2010/3/19 Jan Böcker jan.boec...@jboecker.de:
 generated the project specific ones automatically from that. The normal
 Org approach is to go the opposite direction: you edit your project
 files directly and use the agenda to view tasks (and notes, if you
 include an active timestamp in them or tell the agenda to show inactive
 timestamps) by date in daily, weekly or monthly views.


Combining these two posibilities , I wondered myself whether it would
we useful to have a org-mode tree-like view of the agenda view , and
other reports. Something like a text generator that bases its output
on agenda output , and renders or re-renders output based on agenda
view. If someone comments on it , I'd be wishful to start hacking it ,
up to my knowledge, which is lispy to some extend (a common-lisp
background, and little elisp yet.)

best regards ,
haroldo


___
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] Typo in website worg/org-blog-articles.php

2010-03-23 Thread Jens Kubieziel
Hi,

in URL:http://orgmode.org/worg/org-blog-articles.php is a link Using
org-mode with ikiwiki. The URl reads
URL:http://www.golden-gryphon.com/blog/manoj/blog/2008/06/08/Using_org-mode_with_Ikiwiki/%20%3E%3E.
But the %20%3E%3E ( ) is wrong here and should be removed.

Thanks

-- 
Jens Kubieziel   http://www.kubieziel.de
FdI#365: Spannung
Geruch nach Ozon und evt. Stickoxiden (Vinzent Höfler)


signature.asc
Description: Digital signature
___
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] Problems with hyperlinked files

2010-03-23 Thread Leo Alekseyev
Hi all,
I am unable to open locally linked files if I use angle brackets to
protect spaces, like so:

   [[file:E:\ebooks\math\Probability and statistics\The Elements of
Statistical Learning (2nd ed).pdf][Hastie et al]]

-- the echo area displays no such file: E:\ebooks\math\Probability
and statistics\The Elements of Statistical Learning (2nd ed).pdf
 note the right angle bracket here.  Generally, any file links
with angle brackets refuse to open.  Is this a known bug?...  is there
a patch?..  (Org mode 6.31a, emacs 23.1)


___
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] How to open pdf file links with evince under linux?..

2010-03-23 Thread Leo Alekseyev
When using org mode under windows, links to local PDF files bring up
Acrobat.  However, under linux, these links just spawn a new empty
buffer in emacs in fundamental mode.  How can I make PDF links bring
up evince?...


___
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] 'Double-entry' journals

2010-03-23 Thread Jan Böcker

 So... 1.org http://1.org and 2. org will be like this. The problem is
 that when I export I want the output to look like this:
 
 *Timestamp day1
 **Activity for project 1 on day 1 here
 **Activity for project2 on day 1 here
 *Timestamp day2
 **Activity for project 1 on day 2 here
 **Activity for project2 on day 2 here

Try inserting active timestamps into your log entries with C-c .

A headline that has one or more active timestamps will appear in the
agenda on those days.

For more information, see: (info (org) Timestamps)

HTH, 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


[Orgmode] apparently too stupid to use checkboxes

2010-03-23 Thread Detlef Steuer
Hi!

I try to use checkboxes (never used before):

* TODO Test [/]
  - [ ] first
  - [ ] second

Now I can C-c C-c to state-change a single box, but the summary box in the
headline never gets updated.

If I try C-c # I get an error messge
Invalid function: ignore errors

Even if I cut'n'paste the  checkbox example out of the manual it doesn't
work here.


My org-version is
release_6.34c-232-g727a
Org-mode version 6.34trans (release_6.34c.232.g727a)

My emacs
GNU Emacs 22.3.1 (i586-suse-linux-gnu, GTK+ Version 2.14.4) of 2008-12-03 on 
build19


I know, the mistake must happen between my ears 
Any help appreciated.

Detlef



___
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] Publish atom feeds based on Org files

2010-03-23 Thread Eric S Fraga
On Tue, 23 Mar 2010 07:47:40 +0100, David Maus dm...@ictsoc.de wrote:
 
 [1  text/plain; UTF-8 (quoted-printable)]
 Eric S Fraga wrote:
 On Fri, 19 Mar 2010 23:00:23 +0100, David Maus dm...@ictsoc.de wrote:
  Hello all,
  
  Carving another stone that might fit into the cathedral known as
  Emacs/Orgmode I am glad to present attached file org-atom.el that
  provides an exporting and a publishing function to create atom feeds
  based on Org files.
  
  To use org-atom.el you need the library atom-syndication.el, an
 
 David,
 
 a simple point: I added (require 'org-atom) to my initialisation file
 and Emacs fails starting up with:
 
 ,
 | Debugger entered--Lisp error: (void-variable 
 org-export-inbuffer-options-extra)
 |   byte-code(���...@���   C\\nA��*��!� 
 [org-atom-infile-options opt --cl-dolist-temp-- 
 org-export-inbuffer-options-extra nil append provide org-atom] 4)
 |   require(org-atom)
 `
 
 What dependencies are there that I should have satisfied before the
 require statement above?  I guess, from the error message, that it's
 something to do with cl...  you may wish to ensure the approprthe appropriate
 libraries are required by your code.
 
 Thanks, I'll look into this.  It looks like that the (dolist on the
 beginning requires cl.  Never considered byte compiling the file.

Actually, all that's required for org-atom to load properly for me is to have

(require 'org-exp)
(require 'org-atom)

to ensure that org-export-inbuffer-options-extra is defined!  You may
wish to simply put (require 'org-exp) inside org-atom.el.


___
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] apparently too stupid to use checkboxes

2010-03-23 Thread Eric S Fraga
On Tue, 23 Mar 2010 10:37:14 +0100, Detlef Steuer detlef.ste...@gmx.de wrote:
 
 Hi!
 
 I try to use checkboxes (never used before):
 
 * TODO Test [/]
   - [ ] first
   - [ ] second
 
 Now I can C-c C-c to state-change a single box, but the summary box in the
 headline never gets updated.

Very strange.  This works perfectly fine for me: typing C-c C-c on the
first item, say, checks that box and updates the headline to have
[1/2] on it.  Typing C-c C-c again clears the checkbox.

 My org-version is
 release_6.34c-232-g727a
 Org-mode version 6.34trans (release_6.34c.232.g727a)

ditto.

 
 My emacs
 GNU Emacs 22.3.1 (i586-suse-linux-gnu, GTK+ Version 2.14.4) of
 2008-12-03 on build19

I'm on 
GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.18.2) of 2009-11-02 on 
raven, modified by Debian

Maybe upgrade your Emacs?  But, of course, this should work on emacs
22.x as well.


___
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: [feature request] use relative path in the file set by org-agenda-files

2010-03-23 Thread Mikael Fornius

I have made a small patch implementing the following behavior:

With org-agenda-files = /home/mfo/org/agenda, a filename.

| Line in agenda-file| Expands to:  |
|+--|
| $HOME/org/org-mode.org | /home/mfo/org/org-mode.org |
| td/td.org  | /home/mfo/org/td/td.org|
| ~/org/test.org | /home/mfo/org/test.org |
| scratch.org| /home/mfo/org/scratch.org  |
| /home/mfo/org/wep.org  | /home/mfo/org/wep.org  |
| ../te.org  | /home/mfo/te.org   |
|+--|

Here is the patch to current git-head:

diff --git a/lisp/org.el b/lisp/org.el
index 84bec4c..dad9293 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -14672,8 +14672,10 @@ the buffer and restores the previous window configuration.
   (when (stringp org-agenda-files)
 (with-temp-buffer
   (insert-file-contents org-agenda-files)
-  (org-split-string (buffer-string) [ \t\r\n]*?[\r\n][ \t\r\n]*
-
+  (mapcar (lambda (f)
+		(expand-file-name (substitute-in-file-name f)
+  (file-name-directory org-agenda-files)))
+	  (org-split-string (buffer-string) [ \t\r\n]*?[\r\n][ \t\r\n]*)
 
 ;;;###autoload
 (defun org-cycle-agenda-files ()

-- 
Mikael Fornius
___
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] apparently too stupid to use checkboxes

2010-03-23 Thread Jörg Hagmann

Try without a space between Test and [/] ?

On 3/23/10 10:51 AM, Eric S Fraga wrote:

On Tue, 23 Mar 2010 10:37:14 +0100, Detlef Steuerdetlef.ste...@gmx.de  wrote:
   

Hi!

I try to use checkboxes (never used before):

* TODO Test [/]
   - [ ] first
   - [ ] second

Now I can C-c C-c to state-change a single box, but the summary box in the
headline never gets updated.
 

Very strange.  This works perfectly fine for me: typing C-c C-c on the
first item, say, checks that box and updates the headline to have
[1/2] on it.  Typing C-c C-c again clears the checkbox.

   

My org-version is
release_6.34c-232-g727a
Org-mode version 6.34trans (release_6.34c.232.g727a)
 

ditto.

   

My emacs
GNU Emacs 22.3.1 (i586-suse-linux-gnu, GTK+ Version 2.14.4) of
2008-12-03 on build19
 

I'm on
GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.18.2) of 2009-11-02 on 
raven, modified by Debian

Maybe upgrade your Emacs?  But, of course, this should work on emacs
22.x as well.


___
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

   


--
Prof. Jörg Hagmann-Zanolari MD
University of Basel
Department of Biomedicine
Institute of Biochemistry and Genetics
Mattenstrasse 28
CH-4058 Basel
Switzerland
Phone +41 (0)61 267 3565



___
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: apparently too stupid to use checkboxes

2010-03-23 Thread Detlef Steuer
On Tue, 23 Mar 2010 12:11:26 +0100
Jörg Hagmann joerg.hagm...@unibas.ch wrote:

 Try without a space between Test and [/] ?

No change.

One more observation while trying this out:

C-c C-c in a checkbox line _always_ gives 
Invalid function: ignore-errors


Detlef




___
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: Displaying your Org agenda after idle time

2010-03-23 Thread Marvin Doyley
This is an awesome function.

Thanks
M




___
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] apparently too stupid to use checkboxes

2010-03-23 Thread Carsten Dominik

Hi Detlef,

`ignore-errors' is defined in cl-macs in Emacs 22.  You need to  
compile the .el file
to get this macro.  Alternatively, define it in your .emacs file  
before loading org-mode stuff:



(defmacro ignore-errors (rest body)
  Execute BODY; if an error occurs, return nil.
Otherwise, return result of last form in BODY.
  `(condition-case nil (progn ,@body) (error nil)))

HTH

- Carsten

On Mar 23, 2010, at 10:37 AM, Detlef Steuer wrote:


Hi!

I try to use checkboxes (never used before):

* TODO Test [/]
 - [ ] first
 - [ ] second

Now I can C-c C-c to state-change a single box, but the summary box  
in the

headline never gets updated.

If I try C-c # I get an error messge
Invalid function: ignore errors

Even if I cut'n'paste the  checkbox example out of the manual it  
doesn't

work here.


My org-version is
release_6.34c-232-g727a
Org-mode version 6.34trans (release_6.34c.232.g727a)

My emacs
GNU Emacs 22.3.1 (i586-suse-linux-gnu, GTK+ Version 2.14.4) of  
2008-12-03 on build19



I know, the mistake must happen between my ears 
Any help appreciated.

Detlef



___
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] Strange results of special symbol inside brackets in PDF output

2010-03-23 Thread Keith

Dear all,

Well..., I am just new to both emacs and org-mode and trying to get used 
to it :-)


I noticed something strange and I think it's might be a bug converting 
to tex file. I've been trying to put a special symbol inside a bracket, e.g.


  air temperature (degree Celsius)

and the symbol should look like ^{\circ}C in org file. It works well if 
it is standalone. However, when I put the brackets out of it, say 
(^{\circ}C), the pdf output looks bizarre. I have checked the tex output 
and the converting results from orgmode file are


  ^{\circ}C   --   $^{\circ}$C
  (^{\circ}C) --   (^\{\circ}C)

Keith


___
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: apparently too stupid to use checkboxes

2010-03-23 Thread Eric S Fraga
On Tue, 23 Mar 2010 13:50:08 +0100, Detlef Steuer detlef.ste...@gmx.de wrote:
 
 On Tue, 23 Mar 2010 12:11:26 +0100
 Jörg Hagmann joerg.hagm...@unibas.ch wrote:
 
  Try without a space between Test and [/] ?
 
 No change.
 
 One more observation while trying this out:
 
 C-c C-c in a checkbox line _always_ gives 
 Invalid function: ignore-errors
 
 
 Detlef

I guess the next questions then have to be: 

1. how have you installed org-mode?  

2. How are you loading it?

3. any extra useful information in the *Messages* buffer?

4. have you tried turning on debug modes (e.g. toggle-debug-on-error)
   to see where things are going wrong?


___
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] Avoid leaving point inside hidden block

2010-03-23 Thread Dan Davison
If you

1. fold a code block
2. place point at the beginning of the #begin_src line
3. switch to the edit buffer using C-c '
4. exit the edit buffer with C-c '

point will not return to where it started but instead be by the ...,
reflecting the fact that it returned to a buffer position that is not
visible. This patch returns point to the beginning of the begin_src line
when the block is folded. (overlay-querying code borrowed from
org-hide-block-toggle)

Dan

--8---cut here---start-8---
diff --git a/lisp/org-src.el b/lisp/org-src.el
index 0cebcd1..bc71a92 100644
--- a/lisp/org-src.el
+++ b/lisp/org-src.el
@@ -592,8 +592,15 @@ the language, a switch telling if the content should be in 
a single line.
 (insert code)
 (goto-char beg)
 (if single (just-one-space))
-(org-goto-line (1- (+ (org-current-line) line)))
-(org-move-to-column (if preserve-indentation col (+ col total-nindent 
delta)))
+(if (memq t (mapcar (lambda (overlay)
+ (eq (org-overlay-get overlay 'invisible)
+ 'org-hide-block))
+   (org-overlays-at (point
+   ;; Block is hidden; put point at start of block
+   (beginning-of-line 0)
+  ;; Block is visible, put point where it was in the code buffer
+  (org-goto-line (1- (+ (org-current-line) line)))
+  (org-move-to-column (if preserve-indentation col (+ col total-nindent 
delta
 (move-marker beg nil)
 (move-marker end nil))
   (unless (eq context 'save)
--8---cut here---end---8---


___
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] [PATCH] Avoid leaving point inside hidden block

2010-03-23 Thread Carsten Dominik

Hi Dan,

please go ahead and apply it to the master branch.

Thanks

- Carsten

On Mar 23, 2010, at 3:08 PM, Dan Davison wrote:


If you

1. fold a code block
2. place point at the beginning of the #begin_src line
3. switch to the edit buffer using C-c '
4. exit the edit buffer with C-c '

point will not return to where it started but instead be by the ...,
reflecting the fact that it returned to a buffer position that is not
visible. This patch returns point to the beginning of the begin_src  
line

when the block is folded. (overlay-querying code borrowed from
org-hide-block-toggle)

Dan

--8---cut here---start-8---
diff --git a/lisp/org-src.el b/lisp/org-src.el
index 0cebcd1..bc71a92 100644
--- a/lisp/org-src.el
+++ b/lisp/org-src.el
@@ -592,8 +592,15 @@ the language, a switch telling if the content  
should be in a single line.

(insert code)
(goto-char beg)
(if single (just-one-space))
-(org-goto-line (1- (+ (org-current-line) line)))
-(org-move-to-column (if preserve-indentation col (+ col total- 
nindent delta)))

+(if (memq t (mapcar (lambda (overlay)
+ (eq (org-overlay-get overlay 'invisible)
+ 'org-hide-block))
+   (org-overlays-at (point
+   ;; Block is hidden; put point at start of block
+   (beginning-of-line 0)
+  ;; Block is visible, put point where it was in the code buffer
+  (org-goto-line (1- (+ (org-current-line) line)))
+  (org-move-to-column (if preserve-indentation col (+ col total- 
nindent delta

(move-marker beg nil)
(move-marker end nil))
  (unless (eq context 'save)
--8---cut here---end---8---


___
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: apparently too stupid to use checkboxes

2010-03-23 Thread Detlef Steuer
Ok, here we go.

I put 
(defmacro ignore-errors (rest body)
   Execute BODY; if an error occurs, return nil.
Otherwise, return result of last form in BODY.
   `(condition-case nil (progn ,@body) (error nil)))

in my .emacs as Carsten advised.
This action seems to be a complicated form of do-nothing.
At least my error message remains the same.
(emacs was restarted after adding the macro to .emacs)

 
 I guess the next questions then have to be: 
 
 1. how have you installed org-mode?  

Nightly git checkout.

 
 2. How are you loading it?
 

I inline my (ugly) .emacs as it stands.
It is unchanged since ages. 
My guess is something goes wrong there.

 snip

(server-start)

(defmacro ignore-errors (rest body)
   Execute BODY; if an error occurs, return nil.
Otherwise, return result of last form in BODY.
   `(condition-case nil (progn ,@body) (error nil)))

;; Kein Fringe (wozu braucht man den?)
(fringe-mode 0)

;; Keine Backups. Wenn ich Backups brauche, dann GIT
(setq backup-inhibited t)

;; Keine splash screen
(setq inhibit-splash-screen t)

;; Lokale Pakete
(add-to-list 'load-path /usr/local/share/emacs/site-lisp )


;; Autofill ist automatisch an
(add-hook 'text-mode-hook 'turn-on-auto-fill)

 ESS ;;
(setq ess-indent-level 2)
;;; beschleunigt das senden von code an den R Prozess erheblich
;;; (setq ess-eval-visibly-p nil)
 Org Mode ;;;
(add-to-list 'load-path ~/GIT-Checkouts/org-mode/lisp)
(require 'org-install)

;(require 'org-depend)
(setq org-log-done t)

;; The following lines are always needed.  Choose your own keys.
(add-to-list 'auto-mode-alist '(\\.org\\' . org-mode))
(global-set-key \C-cl 'org-store-link)
(global-set-key \C-ca 'org-agenda)

;(add-hook 'org-mode-hook 'turn-on-font-lock)  ; org-mode buffers only

;; org-babel support

(add-to-list 'load-path ~/GIT-Checkouts/org-mode/contrib/lisp)
(require 'org-babel-init)
(require 'org-babel-R)
(org-babel-load-library-of-babel)

;; remind mode
(add-to-list 'load-path ~/.emacs.d/remind)
(require 'remind-conf-mode) 

;; remember mode
(add-to-list 'load-path ~/.emacs.d/remember)
(require 'remember)
(add-hook 'remember-mode-hook 'org-remember-apply-template)
(define-key global-map [(control meta ?r)] 'remember)

(org-remember-insinuate)
(setq org-directory ~/.pim/)
(setq org-default-notes-file (concat org-directory notes.org))
(define-key global-map \C-cr 'org-remember)

;; from Wiegley's article
;; (require 'org-install)

(add-to-list 'auto-mode-alist '(\\.org$ . org-mode))
;(define-key mode-specific-map [?a] 'org-agenda)


(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 ;'(delete-selection-mode nil)
 ;'(org-agenda-custom-commands (quote 
 ;  ((d todo #(DELEGATED 0 9 (face org-warning)) nil) 
 ;   (c todo #(DONE|DEFERRED|CANCELLED 0 23 (face org-warning)) nil) 
 ;   (w todo #(WAITING 0 7 (face org-warning)) nil) 
 ;   (W agenda  ((org-agenda-ndays 21))) 
 ;   (A agenda  ((org-agenda-skip-function 
 ;(lambda nil (org-agenda-skip-entry-if 
 ;(quote notregexp) \\=.*\\[#A\\]))) (org-agenda-ndays 1) 
 ;   (org-agenda-overriding-header Today's Priority #A tasks: ))) 
 ;   (u alltodo  ((org-agenda-skip-function 
 ;(lambda nil (org-agenda-skip-entry-if (quote scheduled) 
 ;(quote deadline) (quote regexp) [^]+))) 
 ;   (org-agenda-overriding-header Unscheduled TODO entries: 
))
 '(org-agenda-files (quote 
   (~/.pim/termine.org ~/.pim/todo.org ~/.pim/remindout.org 
~/.pim/inbox.org)))
 '(org-agenda-ndays 7)
 '(org-agenda-show-all-dates t)
 '(org-agenda-skip-deadline-if-done t)
 '(org-agenda-skip-scheduled-if-done t)
 '(org-agenda-start-on-weekday nil)
 '(org-agenda-use-time-grid t)
 '(org-agenda-time-grid (quote ((daily today require-timed)
 
 (800 900 1000 1100 1300 1400 1500 1600  2000
 '(org-global-properties (quote ((Effort_ALL . 0:10 0:30 1:00 2:00 3:00 4:00 
8:00 
 '(org-deadline-warning-days 14)
 '(org-default-notes-file ~/.pim/notes.org)
; '(org-fast-tag-selection-single-key (quote expert))
 '(org-remember-store-without-prompt t)
 '(org-remember-templates 
   (quote ((116 * TODO %? ~/.pim/inbox.org Inbox) 
   (110 * %? ~/.pim/inbox.org Inbox
; '(org-reverse-note-order t)
; '(remember-annotation-functions (quote (org-remember-annotation)))
; '(remember-handler-functions (quote (org-remember-handler)))
; '(scroll-bar-mode (quote right))
 '(org-todo-keywords quote( '((sequence TODO STARTED WAITING | DONE
)

;; für auctex
(require 'tex-site)
;(load auctex.el nil t t)
;(load preview-latex.el nil t t)
;(setq TeX-auto-save t)
;(setq TeX-parse-self t)

;; für Emacs Database
(add-to-list 'load-path ~/.emacs.d/edb-1.31/lisp)
(require 'database)

;; für Elip

Re: [Orgmode] Typo in website worg/org-blog-articles.php

2010-03-23 Thread David Maus
Jens Kubieziel wrote:
[1  multipart/signed (7bit)]
[1.1  text/plain; iso-8859-1 (quoted-printable)]
Hi,

in URL:http://orgmode.org/worg/org-blog-articles.php is a link Using
org-mode with ikiwiki. The URl reads
URL:http://www.golden-gryphon.com/blog/manoj/blog/2008/06/08/Using_org-mode_with_Ikiwiki/%20%3E%3E.
But the %20%3E%3E ( ) is wrong here and should be removed.

Thanks for the hint, url fixed.

  -- David

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


pgpShmJ1Aae5L.pgp
Description: PGP signature
___
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] Publish atom feeds based on Org files

2010-03-23 Thread David Maus
Eric S Fraga wrote:

 Thanks, I'll look into this.  It looks like that the (dolist on the
 beginning requires cl.  Never considered byte compiling the file.

Actually, all that's required for org-atom to load properly for me is to have

Ah, yes.  Forgot the obvious.  Thanks.

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


pgpfz12DivKOo.pgp
Description: PGP signature
___
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: Basic orgmode tutorial

2010-03-23 Thread Memnon Anon
Hi,
Alexander Poslavsky alexander.poslav...@gmail.com writes:

 attached is an updated version of the file, added agenda and some lines on 
 gtd and exporting.

I just read it and you did a great job so far; I will have a closer look
later again, sadly I am very busy right now :(.

Just one suggestion: I think it would be nice to have a Further
Reading Subsection at the end of each Section, containing links to the 
org manual pages, tutorials on this topic, FAQ Entries, screencasts,
whatever.

Tutorials are an excellent starting point, but they also great to look
up what you recently learned and are tinkering with. Lets say I read the
tutorial and tried the Clocking. Then, suddenly, I realize I am not
sure how I can really integrate this feature into a workflow. First
thing I would do is return to my tutorial and reread the section.
If the limited information there [its a tutorial, it is by definition
limited], I would really appreciate a Further Reading Section, linking
e.g. to Bernt Hansens excellent infos on his clock usage, like:

* [[http://doc.norang.ca/org-mode.html#Clocking][Bernt Hansens extensive
description Time Clocking: Usage, Customization, Workflow
description.]]
* [[http://orgmode.org/manual/Clocking-work-time.html#Clocking-work-time][The
orgmode Clocking Section]]
* [[http://orgmode.org/worg/org-tutorials/index.php#sec-3.3][Clock
related Links on Worg]]

etc.

OTOH, this seems a bit redundant, given the fact that there is already
org-tutorials on worg. It might be more convenient to only have a link
to the proper sections on worg ...

 Thanks for reading,

Thanks for writing!

Memnon Anon



___
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] Use save-excursion in org-map-dblocks

2010-03-23 Thread Magnus Henoch
This patch has been sitting in my tree for a while...  It's a fix to
org-map-dblocks, to make it use save-excursion instead of remembering
position values.  I need this since I have a dblock function that
asynchronously updates dblocks from HTTP responses, and some dblocks
ended up getting updated twice or thrice.

From 8fa75fb5174f93cc6990b605901891c2191c64f0 Mon Sep 17 00:00:00 2001
From: Magnus Henoch magnus.hen...@gmail.com
Date: Wed, 21 Oct 2009 12:37:32 +0100
Subject: [PATCH] * org.el (org-map-dblocks): Use save-excursion.

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

diff --git a/lisp/org.el b/lisp/org.el
index 7b2e95b..249aad4 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -9306,16 +9306,15 @@ the property list including an extra property :name with the block name.
 (defun org-map-dblocks (optional command)
   Apply COMMAND to all dynamic blocks in the current buffer.
 If COMMAND is not given, use `org-update-dblock'.
-  (let ((cmd (or command 'org-update-dblock))
-	pos)
+  (let ((cmd (or command 'org-update-dblock)))
 (save-excursion
   (goto-char (point-min))
   (while (re-search-forward org-dblock-start-re nil t)
-	(goto-char (setq pos (match-beginning 0)))
-	(condition-case nil
-	(funcall cmd)
-	  (error (message Error during update of dynamic block)))
-	(goto-char pos)
+	(goto-char (match-beginning 0))
+(save-excursion
+  (condition-case nil
+  (funcall cmd)
+(error (message Error during update of dynamic block
 	(unless (re-search-forward org-dblock-end-re nil t)
 	  (error Dynamic block not terminated))
 
-- 
1.6.4.4


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


[Orgmode] org-mode tutorial questionaire

2010-03-23 Thread Alexander Poslavsky
Hi!

There is a new tutorial on worg: 
http://orgmode.org/worg/org-tutorials/org4beginners.php. The idea is to write a 
tutorial for somebody who is new to org-mode.

Question for people new to org-mode:
- What did you find especially confusing?
- How did you start out?
- What would you like to see in a beginners tutorial?

For everybody:
-What kind of tutorial would be the most useful? 
-What in your experience people find confusing?

thanks for your time,
alex



___
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: Basic orgmode tutorial

2010-03-23 Thread Richard Riley
Memnon Anon gegendosenflei...@googlemail.com writes:

 Hi,
 Alexander Poslavsky alexander.poslav...@gmail.com writes:

 attached is an updated version of the file, added agenda and some lines on 
 gtd and exporting.

 I just read it and you did a great job so far; I will have a closer look
 later again, sadly I am very busy right now :(.

 Just one suggestion: I think it would be nice to have a Further
 Reading Subsection at the end of each Section, containing links to the 
 org manual pages, tutorials on this topic, FAQ Entries, screencasts,
 whatever.



Just an idle thought :-

Wouldn't it be great to have tutorial for org-mode  in org-mode.

e.g lesson one is how to complete a TODO - ie complete the tutorial
element which describes how to complete a task 

etc.

Would be pretty neat.



___
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: org-mode tutorial questionaire

2010-03-23 Thread Matt Lundin
Hi Alex,

Alexander Poslavsky alexander.poslav...@gmail.com writes:

 There is a new tutorial on worg: http://orgmode.org/worg/org-tutorials/
 org4beginners.php. The idea is to write a tutorial for somebody who is
 new to org-mode.
...
 For everybody:
 -What kind of tutorial would be the most useful? 
 -What in your experience people find confusing?

Thanks for taking the time to put this on Worg. I wish I had had such a
concise summary of the various flavors of emacs on different platforms
when I started exploring org-mode.

I was wondering if you could elaborate on the following. Are you
suggesting that new users should never use M-x customize?

,
| The biggest pain, when you just begin with Emacs, is the configuration.
| There is not really a menu for it (you might later hear there is, but
| they are lying, that menu is really there to trap innocent people), you
| need to edit a text-file.
`

A few comments:

1. Some of the step-by-step instructions might be a bit easier to
   follow in list format (rather than paragraphs).

2. If I were reading the tutorial for the first time, I might conclude
   that I had to place #-*- mode: org -*- at the top of all my org
   files, even after configuring auto-mode-alist.

3. Why C-x b 2.org -- M-x org-mode -- C-x C-s as the recommended
   workflow? Once the configuration file is set up, C-x C-f 2.org will
   bring one right into org-mode.

Thanks again for all the work you've put into this.

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


Re: [Orgmode] Re: Basic orgmode tutorial

2010-03-23 Thread Alexander Poslavsky

On Mar 23, 2010, at 6:37 PM, Memnon Anon wrote:

 Hi,
 Alexander Poslavsky alexander.poslav...@gmail.com writes:
 
 attached is an updated version of the file, added agenda and some lines on 
 gtd and exporting.
 
 I just read it and you did a great job so far; I will have a closer look
 later again, sadly I am very busy right now :(.
 
 Just one suggestion: I think it would be nice to have a Further
 Reading Subsection at the end of each Section, containing links to the 
 org manual pages, tutorials on this topic, FAQ Entries, screencasts,
 whatever.
 
 Tutorials are an excellent starting point, but they also great to look
 up what you recently learned and are tinkering with. Lets say I read the
 tutorial and tried the Clocking. Then, suddenly, I realize I am not
 sure how I can really integrate this feature into a workflow. First
 thing I would do is return to my tutorial and reread the section.
 If the limited information there [its a tutorial, it is by definition
 limited], I would really appreciate a Further Reading Section, linking
 e.g. to Bernt Hansens excellent infos on his clock usage, like:
 
 * [[http://doc.norang.ca/org-mode.html#Clocking][Bernt Hansens extensive
   description Time Clocking: Usage, Customization, Workflow
   description.]]
 * [[http://orgmode.org/manual/Clocking-work-time.html#Clocking-work-time][The
   orgmode Clocking Section]]
 * [[http://orgmode.org/worg/org-tutorials/index.php#sec-3.3][Clock
   related Links on Worg]]
 
 etc.
 
 OTOH, this seems a bit redundant, given the fact that there is already
 org-tutorials on worg. It might be more convenient to only have a link
 to the proper sections on worg …
snip
thanks, just added a bunch of links for further reading. Even if redundant, it 
still might ease the pain of learning.

,alex

___
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: apparently too stupid to use checkboxes

2010-03-23 Thread David Maus
Detlef Steuer wrote:
Ok, here we go.

I put
(defmacro ignore-errors (rest body)
   Execute BODY; if an error occurs, return nil.
Otherwise, return result of last form in BODY.
   `(condition-case nil (progn ,@body) (error nil)))

in my .emacs as Carsten advised.
This action seems to be a complicated form of do-nothing.
At least my error message remains the same.
(emacs was restarted after adding the macro to .emacs)


 I guess the next questions then have to be:

 1. how have you installed org-mode?

Nightly git checkout.


 2. How are you loading it?


I inline my (ugly) .emacs as it stands.
It is unchanged since ages.
My guess is something goes wrong there.


Well, there is an error in .emacs:

 snip

 ...


(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.

 ...

 '(org-todo-keywords quote( '((sequence TODO STARTED WAITING | DONE
 ...

The quote( looks like a leftover of something.  The line should read:

'(org-todo-keywords '((sequence TODO STARTED WAITING | DONE)))

Maybe fixing this does the job?

If the (defmacro is not working my guess what be that you are running
some kind of a mixup of probably old byte compiled code and the
current developement version.

Are there any old installations of Org arround?

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


pgpolBywUOChQ.pgp
Description: PGP signature
___
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] using orgmode to send html mail?

2010-03-23 Thread Eric Schulte
Nice to see this topic has come back to life.

I've been playing with my old org-html-mail.el file, and come up with a
much simpler solution, which takes advantage of the mml message mode
functionality with is used in gnus (and I would imagine in some other
Emacs mail clients, but I can't be sure).

Just call this function and either the active region of your message
buffer or the entire body (if no region is active) will be exported to
html using org-mode, and will be wrapped in the appropriate mml wrapper
to be sent as the appropriate mime type.

So for example this
|1 |  2 | 3 |
|--++---|
| first column | second | third |

will be exported as this





123


first columnsecondthird




The function is provided in the attached file.



org-mml-htmlize.el
Description: application/emacs-lisp

Best -- Eric

David Maus dm...@ictsoc.de writes:

 Matt Price wrote:
Hi,

I just wondered whether anyone composes mail in orgmode  then
generates html from the source code.  I'd like to be able to do that
sometimes in wanderlust, e.g. when I'm responding to html mail with
links in it.

 Just pushed to hacks to Worg on how to send html messages in
 Wanderlust using Org's html exporter and how to attach html markup of
 a region or subtree in Wanderlust.  Latter is a follow-up on

 http://lists.gnu.org/archive/html/emacs-orgmode/2009-11/msg00746.html

 Until Worg picks it up:

 1 Send html messages and attachments with Wanderlust
 ~
   -- David Maus

 These two hacks below add the capability of using Org to send out html
 via email.  Both focus on Wanderlust but could be easily adopted for
 Gnus, I think.

 1.1 Send HTML message
 ==

 Putting the code below in your .emacs adds following four functions:

- dmj/wl-send-html-message

  Function that does the job: Convert everything between --text
  follows this line-- and first mime entity (read: attachment) or
  end of buffer into HTML markup using `org-export-region-as-html'
  and replaces original body with a mime entity of text/html,
  content-disposition: inline.  Line breaks of the signature are
  preserved.

  Cannot be called interactively: It is hooked into SEMI's
  `mime-edit-translate-hook' if message should be HTML message.

- dmj/wl-send-html-message-draft-init

  Cannot be called interactively: It is hooked into WL's
  `wl-mail-setup-hook' and `wl-draft-reedit-hook' and provides a
  buffer local variable to toggle.

- dmj/wl-send-html-message-draft-maybe

  Cannot be called interactively: It is hooked into WL's
  `wl-draft-send-hook' and hooks `dmj/wl-send-html-message' into
  `mime-edit-translate-hook' depending on whether HTML message is
  toggled on or off

- dmj/wl-send-html-message-toggle

  Toggles sending of HTML message.  If toggled on, the letters
  HTML appear in the mode line.

  Call it interactively!  Or bind it to a key in `wl-draft-mode'.

 If you have to send HTML messages regularly you can set a global
 variable `dmj/wl-send-html-message-toggled-p' to the string HTML to
 toggle on sending HTML message by default.

 The image [here] shows an example of how the HTML message looks like in
 Google's web front end.  As you can see you have the whole markup of
 Org at your service: *bold*, /italics/, tables, lists...

 So even if you feel uncomfortable with sending HTML messages at least
 you send HTML that looks quite good.


   (defun dmj/wl-send-html-message ()
 Send message as html message.
 Convert body of message to html using
 `org-export-region-as-html'.
 (require 'org)
 (save-excursion
   (let (beg end html text)
 (goto-char (point-min))
 (re-search-forward ^--text follows this line--$)
 ;; move to beginning of next line
 (beginning-of-line 2)
 (setq beg (point))
 (if (not (re-search-forward ^--\\[\\[ nil t))
 (setq end (point-max))
   ;; line up
   (end-of-line 0)
   (setq end (point)))
 ;; grab body
 (setq text (buffer-substring-no-properties beg end))
 ;; convert to html
 (with-temp-buffer
   (org-mode)
   (insert text)
   ;; handle signature
   (when (re-search-backward ^-- \n nil t)
 ;; preserve link breaks in signature
 (insert \n#+BEGIN_VERSE\n)
 (goto-char (point-max))
 (insert \n#+END_VERSE\n)
 ;; grab html
 (setq html (org-export-region-as-html
 (point-min) (point-max) t 'string
 (delete-region beg end)
 (insert
  (concat
   --[text/html\nContent-Disposition: inline]\n
   html)

   (defun dmj/wl-send-html-message-toggle ()
 Toggle sending of html message.
 (interactive)
 (setq 

[Orgmode] [PATCH] Allow org-agenda-entry-types to trump org-agenda-include-deadlines

2010-03-23 Thread Matt Lundin
Hi Carsten,

Commit 3a3a1023486111ef4e986de9f22e94ea9c05d890 introduced a new
variable org-agenda-include-deadlines. In the commit,
org-agenda-include-deadlines is set always to override
org-agenda-entry-types (i.e., :deadline is automatically added to the
local org-agenda-entry-types whenever org-agenda-include-deadlines is
t). 

The patch below gives org-agenda-entry-types precedence over
org-agenda-include-deadlines. AFAICT, the patch will not interfere with
the behavior of org-agenda-toggle-deadlines, nor will it affect anyone
who does not explicitly configure org-agenda-entry-types. 

--8---cut here---start-8---
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 56c7256..5e057a7 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -3281,8 +3281,7 @@ given in `org-agenda-start-on-weekday'.
(catch 'nextfile
  (org-check-agenda-file file)
  (let ((org-agenda-entry-types org-agenda-entry-types))
-   (if org-agenda-include-deadlines
-   (add-to-list 'org-agenda-entry-types :deadline)
+   (unless org-agenda-include-deadlines 
  (setq org-agenda-entry-types
(delq :deadline org-agenda-entry-types)))
(cond
--8---cut here---end---8---

Thanks,
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] Re: org-mode tutorial questionaire

2010-03-23 Thread Alexander Poslavsky

On Mar 23, 2010, at 8:42 PM, Matt Lundin wrote:

 Hi Alex,
 
 Alexander Poslavsky alexander.poslav...@gmail.com writes:
 
 There is a new tutorial on worg: http://orgmode.org/worg/org-tutorials/
 org4beginners.php. The idea is to write a tutorial for somebody who is
 new to org-mode.
 ...
 For everybody:
 -What kind of tutorial would be the most useful? 
 -What in your experience people find confusing?
 
 Thanks for taking the time to put this on Worg. I wish I had had such a
 concise summary of the various flavors of emacs on different platforms
 when I started exploring org-mode.
 
 I was wondering if you could elaborate on the following. Are you
 suggesting that new users should never use M-x customize?
Well, I don't know about anybody else, but I *never* use it. I think it is 
awful. But then, what do I know….
 
 ,
 | The biggest pain, when you just begin with Emacs, is the configuration.
 | There is not really a menu for it (you might later hear there is, but
 | they are lying, that menu is really there to trap innocent people), you
 | need to edit a text-file.
 `
 
 A few comments:
 
 1. Some of the step-by-step instructions might be a bit easier to
   follow in list format (rather than paragraphs).
Hmm, I see your point, but having a tutorial that is just a bunch of lists 
looks really ugly. Off course if people don't understand it, it's not good 
either. Let's see if more complaints follow on this.
 
 2. If I were reading the tutorial for the first time, I might conclude
   that I had to place #-*- mode: org -*- at the top of all my org
   files, even after configuring auto-mode-alist.
fixed, added a note about that.
 
 3. Why C-x b 2.org -- M-x org-mode -- C-x C-s as the recommended
   workflow? Once the configuration file is set up, C-x C-f 2.org will
   bring one right into org-mode.
As far as I can see, that is actually what the doc says:

   Save the file (*C-x s*) as 2.org, and you will notice that the
   colors change, syntax highlighting is turned on, and Emacs
   understands you are working in org-mode.

but if it is not clear, let me know what paragraph you are refering to.
 
 Thanks again for all the work you've put into this.
 
 Best,
 Matt
 
and thank you for your remarks!

alex

___
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] Problems with hyperlinked files

2010-03-23 Thread Jan Böcker
On 23.03.2010 10:13, Leo Alekseyev wrote:
 Hi all,
 I am unable to open locally linked files if I use angle brackets to
 protect spaces, like so:
 
[[file:E:\ebooks\math\Probability and statistics\The Elements of
 Statistical Learning (2nd ed).pdf][Hastie et al]]
 
 -- the echo area displays no such file: E:\ebooks\math\Probability
 and statistics\The Elements of Statistical Learning (2nd ed).pdf
  note the right angle bracket here.  Generally, any file links
 with angle brackets refuse to open.  Is this a known bug?...  is there
 a patch?..  (Org mode 6.31a, emacs 23.1)

Hi Leo,

I could reproduce this, but I don't know if this is really a bug.
(I never heard of protecting spaces with angle brackets.)

You do not have to protect spaces, because the URL is surrounded by the
square brackets. I could only insert angle brackets into a link by
editing it manually; when you edit a link with C-c C-l and enclose the
URL in angle brackets, Org will automatically remove them.

HTH, 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


[Orgmode] Re: apparently too stupid to use checkboxes

2010-03-23 Thread Detlef Steuer
On Tue, 23 Mar 2010 20:30:55 +0100
David Maus dm...@ictsoc.de wrote:

 The quote( looks like a leftover of something.  The line should read:
 
 '(org-todo-keywords '((sequence TODO STARTED WAITING | DONE)))
 
 Maybe fixing this does the job?

No, it didn't.

 
 If the (defmacro is not working my guess what be that you are running
 some kind of a mixup of probably old byte compiled code and the
 current developement version.
 
 Are there any old installations of Org arround?

Doesn't seem so, but would be my guess, too.

Funny thing is, I now have two machines with as far as I can tell
identical configurations. 

One works, one doesn't. :-) 

Anyway, thanks a lot to all of you. I'll take the opportunity to 
rebuild .emacs from scratch.

Detlef

 
  -- David



___
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] How to open pdf file links with evince under linux?..

2010-03-23 Thread Jan Böcker
On 23.03.2010 10:17, Leo Alekseyev wrote:
 When using org mode under windows, links to local PDF files bring up
 Acrobat.  However, under linux, these links just spawn a new empty
 buffer in emacs in fundamental mode.  How can I make PDF links bring
 up evince?...
 

As far as I know, Org uses the system defaults when it does not know how
to open a file, and when the system does not know, Org opens the file in
emacs. Under linux, that system default is the mailcap database, but I
have no idea how to configure that. (It doesn't even appear to exist on
my system.)

But we can tell Org directly what to do with PDF files: take a look at
the variable org-file-apps (M-x customize-variable org-file-apps).

Each entry in this list consists of (selector, action) pairs where the
action tells Org how to open a file, and the selector (in most cases a
regular expression matched against the file name) specifies what kind of
files to open in this way.

Add the following entry:

Extension:  \.pdf\'
Command:evince %s

Links to PDF files should now open in evince.


If you pull the current git version of Org, you could add a second entry:

Extension:  \.pdf::\([0-9]+\)\'
Command:evince %s -p %1

This would allow you to link to a specific page of a PDF like this:
[[file:/path/to/document.pdf::21]]
(Shameless plug for a patch of mine that just got accepted.)


HTH, 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


Re: [Orgmode] Re: org-mode tutorial questionaire

2010-03-23 Thread Friedrich Delgado Friedrichs
Hi

Alexander Poslavsky schrieb:
  I was wondering if you could elaborate on the following. Are you
  suggesting that new users should never use M-x customize?
 Well, I don't know about anybody else, but I *never* use it. I think it is 
 awful. But then, what do I know….
---Zitatende---

Maybe that's a bit opinionated for a tutorial then. I do use M-x
customize and I believe it has its merits.

-- 
Friedrich Delgado Friedrichs frie...@nomaden.org
 TauPan on Ircnet and Freenode ;)


___
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: org-mode tutorial questionaire

2010-03-23 Thread Richard Riley
Matt Lundin m...@imapmail.org writes:

 Hi Alex,

 Alexander Poslavsky alexander.poslav...@gmail.com writes:

 There is a new tutorial on worg: http://orgmode.org/worg/org-tutorials/
 org4beginners.php. The idea is to write a tutorial for somebody who is
 new to org-mode.
 ...
 For everybody:
 -What kind of tutorial would be the most useful? 
 -What in your experience people find confusing?

 Thanks for taking the time to put this on Worg. I wish I had had such a
 concise summary of the various flavors of emacs on different platforms
 when I started exploring org-mode.

 I was wondering if you could elaborate on the following. Are you
 suggesting that new users should never use M-x customize?

As a general comment on this : I used to hand code all my
customisations. And ran into terrible problems somewhere along the
line. Now anything that has a customise interface, I use that interface
and have had no such problems anymore. The downside of course is that
your customisations are not grouped logically with comments -but, for
me anyway, using the customisation interface lends itself to much more
trustworthy code.


 ,
 | The biggest pain, when you just begin with Emacs, is the configuration.
 | There is not really a menu for it (you might later hear there is, but
 | they are lying, that menu is really there to trap innocent people), you
 | need to edit a text-file.
 `

 A few comments:

 1. Some of the step-by-step instructions might be a bit easier to
follow in list format (rather than paragraphs).

 2. If I were reading the tutorial for the first time, I might conclude
that I had to place #-*- mode: org -*- at the top of all my org
files, even after configuring auto-mode-alist.

 3. Why C-x b 2.org -- M-x org-mode -- C-x C-s as the recommended
workflow? Once the configuration file is set up, C-x C-f 2.org will
bring one right into org-mode.

 Thanks again for all the work you've put into this.

 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


-- 
ASCII ribbon campaign ( )
 - against HTML email  X
  vCards / \



___
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] Confusion about TODO tags

2010-03-23 Thread Chao Lu
Dear all,

Why we need the tag-todo, what's the difference between the tag-todo and if
I define a tag named with TODO?

And is it possible when I change the state of one task to done, it will be
archived automatically?

Besides, how could I modify the behavior of the archive function, since I
found the item
-
*** blabla after archive, will be changed to

* blabla
properties
-
which I do not like so much.

Thanks a lot,

Chao
___
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: org-mode tutorial questionaire

2010-03-23 Thread David Maus
Friedrich Delgado Friedrichs wrote:
Hi

Alexander Poslavsky schrieb:
  I was wondering if you could elaborate on the following. Are you
  suggesting that new users should never use M-x customize?
 Well, I don't know about anybody else, but I *never* use it. I think it is 
 awful. But then, what do I know….
---Zitatende---

Maybe that's a bit opinionated for a tutorial then. I do use M-x
customize and I believe it has its merits.

I only use M-x customize to look what lever I can pull but pointing at
customize for a user who is new to Emacs, Org and, in turn, elisp
seems to me a really good sugestion.  Not just for the user, but maybe
for the authors of the tutorial: You don't have to explain elisp when
talking about customization options.

 -- David

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


pgpgJV8AHJGUv.pgp
Description: PGP signature
___
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] using orgmode to send html mail?

2010-03-23 Thread Xiao-Yong Jin
On Tue, 23 Mar 2010 13:54:39 -0600, Eric Schulte wrote:

 Nice to see this topic has come back to life.
 I've been playing with my old org-html-mail.el file, and come up with a
 much simpler solution, which takes advantage of the mml message mode
 functionality with is used in gnus (and I would imagine in some other
 Emacs mail clients, but I can't be sure).

 Just call this function and either the active region of your message
 buffer or the entire body (if no region is active) will be exported to
 html using org-mode, and will be wrapped in the appropriate mml wrapper
 to be sent as the appropriate mime type.

Thumbs up for this one.  It should be included in
org-contrib, probably after taken care of other mail client
in emacs?

 So for example this
 1 |  2 | 3 |
 --++---|
 first column | second | third |

 will be exported as this
 ━━
1  2   3   
 ──
  first column   second  third 
 ━━

I use emacs-w3m in gnus, and the table looks great.
-- 
Jc/*__o/*
X\ * (__
Y*/\  


___
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: org-mode tutorial questionaire

2010-03-23 Thread Alexander Poslavsky

On Mar 23, 2010, at 10:43 PM, David Maus wrote:

 Friedrich Delgado Friedrichs wrote:
 Hi
 
 Alexander Poslavsky schrieb:
 I was wondering if you could elaborate on the following. Are you
 suggesting that new users should never use M-x customize?
 Well, I don't know about anybody else, but I *never* use it. I think it is 
 awful. But then, what do I know….
 ---Zitatende---
 
 Maybe that's a bit opinionated for a tutorial then. I do use M-x
 customize and I believe it has its merits.
 
 I only use M-x customize to look what lever I can pull but pointing at
 customize for a user who is new to Emacs, Org and, in turn, elisp
 seems to me a really good sugestion.  Not just for the user, but maybe
 for the authors of the tutorial: You don't have to explain elisp when
 talking about customization options.


ok, it looks that the general opinion is a lot more positive then I thought. 
I'll change it in the tutorial, and see if other things can be done using M-x 
customize.

thanks for the remarks, keep them coming,
alex



___
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: org-mode tutorial questionaire

2010-03-23 Thread Thomas S. Dye


On Mar 23, 2010, at 10:50 AM, Friedrich Delgado Friedrichs wrote:


Hi

Alexander Poslavsky schrieb:

I was wondering if you could elaborate on the following. Are you
suggesting that new users should never use M-x customize?
Well, I don't know about anybody else, but I *never* use it. I  
think it is awful. But then, what do I know….

---Zitatende---

Maybe that's a bit opinionated for a tutorial then. I do use M-x
customize and I believe it has its merits.

--
   Friedrich Delgado Friedrichs frie...@nomaden.org
TauPan on Ircnet and Freenode ;)



Aloha all,

I think Alexander's manual is an excellent start and will be helpful  
to newbies.


To be successful, the manual will have to make many choices for the  
newbie, among them whether or not to use customize.  It will be very  
different from the usual manual, which is designed to expose full  
complexity.


IMHO, the goal of describing a sensible path to productive use of Org- 
mode should be the highest priority.  When there is the urge to say to  
the newbie, you can do this or that, it should be avoided.  Instead,  
the template should be do it this way.


I agree with Friedrich that customize has merits (though I don't use  
it).  I like Alexander's vivid language, but agree with Friedrich that  
it doesn't need to be so opinionated in this case.  Perhaps the  
template for these alternate paths might be a footnote there is  
[[another way][link]] to do this.


All the best,
Tom

___
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] Basic orgmode tutorial

2010-03-23 Thread Russell Adams
The idea of a tutorial is great, but has anyone considered a
pre-configured out-of-the-box Org customized Emacs distribution?

I've had to help several new users get things like basic agenda, emacs
initialization, and remember templates setup and it seemed very
repetitive.

The Emacs learning curve really holds back Org adoption in that sense,
they can't just open Emacs and use Org immediately as anything other
than an outline editor.

Perhaps just a script to enact default customizations, that the
tutorial could then build upon?

Thanks.

On Mon, Mar 22, 2010 at 07:59:11PM +0100, Alexander Poslavsky wrote:
 Hello,
 
 lately there is some talk about a basic org-mode tutorial. Something simpler 
 then the documentation, that will help a person new to emacs and org-mode 
 start using org. I would like to put the following on worg, if people would 
 think something like this would fit the bill. What do you think? If the 
 response is positive then I would add more chapters to it.
 
 greetings,
 
 alex
 


 ___
 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



--
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] org-beamer: How to get items appear sequentially rather than all at once

2010-03-23 Thread Christian Wittern

On 2010-03-24 1:08, Thomas S. Dye wrote:



Aloha Christian,

Please see the beamer documentation for 
\beamerdefaultoverlayspecification.  You can likely set it to yield 
the behavior you're after.



Thomas,
Hmm, there does not seem to be such a thing as 
\beamerdefaultoverlayspecification.  The only place where default 
overlays are mentioned is in connection with BEAMER_envargs.  But when I 
try the following, I do not get the expected results:

#+STARTUP: beamer
#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [presentation]
#+BEAMER_FRAME_LEVEL: 1
#+BEAMER_HEADER_EXTRA: \usetheme{default}\usecolortheme{default}
#+COLUMNS: %40ITEM %10BEAMER_env(Env) %10BEAMER_envargs(Env Args) 
%4BEAMER_col(Col) %8BEAMER_extra(Extra)

#+OPTIONS: toc:nil

* Frame 1
** This point should appear first
:PROPERTIES:
:BEAMER_envargs: \pause
:END:

** And this point should be second
:PROPERTIES:
:BEAMER_envargs: \pause
:END:

I guess I dont really understand how this is supposed to work, so a 
minimal example would be much appreciated!


Christian

--
 Christian Wittern
 Institute for Research in Humanities, Kyoto University
 47 Higashiogura-cho, Kitashirakawa, Sakyo-ku, Kyoto 606-8265, JAPAN



___
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: org-mode tutorial questionaire

2010-03-23 Thread Matt Lundin
Alexander Poslavsky alexander.poslav...@gmail.com writes:

 On Mar 23, 2010, at 8:42 PM, Matt Lundin wrote:

 Hi Alex,
 
 Alexander Poslavsky alexander.poslav...@gmail.com writes:
 
 There is a new tutorial on worg: http://orgmode.org/worg/org-tutorials/
 org4beginners.php. The idea is to write a tutorial for somebody who is
 new to org-mode.
 ...
 For everybody:
 -What kind of tutorial would be the most useful? 
 -What in your experience people find confusing?
 
 Thanks for taking the time to put this on Worg. I wish I had had such a
 concise summary of the various flavors of emacs on different platforms
 when I started exploring org-mode.
 
 I was wondering if you could elaborate on the following. Are you
 suggesting that new users should never use M-x customize?

 Well, I don't know about anybody else, but I *never* use it. I think
 it is awful. But then, what do I know….

I don't use it much now, either. But when I was learning emacs, it eased
me gently into the wild and woolly world of lists, symbols, cons cells,
and the like. In addition, M-x customize-group [RET] org is a nice way
to browse org-mode's wealth of options and internal documentation. And
Carsten has put a tremendous amount of work into coding all those
exemplary defcustoms in the org*.el files. :)

 
 3. Why C-x b 2.org -- M-x org-mode -- C-x C-s as the recommended
   workflow? Once the configuration file is set up, C-x C-f 2.org will
   bring one right into org-mode.
 As far as I can see, that is actually what the doc says:

Save the file (*C-x s*) as 2.org, and you will notice that the
colors change, syntax highlighting is turned on, and Emacs
understands you are working in org-mode.

 but if it is not clear, let me know what paragraph you are refering
 to.

Sorry if my question was unclear. I'm simply wondering whether we should
recommend a multi-step process to new users (i.e., C-x b to create a new
buffer and then C-x C-s to activate org-mode) when C-x C-f (find-file)
both creates a new buffer and activates org-mode immediately. Of course,
all this is a matter of taste (as is almost everything in emacs)! But I
suspect a new user might find it a bit crufty if org-mode commands don't
work *until* the buffer is first saved. Also, C-x b (switch-to-buffer)
followed by C-x s typically requires you to provide two names (first the
buffer and then the file), whereas C-x C-f does everything at once.

Thanks again for all the work you put into this.

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] Re: org-beamer: How to get items appear sequentially rather than all at once

2010-03-23 Thread Matt Lundin
Hi Christian,

Christian Wittern cwitt...@gmail.com writes:

 On 2010-03-24 1:08, Thomas S. Dye wrote:


 Aloha Christian,

 Please see the beamer documentation for
 \beamerdefaultoverlayspecification.  You can likely set it to yield
 the behavior you're after.

 Thomas,
 Hmm, there does not seem to be such a thing as
 \beamerdefaultoverlayspecification.  The only place where default
 overlays are mentioned is in connection with BEAMER_envargs.  But when
 I try the following, I do not get the expected results:

Try the following:

 #+STARTUP: beamer
 #+LaTeX_CLASS: beamer
 #+LaTeX_CLASS_OPTIONS: [presentation]
 #+BEAMER_FRAME_LEVEL: 1
 #+BEAMER_HEADER_EXTRA: \usetheme{default}\usecolortheme{default}
 #+COLUMNS: %40ITEM %10BEAMER_env(Env) %10BEAMER_envargs(Env Args)
 %4BEAMER_col(Col) %8BEAMER_extra(Extra)
 #+OPTIONS: toc:nil

 * Frame 1 
 :PROPERTIES:
 :BEAMER_envargs: [+-]
 :END:
 ** This point should appear first
 ** And this point should be second


You need to set the default overlay argument on the frame (i.e., [+-]).
This instructs LaTeX to create slides that reveal the items in the frame
one by one.

If you want to enable this behavior for all slides, you can place the
following line before the first heading:

#+beamer: \beamerdefaultoverlayspecification{+-}

See section 9.6.3 of the beamer manual (Action Specifications) for more
details.

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] Re: Confusion about TODO tags

2010-03-23 Thread Matt Lundin
Chao Lu looc...@gmail.com writes:

 Why we need the tag-todo, what's the difference between the tag-todo
 and if I define a tag named with TODO?

I could not find a tag-todo anywhere in the manual. Are you referring
to the tags-todo search discussed in the documentation for
org-agenda-custom-commands? If so, this search returns all active TODOs
that match a given tag.

 And is it possible when I change the state of one task to done, it will
 be archived automatically?

(add-hook 'org-after-todo-state-change-hook 
  (lambda ()
(when (string-match org-looking-at-done-regexp state)
  (org-archive-subtree-default

 Besides, how could I modify the behavior of the archive function, since
 I found the item
 -
 *** blabla after archive, will be changed to

 * blabla
 properties
 -
 which I do not like so much.

I assume you mean:

,
| * blabla
|   :PROPERTIES:
|   :ARCHIVE_TIME: 2010-03-23 Tue 20:10
|   :ARCHIVE_CATEGORY: blaaahhh
|   :END:
`

If you want to avoid the context properties, use the following setting:

(setq org-archive-save-context-info nil)

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] iCalendar export using wrong directory?

2010-03-23 Thread David A. Gershman

Hello,

My .emacs includes these lines:
 '(org-agenda-files (quote (projects.org calendar.org)))
 '(org-directory ~/)
 '(org-combined-agenda-icalendar-file ~/webdav/org.ics)

~/webdav is used for my MobileOrg staging area also.  In my
'org-directory' are my source .org files including one called
'calendar.org'.  My ~/webdav directory normally also has the 'staged'
version for MobileOrg.  During debugging this problem though, I removed
it from ~/webdav so I have only the source in ~/.

In short, directory state is:

  ~/
 projects.org
 calendar.org
 webdav/
projects.org
checksum.dat
index.org
{no calendar.org}

When I issue 'org-export-icalendar-combine-agenda-files', I get the
following error:

non-existent agenda file calendar.org. [R]emove from list or [A]bort?

This leads me to believe, 'org-export-icalendar-combine-agenda-files' is
using files in the '~/webdav' directory and not my source files for the
export.  Is this how it's supposed to work?? i.e. use the path
included in 'org-combined-agenda-icalendar-file'?

Thanks!


David A. Gershman
gersh...@dagertech.net
http://dagertech.net/gershman/
It's all about the path! --d. gershman


___
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: org-mode tutorial questionaire

2010-03-23 Thread Alexander Poslavsky
On Mar 24, 2010, at 12:46 AM, Matt Lundin wrote:
snip
 
 Sorry if my question was unclear. I'm simply wondering whether we should
 recommend a multi-step process to new users (i.e., C-x b to create a new
 buffer and then C-x C-s to activate org-mode) when C-x C-f (find-file)
 both creates a new buffer and activates org-mode immediately. Of course,
 all this is a matter of taste (as is almost everything in emacs)! But I
 suspect a new user might find it a bit crufty if org-mode commands don't
 work *until* the buffer is first saved. Also, C-x b (switch-to-buffer)
 followed by C-x s typically requires you to provide two names (first the
 buffer and then the file), whereas C-x C-f does everything at once.
snip
You are probably right, leaving out C-x b, will make it just a bit simpler,

thanks,
alex



___
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: org-mode tutorial questionaire

2010-03-23 Thread Bernt Hansen
Richard Riley rileyrg...@gmail.com writes:

 Matt Lundin m...@imapmail.org writes:

 Hi Alex,

 Alexander Poslavsky alexander.poslav...@gmail.com writes:

 There is a new tutorial on worg: http://orgmode.org/worg/org-tutorials/
 org4beginners.php. The idea is to write a tutorial for somebody who is
 new to org-mode.
 ...
 For everybody:
 -What kind of tutorial would be the most useful? 
 -What in your experience people find confusing?

 Thanks for taking the time to put this on Worg. I wish I had had such a
 concise summary of the various flavors of emacs on different platforms
 when I started exploring org-mode.

 I was wondering if you could elaborate on the following. Are you
 suggesting that new users should never use M-x customize?

 As a general comment on this : I used to hand code all my
 customisations. And ran into terrible problems somewhere along the
 line. Now anything that has a customise interface, I use that interface
 and have had no such problems anymore. The downside of course is that
 your customisations are not grouped logically with comments -but, for
 me anyway, using the customisation interface lends itself to much more
 trustworthy code.

I also use customize extensively -- wherever it is available.  I don't
have to worry about the exact syntax of the value of the variable - I
can just use the customize interface and pick what I want and move on to
more productive things.

I used to hand code variables as Richard did but found I wasted a heck
of a lot more time fiddling with the syntax of a variable doing that
instead of just setting it and forgetting it with the customize
interface.  The customize interface that Carsten has put together also
makes it easy to see all of the options for a variable in org-mode.

Some variables need to be set before org-mode is loaded (when using
setq) but as I understand it this isn't the case for customizations.

Regards,
Bernt

PS.

I keep my ~/.emacs - ~/git/emacs/emacs.el and ~/git/emacs/custom.el
files in a git repository (~/git/emacs) so I can commit changes to these
files and add meaningful comments about the reason for the change in the
commit message.  This lets me easily experiment with changing half a
dozen variables and not worrying about remembering the old values in
case I want to go back.  Git has the information and it's easy to
restore the old values for any point in the git history.  This also lets
me synchronize variable changes to my laptop so my on-the-road org-mode
setup is identical to my workstation.


___
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] Problems with hyperlinked files

2010-03-23 Thread Leo Alekseyev

 I could reproduce this, but I don't know if this is really a bug.
 (I never heard of protecting spaces with angle brackets.)

Actually, it's right there in section 4.3 of the manual, last
sentence: if you need to remove ambiguities about the end of the
link, enclose them in angular brackets. 

 You do not have to protect spaces, because the URL is surrounded by the
 square brackets. I could only insert angle brackets into a link by
 editing it manually; when you edit a link with C-c C-l and enclose the
 URL in angle brackets, Org will automatically remove them.

Thanks, both these methods work -- although I still think it would be
nice if org mode could properly handle angle brackets inside square
ones; the motivation here is that often I just paste in file paths
instead of  using C-c C-l, and then I have to use angle brackets to
deal w/ spaces; if I later want to change it to an annotated link, it
would be nice not to have to strip the angle brackets before wrapping
it in square ones...


___
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: org-beamer: How to get items appear sequentially rather than all at once

2010-03-23 Thread Christian Wittern

Dear Matt,

On 2010-03-24 9:01, Matt Lundin wrote:

You need to set the default overlay argument on the frame (i.e., [+-]).
This instructs LaTeX to create slides that reveal the items in the frame
one by one.

If you want to enable this behavior for all slides, you can place the
following line before the first heading:

#+beamer: \beamerdefaultoverlayspecification{+-}

   

Thanks for your explanation.  I got it now!


See section 9.6.3 of the beamer manual (Action Specifications) for more
details.
   
Sorry, I did not realize there was a separate manual for beamer.  I will 
go hunting now!


All the best,

Christian



___
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