[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/url/url-mailto.el
From: |
Chong Yidong |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/url/url-mailto.el |
Date: |
Thu, 01 Sep 2005 12:38:40 -0400 |
Index: emacs/lisp/url/url-mailto.el
diff -c emacs/lisp/url/url-mailto.el:1.9 emacs/lisp/url/url-mailto.el:1.10
*** emacs/lisp/url/url-mailto.el:1.9 Sat Aug 6 15:55:38 2005
--- emacs/lisp/url/url-mailto.el Thu Sep 1 16:38:39 2005
***************
*** 73,79 ****
(setq headers-start (match-end 0)
to (url-unhex-string (substring url 0 (match-beginning 0)))
args (url-parse-query-string
! (substring url headers-start nil) t))
(setq to (url-unhex-string url)))
(setq source-url (url-view-url t))
(if (and url-request-data (not (assoc "subject" args)))
--- 73,79 ----
(setq headers-start (match-end 0)
to (url-unhex-string (substring url 0 (match-beginning 0)))
args (url-parse-query-string
! (substring url headers-start nil) t t))
(setq to (url-unhex-string url)))
(setq source-url (url-view-url t))
(if (and url-request-data (not (assoc "subject" args)))
***************
*** 84,99 ****
(if (and source-url (not (assoc "x-url-from" args)))
(setq args (cons (list "x-url-from" source-url) args)))
! (if (assoc "to" args)
! (push (cdr (assoc "to" args)) to)
! (setq args (cons (list "to" to) args)))
(setq subject (cdr-safe (assoc "subject" args)))
(if (fboundp url-mail-command) (funcall url-mail-command) (mail))
(while args
(if (string= (caar args) "body")
(progn
(goto-char (point-max))
! (insert (mapconcat 'identity (cdar args) "\n")))
(url-mail-goto-field (caar args))
(setq func (intern-soft (concat "mail-" (caar args))))
(insert (mapconcat 'identity (cdar args) ", ")))
--- 84,106 ----
(if (and source-url (not (assoc "x-url-from" args)))
(setq args (cons (list "x-url-from" source-url) args)))
! (let ((tolist (assoc "to" args)))
! (if tolist
! (if (not (string= to ""))
! (setcdr tolist
! (list (concat to ", " (nth 1 tolist)))))
! (setq args (cons (list "to" to) args))))
!
(setq subject (cdr-safe (assoc "subject" args)))
(if (fboundp url-mail-command) (funcall url-mail-command) (mail))
(while args
(if (string= (caar args) "body")
(progn
(goto-char (point-max))
! (insert (mapconcat
! #'(lambda (string)
! (replace-regexp-in-string "\r\n" "\n" string))
! (cdar args) "\n")))
(url-mail-goto-field (caar args))
(setq func (intern-soft (concat "mail-" (caar args))))
(insert (mapconcat 'identity (cdar args) ", ")))
- [Emacs-diffs] Changes to emacs/lisp/url/url-mailto.el,
Chong Yidong <=
- [Emacs-diffs] Changes to emacs/lisp/url/url-mailto.el, Chong Yidong, 2005/09/02
- [Emacs-diffs] Changes to emacs/lisp/url/url-mailto.el, Chong Yidong, 2005/09/12
- [Emacs-diffs] Changes to emacs/lisp/url/url-mailto.el, Chong Yidong, 2005/09/14
- [Emacs-diffs] Changes to emacs/lisp/url/url-mailto.el, Chong Yidong, 2005/09/15
- [Emacs-diffs] Changes to emacs/lisp/url/url-mailto.el, Richard M . Stallman, 2005/09/17