jyp / boon

Ergonomic Command Mode for Emacs
GNU General Public License v3.0
323 stars 34 forks source link

boon-unhighlight no longer available since 8d39931 #112

Closed yantar92 closed 3 years ago

yantar92 commented 3 years ago

boon-unhighlight got removed in 8d39931. Is there an interactive equivalent for it in boon-hl now? I can only see boon-hl-remove, but it prompts every time I call it, which is different from earlier behavior of boon-unhighlight removing last highlight by default.

Meanwhile, I am using the following to restore old functionality:

(defun boon-unhighlight (times)
    "Run `boon-hl-remove' without prompt to remove TIMES highlights."
    (interactive "p")
    (dotimes (or times 1)
      (boon-hl-remove (car boon-hl-patterns))))

Also, boon-unhighlight still gets referenced in autoloads.