[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 3a4cb1f 05/67: Add compatibility alias for `font-lock-ensu
From: |
Oleh Krehel |
Subject: |
[elpa] master 3a4cb1f 05/67: Add compatibility alias for `font-lock-ensure' |
Date: |
Sun, 22 Mar 2015 17:33:49 +0000 |
branch: master
commit 3a4cb1f6c32445eb63d598e09e8576c13206db65
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
Add compatibility alias for `font-lock-ensure'
* swiper.el (swiper-font-lock-ensure): Add.
Fixes #1.
---
swiper.el | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/swiper.el b/swiper.el
index caf5818..8b50f78 100644
--- a/swiper.el
+++ b/swiper.el
@@ -70,6 +70,11 @@
(defvar swiper--buffer nil
"Store current buffer.")
+(defalias 'swiper-font-lock-ensure
+ (if (fboundp 'font-lock-ensure)
+ 'font-lock-ensure
+ 'font-lock-fontify-buffer))
+
(defun swiper--candidates ()
"Return a list of this buffer lines."
(let* ((line-width (1+ (floor (log (count-lines
@@ -80,7 +85,7 @@
candidates)
(save-excursion
(goto-char (point-min))
- (font-lock-ensure)
+ (swiper-font-lock-ensure)
(while (< (point) (point-max))
(push (format fspec
(incf line-number)
- [elpa] master updated (5aa7896 -> 302a16a), Oleh Krehel, 2015/03/22
- [elpa] master c990320 02/67: Update call to `font-lock-ensure', Oleh Krehel, 2015/03/22
- [elpa] master 7159d84 03/67: swiper.el (swiper--regex): Zero groups without space, Oleh Krehel, 2015/03/22
- [elpa] master 3a4cb1f 05/67: Add compatibility alias for `font-lock-ensure',
Oleh Krehel <=
- [elpa] master fed3aff 04/67: README.md: Add, Oleh Krehel, 2015/03/22
- [elpa] master 16be7e1 01/67: Initial import, Oleh Krehel, 2015/03/22
- [elpa] master ff0ee94 06/67: Add dependency on emacs 24.1, Oleh Krehel, 2015/03/22
- [elpa] master 1c0b30b 07/67: add autoload cookie for lazy loading, Oleh Krehel, 2015/03/22
- [elpa] master 1099ebf 08/67: Use cl-lib macros instead of cl.el, Oleh Krehel, 2015/03/22
- [elpa] master 7b86747 09/67: swiper.el (swiper--regex): Update signature, Oleh Krehel, 2015/03/22
- [elpa] master a267b34 10/67: familiar isearch key bindings while helm is active, Oleh Krehel, 2015/03/22
- [elpa] master a817342 14/67: ivy.el: Improve the highlighting in the minibuffer, Oleh Krehel, 2015/03/22
- [elpa] master 97ab66a 13/67: README.md: Update, Oleh Krehel, 2015/03/22
- [elpa] master eb829a9 16/67: Account for zero-length regex matches, Oleh Krehel, 2015/03/22