[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ebdb c44b910 056/350: New ebdb-copy-mail-as-kill comman
From: |
Eric Abrahamsen |
Subject: |
[elpa] externals/ebdb c44b910 056/350: New ebdb-copy-mail-as-kill command |
Date: |
Mon, 14 Aug 2017 11:46:02 -0400 (EDT) |
branch: externals/ebdb
commit c44b910161facd416458223c52180cdf5a88e46e
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>
New ebdb-copy-mail-as-kill command
* ebdb-com.el (ebdb-copy-mail-as-kill): Produces dwim-mail-style
strings for all marked records.
---
ebdb-com.el | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/ebdb-com.el b/ebdb-com.el
index 26bb1bd..47870fd 100644
--- a/ebdb-com.el
+++ b/ebdb-com.el
@@ -316,6 +316,7 @@ With ARG a negative number do not append."
(define-key km (kbd "C-x C-t") 'ebdb-transpose-fields)
(define-key km (kbd "w r") 'ebdb-copy-records-as-kill)
(define-key km (kbd "w f") 'ebdb-copy-fields-as-kill)
+ (define-key km (kbd "w m") 'ebdb-copy-mail-as-kill)
;; (define-key km (kbd "P" 'ebdb-print)
(define-key km (kbd "=") 'delete-other-windows)
;; Buffer manipulation
@@ -873,6 +874,7 @@ If DELETE-P is non-nil RECORD is removed from the EBDB
buffers."
["Dial phone number" ebdb-dial t]
["Copy records as kill" ebdb-copy-records-as-kill t]
["Copy fields as kill" ebdb-copy-fields-as-kill t]
+ ["Copy mail as kill" ebdb-copy-mail-as-kill t]
["Follow relation" ebdb-follow-related t]
"--"
["Print records" ebdb-print t])
@@ -2955,6 +2957,16 @@ is a list, copy only the NUMth list element."
(kill-new str)
(message "%s" str))))
+;;;###autoload
+(defun ebdb-copy-mail-as-kill (records)
+ "Copy dwim-style mail addresses for RECORDS.
+
+Ie, looks like \"John Doe <address@hidden>\"."
+ (interactive (list (ebdb-do-records)))
+ (let ((str (mapconcat #'ebdb-dwim-mail records ", ")))
+ (kill-new str)
+ (message str)))
+
;;; Help and documentation
- [elpa] externals/ebdb 94c7c6b 039/350: Provide ebdb-load guards in a few more places, (continued)
- [elpa] externals/ebdb 94c7c6b 039/350: Provide ebdb-load guards in a few more places, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 015bd25 038/350: New search command ebdb-search-record-class, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb f288cba 034/350: Use "d" prefix for record/database move commands, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 7721bf3 044/350: Mess with autoloads, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 7126d5d 027/350: Hash record uuids during the loading process, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 60aea3d 045/350: ebdb-create-record: set record class outside of interactive call, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb e178321 051/350: Trailing code in last commit, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb c212316 014/350: First commit of buffer improvements, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb dbd3559 042/350: Do away with ebdb-seen-uuids, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 7570ed9 040/350: Protect against non-present records in role delete method, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb c44b910 056/350: New ebdb-copy-mail-as-kill command,
Eric Abrahamsen <=
- [elpa] externals/ebdb 10b0fa4 057/350: Use save-excursion in ebdb-toggle-all-record-marks, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb a2d2116 058/350: Use eieio-object-p instead of vectorp, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb a158434 055/350: Remove ebdb-browse-url, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb e50a437 043/350: When unloading, don't remove records from the db's record slot, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 5ce28dc 048/350: Remove ebdb-file-coding-system variable, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 886cfd0 054/350: Change gnorb tags field to plain org tags field, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 9a42885 061/350: ebdb-prompt-for-mail should return single mails with no prompt, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb e4f1cf5 046/350: Fix broken quoting for organization simple name reading, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 9e2c0e8 049/350: Fix logic of loading records from multiple databases, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb bd9dd94 072/350: Use ebdb-defunct face on defunct role fields, Eric Abrahamsen, 2017/08/14