[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ebdb 57b2514 276/350: Use ebdb-with-record-edits in mor
From: |
Eric Abrahamsen |
Subject: |
[elpa] externals/ebdb 57b2514 276/350: Use ebdb-with-record-edits in more places |
Date: |
Mon, 14 Aug 2017 11:46:53 -0400 (EDT) |
branch: externals/ebdb
commit 57b25147c970ffeb18a8aad60fde0410c6229764
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>
Use ebdb-with-record-edits in more places
* ebdb-com.el (ebdb-edit-field, ebdb-delete-field-or-record): I
believe ebdb-create-record is the only editing command that doesn't
use this macro now.
---
ebdb-com.el | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/ebdb-com.el b/ebdb-com.el
index 2d7cca3..d9c74ed 100644
--- a/ebdb-com.el
+++ b/ebdb-com.el
@@ -1638,7 +1638,8 @@ the record, change the name of the record."
(interactive
(list (ebdb-current-record)
(ebdb-current-field)))
- (eieio-customize-object field)
+ (ebdb-with-record-edits (_r (list record))
+ (eieio-customize-object field))
(setq ebdb-custom-field-record record))
(cl-defmethod eieio-done-customizing ((_f ebdb-field))
@@ -1731,12 +1732,12 @@ confirm deletion."
"Delete RECORDS.
If prefix NOPROMPT is non-nil, do not confirm deletion."
(interactive (list (ebdb-do-records) current-prefix-arg))
- (dolist (record (ebdb-record-list records))
+ (ebdb-with-record-edits (r (ebdb-record-list records))
(when (or noprompt
(y-or-n-p (format "Delete the EBDB record of %s? "
- (ebdb-string record))))
- (ebdb-delete-record record)
- (ebdb-redisplay-records record 'remove t))))
+ (ebdb-string r))))
+ (ebdb-delete-record r)
+ (ebdb-redisplay-records r 'remove t))))
;;;###autoload
(defun ebdb-move-records (records db)
@@ -2167,7 +2168,7 @@ just hits return, nil is returned. Otherwise, a valid
response is forced."
(not (memq record records)))
(push record records)))
records))))
-
+
(defun ebdb-completing-read-record (prompt &optional omit-records)
"Prompt for and return a single record from the ebdb;
- [elpa] externals/ebdb 0120729 240/350: Add vcard unescaping, and some vcard tests, (continued)
- [elpa] externals/ebdb 0120729 240/350: Add vcard unescaping, and some vcard tests, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 6f8d59b 254/350: Fix record citation, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 3106b45 256/350: Require ebdb-format in ebdb-vcard, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 7549366 259/350: New method: ebdb-db-load-records, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb b37356a 270/350: Fix docstring of ebdb-create-record, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 5135645 260/350: Split out ebdb-notice-record and ebdb-notice-field methods, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 71a93f5 268/350: Put a load protection in ebdb-mua-update-records, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb cacb97b 271/350: Fix bug in MUA record creation, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb e5bdee2 278/350: Rework ebdb-mail-yank, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 8dd1600 273/350: Change type of anniversary field dates, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 57b2514 276/350: Use ebdb-with-record-edits in more places,
Eric Abrahamsen <=
- [elpa] externals/ebdb f44a797 286/350: New function ebdb-mua-in-ebdb-buffer, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 4ce353e 237/350: Migrate more search routines to the ebdb-search-display thing, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 7040cad 247/350: Expand ebdb-helm to complete on mails as well, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb a6bc423 249/350: Remove unused customization groups, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 4ded53d 250/350: All vCard lines should be delimited with CRLF, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb a776d37 248/350: Don't use copy-sequence plus add-text-properties on strings, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 96b113d 251/350: New functions for folding/unfolding long vCard lines, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb b52cdc0 265/350: Record-insert|delete-field methods can find their own slots, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb fcee6ab 267/350: Protect against no current record when redisplaying, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb f3b9525 269/350: Temporarily abandon having record-change-name accept strings, Eric Abrahamsen, 2017/08/14