[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 1684e6a 03/17: Avoid image-mode and doc-view-mode
From: |
Oleh Krehel |
Subject: |
[elpa] master 1684e6a 03/17: Avoid image-mode and doc-view-mode |
Date: |
Fri, 08 May 2015 13:42:06 +0000 |
branch: master
commit 1684e6af02c3dfcbe2dc27732a5787655d869d40
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
Avoid image-mode and doc-view-mode
* avy-jump.el (avy--regex-candidates): Update.
Re #1
---
avy-jump.el | 21 +++++++++++----------
1 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/avy-jump.el b/avy-jump.el
index c76e266..5ad0ecd 100644
--- a/avy-jump.el
+++ b/avy-jump.el
@@ -129,16 +129,17 @@ When PRED is non-nil, it's a filter for matching point
positions."
(window-list)
(list (selected-window))))
(with-selected-window wnd
- (let ((we (or end (window-end (selected-window) t))))
- (save-excursion
- (goto-char (or beg (window-start)))
- (while (re-search-forward regex we t)
- (unless (get-char-property (point) 'invisible)
- (when (or (null pred)
- (funcall pred))
- (push (cons (cons (match-beginning 0)
- (match-end 0))
- wnd) candidates))))))))
+ (unless (memq major-mode '(image-mode doc-view-mode))
+ (let ((we (or end (window-end (selected-window) t))))
+ (save-excursion
+ (goto-char (or beg (window-start)))
+ (while (re-search-forward regex we t)
+ (unless (get-char-property (point) 'invisible)
+ (when (or (null pred)
+ (funcall pred))
+ (push (cons (cons (match-beginning 0)
+ (match-end 0))
+ wnd) candidates)))))))))
(nreverse candidates)))
(defvar avy--overlay-offset 0
- [elpa] master updated (74b34f2 -> 876d210), Oleh Krehel, 2015/05/08
- [elpa] master 1684e6a 03/17: Avoid image-mode and doc-view-mode,
Oleh Krehel <=
- [elpa] master 1d184b0 05/17: Regexp-quote strings of avy-goto-char* functions., Oleh Krehel, 2015/05/08
- [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