Re: [Orgmode] Re: Ringing the alarm bell in orgmode

2007-11-06 Thread Bastien
Uwe Jochum [EMAIL PROTECTED] writes:

 Message from Nov 06 2007 (10:43):
 But I cannot figure out how to set an alarm bell in Emacs for
 scheduled stuff in orgmode.

 Did you try `org-agenda-to-appt'?  

 Bastien,

 thanks! I hadn't seen that in the manual... 

One way to find information when browsing the manual in Info-mode is to
press `i' (M-x Info-index) and enter the index key to look for.

Here you can look for appointment reminders or appt.el and it will
open this page:

  (info (org)Weekly/Daily agenda)

If you think this information should appear somewhere else, please
suggestion other location(s).

 It works, but I have to do it manually evry time I start orgmode or
 every time I set a new appointment. Wouldn't it be good to make this
 more automatic, i.e. somehow configurable by the user, for instance
 like so: make it an option, so I can activate it globally in the
 org-agenda options menu, in such a way that new appointments are
 detected automatically and the bell rings without doing
 org-agenda-to-appt by hand?

Better let the user decide by himself when he wants `org-agenda-to-appt'
to be called.  Two (non-exclusive) methods:

1. Add a hook to `before-save-hook' locally in `org-mode-hook' so that
   saving an Org buffer will check for new appointments and add them to
   the list of appointments:

   (add-hook 'org-mode-hook
 (lambda() (add-hook 'before-save-hook
 'org-agenda-to-appt t t)))

   Note that pressing `s' in agenda buffers will save all agenda files
   and run `org-agenda-to-appt' for each of them.

2. Add a custom key to call 'org-agenda-to-appt from an agenda buffer.

   (org-defkey org-agenda-mode-map \C-cA 'org-agenda-to-appt)

If you use one of these two methods, maybe it's better to silent
`org-agenda-to-appt' since the repeated messages can be annoying.  
I'll provide a way to do this.

-- 
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: Ringing the alarm bell in orgmode

2007-11-06 Thread Richard G Riley
Bastien [EMAIL PROTECTED] writes:

 Uwe Jochum [EMAIL PROTECTED] writes:

 Message from Nov 06 2007 (10:43):
 But I cannot figure out how to set an alarm bell in Emacs for
 scheduled stuff in orgmode.

 Did you try `org-agenda-to-appt'?  

 Bastien,

 thanks! I hadn't seen that in the manual... 

 One way to find information when browsing the manual in Info-mode is to
 press `i' (M-x Info-index) and enter the index key to look for.

Is it just me or are emacs info pages really a bit of a dog to search
through?


 Here you can look for appointment reminders or appt.el and it will
 open this page:

   (info (org)Weekly/Daily agenda)

 If you think this information should appear somewhere else, please
 suggestion other location(s).

 It works, but I have to do it manually evry time I start orgmode or
 every time I set a new appointment. Wouldn't it be good to make this
 more automatic, i.e. somehow configurable by the user, for instance
 like so: make it an option, so I can activate it globally in the
 org-agenda options menu, in such a way that new appointments are
 detected automatically and the bell rings without doing
 org-agenda-to-appt by hand?

 Better let the user decide by himself when he wants `org-agenda-to-appt'
 to be called.  Two (non-exclusive) methods:

 1. Add a hook to `before-save-hook' locally in `org-mode-hook' so that
saving an Org buffer will check for new appointments and add them to
the list of appointments:

(add-hook 'org-mode-hook
(lambda() (add-hook 'before-save-hook
'org-agenda-to-appt t t)))

Note that pressing `s' in agenda buffers will save all agenda files
and run `org-agenda-to-appt' for each of them.

 2. Add a custom key to call 'org-agenda-to-appt from an agenda buffer.

(org-defkey org-agenda-mode-map \C-cA 'org-agenda-to-appt)

 If you use one of these two methods, maybe it's better to silent
 `org-agenda-to-appt' since the repeated messages can be annoying.  
 I'll provide a way to do this.


___
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: Ringing the alarm bell in orgmode

2007-11-06 Thread Bastien
Uwe Jochum [EMAIL PROTECTED] writes:

 I think the problem of finding the appropriate information is
 principally not a question of the right place for the right bit of
 information but a question of semantics. 

An index is the right place to handle people's semantic :)

 I had searched with diary integration orgmode, even in Google.

The thing is that `org-agenda-to-appt' is at the bottom of the page
about Diary/Calendar integration.  So when looking for these keywords
(either from the Info interface or from Google) you should have landed
not that far...

 I'll better try to make my brainware more flexible.

Remember the motto: « if something works, don't repair it ».  This
qualifies for brains as well!

 (And shouldn't your solution not be documented, perhaps in the FAQ?)

Yes why not.

-- 
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: Ringing the alarm bell in orgmode

2007-11-06 Thread Bastien
Richard G Riley [EMAIL PROTECTED] writes:

 One way to find information when browsing the manual in Info-mode is to
 press `i' (M-x Info-index) and enter the index key to look for.

 Is it just me or are emacs info pages really a bit of a dog to search
 through?

It's not just you.  

Many people don't like to search through the Info pages and whether this
interface is the best one for Emacs documentation is always a hot topic
on the emacs-devel mailing list.

But `i' (M-x Info-index) will really make your life easier.

Personnally I do like Info pages and Info-mode very much.  In addition
to Info-index, I'm mostly using these:

  `l' Info-history-back
  `L' Info-history
  `]' Info-forward-node

Once you get used to these few commands, it's really quick to find and
fetch relevant information.

HTH,

-- 
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: Ringing the alarm bell in orgmode

2007-11-06 Thread William Henney
On 11/6/07, Bastien [EMAIL PROTECTED] wrote:
 Richard G Riley [EMAIL PROTECTED] writes:
  Is it just me or are emacs info pages really a bit of a dog to search
  through?

 It's not just you.

 Many people don't like to search through the Info pages and whether this
 interface is the best one for Emacs documentation is always a hot topic
 on the emacs-devel mailing list.

 But `i' (M-x Info-index) will really make your life easier.

 Personnally I do like Info pages and Info-mode very much.  In addition
 to Info-index, I'm mostly using these:

   `l' Info-history-back
   `L' Info-history
   `]' Info-forward-node

 Once you get used to these few commands, it's really quick to find and
 fetch info relevant information.


I use l a lot, but I didn't know about L - thanks!

The commands I use most are spacebar, which just chugs through an
entire manual, and s, which does a regexp search.

I do like info pages when I can actually get the right ones to load.
The big problem I have with info is in setting it up so that it finds
the right files. For instance, I have totally failed to work out how I
can tell it where my org info files are, with the result that it
always shows me the old version that comes with my emacs (currently
4.67). I have tried setting Info-default-directory-list and
Info-directory-list, but all to no avail. Has anyone else had this
problem?

Cheers

Will

 HTH,

-- 

  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] Re: Ringing the alarm bell in orgmode

2007-11-06 Thread Chris Leyon
On 11/6/07, William Henney [EMAIL PROTECTED] wrote:
 The big problem I have with info is in setting it up so that it finds
 the right files. For instance, I have totally failed to work out how I
 can tell it where my org info files are, with the result that it
 always shows me the old version that comes with my emacs (currently
 4.67). I have tried setting Info-default-directory-list and
 Info-directory-list, but all to no avail. Has anyone else had this
 problem?
 Cheers
 Will

I too have experienced frustration attempting to use the
Info-*-directory-list variables.  However, I can live without this
particular feature, so I haven't spent much time trying to make it
work.

But I can tell you how to go to a specific info file which corresponds
to your new Org version:  from any info page, press the `g' key.  When
it prompts Go to node:, enter an opening parenthesis `(', then a
path to your desired info filename.  (Filename completion via the Tab
key works here which is very helpful.)  When you reach your filename,
close with a final `)' character, although Tab will insert this for
you too.  Press Enter, and your desired Info file should open.

Chris


___
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: Ringing the alarm bell in orgmode

2007-11-06 Thread Bastien
William Henney [EMAIL PROTECTED] writes:

 For instance, I have totally failed to work out how I can tell it
 where my org info files are, with the result that it always shows me
 the old version that comes with my emacs (currently 4.67). I have
 tried setting Info-default-directory-list and Info-directory-list, but
 all to no avail. Has anyone else had this problem?

I use the script Pete sent a while a go update org-mode automatically.
It fetches uncompress and untar the tarball archive.  It copies the org
info file (which name is really org) to the local ~/info/ directory
where I keep latest version of Info files.

Then I have this is my .emacs.el:

  (add-to-list 'Info-default-directory-list ~/info/)

And the info page is correct.  Does that help?

-- 
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: Ringing the alarm bell in orgmode

2007-11-06 Thread Richard G Riley
William Henney [EMAIL PROTECTED] writes:

 On 11/6/07, Bastien [EMAIL PROTECTED] wrote:
 Richard G Riley [EMAIL PROTECTED] writes:
  Is it just me or are emacs info pages really a bit of a dog to search
  through?

 It's not just you.

 Many people don't like to search through the Info pages and whether this
 interface is the best one for Emacs documentation is always a hot topic
 on the emacs-devel mailing list.

 But `i' (M-x Info-index) will really make your life easier.

 Personnally I do like Info pages and Info-mode very much.  In addition
 to Info-index, I'm mostly using these:

   `l' Info-history-back
   `L' Info-history
   `]' Info-forward-node

 Once you get used to these few commands, it's really quick to find and
 fetch info relevant information.


 I use l a lot, but I didn't know about L - thanks!

 The commands I use most are spacebar, which just chugs through an
 entire manual, and s, which does a regexp search.

 I do like info pages when I can actually get the right ones to load.
 The big problem I have with info is in setting it up so that it finds
 the right files. For instance, I have totally failed to work out how I
 can tell it where my org info files are, with the result that it
 always shows me the old version that comes with my emacs (currently
 4.67). I have tried setting Info-default-directory-list and
 Info-directory-list, but all to no avail. Has anyone else had this
 problem?

Yes.

On linux i ran (sudo) make install-info and then insured
/usr/local/info was on my info-directory-list

I also deleted any old org files lying around. I dont know, info files
and their set up is just damn confusing IMO, especially with plenty of
makefiles updating the wrong dir file. - its always worth checking which
define they use for their destination infopath.



 Cheers

 Will

 HTH,


___
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: Ringing the alarm bell in orgmode

2007-11-06 Thread William Henney
Thanks for your help, Chris, Richard, and Bastien. Chris's method of
loading the file explicitly will be useful until I get the path sorted
properly.

On 11/6/07, Bastien [EMAIL PROTECTED] wrote:
 William Henney [EMAIL PROTECTED] writes:
 I use the script Pete sent a while a go update org-mode automatically.
 It fetches uncompress and untar the tarball archive.  It copies the org
 info file (which name is really org) to the local ~/info/ directory
 where I keep latest version of Info files.

 Then I have this is my .emacs.el:

   (add-to-list 'Info-default-directory-list ~/info/)

 And the info page is correct.  Does that help?


I don't use Pete's script, but I do essentially the same thing and it
doesn't work

BUT, I think I have now found the culprit... It is all the fault of
fink (for the non Mac users, fink is a package manager and repo for OS
X, a bit like yum or apt, except a lot less useful)

At some point I had added the following line to my ~/.profile

  test -r /sw/bin/init.sh  . /sw/bin/init.sh

and that file, unbeknownst to me had been setting the INFOPATH
environment variable. This means that Info-directory-list gets
initialised from INFOPATH and that Info-default-directory-list is
completely ignored :(

So, the answer seems to be to unset INFOPATH in the shell and to merge
the fink info directories into my Info-default-directory-list

At least, I assume this will work. I don't want to restart my emacs at
the moment since I would lose too much context, but I will test it out
when I next have a quiet time.

Cheers

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