emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: X11 resource to turn on visible-bell


From: Jan D.
Subject: Re: X11 resource to turn on visible-bell
Date: Wed, 27 Apr 2005 18:46:47 +0200



I find the bell sound very annoying, adding (setq visible-bell t) to
.emacs gets rid of it nicely.
But that does not work when running "emacs -q".
It would be nice to have an X11 resource to use visible-bell.
Xterm has a resource called "visualBell", Emacs could use the same
name.

Would something like this be a good addition to Emacs?

I don't know how visible bell is implemented, but I suspect it has an effect on redisplay, so you should not turn it on if emacs-basic-display (-D) is t.

        Jan D.


*** startup.el  23 Apr 2005 20:40:35 -0700      1.355
--- startup.el  26 Apr 2005 13:48:20 -0700      
***************
*** 727,732 ****
--- 727,738 ----
                                '("off" "false")))))
      (setq no-blinking-cursor t))

+   (when (and (not noninteractive)
+            (memq window-system '(x w32 mac))
+            (member (x-get-resource "visualBell" "VisualBell")
+                         '("on" "true")))
+     (setq visible-bell t))
+
    ;; If frame was created with a menu bar, set menu-bar-mode on.
    (unless (or noninteractive
              emacs-basic-display


_______________________________________________
Emacs-pretest-bug mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug





reply via email to

[Prev in Thread] Current Thread [Next in Thread]