leoliu pushed a commit to branch master
in repository elpa.

commit 5fbfcbf4c60f4343f0881abbeccc1a0f82c71f04
Author: Leo Liu <sdl....@gmail.com>
Date:   Tue Oct 15 17:43:43 2013 +0800

    Use filter-buffer-substring
---
 easy-kill.el |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/easy-kill.el b/easy-kill.el
index fd70a99..2cb7b3a 100644
--- a/easy-kill.el
+++ b/easy-kill.el
@@ -141,8 +141,8 @@ Otherwise, it is the value of the overlay's candidate 
property."
    (with-current-buffer (overlay-buffer easy-kill-candidate)
      (if (/= (overlay-start easy-kill-candidate)
              (overlay-end easy-kill-candidate))
-         (buffer-substring (overlay-start easy-kill-candidate)
-                           (overlay-end easy-kill-candidate))
+         (filter-buffer-substring (overlay-start easy-kill-candidate)
+                                  (overlay-end easy-kill-candidate))
        (overlay-get easy-kill-candidate 'candidate)))))
 
 (defun easy-kill-adjust-candidate (thing &optional beg end)

Reply via email to