From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier 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, 01 Apr 2012 09:26:03 -0400 Message-ID: References: <8DA592B4-297B-4713-95D4-B53C9269EA6A@swipnet.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1333286821 3193 80.91.229.3 (1 Apr 2012 13:27:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 1 Apr 2012 13:27:01 +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 15:26:59 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 1SEKo7-0000y7-Ix for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Apr 2012 15:26:59 +0200 Original-Received: from localhost ([::1]:34520 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEKo6-0001Y2-R2 for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Apr 2012 09:26:58 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEKo3-0001XM-Q7 for bug-gnu-emacs@gnu.org; Sun, 01 Apr 2012 09:26:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SEKo1-0006ed-T1 for bug-gnu-emacs@gnu.org; Sun, 01 Apr 2012 09:26:55 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37879) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEKo1-0006eZ-Pj for bug-gnu-emacs@gnu.org; Sun, 01 Apr 2012 09:26:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SEKoB-00077r-Kc for bug-gnu-emacs@gnu.org; Sun, 01 Apr 2012 09:27:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Apr 2012 13:27:03 +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.133328677927344 (code B ref 11134); Sun, 01 Apr 2012 13:27:03 +0000 Original-Received: (at 11134) by debbugs.gnu.org; 1 Apr 2012 13:26:19 +0000 Original-Received: from localhost ([127.0.0.1]:34417 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SEKnT-00076y-7p for submit@debbugs.gnu.org; Sun, 01 Apr 2012 09:26:19 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:50019) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SEKnP-00076n-UI for 11134@debbugs.gnu.org; Sun, 01 Apr 2012 09:26:17 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AicFAKU/KE9MCqRV/2dsb2JhbACBX5x7eYhwnhmGGQSbGYM4UQ X-IronPort-AV: E=Sophos;i="4.73,1,1325480400"; d="scan'208";a="171028132" Original-Received: from 76-10-164-85.dsl.teksavvy.com (HELO pastel.home) ([76.10.164.85]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 01 Apr 2012 09:26:04 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 0104159445; Sun, 1 Apr 2012 09:26:03 -0400 (EDT) In-Reply-To: (YAMAMOTO Mitsuharu's message of "Sun, 01 Apr 2012 12:09:03 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) 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:58433 Archived-At: >> 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. Indeed without SYNC_INPUT it's clearly unsafe (not just because of move_gap). And to tell you the truth, I'm not sure either what is safe with SYNC_INPUT and what isn't. This said, it shouldn't be difficult to change make_buffer_string_both such that it doesn't need to move the gap, at which point I think it would be OK. Stefan