Skip to content

Commit 28b3ff8

Browse files
committed
search symbol occurences
1 parent b562e2d commit 28b3ff8

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

boon-arguments.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ then ask for the string interactively instead."
250250
result))))
251251
result))))
252252

253-
(defun boon-select-word-occurences (what-fun where)
253+
(defun boon-select-symbol-occurences (what-fun where)
254254
"Return the occurences of WHAT-FUN as sub-regions of WHERE."
255255
(interactive (list (boon-spec-string-lazy "occurences of what?") (boon-spec-selector "where?")))
256256
(lambda ()
@@ -261,9 +261,9 @@ then ask for the string interactively instead."
261261
(goto-char (boon-reg-begin reg))
262262
(while (search-forward-regexp
263263
(rx-to-string
264-
`(seq word-start
264+
`(seq symbol-start
265265
(literal ,what)
266-
word-end)
266+
symbol-end)
267267
t)
268268
(boon-reg-end reg) t)
269269
(setq result (cons (boon-mk-reg (match-beginning 0)

boon-keys.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
(define-key boon-x-map "N" 'widen)
4949

5050
(define-key boon-select-map "@" 'boon-select-occurences)
51-
(define-key boon-select-map "*" 'boon-select-word-occurences)
51+
(define-key boon-select-map "*" 'boon-select-symbol-occurences)
5252
(define-key boon-select-map "#" 'boon-select-all)
5353
(define-key boon-select-map " " 'boon-select-line)
5454
(define-key boon-select-map "\"" 'boon-select-outside-quotes)

0 commit comments

Comments
 (0)