[notmuch] [Orgmode] Notmuch: An emacs interface for fast global search and tagging of email

2009-12-10 Thread Jed Brown
On Wed, 09 Dec 2009 12:00:21 -0800, Carl Worth  wrote:
> 1. Rewriting the code to not use apply-partially

1b. Use apply-partially

(defun apply-partially (fun  args)
  "Return a function that is a partial application of FUN to ARGS.
ARGS is a list of the first N arguments to pass to FUN.
The result is a new function which does the same as FUN, except that
the first N arguments are fixed at the values with which this function
was called."
  (lexical-let ((fun fun) (args1 args))
(lambda ( args2) (apply fun (append args1 args2)


Jed


[notmuch] [Orgmode] Notmuch: An emacs interface for fast global search and tagging of email

2009-12-10 Thread Mark Anderson
Excerpts from Jed Brown's message of Thu Dec 10 05:26:25 -0700 2009:
> On Wed, 09 Dec 2009 12:00:21 -0800, Carl Worth  wrote:
> > 1. Rewriting the code to not use apply-partially
> 
> 1b. Use apply-partially
> 
> (defun apply-partially (fun  args)
>   "Return a function that is a partial application of FUN to ARGS.
> ARGS is a list of the first N arguments to pass to FUN.
> The result is a new function which does the same as FUN, except that
> the first N arguments are fixed at the values with which this function
> was called."
>   (lexical-let ((fun fun) (args1 args))
> (lambda ( args2) (apply fun (append args1 args2)

Thanks, that is nice to have. Maybe after about 13 years of Emacs use I'll try 
to learn more lisp than Google-copy-paste.

Unfortunately for my specific case, that still didn't let the '?' key work.

if: Symbol's function definition is void: mouse-event-p

I seem to have lots of issues in emacs 22.2, but my Elisp is weak enough that I 
don't know how this ought to be handled.

There is the possibility of requiring 23.1 for notmuch.el, that may be easier, 
then I'll just stop trying with 22.2

Thanks again,
-Mark



Re: [notmuch] [Orgmode] Notmuch: An emacs interface for fast global search and tagging of email

2009-12-10 Thread Jed Brown
On Wed, 09 Dec 2009 12:00:21 -0800, Carl Worth cwo...@cworth.org wrote:
 1. Rewriting the code to not use apply-partially

1b. Use apply-partially

(defun apply-partially (fun rest args)
  Return a function that is a partial application of FUN to ARGS.
ARGS is a list of the first N arguments to pass to FUN.
The result is a new function which does the same as FUN, except that
the first N arguments are fixed at the values with which this function
was called.
  (lexical-let ((fun fun) (args1 args))
(lambda (rest args2) (apply fun (append args1 args2)


Jed
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


Re: [notmuch] [Orgmode] Notmuch: An emacs interface for fast global search and tagging of email

2009-12-10 Thread Mark Anderson
Excerpts from Jed Brown's message of Thu Dec 10 05:26:25 -0700 2009:
 On Wed, 09 Dec 2009 12:00:21 -0800, Carl Worth cwo...@cworth.org wrote:
  1. Rewriting the code to not use apply-partially
 
 1b. Use apply-partially
 
 (defun apply-partially (fun rest args)
   Return a function that is a partial application of FUN to ARGS.
 ARGS is a list of the first N arguments to pass to FUN.
 The result is a new function which does the same as FUN, except that
 the first N arguments are fixed at the values with which this function
 was called.
   (lexical-let ((fun fun) (args1 args))
 (lambda (rest args2) (apply fun (append args1 args2)

Thanks, that is nice to have. Maybe after about 13 years of Emacs use I'll try 
to learn more lisp than Google-copy-paste.

Unfortunately for my specific case, that still didn't let the '?' key work.

if: Symbol's function definition is void: mouse-event-p

I seem to have lots of issues in emacs 22.2, but my Elisp is weak enough that I 
don't know how this ought to be handled.

There is the possibility of requiring 23.1 for notmuch.el, that may be easier, 
then I'll just stop trying with 22.2

Thanks again,
-Mark

___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


[notmuch] [Orgmode] Notmuch: An emacs interface for fast global search and tagging of email

2009-12-09 Thread Carl Worth
On Wed, 9 Dec 2009 10:01:27 +0100, Manuel Hermenegildo  
wrote:
> (seems like a variable is not defined well in the makefile). Taking
> the last "libtalloc.dylib.2" out it seems to compile

Maybe I hit that myself as well. Shame on me for now reporting it
upstream to the talloc folks if I did.

> and so does notmuch, which seems to run fine.

Great news. I'm glad you got that working.

> Now to trying it within emacs. Here the snag is that notmuch.el uses
> apply-partially, which I think is an emacs 23 addtition.

*sigh*

Shouldn't partial application be a pretty fundamental thing in a
functional language? How is it possible that this is new in emacs 23?

Anyway, current notmuch is only using apply-partially in one tiny place,
(for formatting the help screen). And even that's just to try to
generate a nicer-looking help screen than one gets with `describe-mode'.

So options here include at least:

1. Rewriting the code to not use apply-partially

2. Punting and just using describe-mode on old emacs.

> Thanks for the pointer to the list and for your efforts. Notmuch looks
> very interesting.

And thank you for your interest. I hope you'll find a way to get it
working soon. And please feel free to share whatever you do come up
with.

-Carl
-- next part --
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: 



[notmuch] [Orgmode] Notmuch: An emacs interface for fast global search and tagging of email

2009-12-09 Thread Manuel Hermenegildo

 > Hi Manuel,
 > 
 > I got notmuch working on OS X, yes. I was on an OS X 10.4 system and
 > used macports for Xapian and GMime. Then I compiled talloc from source,
 > (which went fine), and compiled notmuch (which did have some issues with
 > OS X, but I fixed those---that was the reason why I went through this
 > exercise).

Thanks for your help. I did get it running in the end (I think). I had
to get the latest version (which I guess has your changes) and was
finally left with only this error in talloc compilation:

 > gcc -dynamiclib -Wl,-search_paths_first -undefined error -o 
 > libtalloc.dylib.2.0.0 ./talloc.o  ./libreplace/replace.o 
 > ./libreplace/snprintf.o ./libreplace/getpass.o strptime.o   libtalloc.dylib.2
 > 
 > i686-apple-darwin9-gcc-4.0.1: libtalloc.dylib.2: No such file or directory
 > make: *** [libtalloc.dylib.2.0.0] Error 1

(seems like a variable is not defined well in the makefile). Taking
the last "libtalloc.dylib.2" out it seems to compile and so does
notmuch, which seems to run fine.

Now to trying it within emacs. Here the snag is that notmuch.el uses
apply-partially, which I think is an emacs 23 addtition.

I am still using 22.3. I can upgrade but then some things are broken
in 23 that make some of the other things I use not work. 

Thanks for the pointer to the list and for your efforts. Notmuch looks
very interesting.

Manuel

-- 
---
 Manuel Hermenegildo | Prof., C.S.Dept., T.U. Madrid (UPM)
 Director, IMDEA Software and CLIP Group | +34-91-336-7435 (W) -352-4819 (Fax)
---



Re: [notmuch] [Orgmode] Notmuch: An emacs interface for fast global search and tagging of email

2009-12-09 Thread Carl Worth
On Wed, 9 Dec 2009 10:01:27 +0100, Manuel Hermenegildo he...@fi.upm.es wrote:
 (seems like a variable is not defined well in the makefile). Taking
 the last libtalloc.dylib.2 out it seems to compile

Maybe I hit that myself as well. Shame on me for now reporting it
upstream to the talloc folks if I did.

 and so does notmuch, which seems to run fine.

Great news. I'm glad you got that working.

 Now to trying it within emacs. Here the snag is that notmuch.el uses
 apply-partially, which I think is an emacs 23 addtition.

*sigh*

Shouldn't partial application be a pretty fundamental thing in a
functional language? How is it possible that this is new in emacs 23?

Anyway, current notmuch is only using apply-partially in one tiny place,
(for formatting the help screen). And even that's just to try to
generate a nicer-looking help screen than one gets with `describe-mode'.

So options here include at least:

1. Rewriting the code to not use apply-partially

2. Punting and just using describe-mode on old emacs.

 Thanks for the pointer to the list and for your efforts. Notmuch looks
 very interesting.

And thank you for your interest. I hope you'll find a way to get it
working soon. And please feel free to share whatever you do come up
with.

-Carl


pgp61zjhsQfSq.pgp
Description: PGP signature
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch