Re: [O] replace letf with cl-letf in org-mime

2015-04-01 Thread Eric Abrahamsen
Nicolas Goaziou writes: > Eric Abrahamsen writes: > >> If I remove the two `eval's and treat "hook" like a normal variable, the >> call to `length' fails with: >> >> Wrong type argument: sequencep, org-mime-pre-org-hook >> >> So apparently `length' is seeing the symbol name, and not the symbol >

Re: [O] replace letf with cl-letf in org-mime

2015-04-01 Thread Nicolas Goaziou
Eric Abrahamsen writes: > If I remove the two `eval's and treat "hook" like a normal variable, the > call to `length' fails with: > > Wrong type argument: sequencep, org-mime-pre-org-hook > > So apparently `length' is seeing the symbol name, and not the symbol > value. Indeed. > I tried changin

Re: [O] replace letf with cl-letf in org-mime

2015-03-31 Thread Eric Abrahamsen
Nicolas Goaziou writes: > Hello, > > Eric Abrahamsen writes: > >> Subject: [PATCH] org-mime.el: Avoid use of letf/cl-letf > > Thank you. Some comments follow. > >> +(let* ((mp (lambda (p)) (org-entry-get nil p >> org-mime-use-property-inheritance)) > > It should be > > (mp (lambda (p) (or

Re: [O] replace letf with cl-letf in org-mime

2015-03-31 Thread Nicolas Goaziou
Hello, Eric Abrahamsen writes: > Subject: [PATCH] org-mime.el: Avoid use of letf/cl-letf Thank you. Some comments follow. > +(let* ((mp (lambda (p)) (org-entry-get nil p > org-mime-use-property-inheritance)) It should be (mp (lambda (p) (org-entry-get ))) > + (let ((bhook > +

Re: [O] replace letf with cl-letf in org-mime

2015-03-30 Thread Eric Abrahamsen
Nicolas Goaziou writes: > Hello, > > Eric Abrahamsen writes: > >> It's amazing what an effect barky compiler errors can have. > > Thanks. However, `cl-flet' is not supported in Emacs 23 so it's not an > option for Org 8.3. > > OTOH, most uses of `flet' can be replaced with a plain `lambda' and >

Re: [O] replace letf with cl-letf in org-mime

2015-03-22 Thread Eric Abrahamsen
Nicolas Goaziou writes: > Hello, > > Eric Abrahamsen writes: > >> It's amazing what an effect barky compiler errors can have. > > Thanks. However, `cl-flet' is not supported in Emacs 23 so it's not an > option for Org 8.3. Oh, okay -- I guess I'd never really been aware of what Emacs version we

Re: [O] replace letf with cl-letf in org-mime

2015-03-22 Thread Nicolas Goaziou
Hello, Eric Abrahamsen writes: > It's amazing what an effect barky compiler errors can have. Thanks. However, `cl-flet' is not supported in Emacs 23 so it's not an option for Org 8.3. OTOH, most uses of `flet' can be replaced with a plain `lambda' and funcalls. > -(flet ((mp (p) (org-entr