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

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

bug#11134: 24.0.94; Mac's Text to Speech stopped working in emacs buffer


From: YAMAMOTO Mitsuharu
Subject: bug#11134: 24.0.94; Mac's Text to Speech stopped working in emacs buffers when I moved from Snow Leopard to Lion
Date: Sun, 01 Apr 2012 12:09:03 +0900
User-agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI)

>>>>> On Sat, 31 Mar 2012 16:34:56 +0200, Jan Djärv <jan.h.d@swipnet.se> said:

> The NS port does not support accessability at all, but if it is the
> function described by YAMAMOTO Mitsuharu above you want, try the
> patch below.  

> +  else if ([attribute isEqualToString:NSAccessibilityValueAttribute])
> +    {
> +      if (! NILP (BVAR (current_buffer, mark_active)))
> +        str = ns_get_local_selection (QPRIMARY, QUTF8_STRING);
> +      if (NILP (str))
> +        str = Fbuffer_string ();
> +    }

Is it safe to call Fbuffer_string (in particular, move the gap) inside
read_socket_hook?  It is apparently unsafe without SYNC_INPUT, but I'm
not sure if it is supposed to be OK for the SYNC_INPUT case.

                                     YAMAMOTO Mitsuharu
                                mituharu@math.s.chiba-u.ac.jp





reply via email to

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