[Orgmode] org-store-link with wanderlust

2008-01-05 Thread Hans Halvorson
I am having some trouble with org-store-link on some messages in
Wanderlust.  The common feature of these messages is that their
message id is broken across two lines, as in:

Message-id:
 [EMAIL PROTECTED]

Here is what I get when I do org-store-link and then
org-insert-link

[[wl:%Saved%20Messages#
%20[EMAIL PROTECTED] from Foo Bar: RE: appointments memo]]

If I then do C-c C-o on this link, it doesn't do anything ... in fact,
the cursor just jumps down a couple of lines.  On the other hand, if I
remove the line break from the link, then C-c C-o does not find the
message.

Thanks,
Hans






___
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] cannot build 5.17a

2007-12-29 Thread Hans Halvorson
This seems to have been a temporary problem with one particular
version of Emacs CVS.  I just rebuilt Emacs, and now org-mode builds
fine.

Thanks,
Hans

On Dec 29, 2007 8:13 AM, Bastien [EMAIL PROTECTED] wrote:

 Hans Halvorson [EMAIL PROTECTED] writes:

  Here's what I get:
 
  $ make
  emacs -batch -q -eval (add-to-list (quote load-path) \.\) -f
  batch-byte-compile org.el
 
  In toplevel form:
  org.el:12977:10:Error: Wrong type argument: listp, t
  make: *** [org.elc] Error 1
 
  I am using Emacs 23.0.50.1 from CVS, Nov 28, 2007.

 I cannot reproduce this with Emacs 23.0.0 and Emacs 23.0.60.

 Did you remove any *.elc before running make?

 --
 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] org-store-link with wanderlust

2007-12-29 Thread Hans Halvorson
After applying the patch, and trying M-x org-store-link on your
messasge, I get the new error:

