benma / visual-regexp.el

A regexp/replace command for Emacs with interactive visual feedback
392 stars 28 forks source link

occur with "minibuffer-inactive ... ..." #59

Open fu123456 opened 3 years ago

fu123456 commented 3 years ago

I use the package awesome-tray package https://github.com/manateelazycat/awesome-tray, but I found that I use vr/replace, and my emacs output some undesirable information as follows: DeepinScreenshot_emacs_20200930104507

So, I want to know how to prohibit this message which is often nosiy. Thanks.

benma commented 3 years ago

I have never seen anything like it. Please try asking the same at the awesome-tray issue tracker.

OldhamMade commented 3 years ago

I'm also seeing something similar:

Screen Shot 2021-01-25 at 10 32 42

(the rework-2019-hercules is the name of the current git branch)

This is on Emacs 27, specifically d12frosted/emacs-plus/emacs-plus@27 from homebrew:

Screen Shot 2021-01-25 at 10 33 27

It's the same with Emacs 28 also.

I don't use awesome-tray, so I don't think it's that. I'm also seeing that the initial search doesn't find/highlight anything:

Screen Shot 2021-01-25 at 10 35 53

This feels more like an issue with 27+ rather than any specific package interaction.

OldhamMade commented 3 years ago

Ah, interesting: there seems to be some odd interaction between this package and feebleline. If I disable that package, everything works fine.

p1llule commented 3 years ago

Indeed. both feebleline, awesome-tray, taoline and visual-regexp use extensively the echo area and so can conflict.

My workaround is to put a new hook in visual-regexp PR Then to add some custom functions to neutralize (deactivating it without reactivating the modeline) the other package while using visual-regexp :

(defun pill--vr/initialize-with-taoline () "Disabilitates `tao-line'." (when taoline-mode (setq pill/taoline t) (cancel-timer taoline/timer) (remove-hook 'focus-in-hook 'taoline-mode-line-proxy-fn))) (add-hook 'vr/initialize-hook #'pill--vr/initialize-with-taoline)

(defun pill--vr/end-with-taoline () "Reabilitates `tao-line'." (when pill/taoline (setq taoline/timer (run-with-timer 0 0.5 'taoline-mode-line-proxy-fn)) (add-hook 'focus-in-hook 'taoline-mode-line-proxy-fn))) (add-hook 'vr/end-hook #'pill--vr/end-with-taoline)