minad / corfu

:desert_island: corfu.el - COmpletion in Region FUnction
GNU General Public License v3.0
1.15k stars 43 forks source link

Corfu Beep on first popup #284

Closed aquilacf closed 1 year ago

aquilacf commented 1 year ago

Hi there, This is not really an issue but maybe someone could help me with this. Corfu beeps on the first time the dropdown shows, always. Sometimes it beeps multiple times quickly. After the fist time the list is rendered, it never beeps again. Anyone have experienced similar issue and managed to silence it?

ChatGPT suggested me to (setq corfu-beep-p nil) which is ridiculous/funny.

Here's part of my config:

(custom-set-variables '(visible-bell nil)
              '(ring-bell-function 'ignore))

(use-package corfu
  :straight (corfu :files (:defaults "extensions/*")
                   :includes (corfu-history))
  :custom
  (corfu-cycle t)
  (corfu-auto t)
  (corfu-auto-prefix 2)
  (corfu-auto-delay 0.0)
  (corfu-quit-at-boundary 'separator)
  (corfu-preview-current 'insert)
  (corfu-preselect-first nil)
  (corfu-on-exact-match nil)
  (corfu-min-width 80)
  (corfu-count 14)
  (corfu-scroll-margin 4)
  (corfu-popupinfo-delay t)
  :init
  (global-corfu-mode)
  (corfu-history-mode)
  (corfu-popupinfo-mode)
  (add-to-list 'savehist-additional-variables 'corfu-history))

I am tested emacs-plus@28 and 29 and 30 (built from source) on mac.

Simply (use-package corfu) with nothing else also beeps on C-M-i. One user on Reddit suspects this has to do with creating a new child frame. Apparently this is a mac only problem. There are no relevant *Messages* about this.

Original question on Reddit: https://www.reddit.com/r/emacs/comments/102koyq/corfu_beep_on_first_popup/

EDIT: I have used default completion-at-point and company and no beeps. Corfu-terminal also won't beep.

minad commented 1 year ago

That's a funny feature. I haven't heard this before. My recommendation is to disable beeping globally in Emacs. Then I suspect that your beep will also go away. If that's not the case you may ask the maintainer of the Mac port about this. Since I don't use Mac and cannot be of more help.