Re: [Orgmode] org-annotation-helper

2008-05-17 Thread Carsten Dominik

Hi,

I have now added this file to the contrib/lisp directory.  If
any of the authors does not agree with thi, please let me know.

- Carsten

On May 17, 2008, at 2:16 AM, Daniel M German wrote:


hi everybody,

I took the liberty of updating the elisp file that John Rakestraw sent
last week. I (think) have improved a bit and the description should be
easier to follow. I have also made it possible to insert the selected
text into the current buffer (the code was there, I just had to grab
it).

One major change: i have replaced the separator from "%1C" to
"::remember::" (the %1C never worked for me).

Let me know if you have questions/problems.

http://turingmachine.org/~dmg/temp/org-annotation-helper.el


--
--
Daniel M. German
http://turingmachine.org/
http://silvernegative.com/
dmg (at) uvic (dot) ca
replace (at) with @ and (dot) with .


___
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


[Orgmode] Re: Bug fix: org-mhe links don't work with mairix

2008-05-17 Thread Thomas Baumann
Hi Nick,

your patch actually breaks namazu, swish and grep searches. 

A look at mh-search-choices (mh-search.el) reveals that for namazu,
swish and grep mh-search-regexp-builder is nil and therefore 

(funcall mh-search-regexp-builder ...

raises an error. One might be tempted to solve this on the mh-e side but
there's no reason to add a mh-search-regexp-builder for those search
engines. There's a patch against todays git below.

BTW. Namazu and pick searches work fine without angular brackets, however, it
doesn't harm to have them.


Greetings
Thomas


--- /data/cvs/org-mode/lisp/org-mhe.el  2008-05-17 12:54:07.0 +0200
+++ org-mhe.el  2008-05-17 16:55:22.0 +0200
@@ -204,8 +204,10 @@
  (not (org-mhe-get-message-real-folder)))
 (kill-this-buffer)
 (mh-search "+" (list "--message-id" article
-  (mh-search "+" (funcall mh-search-regexp-builder
- (list (cons 'message-id article)
+  (if mh-search-regexp-builder
+  (mh-search "+" (funcall mh-search-regexp-builder
+ (list (cons 'message-id article
+(mh-search "+" article)))
 (if (org-mhe-get-message-real-folder)
 (mh-show-msg 1)
   (kill-this-buffer)


Nick Dokos <[EMAIL PROTECTED]> writes:

> Pete Phillips had run into a problem back in November 2007 with mhe
> links to emails not working (he was using mairix as the mh search
> method). I just sent a patch to Bill Wohler about the mh-e part (and
> copied both the mh-e list and the org list: the problem is described in
> more detail there). Here is the org-mode patch.
>
> I've tested the patch both with the default "pick" search in mh-e and
> with "mairix" search. Pete Phillips also did some testing (I believe
> with mairix) - thanks Pete!
>
> I would feel better if there had been some swish++/namazu/etc testing as
> well, but it's unlikely that I'll find the time in the foreseeable
> future. In particular, I'm not sure where the angle brackets are needed:
> it's clear they are needed for the pick search and I've found out that
> they are *not* needed for mairix search, but if swish++ needs them, that
> would complicate things. The patch assumes that they are not needed for
> any search method, other than pick. If somebody on the list could try it
> and report success/failure, I, for one, would appreciate it very much.
>
> If it looks OK to you, could you please apply it?
>
> Thanks very much,
> Nick
>
> --- a/lisp/org-mhe.el
> +++ b/lisp/org-mhe.el
> @@ -194,16 +194,16 @@ folders."
>(mh-find-path)
>(if (not article)
>(mh-visit-folder (mh-normalize-folder-name folder))
> -(setq article (org-add-angle-brackets article))
>  (mh-search-choose)
>  (if (equal mh-searcher 'pick)
>  (progn
> +  (setq article (org-add-angle-brackets article))
>(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 "+" article))
> +  (mh-search "+" (funcall mh-search-regexp-builder (list (cons 
> 'message-id article)
>  (if (org-mhe-get-message-real-folder)
>  (mh-show-msg 1)
>(kill-this-buffer)
>
>
>
>
> ___
> 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] Re: Bug fix: org-mhe links don't work with mairix

2008-05-17 Thread Nick Dokos
Thomas Baumann <[EMAIL PROTECTED]> wrote:

> Hi Nick,
> 
> your patch actually breaks namazu, swish and grep searches. 
> 
> A look at mh-search-choices (mh-search.el) reveals that for namazu,
> swish and grep mh-search-regexp-builder is nil and therefore 
> 
> (funcall mh-search-regexp-builder ...
> 
> raises an error. One might be tempted to solve this on the mh-e side but
> there's no reason to add a mh-search-regexp-builder for those search
> engines. There's a patch against todays git below.
> 
> BTW. Namazu and pick searches work fine without angular brackets, however, it
> doesn't harm to have them.
> 
> 
> Greetings
> Thomas
> 

Thomas,

Yes indeed: sorry for the breakage and thanks for coming up with a
fix. I agree that it's preferable to change the call site rather than
asking for changes to mh-e.

Thanks very much,
Nick

PS. For the record, the patch against mh-e that I sent earlier to both
the mh-e and org lists has also been submitted on the mh-e sourceforge
patches list at

   http://sourceforge.net/tracker/?group_id=13357&atid=313357

It's number 1965704.

> 
> --- /data/cvs/org-mode/lisp/org-mhe.el2008-05-17 12:54:07.0 
> +0200
> +++ org-mhe.el2008-05-17 16:55:22.0 +0200
> @@ -204,8 +204,10 @@
>   (not (org-mhe-get-message-real-folder)))
>  (kill-this-buffer)
>  (mh-search "+" (list "--message-id" article
> -  (mh-search "+" (funcall mh-search-regexp-builder
> -   (list (cons 'message-id article)

> +  (if mh-search-regexp-builder
> +  (mh-search "+" (funcall mh-search-regexp-builder
> +   (list (cons 'message-id article
> +(mh-search "+" article)))
>  (if (org-mhe-get-message-real-folder)
>  (mh-show-msg 1)
>(kill-this-buffer)
> 

--45B245DFCA.1211054880/gamaville.dokosmarshall.org--


___
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] firefox urls

2008-05-17 Thread Alan E. Davis
Speaking for myself, I haven't been able to grok this item.  I think there
are at least three code bits, and some other chunks in here.  A shell
script, some elisp, and some javascript?  Also, I do not understand what is
the bookmarklet.  I know what a bookmarklet is.

I'm going to pass on this for now; however, perhaps it is not unwarranted to
suggest that if this gets even to a contrib/ directory, some further
explanation may be needed for some of us.  Me in particular.

This could be EXTREMELY useful.

I recently started using Zotero to store links and selected parts of pages,
and I have been trying to reach out to a broader range of bibliography and
reference and collection managers/utilities.  This can help me, as I begin
to incorporate org-mode into my workstyle.  Saving selected text in a
remember note to be stored with the URL, and the ability to save this to an
org-mode file: that seems promising.

A clueless traveler,

Alan Davis

On Thu, May 15, 2008 at 8:48 AM, Daniel M German <[EMAIL PROTECTED]> wrote:

>
>  Daniel> Hi John,
>
>  Daniel> I gave it a try (mozilla, ubuntu). The main challenge is that at
> some
>  Daniel> point a MTA messed the elisp, so I had to figure out hoe to fix
>  Daniel> it. Would you mind placing it somewhere where it can be downloaded
> or
>  Daniel> sending it as an attachment?
>
>  Daniel> I got everything to work, except that the link that it is passed
> to
>  Daniel> remember contains a %3A instead of :: (i.e. http%3A//
> slashdot.org/)
>
> Here is a small patch that fixes this problem:
>
> Use
> (url (url-unhex-string (car splitparts)))
>
> intead of:
>
> (url (car splitparts))
>
> That will properly unhex all the url. Once I did that URLs are working
> very well. it is an amazingly simple set of tools but it works
> great. Now I can easily keep bookmarks and selected text in an org
> file. It is already one of my can't-live-without pieces of software.
>
> I'll wait for you to release the "new" version of the module.
>
> Thanks again John.
>
>
>
> --
> --
> Daniel M. German
> http://turingmachine.org/
> http://silvernegative.com/
> dmg (at) uvic (dot) ca
> replace (at) with @ and (dot) with .
>
>
> ___
> 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
>



-- 
Alan Davis, Kagman High School, Saipan [EMAIL PROTECTED]

"It's never a matter of liking or disliking ..."
---Santa Ynez Chumash Medicine Man

"We have no art. We do everything as well as we can." ---Balinese saying
___
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