[Orgmode] Re: Remember and then refile

2008-01-31 Thread Steven Lumos
Carsten Dominik [EMAIL PROTECTED] writes:

 On Jan 18, 2008, at 11:19 PM, Steven Lumos wrote:

 Carsten Dominik [EMAIL PROTECTED] writes:
 On Jan 18, 2008, at 9:40 PM, Steven Lumos wrote:

 Carsten Dominik [EMAIL PROTECTED] writes:
 This will be in 5.19.  Thanks for the proposal!.

 - Carsten

 Hi.

 Have you considered somehow merging the tree selection and
 minibuffer
 with completion methods so that both are available simultaneously?

 Could you please be more specific?

 Thanks.

 - Carsten

 Maybe. :-)

 Currently, C-u C-c C-c in remember uses this Select a destination
 location for the note mode where you navigate the org tree in the
 usual way and then RET to select a headline.

 On the other hand, org-refile uses the minibuffer and you type a
 headline, with completion and history.

 So recently I've been thinking it should be possible (though only
 arguably desirable) to allow both of these modes to be active at once,
 so movement commands would navigate the tree and typing commands would
 append to the minibuffer.

 There are key conflicts that need to be worked out, but I think it
 could be done.  For one example, TAB could do completion if there is
 text in the minibuffer, and tree navigation otherwise.

 Hmm, this sound like over-complx to me.  I would use the interface
 that makes sense most of the time and then move by hand in the
 remaining cases.  Or do you think tat the interface you want
 is dependent on the template you are using?

 - Carsten

That could be.  I'm still very much figuring out what the interface
between my brain and org looks like, and not currently using any of
the established planning styles.  I've only been using the agenda for
about half as long as I've been using org for example.

From my perspective, I saw two methods to do exactly the same thing(*),
which led to thinking about the advantages of each, which led to
thinking why not just merge them and have the advantages of both.

(*) Maybe this assumption was wrong?

Steve



___
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: Remember and then refile

2008-01-18 Thread Steven Lumos
Carsten Dominik [EMAIL PROTECTED] writes:
 This will be in 5.19.  Thanks for the proposal!.

 - Carsten

Hi.

Have you considered somehow merging the tree selection and minibuffer
with completion methods so that both are available simultaneously?

Steve

 On Jan 7, 2008, at 5:05 PM, Hugo Schmitt wrote:

 Hello everyone!

 I know Remember allows one to select where we want to file an entry
 with C-u C-c C-c, but now that we have org-refile (great!), it would
 be really nice to be able to call org-refile after the text is
 inserted on it's default place (mine is the Tasks tree on todo.org)
 Now, I couldn't find a way to insert this nicely into the code,
 since that is done via the remember command.
 Any ideas?

 Thanks in advance,
 Hugo



___
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: Remember and then refile

2008-01-18 Thread Steven Lumos
Carsten Dominik [EMAIL PROTECTED] writes:
 On Jan 18, 2008, at 9:40 PM, Steven Lumos wrote:

 Carsten Dominik [EMAIL PROTECTED] writes:
 This will be in 5.19.  Thanks for the proposal!.

 - Carsten

 Hi.

 Have you considered somehow merging the tree selection and minibuffer
 with completion methods so that both are available simultaneously?

 Could you please be more specific?

 Thanks.

 - Carsten

Maybe. :-)

Currently, C-u C-c C-c in remember uses this Select a destination
location for the note mode where you navigate the org tree in the
usual way and then RET to select a headline.

On the other hand, org-refile uses the minibuffer and you type a
headline, with completion and history.

So recently I've been thinking it should be possible (though only
arguably desirable) to allow both of these modes to be active at once,
so movement commands would navigate the tree and typing commands would
append to the minibuffer.

There are key conflicts that need to be worked out, but I think it
could be done.  For one example, TAB could do completion if there is
text in the minibuffer, and tree navigation otherwise.

Steve



 Steve

 On Jan 7, 2008, at 5:05 PM, Hugo Schmitt wrote:

 Hello everyone!

 I know Remember allows one to select where we want to file an entry
 with C-u C-c C-c, but now that we have org-refile (great!), it would
 be really nice to be able to call org-refile after the text is
 inserted on it's default place (mine is the Tasks tree on todo.org)
 Now, I couldn't find a way to insert this nicely into the code,
 since that is done via the remember command.
 Any ideas?

 Thanks in advance,
 Hugo



