emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master e66f2c3 13/66: company-bbdb: Use the whole line content af


From: Dmitry Gutov
Subject: [elpa] master e66f2c3 13/66: company-bbdb: Use the whole line content after `: ' as prefix
Date: Tue, 13 Jan 2015 02:44:46 +0000

branch: master
commit e66f2c3d0d4af5b2ed99a329d4a1bcd203c00cd8
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    company-bbdb: Use the whole line content after `: ' as prefix
---
 company-bbdb.el |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/company-bbdb.el b/company-bbdb.el
index 22741a2..b2760b2 100644
--- a/company-bbdb.el
+++ b/company-bbdb.el
@@ -41,9 +41,9 @@
     (interactive (company-begin-backend 'company-bbdb))
     (prefix (and (eq major-mode 'message-mode)
                  (featurep 'bbdb-com)
-                 (looking-back "^\\(To\\|Cc\\|Bcc\\):.*"
+                 (looking-back "^\\(To\\|Cc\\|Bcc\\): *\\(.*\\)"
                                (line-beginning-position))
-                 (company-grab-symbol)))
+                 (match-string-no-properties 2)))
     (candidates (company-bbdb--candidates arg))
     (sorted t)
     (no-cache t)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]