From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs 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, 1 Apr 2012 11:10:48 +0200 Message-ID: <9B5B2C42-45BF-4112-BC42-AE347719C6C9@swipnet.se> References: <8DA592B4-297B-4713-95D4-B53C9269EA6A@swipnet.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1333271523 4998 80.91.229.3 (1 Apr 2012 09:12:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 1 Apr 2012 09:12:03 +0000 (UTC) Cc: Charles Magid , 11134@debbugs.gnu.org To: YAMAMOTO Mitsuharu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 01 11:12:01 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SEGpL-0003gD-Hg for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Apr 2012 11:11:59 +0200 Original-Received: from localhost ([::1]:58847 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEGpK-0001Dx-JR for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Apr 2012 05:11:58 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45663) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEGpH-0001Dg-HD for bug-gnu-emacs@gnu.org; Sun, 01 Apr 2012 05:11:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SEGpF-0001zh-Ow for bug-gnu-emacs@gnu.org; Sun, 01 Apr 2012 05:11:55 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37738) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEGpF-0001zd-M5 for bug-gnu-emacs@gnu.org; Sun, 01 Apr 2012 05:11:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SEGpO-0000FF-AZ for bug-gnu-emacs@gnu.org; Sun, 01 Apr 2012 05:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Apr 2012 09:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11134 X-GNU-PR-Package: emacs,ns X-GNU-PR-Keywords: patch pending Original-Received: via spool by 11134-submit@debbugs.gnu.org id=B11134.1333271463879 (code B ref 11134); Sun, 01 Apr 2012 09:12:02 +0000 Original-Received: (at 11134) by debbugs.gnu.org; 1 Apr 2012 09:11:03 +0000 Original-Received: from localhost ([127.0.0.1]:34276 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SEGoR-0000E8-6E for submit@debbugs.gnu.org; Sun, 01 Apr 2012 05:11:03 -0400 Original-Received: from mailout.melmac.se ([62.20.26.67]:45390) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SEGoP-0000Dj-D5 for 11134@debbugs.gnu.org; Sun, 01 Apr 2012 05:11:02 -0400 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id 1D6FC9C72 for <11134@debbugs.gnu.org>; Sun, 1 Apr 2012 11:10:49 +0200 (CEST) Original-Received: (qmail 23212 invoked by uid 89); 1 Apr 2012 09:07:43 -0000 Original-Received: from h-46-59-42-18.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.18) by mail01.melmac.se with ESMTPA; 1 Apr 2012 09:07:43 -0000 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 313F57FA06C; Sun, 1 Apr 2012 11:10:48 +0200 (CEST) In-Reply-To: X-Mailer: Apple Mail (2.1257) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:58428 Archived-At: Hello. 1 apr 2012 kl. 05:09 skrev YAMAMOTO Mitsuharu: >>>>>> On Sat, 31 Mar 2012 16:34:56 +0200, Jan Dj=E4rv = said: >=20 >> 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. =20 >=20 >> + else if ([attribute = isEqualToString:NSAccessibilityValueAttribute]) >> + { >> + if (! NILP (BVAR (current_buffer, mark_active))) >> + str =3D ns_get_local_selection (QPRIMARY, QUTF8_STRING); >> + if (NILP (str)) >> + str =3D Fbuffer_string (); >> + } >=20 > 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. >=20 Can you show where move_gap runs Lisp code? Updating the properties might run hooks, so we probably don't want to = use Fbuffer_string for that reason. Jan D.