branch: externals/ebdb
commit 760fd916661cac6d532fc4a00218eb4861dfb308
Author: Eric Abrahamsen <[email protected]>
Commit: Eric Abrahamsen <[email protected]>

    More informative warning when deleting record fields
    
    Fixes #25
    
    * ebdb-com.el (ebdb-delete-field-or-record): Make it very clear which
      field is going to be deleted.
---
 ebdb-com.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ebdb-com.el b/ebdb-com.el
index a2df14b..a33620c 100644
--- a/ebdb-com.el
+++ b/ebdb-com.el
@@ -1730,8 +1730,9 @@ confirm deletion."
       (ebdb-delete-records records noprompt)
     (ebdb-with-record-edits (record records)
       (when (or noprompt
-               (y-or-n-p (format "Delete this `%s' field (of %s)? "
+               (y-or-n-p (format "Delete \"%s\" %s (of %s)? "
                                  (ebdb-field-readable-name field)
+                                 (car (split-string (ebdb-string field) "\n"))
                                  (ebdb-record-name record))))
        (ebdb-record-delete-field
         record (car (ebdb-record-field-slot-query

Reply via email to