]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't ding when exiting help-for-help with C-g
authorStefan Kangas <stefankangas@gmail.com>
Sun, 16 Oct 2022 10:59:13 +0000 (12:59 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Sun, 16 Oct 2022 11:03:59 +0000 (13:03 +0200)
* lisp/help-macro.el (make-help-screen): Don't ding on "C-g".

lisp/help-macro.el

index 91c2a804000ca170c7d568d87f618030f52ffc14..687d6fbb4eb5944da7f2beb9df25dbc7a14b1127 100644 (file)
@@ -210,7 +210,8 @@ and then returns."
                            (unless (eq new-frame (selected-frame))
                              (iconify-frame new-frame))
                            (setq new-frame nil)))
-                     (ding)))))
+                     (unless (equal (key-description key) "C-g")
+                       (ding))))))
            (when config
              (set-window-configuration config))
            (when new-frame