diff --git a/lisp/org-wl.el b/lisp/org-wl.el index f88d83026..e1222ed82 100644 --- a/lisp/org-wl.el +++ b/lisp/org-wl.el @@ -142,13 +142,14 @@ ENTITY is a message entity." (defun org-wl-store-link () "Store a link to a WL message or folder." - (cond - ((memq major-mode '(wl-summary-mode mime-view-mode)) - (org-wl-store-link-message)) - ((eq major-mode 'wl-folder-mode) - (org-wl-store-link-folder)) - (t - nil))) + (unless (eobp) + (cond + ((memq major-mode '(wl-summary-mode mime-view-mode)) + (org-wl-store-link-message)) + ((eq major-mode 'wl-folder-mode) + (org-wl-store-link-folder)) + (t + nil)))) (defun org-wl-store-link-folder () "Store a link to a WL folder."