[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 1d184b0 05/17: Regexp-quote strings of avy-goto-char* func
From: |
Oleh Krehel |
Subject: |
[elpa] master 1d184b0 05/17: Regexp-quote strings of avy-goto-char* functions. |
Date: |
Fri, 08 May 2015 13:42:07 +0000 |
branch: master
commit 1d184b0e2ac3433d0e5ba3c8eefef4ca56918dd1
Author: Tassilo Horn <address@hidden>
Commit: Tassilo Horn <address@hidden>
Regexp-quote strings of avy-goto-char* functions.
Before this commit, avy-goto-char with char ^ would inf-loop because the
resulting string "^" is treated as a regular expressions. However, with
the avy-goto-char* function, the char should be treated literally. For
example, in Clojure ^:foo is treated as metadata annotation and thus ^
is a likely jump target.
---
avy-jump.el | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/avy-jump.el b/avy-jump.el
index 89a443a..f596363 100644
--- a/avy-jump.el
+++ b/avy-jump.el
@@ -236,7 +236,7 @@ The window scope is determined by `avy-all-windows'.
When ARG is non-nil, flip the window scope."
(interactive "P")
(avy--generic-jump
- (string (read-char "char: ")) arg))
+ (regexp-quote (string (read-char "char: "))) arg))
;;;###autoload
(defun avy-goto-char-2 (&optional arg)
@@ -244,9 +244,9 @@ When ARG is non-nil, flip the window scope."
When ARG is non-nil, flip the window scope."
(interactive "P")
(avy--generic-jump
- (string
- (read-char "char 1: ")
- (read-char "char 2: "))
+ (regexp-quote (string
+ (read-char "char 1: ")
+ (read-char "char 2: ")))
arg))
;;;###autoload
- [elpa] master updated (74b34f2 -> 876d210), Oleh Krehel, 2015/05/08
- [elpa] master 1684e6a 03/17: Avoid image-mode and doc-view-mode, Oleh Krehel, 2015/05/08
- [elpa] master 1d184b0 05/17: Regexp-quote strings of avy-goto-char* functions.,
Oleh Krehel <=
- [elpa] master 33546b6 06/17: Fix avy-goto-subword-0, Oleh Krehel, 2015/05/08
- [elpa] master 5677270 04/17: Move obsoletes to one place, Oleh Krehel, 2015/05/08
- [elpa] master 18cf1ef 07/17: README.md: add, Oleh Krehel, 2015/05/08
- [elpa] master 6c1f2f6 02/17: Move from "avi-" to "avy-", leave old stuff obsolete, Oleh Krehel, 2015/05/08
- [elpa] master 974e55b 09/17: avy-jump.el (avy--line): Avoid image-mode and doc-view-mode, Oleh Krehel, 2015/05/08
- [elpa] master 5d2979b 01/17: Initial import, Oleh Krehel, 2015/05/08
- [elpa] master e9d2e60 08/17: Customize the leading char style for chars and words, Oleh Krehel, 2015/05/08
- [elpa] master 903e172 12/17: Special-case char RET to allow for jumping to end-of-lines., Oleh Krehel, 2015/05/08
- [elpa] master 487d5ea 11/17: Abstract windows and rely on subword, Oleh Krehel, 2015/05/08
- [elpa] master ca1ca04 14/17: Add avy-goto-subword-1, Oleh Krehel, 2015/05/08