[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master f95c8d6 28/40: Preparation to move to GNU ELPA.
From: |
Alexey Veretennikov |
Subject: |
[elpa] master f95c8d6 28/40: Preparation to move to GNU ELPA. |
Date: |
Fri, 29 Jan 2016 23:29:46 +0000 |
branch: master
commit f95c8d6acbd3ebdfb127679115cbc59d979d5437
Author: Alexey Veretennikov <address@hidden>
Commit: Alexey Veretennikov <address@hidden>
Preparation to move to GNU ELPA.
In order to move to GNU ELPA it is necessary to remove the code
from contributors who were not able/willing to sign FSF papers.
Revert "Added possibility of desactivating regex highlighting."
This reverts commit 440c96ebd3ae0b8e51a82da6835240489d62a35b.
---
loccur.el | 35 +++++++++++------------------------
1 files changed, 11 insertions(+), 24 deletions(-)
diff --git a/loccur.el b/loccur.el
index 93e3d51..c9c3d1d 100644
--- a/loccur.el
+++ b/loccur.el
@@ -52,7 +52,6 @@
;; + Default value is taken from prompt instead of an edit area
;; (thanks to Nathaniel Flath)
;;
-;;
;; 2009-10-05 (1.1.0)
;; + Added highlighting of the matched strings
;; + Now inserts selected region to the prompt
@@ -67,19 +66,9 @@
(defconst loccur-overlay-property-name 'loccur-custom-buffer-grep
"Property name of the overlay for all visible text")
-(defvar loccur-highlight-matching-regexp t
- "Determines if the part of the line matching the regex is highlighted.
-If set to a non-nil value, highlight. Use `loccur-toggle-highlight' to
-modify its value interactively.")
-
(defcustom loccur-jump-beginning-of-line nil
"Set cursor to the beginning of the line when the loccur function is
called.")
-(defun loccur-toggle-highlight()
- "Toggles the highlighting of the part of the line matching the
-regex given in the loccur buffer."
- (interactive)
- (setq loccur-highlight-matching-regexp (not
loccur-highlight-matching-regexp)))
;; FIXME wtf?
(or (assq 'loccur-mode minor-mode-alist)
@@ -103,7 +92,7 @@ regex given in the loccur buffer."
(make-variable-buffer-local 'loccur-overlay-list)
(defun loccur-mode (regex)
- (setq loccur-mode
+ (setq loccur-mode
(if (or loccur-mode
(null regex)
(zerop (length regex)))
@@ -180,18 +169,16 @@ REGEX is an argument to `loccur'."
(defun loccur-create-highlighted-overlays(buffer-matches)
"Create the list of overlays for BUFFER-MATCHES."
(let ((overlays
- (map 'list #'(lambda (match)
- (make-overlay
- (nth 1 match)
- (nth 2 match)
- (current-buffer) t nil))
- buffer-matches)))
- ;; !ME! To remove highlighting of the matching regexp
- (if loccur-highlight-matching-regexp
- (mapcar (lambda (ovl)
- (overlay-put ovl loccur-overlay-property-name t)
- (overlay-put ovl 'face 'isearch))
- overlays))))
+ (mapcar (lambda (match)
+ (make-overlay
+ (nth 1 match)
+ (nth 2 match)
+ (current-buffer) t nil))
+ buffer-matches)))
+ (mapcar (lambda (ovl)
+ (overlay-put ovl loccur-overlay-property-name t)
+ (overlay-put ovl 'face 'isearch))
+ overlays)))
(defun loccur-create-invisible-overlays (ovl-bounds)
- [elpa] master d279b6a 16/40: Added internal link to the "quick navigation" in the README file., (continued)
- [elpa] master d279b6a 16/40: Added internal link to the "quick navigation" in the README file., Alexey Veretennikov, 2016/01/29
- [elpa] master b1b1d91 18/40: Updated version, Alexey Veretennikov, 2016/01/29
- [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 <=
- [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, 2016/01/29
- [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