Skip to content

Commit

Permalink
Already is helper for this.
Browse files Browse the repository at this point in the history
  • Loading branch information
rejeep committed Aug 8, 2010
1 parent 137bb6d commit 3e8e644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rinari.el
Expand Up @@ -372,7 +372,7 @@ optional prefix argument just run `rgrep'."
(grep-compute-defaults)
(if arg (call-interactively 'rgrep)
(let ((query))
(if (and transient-mark-mode mark-active)
(if (region-active-p)
(setq query (buffer-substring-no-properties (region-beginning) (region-end)))
(setq query (thing-at-point 'word)))
(funcall 'rgrep (read-from-minibuffer "search for: " query)
Expand Down

0 comments on commit 3e8e644

Please sign in to comment.