[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 255/287: Make beginning/end of line work without font-lock
From: |
Matthew Fidler |
Subject: |
[elpa] 255/287: Make beginning/end of line work without font-lock |
Date: |
Wed, 02 Jul 2014 14:46:28 +0000 |
mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.
commit 690b332f44d6e41eb9fa0a32f06bc4b6db01395e
Author: Matthew L. Fidler <address@hidden>
Date: Sun Jun 29 23:13:26 2014 -0500
Make beginning/end of line work without font-lock
---
ergoemacs-functions.el | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/ergoemacs-functions.el b/ergoemacs-functions.el
index c08b74d..84605ee 100644
--- a/ergoemacs-functions.el
+++ b/ergoemacs-functions.el
@@ -302,6 +302,7 @@ If `narrow-to-region' is in effect, then cut that region
only."
(defvar cua-mode)
(declare-function cua-copy-rectangle "cua-rect.el")
(declare-function cua-copy-region "cua-base.el")
+(declare-function ergoemacs-shortcut-remap "ergoemacs-shortcuts.el")
(defvar cua--rectangle)
(defun ergoemacs-copy-line-or-region (&optional arg)
"Copy current line, or current text selection."
@@ -329,7 +330,6 @@ If `narrow-to-region' is in effect, then cut that region
only."
(deactivate-mark))
(declare-function cua-cut-region "cua-base.el")
-(declare-function ergoemacs-shortcut-remap "ergoemacs-shortcuts.el")
(defun ergoemacs-cut-line-or-region (&optional arg)
"Cut the current line, or current text selection.
Use `cua-cut-rectangle' or `cua-cut-region' when `cua-mode' is
@@ -665,10 +665,7 @@ the prefix arguments of `beginning-of-buffer',
(save-excursion
(when (ignore-errors (comment-search-backward (point-at-bol) t))
(push (point) pts)
- (when (and font-lock-mode
- (eq (get-text-property (point) 'face)
- 'font-lock-comment-face))
- (goto-char (max (point-at-bol)
(previous-single-property-change (point) 'face (current-buffer)
(point-at-bol))))
+ (when (re-search-backward (format "%s\\=" comment-start-skip)
(point-at-bol) t)
(skip-syntax-backward " " (point-at-bol))
(push (point) pts))))))
(cond
- [elpa] 241/287: Cleanup for select text in quotes, (continued)
- [elpa] 241/287: Cleanup for select text in quotes, Matthew Fidler, 2014/07/02
- [elpa] 243/287: Make the quote selection consistent., Matthew Fidler, 2014/07/02
- [elpa] 242/287: Fix `ergoemacs-select-text-in-ascii-quote` to work using font-lock, Matthew Fidler, 2014/07/02
- [elpa] 239/287: Allow emacs 24.4 differences for backward-up-list, Matthew Fidler, 2014/07/02
- [elpa] 248/287: Merge pull request #248 from akfoss/master, Matthew Fidler, 2014/07/02
- [elpa] 244/287: Bug fix for cutting folded lines at the end of the line., Matthew Fidler, 2014/07/02
- [elpa] 246/287: Prefer emacs 24.4 backward-up-list, Matthew Fidler, 2014/07/02
- [elpa] 249/287: Support smartparens-mode and auto-indent-mode, Matthew Fidler, 2014/07/02
- [elpa] 247/287: Revert ergoemacs-select-text-in-quote; Make expand-region consistent, Matthew Fidler, 2014/07/02
- [elpa] 245/287: Add back reduced font-lock free ergoemacs-select-text-in-ascii-quote, Matthew Fidler, 2014/07/02
- [elpa] 255/287: Make beginning/end of line work without font-lock,
Matthew Fidler <=
- [elpa] 253/287: Another fix for end of line or what, Matthew Fidler, 2014/07/02
- [elpa] 257/287: Fix byte-compile errors, Matthew Fidler, 2014/07/02
- [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