[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ebdb 072bb74 205/350: ebdb-parse-i18n must also accept
From: |
Eric Abrahamsen |
Subject: |
[elpa] externals/ebdb 072bb74 205/350: ebdb-parse-i18n must also accept a slots argument |
Date: |
Mon, 14 Aug 2017 11:46:37 -0400 (EDT) |
branch: externals/ebdb
commit 072bb74d157abbabcfae0a03216c552944485034
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>
ebdb-parse-i18n must also accept a slots argument
* ebdb-i18n.el (ebdb-parse-i18n): Otherwise it won't preserve existing
slot values, in particular a label.
---
ebdb-i18n.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/ebdb-i18n.el b/ebdb-i18n.el
index ed9b0f1..2230e27 100644
--- a/ebdb-i18n.el
+++ b/ebdb-i18n.el
@@ -59,12 +59,13 @@ country code, or a country symbol, or a script symbol.
This method should return a plist of slots for object creation.")
-(cl-defgeneric ebdb-parse-i18n (class string spec)
+(cl-defgeneric ebdb-parse-i18n (class string spec slots)
"An internationalized version of `ebdb-parse'.
This works the same as `ebdb-read', plus an additional argument
SPEC. What SPEC is depends on CLASS, but might be a phone
-country code, or a country symbol, or a script symbol.
+country code, or a country symbol, or a script symbol. SLOTS is
+a plist of existing slot values.
This method should return a new instance of CLASS.")
@@ -77,7 +78,7 @@ This method should return a new instance of CLASS.")
(cl-defgeneric ebdb-delete-field-i18n (field record spec unload)
"An internationalized version of `ebdb-delete-field'.")
-(cl-defmethod ebdb-parse-i18n :around (_class _string _spec)
+(cl-defmethod ebdb-parse-i18n :around (_class _string _spec _slots)
"Don't clobber match data when testing names."
(save-match-data
(cl-call-next-method)))
- [elpa] externals/ebdb 61dcb8c 148/350: Re-initialize database records after reloading, (continued)
- [elpa] externals/ebdb 61dcb8c 148/350: Re-initialize database records after reloading, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 8694194 150/350: Use string-match-p for searching on Org tags, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb e4c0442 162/350: Fix up actions and EBDB buffer menus, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 09e421f 156/350: Rework anniversary/diary integration, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb a8e44ee 175/350: Update company-ebdb for new search behavior, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb ece91cb 176/350: Remove spurious ebdb-record-search implementation, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 86a3aa9 180/350: Change signature of ebdb-undisplay-records, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 05cf7ec 184/350: New ebdb-message-buffer-name subst, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb ae377c1 199/350: Use ebdb-field-search in notes-type record searches, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 54bb078 200/350: Remove final references to ebdb-print, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 072bb74 205/350: ebdb-parse-i18n must also accept a slots argument,
Eric Abrahamsen <=
- [elpa] externals/ebdb 79ed878 201/350: Handle formatting to a fake *EBDB* buffer, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 1ae4bbf 206/350: Provide internationalized ebdb-string and ebdb-parse for phones, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 0cb406e 210/350: Expand ebdb-test-save-vars to save ebdb-db-list as well, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 722e2c3 211/350: Mild hack to make pop up windows work well, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 374919e 196/350: Fixes to proper name formatting, part III, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 0ccfc0a 215/350: Write generics for ebdb-db-add/remove-record, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 498a580 214/350: Allow user transformation of search strings, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 760fd91 204/350: More informative warning when deleting record fields, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 762f027 219/350: Add Makefile, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 325426e 207/350: Add ebdb-complete.el (#32), Eric Abrahamsen, 2017/08/14