[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ebdb 925e0ea 14/15: Remove mail-citation-prefix-regexp
From: |
Eric Abrahamsen |
Subject: |
[elpa] externals/ebdb 925e0ea 14/15: Remove mail-citation-prefix-regexp from strings to snarf |
Date: |
Thu, 22 Mar 2018 00:58:58 -0400 (EDT) |
branch: externals/ebdb
commit 925e0ea3d005ce7ba16577029ffd051308d36f54
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>
Remove mail-citation-prefix-regexp from strings to snarf
* ebdb-snarf.el (ebdb-snarf-collect): Work with common case of
snarfing mail messages.
---
ebdb-snarf.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/ebdb-snarf.el b/ebdb-snarf.el
index 6f85a0e..77c6984 100644
--- a/ebdb-snarf.el
+++ b/ebdb-snarf.el
@@ -176,7 +176,11 @@ list of other field instances. Any element can be nil."
"\\)[-\n ,:]*")))
(with-temp-buffer
- (insert str)
+ ;; Snarfing mail buffers is very common, try deleting citation
+ ;; prefixes from the buffer first.
+ (insert (replace-regexp-in-string
+ (concat "^" mail-citation-prefix-regexp "[:blank:]+")
+ "" str))
(goto-char (point-min))
(while (re-search-forward big-re nil t)
(let* ((start (goto-char (match-beginning 0)))
- [elpa] externals/ebdb updated (2c71ef9 -> 091a744), Eric Abrahamsen, 2018/03/22
- [elpa] externals/ebdb fea7c5e 01/15: Fix font inheritance of mail addresses, Eric Abrahamsen, 2018/03/22
- [elpa] externals/ebdb b228892 04/15: Change interactive behavior of ebdb-mail-aliases, Eric Abrahamsen, 2018/03/22
- [elpa] externals/ebdb fff770e 05/15: ebdb-mua defgroup in wrong file, Eric Abrahamsen, 2018/03/22
- [elpa] externals/ebdb 78cfb2a 06/15: Pop up EBDB windows before formatting records, Eric Abrahamsen, 2018/03/22
- [elpa] externals/ebdb ff6e919 09/15: Add a basic language field, Eric Abrahamsen, 2018/03/22
- [elpa] externals/ebdb 5e42dff 03/15: Forgot to pop-to-buffer to after creating citation buffer, Eric Abrahamsen, 2018/03/22
- [elpa] externals/ebdb 8e8c2e1 07/15: Make gnus-message window config stuff customizable, Eric Abrahamsen, 2018/03/22
- [elpa] externals/ebdb 76f8d4b 10/15: Make it clear what field type we're prompting for, Eric Abrahamsen, 2018/03/22
- [elpa] externals/ebdb 925e0ea 14/15: Remove mail-citation-prefix-regexp from strings to snarf,
Eric Abrahamsen <=
- [elpa] externals/ebdb 03d432d 02/15: Don't append citation to kill ring in ebdb-cite-records-ebdb, Eric Abrahamsen, 2018/03/22
- [elpa] externals/ebdb d53ddc1 08/15: Use Gnus' window configuration for popping up EBDB buffers, Eric Abrahamsen, 2018/03/22
- [elpa] externals/ebdb 41912b9 11/15: Improve check for field existence during snarf collapsing, Eric Abrahamsen, 2018/03/22
- [elpa] externals/ebdb b56bf29 12/15: Adjust snarfing regexp for names, Eric Abrahamsen, 2018/03/22
- [elpa] externals/ebdb 091a744 15/15: Make phone number snarfing regexp less permissive, Eric Abrahamsen, 2018/03/22
- [elpa] externals/ebdb bb01b5c 13/15: Mostly re-write ebdb-snarf-collect, Eric Abrahamsen, 2018/03/22