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

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

[elpa] master df14727 110/173: Fix bbdb completion for multi-recipient m


From: Dmitry Gutov
Subject: [elpa] master df14727 110/173: Fix bbdb completion for multi-recipient messages
Date: Thu, 23 Jun 2016 00:28:43 +0000 (UTC)

branch: master
commit df1472763828a8e171215b62878fa3f6870e954d
Author: Jan Tatarik <(none)>
Commit: Jan Tatarik <(none)>

    Fix bbdb completion for multi-recipient messages
    
    Trigger completion for the last incomplete recipient address only,
    instead of the whole recipient list.
---
 company-bbdb.el |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/company-bbdb.el b/company-bbdb.el
index b83ce0f..36307d0 100644
--- a/company-bbdb.el
+++ b/company-bbdb.el
@@ -1,6 +1,6 @@
 ;;; company-bbdb.el --- company-mode completion backend for BBDB in 
message-mode
 
-;; Copyright (C) 2013-2014  Free Software Foundation, Inc.
+;; Copyright (C) 2013-2014, 2016  Free Software Foundation, Inc.
 
 ;; Author: Jan Tatarik <address@hidden>
 
@@ -50,7 +50,7 @@
     (interactive (company-begin-backend 'company-bbdb))
     (prefix (and (memq major-mode company-bbdb-modes)
                  (featurep 'bbdb-com)
-                 (looking-back "^\\(To\\|Cc\\|Bcc\\): *\\(.*\\)"
+                 (looking-back "^\\(To\\|Cc\\|Bcc\\): *.*?\\([^,; ]*\\)"
                                (line-beginning-position))
                  (match-string-no-properties 2)))
     (candidates (company-bbdb--candidates arg))



reply via email to

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