[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ebdb f3f9f37 292/350: Move, rename and bind ebdb-mail-y
From: |
Eric Abrahamsen |
Subject: |
[elpa] externals/ebdb f3f9f37 292/350: Move, rename and bind ebdb-mail-yank |
Date: |
Mon, 14 Aug 2017 11:46:57 -0400 (EDT) |
branch: externals/ebdb
commit f3f9f37c46a102c752e860e4f7b3f9040d569e72
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>
Move, rename and bind ebdb-mail-yank
* ebdb-com.el: Remove ebdb-mail-yank from this file.
* ebdb-mua.el (ebdb-mua-yank-cc): Put it here, and give it a new name.
---
ebdb-com.el | 26 --------------------------
ebdb-mua.el | 26 ++++++++++++++++++++++++++
2 files changed, 26 insertions(+), 26 deletions(-)
diff --git a/ebdb-com.el b/ebdb-com.el
index b6fb483..1a582f9 100644
--- a/ebdb-com.el
+++ b/ebdb-com.el
@@ -2106,32 +2106,6 @@ for `ebdb-field-action'."
(unless (string= "" to)
(ebdb-compose-mail to subject))))
-(defun ebdb-mail-yank ()
- "CC the people displayed in the *EBDB* buffer on this mail message.
-The primary mail of each of the records currently listed in the
-*EBDB* buffer will be appended to the CC: field of the current buffer."
- ;; Consider making the guts of this into a method that lives in the
- ;; different message-sending MUA packages. All the `derived-mode-p'
- ;; stuff is a sign...
-
- ;; Also, collect the addresses that are already in the To: and Cc:
- ;; headers, and make sure we don't insert duplicates.
- (interactive)
- (let ((addresses
- (with-current-buffer (ebdb-make-buffer-name)
- (delq nil
- (mapcar (lambda (x)
- (when-let ((mail (car (ebdb-record-mail (car x)
t))))
- (ebdb-dwim-mail (car x) mail)))
- ebdb-records)))))
- (if (derived-mode-p 'message-mode 'mail-mode)
- (when addresses
- (if (derived-mode-p 'message-mode)
- (message-goto-cc)
- (mail-cc))
- (insert (mapconcat #'identity addresses ",\n")))
- (message "Not in a mail composition buffer"))))
-
;;; completion
;;;###autoload
diff --git a/ebdb-mua.el b/ebdb-mua.el
index cb105c8..1611215 100644
--- a/ebdb-mua.el
+++ b/ebdb-mua.el
@@ -1086,6 +1086,32 @@ where it was in the MUA, rather than quitting the EBDB
buffer."
(cl-no-applicable-method
(message "Article snarfing doesn't work in this context."))))
+(defun ebdb-mua-yank-cc ()
+ "CC the people displayed in the *EBDB* buffer on this mail message.
+The primary mail of each of the records currently listed in the
+*EBDB* buffer will be appended to the CC: field of the current buffer."
+ ;; Consider making the guts of this into a method that lives in the
+ ;; different message-sending MUA packages. All the `derived-mode-p'
+ ;; stuff is a sign...
+
+ ;; Also, collect the addresses that are already in the To: and Cc:
+ ;; headers, and make sure we don't insert duplicates.
+ (interactive)
+ (let ((addresses
+ (with-current-buffer (ebdb-make-buffer-name)
+ (delq nil
+ (mapcar (lambda (x)
+ (when-let ((mail (car (ebdb-record-mail (car x)
t))))
+ (ebdb-dwim-mail (car x) mail)))
+ ebdb-records)))))
+ (if (derived-mode-p 'message-mode 'mail-mode)
+ (when addresses
+ (if (derived-mode-p 'message-mode)
+ (message-goto-cc)
+ (mail-cc))
+ (insert (mapconcat #'identity addresses ",\n")))
+ (message "Not in a mail composition buffer"))))
+
;; Functions for noninteractive use in MUA hooks
;;;###autoload
- [elpa] externals/ebdb 88f5e12 261/350: Fill out functionality of gnorb messages field, (continued)
- [elpa] externals/ebdb 88f5e12 261/350: Fill out functionality of gnorb messages field, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb a81769c 272/350: Allow custom hash predicates, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb e80753a 264/350: Change ebdb-record-change-name to accept strings, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb d3e1485 283/350: Reinstate the notice record hook, and move notice-record method, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb d8bc159 290/350: Fairly embarrassing oversight in setting ebdb buffers modified, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb afe5495 279/350: Adjust indentation of multi-line field values, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb bbe407e 257/350: Code tweaks and re-arrangments, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 727eddb 262/350: Change databases' buffer-char slot into actual character, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 5362b12 291/350: require pyim, for chinese-pyim has been renamed to pyim (#45), Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb f62f15f 282/350: Pop up empty *EBDB* buffer for users with no records, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb f3f9f37 292/350: Move, rename and bind ebdb-mail-yank,
Eric Abrahamsen <=
- [elpa] externals/ebdb 89467fc 258/350: Don't wrap cl-print-object in eval-when-compile, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 5e7a0d6 266/350: Change arg order of record-insert|delete-field, refactor, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 75de073 314/350: Let ebdb-complete can grab string which similar "guix-devel" (#46), Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb dbf980e 288/350: Create specific keymap for using EBDB in MUAs, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 4a35635 297/350: Mention vCard export support in manual, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 13f32ef 304/350: Fix propertize call when formatting field values, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 9169c1e 309/350: When inserting fields, read the field but insert a clone, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 6c89a57 302/350: Mention record citing in the manual, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 110ece1 295/350: Mention internationalization library in the manual, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 3d4a236 299/350: Mention all supported MUAs in manual, Eric Abrahamsen, 2017/08/14