branch: elpa/isl
commit 1cd408862a76b142f421a05b52bdbb3aca26cdb4
Author: Thierry Volpiatto <[email protected]>
Commit: Thierry Volpiatto <[email protected]>

    Try to fix thing-at-point for non prog-mode buffers
---
 isearch-light.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/isearch-light.el b/isearch-light.el
index 06432f0fb32..5c892b2a2d1 100644
--- a/isearch-light.el
+++ b/isearch-light.el
@@ -663,7 +663,9 @@ symbol position."
          (rest    (cdr pattern)))
     (cl-loop while (funcall isl-search-function (cdr initial) nil t)
              for bounds = (if rest
-                              (bounds-of-thing-at-point 'symbol)
+                              (bounds-of-thing-at-point
+                               (if (derived-mode-p 'prog-mode)
+                                   'symbol 'filename))
                             (cons (match-beginning 0) (match-end 0)))
              if (or (not rest)
                     (cl-loop for (pred . re) in rest

Reply via email to