___
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: problems with links to MH mails.

2007-11-27 Thread Steven Lumos
Pete Phillips [EMAIL PROTECTED] writes:
 I'm having difficulties using links within org to MH mails.

 For example, I have an email in a folder, and I hit ^C-l to store it.

 In org-mode, I hit ^C-^L to insert the link, and it gets inserted as:

   Link:  mhe:+mail-lists/[EMAIL PROTECTED]
   Description: Email from Dale Smith: [Orgmode] Re: Linux Journal

 So far so good. However if I try to look at the link using ^C-^O I
 get an error message. In *Messages* it says:

   Executing mairix... 
   mh-mairix-execute-search: Wrong type argument: listp, [EMAIL 
 PROTECTED]

 It is not just mairix BTW - I had a similar problem with swish++. 

 Any ideas ? Is this something I need to raise on the mh list or is it an
 org-mode issue ?

 Regards
 Pete

Here's my hack that works for mairix only.  I think the real fix is
MH-E needs a better way to search for Message-ID.

(add-hook 'org-load-hook (lambda () 
   (defun org-follow-mhe-link (folder article)
Follow an MHE link to FOLDER and ARTICLE.
If ARTICLE is nil FOLDER is shown.  If the configuration variable
`org-mhe-search-all-folders' is t and `mh-searcher' is pick,
ARTICLE is searched in all folders.  Indexed searches (swish++,
namazu, and others supported by MH-E) will always search in all
folders.
  (require 'mh-e)
  (require 'mh-search)
  (require 'mh-utils)
  (mh-find-path)
  (if (not article)
  (mh-visit-folder (mh-normalize-folder-name folder))
(mh-search-choose)
(if (equal mh-searcher 'pick)
(progn
  (mh-search folder (list --message-id article))
  (when (and org-mhe-search-all-folders
 (not (org-mhe-get-message-real-folder)))
(kill-this-buffer)
(mh-search + (list --message-id article
  (mh-search + (list (concat m: article)))
(if (org-mhe-get-message-real-folder)
(mh-show-msg 1)
  (kill-this-buffer)
  (error Message not found)))

Steve



___
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: Integration of Org mode and mairix

2007-08-16 Thread Steven Lumos
Carsten Dominik [EMAIL PROTECTED] writes:
 On Aug 15, 2007, at 0:54, Steven Lumos wrote:

 I have not been following very closely, so sorry if this is redundant.
 I currently use mairix through org-follow-mhe-link, although I had to
 do a little hacking to make MH-E do a search by message-id.

 Interesting, maybe you would like to share your hack?

Well...  It's not really useful to add to org, and guaranteed to break
for anyone not using mairix for MH-E searching, but here it is.  The
only change is prefixing the message-id with m:.

(defun org-follow-mhe-link (folder article)
  Follow an MHE link to FOLDER and ARTICLE.
If ARTICLE is nil FOLDER is shown.  If the configuration variable
`org-mhe-search-all-folders' is t and `mh-searcher' is pick,
ARTICLE is searched in all folders.  Indexed searches (swish++,
namazu, and others supported by MH-E) will always search in all
folders.
  (require 'mh-e)
  (require 'mh-search)
  (require 'mh-utils)
  (mh-find-path)
  (if (not article)
  (mh-visit-folder (mh-normalize-folder-name folder))
(mh-search-choose)
(if (equal mh-searcher 'pick)
(progn
  (mh-search folder (list --message-id article))
  (when (and org-mhe-search-all-folders
 (not (org-mhe-get-message-real-folder)))
(kill-this-buffer)
(mh-search + (list --message-id article
  (mh-search + (list (concat m: article)))
(if (org-mhe-get-message-real-folder)
(mh-show-msg 1)
  (kill-this-buffer)
  (error Message not found)

 It all works great for me, but I think it would be nice if following a
 link didn't depend on what MUA or search I happen to use.  Couldn't it
 easily enough be mail:...? Then I could send an Org file to a friend
 and the link will Just Work for them.

 That would not work universally either, for example on a windows
 machine.

 - Carsten

I'm a non-Windows person, but in theory I think I could write a
program that would drive Outlook or whatever (even Google Desktop
Search?) through COM to bring up a message by message-id.

Likewise, you could probably snarf the message-id of the currently
displayed message from Outlook for org-store-outlook-link. :-)

Steve



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode