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

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

[elpa] 01/14: company-begin-commands: include some cc-mode commands


From: Dmitry Gutov
Subject: [elpa] 01/14: company-begin-commands: include some cc-mode commands
Date: Sat, 13 Sep 2014 12:18:57 +0000

dgutov pushed a commit to branch master
in repository elpa.

commit f75eafc9eaa9c83a0e375311349d83478c5ce32d
Author: Dmitry Gutov <address@hidden>
Date:   Sun Aug 31 03:44:48 2014 +0400

    company-begin-commands: include some cc-mode commands
    
    Closes #174
---
 NEWS.md    |    4 ++++
 company.el |   12 +++++++++---
 2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/NEWS.md b/NEWS.md
index 8a0bec2..6d9989b 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -1,5 +1,9 @@
 # History of user-visible changes
 
+## Next
+
+* `company-begin-commands` includes several `cc-mode` commands.
+
 ## 2014-08-27 (0.8.3)
 
 * On Emacs 24.4 or newer, tooltip positioning takes line-spacing into account.
diff --git a/company.el b/company.el
index 9d53cd7..239d16f 100644
--- a/company.el
+++ b/company.el
@@ -5,7 +5,7 @@
 ;; Author: Nikolaj Schumacher
 ;; Maintainer: Dmitry Gutov <address@hidden>
 ;; URL: http://company-mode.github.io/
-;; Version: 0.8.3
+;; Version: 0.8.4-cvs
 ;; Keywords: abbrev, convenience, matching
 ;; Package-Requires: ((emacs "24.1") (cl-lib "0.5"))
 
@@ -554,7 +554,12 @@ happens.  The value of nil means no idle completion."
                  (const :tag "immediate (0)" 0)
                  (number :tag "seconds")))
 
-(defcustom company-begin-commands '(self-insert-command 
org-self-insert-command)
+(defcustom company-begin-commands '(self-insert-command
+                                    org-self-insert-command
+                                    c-scope-operator
+                                    c-electric-colon
+                                    c-electric-lt-gt
+                                    c-electric-slash)
   "A list of commands after which idle completion is allowed.
 If this is t, it can show completions after any command except a few from a
 pre-defined list.  See `company-idle-delay'.
@@ -563,7 +568,8 @@ Alternatively, any command with a non-nil `company-begin' 
property is
 treated as if it was on this list."
   :type '(choice (const :tag "Any command" t)
                  (const :tag "Self insert command" '(self-insert-command))
-                 (repeat :tag "Commands" function)))
+                 (repeat :tag "Commands" function))
+  :package-version '(company . "0.8.4"))
 
 (defcustom company-continue-commands '(not save-buffer save-some-buffers
                                            save-buffers-kill-terminal



reply via email to

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