[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 245/287: Add back reduced font-lock free ergoemacs-select-text-in
From: |
Matthew Fidler |
Subject: |
[elpa] 245/287: Add back reduced font-lock free ergoemacs-select-text-in-ascii-quote |
Date: |
Wed, 02 Jul 2014 14:46:22 +0000 |
mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.
commit ae6bb08536f4eae2c9e123d49cef1a7144aa2cb2
Author: Matthew L. Fidler <address@hidden>
Date: Fri Jun 27 08:00:44 2014 -0500
Add back reduced font-lock free ergoemacs-select-text-in-ascii-quote
---
ergoemacs-functions.el | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/ergoemacs-functions.el b/ergoemacs-functions.el
index 2ff2064..0419c06 100644
--- a/ergoemacs-functions.el
+++ b/ergoemacs-functions.el
@@ -532,7 +532,6 @@ This will not honor `shift-select-mode'."
;; Extends behavior of
;;
http://emacsredux.com/blog/2013/05/22/smarter-navigation-to-the-beginning-of-a-line/
-(defvar font-lock)
(defvar ergoemacs-beginning-of-line-or-what-last-command nil)
(declare-function comment-search-backward "newcomment.el")
(declare-function comment-search-forward "newcomment.el")
@@ -834,7 +833,12 @@ This function should select the whole string."
(goto-char (1+ p1))
(set-mark (1- p2)))
(user-error "Cursor not inside quote")))
- (t (user-error "This command requires `font-lock-mode' or emacs
24.4+")))))
+ (t
+ (let (p1)
+ (skip-chars-backward "^“\"")
+ (setq p1 (point))
+ (skip-chars-forward "^”\"")
+ (set-mark p1)))))))
(defun ergoemacs-select-text-in-bracket-or-quote ()
"Select text between the nearest brackets.
- [elpa] 235/287: Add the uri encoding function, (continued)
- [elpa] 235/287: Add the uri encoding function, Matthew Fidler, 2014/07/02
- [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 <=
- [elpa] 255/287: Make beginning/end of line work without font-lock, Matthew Fidler, 2014/07/02
- [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