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

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

[debbugs-tracker] bug#14041: closed (XTring_bell() does not work in some


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#14041: closed (XTring_bell() does not work in some Linux distributions)
Date: Mon, 25 Mar 2013 18:04:02 +0000

Your message dated Mon, 25 Mar 2013 19:01:21 +0100
with message-id <address@hidden>
and subject line Re: bug#14041: XTring_bell() does not work in some Linux 
distributions
has caused the debbugs.gnu.org bug report #14041,
regarding XTring_bell() does not work in some Linux distributions
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
14041: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14041
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: XTring_bell() does not work in some Linux distributions Date: Sat, 23 Mar 2013 11:38:37 +0100 User-agent: KMail/1.13.5 (Linux/2.6.32-5-amd64; KDE/4.4.5; x86_64; ; )
Hi,

In GNU Emacs 23.4.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1)
Windowing system distributor `The X.Org Foundation', version 11.0.10707000

The X11 function XBell is affected by this bug (e.g. in the Debian 6 Squeeze)
but the function gdk_beep() is not,
thus I suggest to modify XTring_bell () in xterm.c in the following way:


/* Make audible bell.  */

void
XTring_bell ()
{
  struct frame *f = SELECTED_FRAME ();

  if (FRAME_X_DISPLAY (f))
    {
#if defined (HAVE_TIMEVAL) && defined (HAVE_SELECT)
      if (visible_bell)
        XTflash (f);
      else
#endif
        {
          BLOCK_INPUT;
#ifdef USE_GTK                       // P.VINCENT
          gdk_beep ();               // P.VINCENT
#else                                // P.VINCENT
          XBell (FRAME_X_DISPLAY (f), 0);
          XFlush (FRAME_X_DISPLAY (f));
#endif                               // P.VINCENT
          UNBLOCK_INPUT;
        }
    }
}

Best regards,
Patrick VINCENT



--- End Message ---
--- Begin Message --- Subject: Re: bug#14041: XTring_bell() does not work in some Linux distributions Date: Mon, 25 Mar 2013 19:01:21 +0100
Hello.

This has been fixed in the trunk in another way.

        Jan D.

23 mar 2013 kl. 11:38 skrev PV <address@hidden>:

> Hi,
> 
> In GNU Emacs 23.4.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1)
> Windowing system distributor `The X.Org Foundation', version 11.0.10707000
> 
> The X11 function XBell is affected by this bug (e.g. in the Debian 6 Squeeze)
> but the function gdk_beep() is not,
> thus I suggest to modify XTring_bell () in xterm.c in the following way:
> 
> 
> /* Make audible bell.  */
> 
> void
> XTring_bell ()
> {
>  struct frame *f = SELECTED_FRAME ();
> 
>  if (FRAME_X_DISPLAY (f))
>    {
> #if defined (HAVE_TIMEVAL) && defined (HAVE_SELECT)
>      if (visible_bell)
>       XTflash (f);
>      else
> #endif
>       {
>         BLOCK_INPUT;
> #ifdef USE_GTK                     // P.VINCENT
>         gdk_beep ();               // P.VINCENT
> #else                              // P.VINCENT
>         XBell (FRAME_X_DISPLAY (f), 0);
>         XFlush (FRAME_X_DISPLAY (f));
> #endif                             // P.VINCENT
>         UNBLOCK_INPUT;
>       }
>    }
> }
> 
> Best regards,
> Patrick VINCENT
> 
> 



--- End Message ---

reply via email to

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