branch: externals/ebdb
commit 212a1e1083949194e743af9b39efb87923a5d7f6
Author: Eric Abrahamsen <[email protected]>
Commit: Eric Abrahamsen <[email protected]>
Snarfing shouldn't pop up its own window
* ebdb-snarf.el (ebdb-snarf): If any *EBDB* buffer is visible, assume
that buffer is relevant to the snarfing and re-use it. But pass the
"append" argument so we don't clobber what was in there to begin
with.
---
ebdb-snarf.el | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/ebdb-snarf.el b/ebdb-snarf.el
index 631654b..6082fc2 100644
--- a/ebdb-snarf.el
+++ b/ebdb-snarf.el
@@ -101,8 +101,7 @@ be relevant to snarfed field data."
(ebdb-snarf-collapse
(ebdb-snarf-collect recs)))))
(when records
- (ebdb-display-records records nil nil t (ebdb-popup-window)
- (format "*%s-Snarf*" ebdb-buffer-name)))))
+ (ebdb-display-records records nil t nil (list (selected-window))))))
(defun ebdb-snarf-collect (&optional records)
"Collect EBDB record information from the text of the current buffer.