[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ebdb 09a04b2 19/21: Fix up ebdb-string method for bank
From: |
Eric Abrahamsen |
Subject: |
[elpa] externals/ebdb 09a04b2 19/21: Fix up ebdb-string method for bank accounts |
Date: |
Sun, 17 Sep 2017 15:32:48 -0400 (EDT) |
branch: externals/ebdb
commit 09a04b2d3c6bba250df508b54fa4eba0fd77cc0a
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>
Fix up ebdb-string method for bank accounts
* ebdb.el (ebdb-string): Protect against non-existent bank address,
swap newlines around, and use ebdb-string on the notes field --
previously this was outputting the string representation of the
object itself.
---
ebdb.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/ebdb.el b/ebdb.el
index 18896ad..2f091f5 100644
--- a/ebdb.el
+++ b/ebdb.el
@@ -2285,8 +2285,9 @@ See `ebdb-url-valid-schemes' for a list of acceptable
schemes."
(with-slots (bank-name bank-address routing-aba swift-bic
account-name account-numbers notes)
acct
- (concat bank-name "\n\n"
- (ebdb-string bank-address) "\n"
+ (concat bank-name "\n"
+ (when bank-address (format "%s\n" (ebdb-string bank-address)))
+ "\n"
(when routing-aba
(format "Routing/ABA: %s\n" routing-aba))
(when swift-bic
@@ -2297,7 +2298,7 @@ See `ebdb-url-valid-schemes' for a list of acceptable
schemes."
(format "%s: %s" (car a) (cdr a)))
account-numbers "\n")
(when notes
- (format "\n%s\n" notes)))))
+ (format "\n%s\n" (ebdb-string notes))))))
;; Tags field.
- [elpa] externals/ebdb c298037 21/21: Bump version for 0.3.2, (continued)
- [elpa] externals/ebdb c298037 21/21: Bump version for 0.3.2, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 18be9ad 04/21: Add ebdb-field-bank-account class, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb dc5d03e 01/21: Change behavior of ebdb-fmt-compose-field, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 9c0947c 05/21: Comment out some custom definitions for address field, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 4a332dc 03/21: Add defgeneric for ebdb-read, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 767a9fa 07/21: Allow two kinds of searches on tags, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 8fc7b6d 08/21: Allow "fast lookups", Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb e3229ad 11/21: Give some indication that the migration process is ongoing, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb efd9e15 12/21: Provide an alternate threaded version of ebdb-initialize, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 2fa4379 14/21: New option ebdb-try-speedups, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 09a04b2 19/21: Fix up ebdb-string method for bank accounts,
Eric Abrahamsen <=
- [elpa] externals/ebdb 2b52686 18/21: Check type spec of slots that may or may not accept an object, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb b3266e5 17/21: Apparently when-let will be obsoleted by when-let*, Eric Abrahamsen, 2017/09/17