[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 265/287: More Robust ergoemacs-end-of-line-or-what (passes nonint
From: |
Matthew Fidler |
Subject: |
[elpa] 265/287: More Robust ergoemacs-end-of-line-or-what (passes noninteractive test) |
Date: |
Wed, 02 Jul 2014 14:46:32 +0000 |
mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.
commit 7955717ed82aeeb896f8d251d4da80fedf806bed
Author: Matthew L. Fidler <address@hidden>
Date: Mon Jun 30 10:06:01 2014 -0500
More Robust ergoemacs-end-of-line-or-what (passes noninteractive test)
---
ergoemacs-functions.el | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/ergoemacs-functions.el b/ergoemacs-functions.el
index e60e46f..3a00ed8 100644
--- a/ergoemacs-functions.el
+++ b/ergoemacs-functions.el
@@ -771,18 +771,18 @@ the prefix arguments of `end-of-buffer',
(goto-char cs)
(skip-syntax-backward " " (point-at-bol))
(push (point) pts)))))
+ (when pts
+ (setq pts (sort pts '<))
+ (dolist (x pts)
+ (unless (<= x (point))
+ (push x tmp)))
+ (setq pts (reverse tmp)))
(cond
((not pts)
(call-interactively 'move-end-of-line)
(setq this-command 'move-end-of-line))
(t
- (setq pts (sort pts '<))
- (dolist (x pts)
- (unless (<= x (point))
- (push x tmp)))
- (setq pts (reverse tmp))
- (when pts
- (goto-char (nth 0 pts)))))))
+ (goto-char (nth 0 pts))))))
(setq ergoemacs-beginning-of-line-or-what-last-command this-command))
;;; TEXT SELECTION RELATED
- [elpa] 250/287: Comment out autopair; needs to go in options menu..., (continued)
- [elpa] 250/287: Comment out autopair; needs to go in options menu..., Matthew Fidler, 2014/07/02
- [elpa] 256/287: Add version information for themes, Matthew Fidler, 2014/07/02
- [elpa] 251/287: Modify copy-line-or-region to work with `org-mode`, Matthew Fidler, 2014/07/02
- [elpa] 258/287: Silence customize save with batch emacs., Matthew Fidler, 2014/07/02
- [elpa] 252/287: sort layouts alphabetically, Matthew Fidler, 2014/07/02
- [elpa] 260/287: Make sure `ergoemacs-hook-functions` is non-nil, Matthew Fidler, 2014/07/02
- [elpa] 259/287: Move saving last closed buffer to ergoemacs-theme, Matthew Fidler, 2014/07/02
- [elpa] 254/287: Add test for begining and ending of line, Matthew Fidler, 2014/07/02
- [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 <=
- [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, 2014/07/02
- [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