Debugger entered--Lisp error: (wrong-type-argument listp Bastien)
  car(Bastien)
  (let* ((msgnum ...) (message-id ...) (wl-message-entity ...) (from
...) (to ...) (subject ...)) (org-store-link-props :type wl :from
from :to to :subject subject :message-id message-id) (setq message-id
(org-remove-angle-brackets message-id)) (setq cpltxt
(org-email-link-description)) (setq link (org-make-link wl:
wl-summary-buffer-folder-name # message-id)))
  (cond ((run-hook-with-args-until-success ...) (setq link ... desc
...)) ((eq major-mode ...) (let ... ... ...)) ((eq major-mode ...)
(setq link ...) (setq cpltxt ...) (org-store-link-props :type info
:file Info-current-file :node Info-current-node)) ((eq major-mode ...)
(let ... ... ...)) ((or ... ...) (and ... ...)
(vm-follow-summary-cursor) (save-excursion ... ...)) ((eq major-mode
...) (let* ... ... ... ... ...)) ((or ... ...) (let ... ... ... ...))
((eq major-mode ...) (save-excursion ...)) ((eq major-mode ...) (let
... ... ... ...)) ((memq major-mode ...) (and ... ...) (let* ... ...
... ...)) ((eq major-mode ...) (setq cpltxt ... link ...)
(org-store-link-props :type w3 :url ...)) ((eq major-mode ...) (setq
cpltxt ... link ...) (org-store-link-props :type w3m :url ...))
((setq search ...) (setq link ...) (setq cpltxt ...)) ((eq major-mode
...) (setq cpltxt ... link ...) (org-store-link-props :type image
:file buffer-file-name)) ((eq major-mode ...) (setq cpltxt ... link
...)) ((and buffer-file-name ...) (setq cpltxt ...) (when ... ...) (if
... ...) (setq link ...)) ((buffer-file-name ...) (setq cpltxt ...)
(when ... ... ...) (setq link ...)) ((interactive-p) (error Cannot
link to a buffer which is not visiting a file)) (t (setq link nil)))
  (let (link cpltxt desc description search txt) (cond (... ...) (...
...) (... ... ... ...) (... ...) (... ... ... ...) (... ...) (... ...)
(... ...) (... ...) (... ... ...) (... ... ...) (... ... ...) (... ...
...) (... ... ...) (... ...) (... ... ... ... ...) (... ... ... ...)
(... ...) (t ...)) (if (consp link) (setq cpltxt ... link ...)) (setq
link (or link cpltxt) desc (or desc cpltxt)) (if (equal desc NONE)
(setq desc nil)) (if (and ... link) (progn ... ...) (and link ...)))
  org-store-link(nil)
  call-interactively(org-store-link t nil)
  execute-extended-command(nil)
  call-interactively(execute-extended-command nil nil)


On Dec 29, 2007 8:52 AM, Bastien [EMAIL PROTECTED] wrote:

  When I try 'M-x org-store-link' in the wanderlust summary buffer, I
  get an error (have tried with many messages).  For example:
 
  Debugger entered--Lisp error: (error Invalid address: (Brad Pitt
  [EMAIL PROTECTED]))
signal(error (Invalid address: (Brad Pitt [EMAIL PROTECTED])))
error(Invalid address: %s (Brad Pitt [EMAIL PROTECTED]))
mail-extract-address-components((Brad Pitt [EMAIL PROTECTED]))
org-store-link-props(:type wl :from Jolie, Angelina :to (Brad
  Pitt [EMAIL PROTECTED]) :subject RE: u r hot :message-id
  [EMAIL PROTECTED])
org-store-link(nil)
call-interactively(org-store-link)
execute-extended-command(nil)
call-interactively(execute-extended-command)
 
  The address reported in the backtrace has, of course, been changed ...
  but it is structurally original to the original valid address.

 Looks like wl-summary-line-from return a list, not a string.

 Please check the following patch against Org 5.17a.


 --
 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] org-store-link with wanderlust

2007-12-29 Thread Hans Halvorson
On Dec 29, 2007 8:52 AM, Bastien [EMAIL PROTECTED] wrote:

  When I try 'M-x org-store-link' in the wanderlust summary buffer, I
  get an error (have tried with many messages).  For example:
 
  Debugger entered--Lisp error: (error Invalid address: (Brad Pitt
  [EMAIL PROTECTED]))
signal(error (Invalid address: (Brad Pitt [EMAIL PROTECTED])))
error(Invalid address: %s (Brad Pitt [EMAIL PROTECTED]))
mail-extract-address-components((Brad Pitt [EMAIL PROTECTED]))
org-store-link-props(:type wl :from Jolie, Angelina :to (Brad
  Pitt [EMAIL PROTECTED]) :subject RE: u r hot :message-id
  [EMAIL PROTECTED])
org-store-link(nil)
call-interactively(org-store-link)
execute-extended-command(nil)
call-interactively(execute-extended-command)
 
  The address reported in the backtrace has, of course, been changed ...
  but it is structurally original to the original valid address.

 Looks like wl-summary-line-from return a list, not a string.

 Please check the following patch against Org 5.17a.


 --
 Bastien



The problem is not with the from field, but with the to field.  I
find that it works to change 11766 as follows:

 (to (car (elmo-message-entity-field wl-message-entity 'to)))

-Hans


___
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] cannot build 5.17a

2007-12-28 Thread Hans Halvorson
Here's what I get:

$ make
emacs -batch -q -eval (add-to-list (quote load-path) \.\) -f
batch-byte-compile org.el

In toplevel form:
org.el:12977:10:Error: Wrong type argument: listp, t
make: *** [org.elc] Error 1

I am using Emacs 23.0.50.1 from CVS, Nov 28, 2007.


___
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] org-store-link with wanderlust

2007-12-12 Thread Hans Halvorson
When I try 'M-x org-store-link' in the wanderlust summary buffer, I
get an error (have tried with many messages).  For example:

Debugger entered--Lisp error: (error Invalid address: (Brad Pitt
[EMAIL PROTECTED]))
  signal(error (Invalid address: (Brad Pitt [EMAIL PROTECTED])))
  error(Invalid address: %s (Brad Pitt [EMAIL PROTECTED]))
  mail-extract-address-components((Brad Pitt [EMAIL PROTECTED]))
  org-store-link-props(:type wl :from Jolie, Angelina :to (Brad
Pitt [EMAIL PROTECTED]) :subject RE: u r hot :message-id
[EMAIL PROTECTED])
  org-store-link(nil)
  call-interactively(org-store-link)
  execute-extended-command(nil)
  call-interactively(execute-extended-command)

The address reported in the backtrace has, of course, been changed ...
but it is structurally original to the original valid address.

Thanks,
Hans


___
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