[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 262/287: Make paste is calling pre/post commands
From: |
Matthew Fidler |
Subject: |
[elpa] 262/287: Make paste is calling pre/post commands |
Date: |
Wed, 02 Jul 2014 14:46:31 +0000 |
mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.
commit 50c53108c88961cd3c5dd62cbd696e5587e36ee1
Author: Matthew L. Fidler <address@hidden>
Date: Mon Jun 30 09:46:54 2014 -0500
Make paste is calling pre/post commands
---
ergoemacs-test.el | 33 +++++++++++++++++++--------------
1 files changed, 19 insertions(+), 14 deletions(-)
diff --git a/ergoemacs-test.el b/ergoemacs-test.el
index b38b83b..5332ec8 100644
--- a/ergoemacs-test.el
+++ b/ergoemacs-test.el
@@ -771,20 +771,25 @@ Issue #186."
"Issue #184; Not replace the \"selected all\" by paste."
(let ((ret t)
(ergoemacs-handle-ctl-c-or-ctl-x 'both))
- (with-temp-buffer
- (insert ergoemacs-test-lorem-ipsum)
- (goto-char (point-min))
- (push-mark)
- (end-of-line)
- (ergoemacs-copy-line-or-region)
- (push-mark (point))
- (push-mark (point-max) nil t)
- (goto-char (point-min))
- (ergoemacs-paste)
- (message "`%s`" (buffer-string))
- (setq ret (string= "Lorem ipsum dolor sit amet, consectetur adipisicing
elit, sed\n"
- (buffer-string))))
- (should ret)))
+ (ergoemacs-test-layout
+ :macro "C-v"
+ (save-excursion
+ (switch-to-buffer (get-buffer-create "*ergoemacs-test*"))
+ (insert ergoemacs-test-lorem-ipsum)
+ (goto-char (point-min))
+ (push-mark)
+ (end-of-line)
+ (ergoemacs-copy-line-or-region)
+ (push-mark (point))
+ (push-mark (point-max) nil t)
+ (goto-char (point-min))
+ ;; Make sure the `pre-command-hook' and `post-command-hook' is
+ ;; run by calling the macro.
+ (execute-kbd-macro macro)
+ ;; (ergoemacs-paste)
+ (should (string= "Lorem ipsum dolor sit amet, consectetur adipisicing
elit, sed\n"
+ (buffer-string)))
+ (kill-buffer (current-buffer))))))
(ert-deftest ergoemacs-test-issue-184-paste-should-clear-mark ()
"Issue #186.
- [elpa] 264/287: fix a typo, (continued)
- [elpa] 264/287: fix a typo, Matthew Fidler, 2014/07/02
- [elpa] 268/287: Run all ergoemacs- tests, Matthew Fidler, 2014/07/02
- [elpa] 265/287: More Robust ergoemacs-end-of-line-or-what (passes noninteractive test), Matthew Fidler, 2014/07/02
- [elpa] 269/287: Add autoload cookie to ergoemacs-test-layout, Matthew Fidler, 2014/07/02
- [elpa] 266/287: Make apps-copy test use C-a, Matthew Fidler, 2014/07/02
- [elpa] 267/287: Move ergoemacs-hook-functions to prevent warnings, Matthew Fidler, 2014/07/02
- [elpa] 263/287: Remove condition-case handler, Matthew Fidler, 2014/07/02
- [elpa] 261/287: Make sure to include the ending new-line when copying an empty line, Matthew Fidler, 2014/07/02
- [elpa] 273/287: Slight bug fix for beginning-of-line-or-what, Matthew Fidler, 2014/07/02
- [elpa] 274/287: add eo and eo-displaced, Matthew Fidler, 2014/07/02
- [elpa] 262/287: Make paste is calling pre/post commands,
Matthew Fidler <=
- [elpa] 270/287: Make test string smaller/easier to debug for apps-copy, Matthew Fidler, 2014/07/02
- [elpa] 276/287: Fix Issue #258, Matthew Fidler, 2014/07/02
- [elpa] 278/287: Fix Issue #256, Matthew Fidler, 2014/07/02
- [elpa] 279/287: Merge branch 'master' of github.com:ergoemacs/ergoemacs-mode, Matthew Fidler, 2014/07/02
- [elpa] 280/287: Merge pull request #255 from akfoss/master, Matthew Fidler, 2014/07/02
- [elpa] 146/287: dolist instaed of mapc, Matthew Fidler, 2014/07/02
- [elpa] 281/287: Make Alt+; the ergoemacs-reduction M-x, Matthew Fidler, 2014/07/02
- [elpa] 165/287: Removed ergoemacs-minibuffer-setup, different quote for emulation-mode-map-alists, Matthew Fidler, 2014/07/02
- [elpa] 271/287: Merge pull request #254 from akfoss/master, Matthew Fidler, 2014/07/02
- [elpa] 272/287: Merge pull request #252 from akfoss/master, Matthew Fidler, 2014/07/02