[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ebdb b7a28f3 227/350: Be more forgiving about contents
From: |
Eric Abrahamsen |
Subject: |
[elpa] externals/ebdb b7a28f3 227/350: Be more forgiving about contents of BBDB file when migrating |
Date: |
Mon, 14 Aug 2017 11:46:42 -0400 (EDT) |
branch: externals/ebdb
commit b7a28f34e3ca0d20fe87789b8f253b190da15406
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>
Be more forgiving about contents of BBDB file when migrating
* ebdb-migrate.el (ebdb-migrate-parse-records): Make fewer
assumptions. Just search forward for something that looks like the
beginning of a record.
---
ebdb-migrate.el | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/ebdb-migrate.el b/ebdb-migrate.el
index 471a0c6..39a48de 100644
--- a/ebdb-migrate.el
+++ b/ebdb-migrate.el
@@ -627,10 +627,9 @@ holding valid contacts in a previous BBDB format."
(error "EBDB version %s understands file format %s but not %s."
ebdb-version ebdb-file-format file-format)
(setq migrate (< file-format ebdb-file-format)))
- (forward-char)
- (or (eobp) (looking-at "\\[")
- (error "BBDB corrupted: no following bracket"))
-
+ (unless (re-search-forward "^\\[" nil t)
+ (error "Unreadabe BBDB file: no contacts found"))
+ (goto-char (point-at-bol))
;; narrow the buffer to skip over the rubbish before the first record.
(narrow-to-region (point) (point-max))
(let ((modp (buffer-modified-p))
- [elpa] externals/ebdb 374919e 196/350: Fixes to proper name formatting, part III, (continued)
- [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
- [elpa] externals/ebdb ea13778 221/350: Autoload calendar-absolute-from-gregorian, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb af13080 218/350: Support sending text messages via Signal, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 94749fd 224/350: Expand gnus-user-format-function-%s, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb c9f8f33 226/350: Be more when careful migrating timestamps, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb b7a28f3 227/350: Be more forgiving about contents of BBDB file when migrating,
Eric Abrahamsen <=
- [elpa] externals/ebdb dd675a6 223/350: Revert changes to pop-up routine., Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 1096c6e 230/350: Search read transform functions needs to work for all methods, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb adfe13f 235/350: Fix stupidity, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 817414a 234/350: Drop object-print for cl-print-object, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb a629bde 236/350: Last tweak to pop-up buffers, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 444f762 231/350: Fix condition-case catch in ebdb-i18n-* methods, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 2de4f0e 241/350: Apparently I was spelling vCard wrong, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb f9d5af6 243/350: Add close parenthesis to email regexp delimiter, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 4882f66 238/350: Include addresses in vcard output, plus escaping, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 440cb9e 245/350: More search functions can use prefixes: mention in manual, Eric Abrahamsen, 2017/08/14