[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 241/287: Cleanup for select text in quotes
From: |
Matthew Fidler |
Subject: |
[elpa] 241/287: Cleanup for select text in quotes |
Date: |
Wed, 02 Jul 2014 14:46:20 +0000 |
mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.
commit addae3256df374f5b3966c7e625a1ada15eda3ed
Author: Matthew L. Fidler <address@hidden>
Date: Fri Jun 27 06:47:47 2014 -0500
Cleanup for select text in quotes
---
ergoemacs-functions.el | 16 +++++++++++++---
1 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/ergoemacs-functions.el b/ergoemacs-functions.el
index c8600e1..15238ee 100644
--- a/ergoemacs-functions.el
+++ b/ergoemacs-functions.el
@@ -804,7 +804,17 @@ the prefix arguments of `end-of-buffer',
(set-mark p1)))
(defun ergoemacs-select-text-in-ascii-quote ()
- "Select text between ASCII quotes, single or double."
+ "Select text between ASCII quotes, single or double.
+
+In emacs 24.4, By putting your cursor at ▮ in the followin example:
+
+ \"some ▮ \\\"thing\\\" and another\"
+
+This function should select the whole string.
+
+In Emacs 24.3 and lower it will raise an unbalanced parenthesis error.
+"
+ "some ▮ \"thing\" and another"
(interactive)
(let (p1 p2)
(if (nth 3 (syntax-ppss))
@@ -818,7 +828,7 @@ the prefix arguments of `end-of-buffer',
(progn
(user-error "Cursor not inside quote")))))
-(defun ergoemacs-select-text-in-bracket ()
+(defun ergoemacs-select-text-in-bracket-or-quote ()
"Select text between the nearest brackets.
Bracket here includes: () [] {} «» ‹› “” 〖〗 【】 「」 『』 () 〈〉
《》 〔〕 ⦗⦘ 〘〙 ⦅⦆ 〚〛 ⦃⦄ ⟨⟩."
@@ -846,7 +856,7 @@ Bracket here includes: () [] {} «» ‹› “” 〖〗 【】 「」 『』
(interactive)
(if (nth 3 (syntax-ppss))
(ergoemacs-select-text-in-ascii-quote)
- (ergoemacs-select-text-in-bracket)))
+ (ergoemacs-select-text-in-bracket-or-quote)))
;; by Nikolaj Schumacher, 2008-10-20. Released under GPL.
(defun ergoemacs-semnav-up (arg)
- [elpa] 233/287: Change the default option back, (continued)
- [elpa] 233/287: Change the default option back, Matthew Fidler, 2014/07/02
- [elpa] 230/287: Fix `ergoemacs-beginning-of-line-or-what` and `ergoemacs-end-of-line-or-what`, Matthew Fidler, 2014/07/02
- [elpa] 227/287: Be more careful of cua--rectangle, Matthew Fidler, 2014/07/02
- [elpa] 232/287: Fix beginning of line function again..., Matthew Fidler, 2014/07/02
- [elpa] 238/287: Fix warnings for cua-clear-rectangle-mark., Matthew Fidler, 2014/07/02
- [elpa] 240/287: Move the fixed bracket moving to the bracket theme component., Matthew Fidler, 2014/07/02
- [elpa] 236/287: add electric-pair-made as an option, Matthew Fidler, 2014/07/02
- [elpa] 237/287: Expanded outlook integration with Emacs org-mode, Matthew Fidler, 2014/07/02
- [elpa] 234/287: Make comment-search-backward less fragile, Matthew Fidler, 2014/07/02
- [elpa] 235/287: Add the uri encoding function, Matthew Fidler, 2014/07/02
- [elpa] 241/287: Cleanup for select text in quotes,
Matthew Fidler <=
- [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, 2014/07/02