]> git.eshelyaron.com Git - emacs.git/commitdiff
(rmail-speedbar-move-message): Preserve the directory part against
authorGlenn Morris <rgm@gnu.org>
Fri, 27 Feb 2009 04:00:45 +0000 (04:00 +0000)
committerGlenn Morris <rgm@gnu.org>
Fri, 27 Feb 2009 04:00:45 +0000 (04:00 +0000)
rmail-output's oddness.

lisp/mail/rmail.el

index 1e2131cccad8c08e2b2e48e20306e9c792d67b4d..d9101f4bb41802a077fdd6063c83abaa825ecca5 100644 (file)
@@ -3891,13 +3891,15 @@ TOKEN and INDENT are not used."
          (forward-char -2)
          (speedbar-do-function-pointer)))))
 
-;; FIXME loses the directory part.
 (defun rmail-speedbar-move-message (text token indent)
   "From button TEXT, copy current message to the rmail file specified by TOKEN.
 TEXT and INDENT are not used."
   (speedbar-with-attached-buffer
    (message "Moving message to %s" token)
-   (rmail-output token)))
+   ;; expand-file-name is needed due to the unhelpful way in which
+   ;; rmail-output expands non-absolute filenames against rmail-default-file.
+   ;; What is the point of that, anyway?
+   (rmail-output (expand-file-name token))))
 
 ;; Functions for setting, getting and encoding the POP password.
 ;; The password is encoded to prevent it from being easily accessible