[Orgmode] Re: tagging during creation

2007-11-05 Thread Andrew J. Korty
Here's what I use:

 (defun org-set-buffer-todo-tags ()
   Set tags for all tagless TODO headings in the current buffer.
   (save-excursion
 (goto-char (point-min))
 (while (re-search-forward \\* \\(?:TODO\\|ACTION\\|WAITING\\)  nil t)
   (let ((tags (org-get-tags)))
 (if (or (not tags) (string= tags ))
 (org-set-tags))
 
 (add-hook 'remember-hook
   (lambda ()
 (define-key (current-local-map) 
   (lambda ()
 (interactive)
 (if (string= (buffer-name (current-buffer)) *Remember*)
 (org-set-buffer-todo-tags))
 (org-ctrl-c-ctrl-c)

-- 
Andrew J. Korty, Deputy Information Security Officer
Office of the Vice President for Information Technology and CIO
Indiana University


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


[Orgmode] beginner tries to convert to org-mode

2007-11-05 Thread Detlef Steuer
Hi,

I'm just starting to use org-mode. As an user of vimoutliner I'm somewhat
new to emacs, too. :)
Therefore it's  most probably not org-mode's fault but mine.

The question:
Following  the documentation I try the structure editing commands.
M-Ret works just fine, as does C-Ret.

But all promoting or demoting commands do not work as advertised.
I get i.e. ESC S-right undefined etc.

ESC-S centers next paragraph. Nice but unexpected for me. ;-)

My .emacs
;; 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

and emacs invoked as
emacs -q -l .emacs

If important: OpenSuse 10.2 , emacs 22.1.1 and org-mode 5-13e

Where is my obvious fault?

Thx
Detlef


-- 
Somebody once said, If you lend someone $10 and never see that person 
again, it was probably worth it.
--- found in a mailing list


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


[Orgmode] Re: When is a TODO really a TODO ? ...

2007-11-05 Thread Bernt Hansen
Carsten Dominik [EMAIL PROTECTED] writes:

 you make an interesting point.  The fact that items with a process
 state are called TODO
 items had two roots:

 - historically:  Initially, there was only TODO and DONE.

 - pedagogically: Org-mode tries to be easy-entry, but then
   lots of stuff under the hood.
   This is why TODO items are introduced the way they are.
   You said that you have been confused by this, so maybe it
   is not the right way after all.  Any proposals on how to
   address this in the docs?


Maybe just call todo items 'Tasks' and their current state is 'TODO',
'DONE', etc ?

,
| * TODO Thing 1
|   I'm a task
| ** NEXT Thing 1 first item
|Me too! work on me next
| * Some random information
|   I'm not a task since I don't need to be 'done'
| * DONE Completed task
|   I'm a completed task
`

Bernt




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


[Orgmode] inserting files within remember templates

2007-11-05 Thread Adam Spiers
I'm finally getting around to setting up remember properly for regular
use.  One thing I think I'll need is the ability to include the
contents of an external file in a remember template at the time of
instantiation.  Or if there was a % escape sequence for executing
arbitrary elisp, that would be even better, of course.  Is there
anything like that at the moment?  I couldn't see anything in the
docs.


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


Re: [Orgmode] property constants in elisp formulas

2007-11-05 Thread Eddward DeVilla
On 11/2/07, Eddward DeVilla [EMAIL PROTECTED] wrote:
 On 11/1/07, Carsten Dominik [EMAIL PROTECTED] wrote:
  
   Lastly, since I'm whining, there's a bug in the formula editor that
   I'm not sure if I've mentioned before.  Edit the table below with
   C-c
   '.  The '(@-I$2..$2) will become '(@-I$2..B) which causes #ERRORs.
 
  This is the same, @-I$2..$2 is the same as @-I$2..B
 
  The errors are caused by interpolations: you get something like
 
  (car '2 18 58)
 
  which is obvioulsly a bug.  You need to enclose the properties in
  parenthesis,
  or supply the parenthesis in the formula, so that interpolation will
  lead to
 
  (car '(2 18 58))

 Actually, that wasn't what I was seeing.  In the table formula editor
 it highlight the region represented by @-I$2..B as though it were
 @-I$2..$3.  I'll have to see if I can put together a better recreate.
 I have this happen on my machine at work, but it's not happening not
 at home.  Sorry.

OK.  My fault.  I had an old version of org at work.  This has already
been fixed.

Edd


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


Re: [Orgmode] inserting files within remember templates

2007-11-05 Thread Eddward DeVilla
I haven't used remember, so I don't know the limitations, but could
C-x,C-i work?

Edd

On 11/5/07, Adam Spiers [EMAIL PROTECTED] wrote:
 I'm finally getting around to setting up remember properly for regular
 use.  One thing I think I'll need is the ability to include the
 contents of an external file in a remember template at the time of
 instantiation.  Or if there was a % escape sequence for executing
 arbitrary elisp, that would be even better, of course.  Is there
 anything like that at the moment?  I couldn't see anything in the
 docs.


 ___
 Emacs-orgmode mailing list
 Remember: 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
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org-occur customize

2007-11-05 Thread Harald Weis
On Sun, Nov 04, 2007 at 08:22:12AM +0100, Carsten Dominik wrote:
 
 On  3Nov2007, at 12:26 AM, Harald Weis wrote:
 

 Harald Weis [EMAIL PROTECTED] writes:
 
 I need the following customization of the org-occur function:
 If the match is in a headline, headline _and_ body are made visible.
 
 Is there a way to accomplish this?
 
 5.14 will have a new variable `org-show-entry-below' that allows to
 customize this behavior.  Thanks for pointing out this omission!
 
Thank you in advance for that new variable.

The present FreeBSD port is
org-mode.el-emacs21-4.64_1

4.64 is well behind the current version 5.13i, and so is 4.67c.
Not sure that the variable will soon be available for me, is it?

Harald

-- 
FreeBSD 6.2-RELEASE-p2 #0: Tue Feb 27 22:56:09 UTC 2007


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


Re: Re: [Orgmode] org-occur customize, newer version

2007-11-05 Thread Giovanni Ridolfi
On Mon, Nov 05, 2007 at 08:31:10PM +0100, Harald Weis wrote:
 
 The present FreeBSD port is
 org-mode.el-emacs21-4.64_1
 
 4.64 is well behind the current version 5.13i, and so is 4.67c.
 Not sure that the variable will soon be available for me, is it?

Harald, 
please, have dig the archives looking for the thread with the subject 

Upgrading org-mode--Windows

on 23 October

and ... act accordingly ;-)

Cheers,
Giovanni

-- 
Giovanni Ridolfi, Chemist




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


Re: Re: [Orgmode] org-occur customize, newer version

2007-11-05 Thread Harald Weis
On Mon, Nov 05, 2007 at 09:52:27PM +0100, Giovanni Ridolfi wrote:
 On Mon, Nov 05, 2007 at 08:31:10PM +0100, Harald Weis wrote:
  
  The present FreeBSD port is
  org-mode.el-emacs21-4.64_1
  
  4.64 is well behind the current version 5.13i, and so is 4.67c.
  Not sure that the variable will soon be available for me, is it?
 
 Harald, 
 please, have dig the archives looking for the thread with the subject 
 
 Upgrading org-mode--Windows
 
 on 23 October
 
 and ... act accordingly ;-)

Alright, thank you, Giovanni.

What is possible under Windows is even more possible under Unix! :-)

Ciao,
Harald
-- 
FreeBSD 6.2-RELEASE-p2 #0: Tue Feb 27 22:56:09 UTC 2007
--
If Kyoto had been influenced more by the pragmatism of scientists and
engineers and less by romantic idealism, we might soon have harvested fusion
energy. As it is, even given good will, it may take 20 more years before it
begins to heat our electric kettles or run our word processors.
James Lovelock in The Revenge of Gaia



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


Re: [Orgmode] beginner tries to convert to org-mode

2007-11-05 Thread Eric J Haywiser

But all promoting or demoting commands do not work as advertised.
I get i.e. ESC S-right undefined etc.


Alt-S-right seems to work for me while Esc-S-right just beeps.
Perhaps that and this excerpt from emacs info will help to clear things up?

   Another Emacs character-set extension is additional modifier bits.
Only one modifier bit is commonly used; it is called Meta.  Every
character has a Meta variant; examples include `Meta-a' (normally
written `M-a', for short), `M-A' (not the same character as `M-a', but
those two characters normally have the same meaning in Emacs),
`M-RET', and `M-C-a'.  For reasons of tradition, we usually write
`C-M-a' rather than `M-C-a'; logically speaking, the order in which the
modifier keys CTRL and META are mentioned does not matter.

   Some terminals have a META key, and allow you to type Meta
characters by holding this key down.  Thus, `Meta-a' is typed by
holding down META and pressing `a'.  The META key works much like
the SHIFT key.  Such a key is not always labeled META, however, as
this function is often a special option for a key with some other
primary purpose.  Sometimes it is labeled ALT or EDIT; on a Sun
keyboard, it may have a diamond on it.

   If there is no META key, you can still type Meta characters using
two-character sequences starting with ESC.  Thus, you can enter `M-a'
by typing `ESC a'.  You can enter `C-M-a' by typing `ESC C-a'.
ESC is allowed on terminals with META keys, too, in case you have
formed a habit of using it.


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


Re: [Orgmode] beginner tries to convert to org-mode

2007-11-05 Thread William Henney
Hi Detlef

On 11/5/07, Detlef Steuer [EMAIL PROTECTED] wrote:
 But all promoting or demoting commands do not work as advertised.
 I get i.e. ESC S-right undefined etc.

 ESC-S centers next paragraph. Nice but unexpected for me. ;-)

Although ESC can usually be used as a synonym for Meta, this is not
always true. In particular, you can't combine ESC with shifted arrow
keys. You have to use Meta-Shift-right (all keys at once), where Meta
may actually be labelled as Alt or (heavens forbid) the Windows key on
your keyboard.

And the S in S-right is not the letter S, it is the shift key...

I'm assuming you are running emacs graphically, not inside a terminal.

Hope this helps

Will


-- 

  Dr William Henney, Centro de Radioastronomía y Astrofísica,
  Universidad Nacional Autónoma de México, Campus Morelia


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


Re: [Orgmode] bibtex fields in remember templates

2007-11-05 Thread Bastien
Carsten Dominik [EMAIL PROTECTED] writes:

 * TO_READ%?\n %a\n %:author (%:year).  %:title.  %:journal: %:pages.

 I know that links to bibtex entries are created using the custom
 search mechanism, but I can't figure out how to expose properties of
 the bibtex entry to remember or org-remember.

 This is, I think, hard using the current mechanism.  I believe it
 would be much better to create a new link type for BibTeX, now that
 this is possible.  The it would also be easy to set a lot of info that
 can be accessed by templates.

Please check org-bibtex.el here:

  http://www.cognition.ens.fr/~guerry/u/org-bibtex.el

This package does not affect the way BibTeX entries are stored and
inserted but it provides more information on them thru properties.
Typically, you'll use this information in *remember* templates.

So for example:

(setq org-remember-templates 
  '((?b * READ %?\n\n%a\n  %:author (%:year): %:title  In %:journal, 
%:pages.)))

will insert to relevant information about the author, the year, etc.

-- 
Bastien


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


[Orgmode] org-elisp-symbol.el --- Org links to emacs-lisp symbols

2007-11-05 Thread Bastien
Hi all,

in addition to org-bibtex.el and in the same range of ideas, here is
org-elisp-symbol.el:

  http://www.cognition.ens.fr/~guerry/u/org-elisp-symbol.el

It adds more properties to links created in emacs-lisp files.  Maybe
useful if you want to use remember when writing emacs-lisp code.

Comments  feedback welcome.  Enjoy!

-- 
Bastien


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


Re: [Orgmode] Re: When is a TODO really a TODO ? ...

2007-11-05 Thread Bastien
Bernt Hansen [EMAIL PROTECTED] writes:

 - pedagogically: Org-mode tries to be easy-entry, but then
   lots of stuff under the hood.
   This is why TODO items are introduced the way they are.
   You said that you have been confused by this, so maybe it
   is not the right way after all.  Any proposals on how to
   address this in the docs?


 Maybe just call todo items 'Tasks' and their current state is 'TODO',
 'DONE', etc ?

Good idea.  Here is a list of possible conventions for the manual:

- use keyword for TODO keyword
- use tasks for entries that have a keyword
- use entries for other entries (or entries in general)
- use heading when referring to the entry as outline-able
- use headline in the context of exporting/publishing

Maybe some typesetting conventions wouldn't hurt, too:

- use uppercase for KEYWORD
- use uppercase for drawers and special PROPERTIES
- capitalized the first letter for user-defined properties
- use lower-case for tags

Maybe this would help make the examples even more clearer.  This is
especially crucial when if comes to complex agenda searches.

What do you think?

-- 
Bastien


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


Re: [Orgmode] Re: When is a TODO really a TODO ? ...

2007-11-05 Thread Carsten Dominik


On  6Nov2007, at 4:28 AM, Bastien wrote:


Bernt Hansen [EMAIL PROTECTED] writes:


- pedagogically: Org-mode tries to be easy-entry, but then
  lots of stuff under the hood.
  This is why TODO items are introduced the way they are.
  You said that you have been confused by this, so maybe it
  is not the right way after all.  Any proposals on how to
  address this in the docs?



Maybe just call todo items 'Tasks' and their current state is 'TODO',
'DONE', etc ?


Good idea.  Here is a list of possible conventions for the manual:



- use keyword for TODO keyword
- use tasks for entries that have a keyword
- use entries for other entries (or entries in general)
- use heading when referring to the entry as outline-able
- use headline in the context of exporting/publishing

Maybe some typesetting conventions wouldn't hurt, too:

- use uppercase for KEYWORD
- use uppercase for drawers and special PROPERTIES
- capitalized the first letter for user-defined properties
- use lower-case for tags

Maybe this would help make the examples even more clearer.  This is
especially crucial when if comes to complex agenda searches.

What do you think?



This sounds like exactly how things should be..
One possible hickup:  In a GTD setting, an entry becomes a task by
attaching a context, so possibly without a TODO keyword.

- Carsten



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


Re: [Orgmode] bibtex fields in remember templates

2007-11-05 Thread Carsten Dominik


On  6Nov2007, at 1:06 AM, Bastien wrote:



Please check org-bibtex.el here:

  http://www.cognition.ens.fr/~guerry/u/org-bibtex.el


Hey cool!  I had been thinking about a full new link type with its own
prefix and search routine  But yes, a new link prefix is
not necessary, it is just a file, after all.

Great solution, as well for the Lisp symbols - but I cannot
get the :keys to work.  How is it supposed to work?

- Carsten





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


Re: [Orgmode] inserting files within remember templates

2007-11-05 Thread Carsten Dominik

Setting up remember mode runs a remember-mode-hook, you can use that.

I would be interested to know what kind of applications you have in mind
when you want to include a file into a template, or execute elisp code.
How about a few examples to persuade us that this is needed?

- Carsten

On  5Nov2007, at 7:17 PM, Adam Spiers wrote:


I'm finally getting around to setting up remember properly for regular
use.  One thing I think I'll need is the ability to include the
contents of an external file in a remember template at the time of
instantiation.  Or if there was a % escape sequence for executing
arbitrary elisp, that would be even better, of course.  Is there
anything like that at the moment?  I couldn't see anything in the
docs.


___
Emacs-orgmode mailing list
Remember: 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
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode