[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 194dd68 30/40: Reimplemented loccur-no-highlight and fixed
From: |
Alexey Veretennikov |
Subject: |
[elpa] master 194dd68 30/40: Reimplemented loccur-no-highlight and fixed checkdoc |
Date: |
Fri, 29 Jan 2016 23:29:47 +0000 |
branch: master
commit 194dd688633069a1a28599b2a8d79e2e35ea4e77
Author: Alexey Veretennikov <address@hidden>
Commit: Alexey Veretennikov <address@hidden>
Reimplemented loccur-no-highlight and fixed checkdoc
---
loccur.el | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/loccur.el b/loccur.el
index 0a5bab5..a076a5d 100644
--- a/loccur.el
+++ b/loccur.el
@@ -109,7 +109,7 @@ a new window."
Default: nil")
(defcustom loccur-highlight-matching-regexp t
- "If set to nil, the `loccur-mode' will not highlight matching words.
+ "If set to nil, do not highlight matching words.
Default: t")
(defvar loccur-history nil
@@ -135,6 +135,16 @@ Default: t")
(interactive)
(loccur loccur-last-match))
+(defun loccur-no-highlight (regex)
+ "Perform search like loccur, but temporary removing match highlight.
+REGEX is regexp to search"
+ (interactive
+ (if loccur-mode
+ nil
+ (list (read-string "Loccur: " (loccur-prompt) 'loccur-history))))
+ (let ((loccur-highlight-matching-regexp nil))
+ (loccur regex)))
+
(defun loccur (regex)
"Perform a simple grep in current buffer.
@@ -291,7 +301,8 @@ containing match"
(setq lines (nreverse lines)))))
(defun loccur-toggle-highlight (&optional arg)
- "Toggle the highlighting of the matches"
+ "Toggle the highlighting of the match.
+Optional argument ARG if t turn highlight on, off otherwise."
(interactive)
(setq loccur-highlight-matching-regexp (not
loccur-highlight-matching-regexp))
(when loccur-mode
- [elpa] master 8aef9f0 19/40: Added customizable option to jump to the beginnig of the line in loccur mode: loccur-jump-beginning-of-line, (continued)
- [elpa] master 8aef9f0 19/40: Added customizable option to jump to the beginnig of the line in loccur mode: loccur-jump-beginning-of-line, Alexey Veretennikov, 2016/01/29
- [elpa] master ab4804a 20/40: Removed some cl dependencies; version changed to 1.2.1, Alexey Veretennikov, 2016/01/29
- [elpa] master cb7f8ac 17/40: Merge pull request #1 from picarresursix/master, Alexey Veretennikov, 2016/01/29
- [elpa] master 7d19c16 22/40: Preparation to move to GNU ELPA., Alexey Veretennikov, 2016/01/29
- [elpa] master 8ffd028 23/40: Preparation to move to GNU ELPA., Alexey Veretennikov, 2016/01/29
- [elpa] master 43cbc15 21/40: Fixed checkdoc issues, Alexey Veretennikov, 2016/01/29
- [elpa] master b6655e3 24/40: Preparation to move to GNU ELPA., Alexey Veretennikov, 2016/01/29
- [elpa] master 900eb51 26/40: Preparation to move to GNU ELPA., Alexey Veretennikov, 2016/01/29
- [elpa] master f95c8d6 28/40: Preparation to move to GNU ELPA., Alexey Veretennikov, 2016/01/29
- [elpa] master 359fae1 25/40: Preparation to move to GNU ELPA., Alexey Veretennikov, 2016/01/29
- [elpa] master 194dd68 30/40: Reimplemented loccur-no-highlight and fixed checkdoc,
Alexey Veretennikov <=
- [elpa] master 66a9810 32/40: Merge pull request #3 from syohex/group, Alexey Veretennikov, 2016/01/29
- [elpa] master e5d1061 31/40: Define group for customize and fixing byte-compile warnings, Alexey Veretennikov, 2016/01/29
- [elpa] master 2680df7 34/40: Fixed bug when loccur called with empty argument., Alexey Veretennikov, 2016/01/29
- [elpa] master 59b8dd1 29/40: Implemented removed features and added face loccur-face, Alexey Veretennikov, 2016/01/29
- [elpa] master 2cacc68 33/40: Added types to custom, Alexey Veretennikov, 2016/01/29
- [elpa] master 61dcaaf 37/40: Removed redundand code, Alexey Veretennikov, 2016/01/29
- [elpa] master 03789fa 35/40: Updated README, Alexey Veretennikov, 2016/01/29
- [elpa] master d08fdac 36/40: Updated README and rearranged functions., Alexey Veretennikov, 2016/01/29
- [elpa] master aae3563 27/40: Preparation to move to GNU ELPA., Alexey Veretennikov, 2016/01/29
- [elpa] master fb1fbc0 39/40: Fixed compilation warnings., Alexey Veretennikov, 2016/01/29