GNU bug report logs - #19203
visible-bell not acting like a special variable?

Previous Next

Package: emacs;

Reported by: Mario Valencia <mariovalspi <at> gmail.com>

Date: Thu, 27 Nov 2014 11:51:01 UTC

Severity: minor

Tags: notabug

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 19203 in the body.
You can then email your comments to 19203 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#19203; Package emacs. (Thu, 27 Nov 2014 11:51:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mario Valencia <mariovalspi <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 27 Nov 2014 11:51:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Mario Valencia <mariovalspi <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: visible-bell not acting like a special variable?
Date: Thu, 27 Nov 2014 05:50:00 -0600
[Message part 1 (text/plain, inline)]
(setq visible-bell t) ; no bell
(let ((visible-bell nil)) ; but ring bell for this one
  (next-line)) ; when at end of buffer, C-x C-e should ring the bell. it
doesn't.

why doesn't this work?
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19203; Package emacs. (Fri, 28 Nov 2014 18:39:03 GMT) Full text and rfc822 format available.

Message #8 received at 19203 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Mario Valencia <mariovalspi <at> gmail.com>, 19203 <at> debbugs.gnu.org
Subject: Re: bug#19203: visible-bell not acting like a special variable?
Date: Fri, 28 Nov 2014 19:38:28 +0100
> (setq visible-bell t) ; no bell
> (let ((visible-bell nil)) ; but ring bell for this one
>    (next-line)) ; when at end of buffer, C-x C-e should ring the bell. it
> doesn't.
>
> why doesn't this work?

Because the bell doesn't ring within the scope of the `let'.  Try


(setq visible-bell t)

(defun set-visible-bell ()
  (setq visible-bell t))

(defun ding-ding ()
  (add-hook 'post-command-hook 'set-visible-bell)
  (setq visible-bell nil)
  (ding))

(ding-ding)


instead.

martin




Added tag(s) notabug. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 30 Nov 2014 19:58:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 19203 <at> debbugs.gnu.org and Mario Valencia <mariovalspi <at> gmail.com> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 30 Nov 2014 19:58:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 29 Dec 2014 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 177 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.