[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ebdb 057c4c0 144/350: Have ebdb-snarf accept optional r
From: |
Eric Abrahamsen |
Subject: |
[elpa] externals/ebdb 057c4c0 144/350: Have ebdb-snarf accept optional records argument |
Date: |
Mon, 14 Aug 2017 11:46:24 -0400 (EDT) |
branch: externals/ebdb
commit 057c4c05496f663ed6f0abe7e0773a6b4e6b0189
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>
Have ebdb-snarf accept optional records argument
* ebdb-snarf.el (ebdb-snarf): It should be possible to pass this
argument down all the way from the top.
---
ebdb-snarf.el | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/ebdb-snarf.el b/ebdb-snarf.el
index 4b53364..c0274cf 100644
--- a/ebdb-snarf.el
+++ b/ebdb-snarf.el
@@ -70,14 +70,17 @@ with other field types."
:type 'list)
;;;###autoload
-(defun ebdb-snarf (&optional string start end)
+(defun ebdb-snarf (&optional string start end records)
"Snarf text and attempt to display/update/create a record from it.
If STRING is given, snarf the string. If START and END are given
in addition to STRING, assume they are 0-based indices into it.
If STRING is nil but START and END are given, assume they are
buffer positions, and snarf the region between. If all three
-arguments are nil, snarf the entire current buffer."
+arguments are nil, snarf the entire current buffer.
+
+If RECORDS is present, it is a list of records that we assume may
+be relevant to snarfed field data."
(interactive)
(let ((str
(cond ((use-region-p)
@@ -96,7 +99,7 @@ arguments are nil, snarf the entire current buffer."
(insert (string-trim str))
(setq records (ebdb-snarf-query
(ebdb-snarf-collapse
- (ebdb-snarf-collect)))))
+ (ebdb-snarf-collect records)))))
(when records
(ebdb-display-records records nil nil t (ebdb-popup-window)
(format "*%s-Snarf*" ebdb-buffer-name)))))
- [elpa] externals/ebdb 6479c87 173/350: Remove unused code, (continued)
- [elpa] externals/ebdb 6479c87 173/350: Remove unused code, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb db930f6 163/350: Compiler-inspired fixes, and removal of old-code references, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 281c61e 154/350: Don't ((lambda ()), Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 4cce4c8 096/350: Simplify role field adoption process, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 0910ddd 105/350: Change default of ebdb-default-user-field, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb b495e29 083/350: Omnibus changes to display and redisplay, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 29bf304 101/350: Rework MUA window popups, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 81e23c3 134/350: Simplify record mail citing, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb b661aac 124/350: First generalized version of snarfing, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb aae57ff 139/350: Ensure that extra name field instances go in 'aka slot, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 057c4c0 144/350: Have ebdb-snarf accept optional records argument,
Eric Abrahamsen <=
- [elpa] externals/ebdb 8d81a19 132/350: Add EBDB record citation, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 7662133 140/350: Simplify ebdb-dwim-mail, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 0cfe1ec 164/350: Provide keybinding for ebdb-format-all-records, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb bf51b58 161/350: Fix ebdb-delete-redundant-mails, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 279eb56 169/350: Tweaks and additions to manual, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb eea0abf 165/350: VCard export is good enough, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 64b5e43 170/350: Fix autoloads in ebdb.el, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb a968dd3 143/350: First actually-working version of snarfing, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb a8e0221 179/350: Missing local variable binding, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb e71548d 172/350: Allow for characters before mail addresses when snarfing, Eric Abrahamsen, 2017/08/14