[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 0affd93 21/29: Fix the new test to work in Emacs 24
From: |
Dmitry Gutov |
Subject: |
[elpa] master 0affd93 21/29: Fix the new test to work in Emacs 24 |
Date: |
Tue, 28 Mar 2017 20:50:36 -0400 (EDT) |
branch: master
commit 0affd93a3a78ab052404f7fcbd6ea88e661c6082
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>
Fix the new test to work in Emacs 24
---
test/core-tests.el | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/test/core-tests.el b/test/core-tests.el
index 6876ed5..6e227da8 100644
--- a/test/core-tests.el
+++ b/test/core-tests.el
@@ -345,12 +345,17 @@
(list (lambda (command &optional _)
(cl-case command
(prefix (buffer-substring 5 (point)))
- (candidates '("abcd" "abef")))))))
- (electric-pair-local-mode)
- (let (this-command)
- (company-complete))
- (let ((last-command-event ?\)))
- (company-call 'self-insert-command 1))
+ (candidates '("abcd" "abef"))))))
+ (electric-pair electric-pair-mode))
+ (unwind-protect
+ (progn
+ (electric-pair-mode)
+ (let (this-command)
+ (company-complete))
+ (let ((last-command-event ?\)))
+ (company-call 'self-insert-command 1)))
+ (unless electric-pair
+ (electric-pair-mode -1)))
(should (string= "foo(abcd)" (buffer-string))))))
(ert-deftest company-no-auto-complete-when-idle ()
- [elpa] master a2ec806 12/29: Use tramp-aware `start-file-process' to start completion process, (continued)
- [elpa] master a2ec806 12/29: Use tramp-aware `start-file-process' to start completion process, Dmitry Gutov, 2017/03/28
- [elpa] master a4d0421 05/29: Modified for the original frontends to work, Dmitry Gutov, 2017/03/28
- [elpa] master 1c516df 01/29: Increase the minimum Emacs version dependency, Dmitry Gutov, 2017/03/28
- [elpa] master c494fc6 17/29: Fix a failing test, Dmitry Gutov, 2017/03/28
- [elpa] master ec12e27 27/29: Merge branch 'master' of github.com:company-mode/company-mode, Dmitry Gutov, 2017/03/28
- [elpa] master f149940 28/29: Release 0.9.3, Dmitry Gutov, 2017/03/28
- [elpa] master ce42fcf 23/29: Update copyright years, Dmitry Gutov, 2017/03/28
- [elpa] master 7bd93b8 15/29: Merge pull request #629 from juergenhoetzel/tramp-aware-clang, Dmitry Gutov, 2017/03/28
- [elpa] master 51f3885 10/29: Merge pull request #618 from kkatsuyuki/preview-common, Dmitry Gutov, 2017/03/28
- [elpa] master b74f329 22/29: Track the changes in window width, Dmitry Gutov, 2017/03/28
- [elpa] master 0affd93 21/29: Fix the new test to work in Emacs 24,
Dmitry Gutov <=
- [elpa] master f0ff54e 13/29: company-diag: Also show completions if prefix is a cons, Dmitry Gutov, 2017/03/28
- [elpa] master e19e53e 19/29: Remote the overriding-terminal-local-map check, Dmitry Gutov, 2017/03/28
- [elpa] master 90123e7 26/29: Don't use the trailing slash in .elpaignore, Dmitry Gutov, 2017/03/28
- [elpa] master f9c9e85 24/29: Bind message-truncate-lines around call to message in company-echo-show, Dmitry Gutov, 2017/03/28
- [elpa] master edc5d03 29/29: Merge commit 'f1499404163d8148e7a6303a8598f9c0f696d1cb' from company, Dmitry Gutov, 2017/03/28
- [elpa] master 5e49ddf 08/29: Take the exact candidate as an nonoptional arg, Dmitry Gutov, 2017/03/28
- [elpa] master 906deab 14/29: Merge pull request #625 from juergenhoetzel/company-diag-consp, Dmitry Gutov, 2017/03/28
- [elpa] master f932619 25/29: Merge pull request #656 from cpitclaudel/651-truncate-echo, Dmitry Gutov, 2017/03/28