mirror of
https://github.com/magnars/multiple-cursors.el.git
synced 2025-10-13 13:03:03 +00:00
Merge pull request #192 from uk-ar/add_search_word
Enable to specify search word in mc/mark-all-in-region
This commit is contained in:
commit
66b1127489
@ -275,10 +275,10 @@ With zero ARG, skip the last one and mark next."
|
|||||||
(mc/mark-all-like-this)))
|
(mc/mark-all-like-this)))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun mc/mark-all-in-region (beg end)
|
(defun mc/mark-all-in-region (beg end &optional search)
|
||||||
"Find and mark all the parts in the region matching the given search"
|
"Find and mark all the parts in the region matching the given search"
|
||||||
(interactive "r")
|
(interactive "r")
|
||||||
(let ((search (read-from-minibuffer "Mark all in region: "))
|
(let ((search (or search (read-from-minibuffer "Mark all in region: ")))
|
||||||
(case-fold-search nil))
|
(case-fold-search nil))
|
||||||
(if (string= search "")
|
(if (string= search "")
|
||||||
(message "Mark aborted")
|
(message "Mark aborted")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user