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

[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



reply via email to

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