From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 30 14:42:04 2012 Received: (at submit) by debbugs.gnu.org; 30 Mar 2012 18:42:04 +0000 Received: from localhost ([127.0.0.1]:47339 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SDgls-0001w6-SP for submit@debbugs.gnu.org; Fri, 30 Mar 2012 14:42:04 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58001) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SDglp-0001vw-7Z for submit@debbugs.gnu.org; Fri, 30 Mar 2012 14:41:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SDgHF-0004zN-BJ for submit@debbugs.gnu.org; Fri, 30 Mar 2012 14:10:23 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:54782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDgHF-0004zG-5Y for submit@debbugs.gnu.org; Fri, 30 Mar 2012 14:10:21 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55950) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDgHB-0000K9-Jb for bug-gnu-emacs@gnu.org; Fri, 30 Mar 2012 14:10:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SDgH8-0004xX-MJ for bug-gnu-emacs@gnu.org; Fri, 30 Mar 2012 14:10:17 -0400 Received: from mail-qc0-f169.google.com ([209.85.216.169]:53008) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDgH8-0004wb-Dt for bug-gnu-emacs@gnu.org; Fri, 30 Mar 2012 14:10:14 -0400 Received: by qcsd16 with SMTP id d16so612579qcs.0 for ; Fri, 30 Mar 2012 11:10:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:date:message-id :cc:to:mime-version:x-mailer; bh=srEEmsVOWR23EXAJP3lK2S9vzaqFvvkFL97YbHaSVUA=; b=opMlMk0HCn2fwVSHYzubnt5BmNuSxUILYAByDV6AAq5AK1MacktygI5kjcDH986INE 30FflVQjz7FM8qWWdSOi08DNCL/QG6FZyyu6kkS/skM8yCjd8a5Wo8YrUapLbJZhCV9w cP7JPiOhZu9RxF2Fube1d38e7wCzH9Uw7YTQ25CUnP5yggDkjQ0WrTSU1Fttu+zCca3D 147m8/G7oQzE7upoXSXOOjHQwptUO7IpooMlduFOGuO+Tk3w2oeflyPDgKh6/HC/onwC yzCp2RbvQNsy6/AfxF7Jd3rQikaWLoW6Qm1psiZ54iQCLjBujxlDdeVaVbhRoEdD85c6 Akgw== Received: by 10.224.185.147 with SMTP id co19mr6714546qab.80.1333131012062; Fri, 30 Mar 2012 11:10:12 -0700 (PDT) Received: from [10.1.10.35] (c-98-229-178-108.hsd1.ma.comcast.net. [98.229.178.108]) by mx.google.com with ESMTPS id er10sm4056389qab.16.2012.03.30.11.10.08 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 30 Mar 2012 11:10:09 -0700 (PDT) From: Charles Magid Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: 24.0.94; Mac's Text to Speech stopped working in emacs buffers when I moved from Snow Leopard to Lion Date: Fri, 30 Mar 2012 14:09:45 -0400 Message-Id: To: bug-gnu-emacs@gnu.org Mime-Version: 1.0 (Apple Message framework v1257) X-Mailer: Apple Mail (2.1257) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit Cc: Charles M Magid X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) From: Charles Magid To: bug-gnu-emacs@gnu.org Subject: 24.0.94; Mac's Text to Speech stopped working in emacs buffers = when I moved from Snow Leopard to Lion --text follows this line-- This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgement at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': 1. On Mac OS X Lion go into system preferences. 2. Click on speach 3. Click on text to speech 4. Check Speak selected text when key is pressed 5. click on change key button and select the button you want to use. I use 6. Got to emacs and Highlight some text in a buffer 7. press the speech key combo for me 8. The name of the buffer is spoken not the highlighted text. This worked properly in Snow Leapard. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /Applications/Emacs.app/Contents/Resources/etc/DEBUG. In GNU Emacs 24.0.94.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2012-02-27 on bob.porkrind.org Windowing system distributor `Apple', version 10.3.1138 Configured using: `configure '--host=3Dx86_64-apple-darwin' '--build=3Di686-apple-darwin' '--with-ns' 'build_alias=3Di686-apple-darwin' 'host_alias=3Dx86_64-apple-darwin' 'CC=3Dgcc = -mmacosx-version-min=3D10.5'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: Apropos Minor modes in effect: shell-dirtrack-mode: t yas/global-mode: t yas/minor-mode: t save-visited-files-mode: t wrap-region-global-mode: t wrap-region-mode: t show-paren-mode: t textmate-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: u C-a C-d C-d C-x C-s C-x b * s h p w d =20 b u =20 C-x b n e w =20 A d d SPC a SPC p a g e C-: C-: C-e SPC w h i c h SPC=20 m a y SPC n o t SPC b e SPC a SPC f e =20 r e f i n e r y SPC p a g e C-x C-s C-x b =20 C-x b C-g C-x 1 C-x 2 C-x o C-x b =20 l o o g k SPC a t SPC m o s=20 t SPC f u n d a m e n t a l SPC s c r e e n SPC c a=20 s t s SPC o n SPC r o u t e s SPC a n d SPC p a g e=20 s SPC a n d SPC c o n t r o l l e r s C-x C-s =20 =20 =20 =20 C-s l i n e C-v C-n C-n C-n C-n C-n C-n C-n C-n C-n=20 C-n C-n C-n C-n C-e C-x C-f c o r o u =20 < C-n C-n C-SPC C-n C-n C-n C-n C-n =20 w C-u C-SPC C-SPC C-n C-n C-n C-n C-n C-x C-f r o u=20 C-x C-f C-a C-k C-g C-x C-f r o u =20 C-x C-f C-a C-k C-g C-h a b u g C-x o C-s=20 r e p C-s C-s C-s C-a C-n C-n C-n C-u C-v C-u C-v C-n=20 C-n C-n C-p C-p C-p C-SPC C-; C-; C-; w =20 x C-y Recent messages: Wrote /Users/cmmagid/GTD/newgtd.org Saving file /Users/cmmagid/.emacs.d/emacs-visited-files... Wrote /Users/cmmagid/.emacs.d/emacs-visited-files Mark saved where search started Mark set [3 times] Quit [2 times] Type C-x 4 C-o RET to restore the other window. =20 Mark saved where search started Mark set Load-path shadows: /Users/cmmagid/.emacs.d/elpa/inflections-1.0/inflections hides = /Users/cmmagid/.emacs.d/el-get/rails-el/inflections ~/.emacs.d/vendor/textmate hides ~/.emacs.d/vendor/textmate.el/textmate /Users/cmmagid/.emacs.d/elpa/ruby-mode-1.1/ruby-mode hides = /Applications/Emacs.app/Contents/Resources/lisp/progmodes/ruby-mode Features: (shadow sort gnus-util mail-extr emacsbug message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils linum find-dired novice rect image-mode css-mode skeleton rainbow-mode mule-util apropos newcomment dabbrev dired-aux multi-isearch tabify org-wl org-w3m org-vm org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs org-html format-spec org-exp ob-exp org-exp-blocks org-agenda org-info org-gnus org-docview org-bibtex bibtex org-bbdb pcmpl-unix shell server rename-sgml-tag mark-more-like-this inline-string-rectangle mark-multiple dirtree dired-x windata tree-mode tree-widget iy-go-to-char yas/ruby rhtml-mode rhtml-navigation rhtml-sgml-hacks rhtml-ruby-hook sgml-mode rhtml-erb rhtml-fonts yasnippet dropdown-list derived assoc vc-git rinari jump inflections findr ruby-compilation which-func inf-ruby save-visited-files cus-edit cus-start cus-load wrap-region Save-visited-files-autoloads iy-go-to-char-autoloads rainbow-mode-autoloads rinari-autoloads jump-autoloads inflections-autoloads findr-autoloads ruby-compilation-autoloads inf-ruby-autoloads ruby-mode-autoloads yaml-mode-autoloads remember org-remember org-datetree org byte-opt warnings advice advice-preload ob-emacs-lisp ob-tangle ob-ref ob-lob ob-table org-footnote org-src ob-comint ob-keys ob ob-eval org-pcomplete pcomplete org-list org-faces org-compat org-entities org-macs noutline outline cal-menu calendar cal-loaddefs grep compile paren color-theme-railscasts .loaddefs yari thingatpt sudo-save vline coffee-mode comint ring rvm rspec-mode ansi-color edmacro kmacro ruby-mode color-theme wid-edit el-get help-mode easymenu view autoload help-fns bytecomp byte-compile cconv macroexp package tabulated-list dired regexp-opt ido peepopen textmate easy-mmode cl imenu time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 30 20:54:43 2012 Received: (at 11134) by debbugs.gnu.org; 31 Mar 2012 00:54:43 +0000 Received: from localhost ([127.0.0.1]:59880 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SDmaY-0001i3-UT for submit@debbugs.gnu.org; Fri, 30 Mar 2012 20:54:43 -0400 Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:53509) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SDmaV-0001hi-Jk for 11134@debbugs.gnu.org; Fri, 30 Mar 2012 20:54:42 -0400 Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 07A6DC055D; Sat, 31 Mar 2012 09:54:34 +0900 (JST) Date: Sat, 31 Mar 2012 09:54:33 +0900 Message-ID: From: YAMAMOTO Mitsuharu To: Charles Magid Subject: Re: bug#11134: 24.0.94; Mac's Text to Speech stopped working in emacs buffers when I moved from Snow Leopard to Lion In-Reply-To: References: User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) Organization: Faculty of Science, Chiba University MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11134 Cc: 11134@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) >>>>> On Fri, 30 Mar 2012 14:09:45 -0400, Charles Magid said: > 1. On Mac OS X Lion go into system preferences. > 2. Click on speach > 3. Click on text to speech > 4. Check Speak selected text when key is pressed > 5. click on change key button and select the button you want to use. I > use > 6. Got to emacs and Highlight some text in a buffer > 7. press the speech key combo for me > 8. The name of the buffer is spoken not the highlighted text. > This worked properly in Snow Leapard. Lion's "text to speech" seems to use accessibility that the NS port doesn't support yet, and that would explain why the name of the buffer is spoken. If you try the Mac port (*) that has experimental accessibility support, the selected text will be spoken (and buffer text if no selection). *: http://lists.gnu.org/archive/html/emacs-devel/2012-03/msg00030.html YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 31 01:46:01 2012 Received: (at 11134) by debbugs.gnu.org; 31 Mar 2012 05:46:01 +0000 Received: from localhost ([127.0.0.1]:60014 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SDr8S-0000Nv-V1 for submit@debbugs.gnu.org; Sat, 31 Mar 2012 01:46:01 -0400 Received: from mtaout23.012.net.il ([80.179.55.175]:33553) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SDr8P-0000Nl-1g for 11134@debbugs.gnu.org; Sat, 31 Mar 2012 01:45:58 -0400 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0M1Q00400IBL9E00@a-mtaout23.012.net.il> for 11134@debbugs.gnu.org; Sat, 31 Mar 2012 08:44:43 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.228.100.223]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M1Q004ETIMI8070@a-mtaout23.012.net.il>; Sat, 31 Mar 2012 08:44:43 +0300 (IDT) Date: Sat, 31 Mar 2012 08:44:45 +0300 From: Eli Zaretskii Subject: Re: bug#11134: 24.0.94; Mac's Text to Speech stopped working in emacs buffers when I moved from Snow Leopard to Lion In-reply-to: X-012-Sender: halo1@inter.net.il To: YAMAMOTO Mitsuharu Message-id: <83pqbtz5ma.fsf@gnu.org> References: X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: 11134 Cc: cmmagid@gmail.com, 11134@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.2 (-) > Date: Sat, 31 Mar 2012 09:54:33 +0900 > From: YAMAMOTO Mitsuharu > Cc: 11134@debbugs.gnu.org > > >>>>> On Fri, 30 Mar 2012 14:09:45 -0400, Charles Magid said: > > > 1. On Mac OS X Lion go into system preferences. > > 2. Click on speach > > 3. Click on text to speech > > 4. Check Speak selected text when key is pressed > > 5. click on change key button and select the button you want to use. I > > use > > 6. Got to emacs and Highlight some text in a buffer > > 7. press the speech key combo for me > > 8. The name of the buffer is spoken not the highlighted text. > > > This worked properly in Snow Leapard. > > Lion's "text to speech" seems to use accessibility that the NS port > doesn't support yet, and that would explain why the name of the buffer > is spoken. How about adding this to etc/PROBLEMS? From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 31 10:35:05 2012 Received: (at 11134) by debbugs.gnu.org; 31 Mar 2012 14:35:05 +0000 Received: from localhost ([127.0.0.1]:32901 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SDzOT-0005SK-Al for submit@debbugs.gnu.org; Sat, 31 Mar 2012 10:35:05 -0400 Received: from mailout.melmac.se ([62.20.26.67]:44583) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SDzOR-0005S0-Fn for 11134@debbugs.gnu.org; Sat, 31 Mar 2012 10:35:04 -0400 Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id 83B13920C for <11134@debbugs.gnu.org>; Sat, 31 Mar 2012 16:34:56 +0200 (CEST) Received: (qmail 15320 invoked by uid 89); 31 Mar 2012 14:31:52 -0000 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; 31 Mar 2012 14:31:52 -0000 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id D9EC87FA06C; Sat, 31 Mar 2012 16:34:55 +0200 (CEST) Subject: Re: bug#11134: 24.0.94; Mac's Text to Speech stopped working in emacs buffers when I moved from Snow Leopard to Lion Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset=us-ascii From: =?iso-8859-1?Q?Jan_Dj=E4rv?= In-Reply-To: Date: Sat, 31 Mar 2012 16:34:56 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <8DA592B4-297B-4713-95D4-B53C9269EA6A@swipnet.se> References: To: YAMAMOTO Mitsuharu X-Mailer: Apple Mail (2.1257) X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: 11134 Cc: Charles Magid , 11134@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.2 (-) 31 mar 2012 kl. 02:54 skrev YAMAMOTO Mitsuharu: >>>>>> On Fri, 30 Mar 2012 14:09:45 -0400, Charles Magid = said: >=20 >> 1. On Mac OS X Lion go into system preferences. >> 2. Click on speach >> 3. Click on text to speech >> 4. Check Speak selected text when key is pressed >> 5. click on change key button and select the button you want to use. = I >> use >> 6. Got to emacs and Highlight some text in a buffer >> 7. press the speech key combo for me >> 8. The name of the buffer is spoken not the highlighted text. >=20 >> This worked properly in Snow Leapard. >=20 > Lion's "text to speech" seems to use accessibility that the NS port > doesn't support yet, and that would explain why the name of the buffer > is spoken. If you try the Mac port (*) that has experimental > accessibility support, the selected text will be spoken (and buffer > text if no selection). >=20 > =0D 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. As we are in feature freeze, a proper checkin will have to wait. Jan D. =3D=3D=3D modified file 'src/nsterm.m' --- src/nsterm.m 2012-02-04 15:10:54 +0000 +++ src/nsterm.m 2012-03-31 14:25:59 +0000 @@ -6034,6 +6034,46 @@ =20 @implementation EmacsWindow =20 +- (id)accessibilityAttributeValue:(NSString *)attribute +{ + Lisp_Object str =3D Qnil; + + if ([attribute isEqualToString:NSAccessibilityRoleAttribute]) + return NSAccessibilityTextFieldRole; + + if ([attribute isEqualToString:NSAccessibilitySelectedTextAttribute] = && + ! NILP (BVAR (current_buffer, mark_active))) + { + str =3D ns_get_local_selection (QPRIMARY, QUTF8_STRING); + } + 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 + =20 + if (! NILP (str))=20 + { + if (CONSP (str) && SYMBOLP (XCAR (str))) + { + str =3D XCDR (str); + if (CONSP (str) && NILP (XCDR (str))) + str =3D XCAR (str); + } + if (STRINGP (str)) + { + char *utfStr =3D SSDATA (str); + NSString *nsStr =3D [NSString stringWithUTF8String: utfStr]; + return nsStr; + } + } + =20 + return [super accessibilityAttributeValue:attribute]; +} + /* If we have multiple monitors, one above the other, we don't want to restrict the height to just one monitor. So we override this. */ - (NSRect)constrainFrameRect:(NSRect)frameRect toScreen:(NSScreen = *)screen From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 31 23:09:18 2012 Received: (at 11134) by debbugs.gnu.org; 1 Apr 2012 03:09:18 +0000 Received: from localhost ([127.0.0.1]:33460 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SEBAM-0007L8-7c for submit@debbugs.gnu.org; Sat, 31 Mar 2012 23:09:18 -0400 Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:53028) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SEBAI-0007Kv-P8 for 11134@debbugs.gnu.org; Sat, 31 Mar 2012 23:09:17 -0400 Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id E5910C0561; Sun, 1 Apr 2012 12:09:03 +0900 (JST) Date: Sun, 01 Apr 2012 12:09:03 +0900 Message-ID: From: YAMAMOTO Mitsuharu To: Jan =?ISO-8859-1?Q?Dj=E4rv?= Subject: Re: bug#11134: 24.0.94; Mac's Text to Speech stopped working in emacs buffers when I moved from Snow Leopard to Lion In-Reply-To: <8DA592B4-297B-4713-95D4-B53C9269EA6A@swipnet.se> References: <8DA592B4-297B-4713-95D4-B53C9269EA6A@swipnet.se> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) Organization: Faculty of Science, Chiba University MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11134 Cc: Charles Magid , 11134@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) >>>>> On Sat, 31 Mar 2012 16:34:56 +0200, Jan Dj=E4rv = 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. =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 (); > + } 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 From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 01 05:11:03 2012 Received: (at 11134) by debbugs.gnu.org; 1 Apr 2012 09:11:03 +0000 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 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 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) Received: (qmail 23212 invoked by uid 89); 1 Apr 2012 09:07:43 -0000 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 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) Subject: Re: bug#11134: 24.0.94; Mac's Text to Speech stopped working in emacs buffers when I moved from Snow Leopard to Lion Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset=iso-8859-1 From: =?iso-8859-1?Q?Jan_Dj=E4rv?= In-Reply-To: Date: Sun, 1 Apr 2012 11:10:48 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <9B5B2C42-45BF-4112-BC42-AE347719C6C9@swipnet.se> References: <8DA592B4-297B-4713-95D4-B53C9269EA6A@swipnet.se> To: YAMAMOTO Mitsuharu X-Mailer: Apple Mail (2.1257) X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: 11134 Cc: Charles Magid , 11134@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.2 (-) 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. From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 01 09:26:19 2012 Received: (at 11134) by debbugs.gnu.org; 1 Apr 2012 13:26:19 +0000 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 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" 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 Received: by pastel.home (Postfix, from userid 20848) id 0104159445; Sun, 1 Apr 2012 09:26:03 -0400 (EDT) From: Stefan Monnier To: YAMAMOTO Mitsuharu Subject: Re: bug#11134: 24.0.94; Mac's Text to Speech stopped working in emacs buffers when I moved from Snow Leopard to Lion Message-ID: References: <8DA592B4-297B-4713-95D4-B53C9269EA6A@swipnet.se> Date: Sun, 01 Apr 2012 09:26:03 -0400 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) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11134 Cc: Charles Magid , 11134@debbugs.gnu.org, Jan =?iso-8859-1?Q?Dj=E4rv?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) >> 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 From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 01 18:51:08 2012 Received: (at 11134) by debbugs.gnu.org; 1 Apr 2012 22:51:08 +0000 Received: from localhost ([127.0.0.1]:35186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SETc3-0003hO-Qw for submit@debbugs.gnu.org; Sun, 01 Apr 2012 18:51:08 -0400 Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:52587) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SETc0-0003gw-2C for 11134@debbugs.gnu.org; Sun, 01 Apr 2012 18:51:06 -0400 Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id C2499C0561; Mon, 2 Apr 2012 07:50:47 +0900 (JST) Date: Mon, 02 Apr 2012 07:50:47 +0900 Message-ID: From: YAMAMOTO Mitsuharu To: Jan =?ISO-8859-1?Q?Dj=E4rv?= Subject: Re: bug#11134: 24.0.94; Mac's Text to Speech stopped working in emacs buffers when I moved from Snow Leopard to Lion In-Reply-To: <9B5B2C42-45BF-4112-BC42-AE347719C6C9@swipnet.se> References: <8DA592B4-297B-4713-95D4-B53C9269EA6A@swipnet.se> <9B5B2C42-45BF-4112-BC42-AE347719C6C9@swipnet.se> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) Organization: Faculty of Science, Chiba University MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11134 Cc: Charles Magid , 11134@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) >>>>> On Sun, 1 Apr 2012 11:10:48 +0200, Jan Dj=E4rv s= aid: >> 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. > Can you show where move_gap runs Lisp code? What I was concerned was not about running Lisp code. If read_socket_hook is called while the Lisp interpreter is operating on some buffer contents through a pointer, then you shouldn't move the gap in the middle of such an operation. At least without SYNC_INPUT, this actually happens. > Updating the properties might run hooks, so we probably don't want > to use Fbuffer_string for that reason. And another reason would be what you are interested in is not always the same as `current_buffer', but probably `XBUFFER (XWINDOW (f->selected_window)->buffer)'. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 21 07:29:35 2012 Received: (at 11134-done) by debbugs.gnu.org; 21 Jul 2012 11:29:35 +0000 Received: from localhost ([127.0.0.1]:54158 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SsXsM-0002rD-N3 for submit@debbugs.gnu.org; Sat, 21 Jul 2012 07:29:34 -0400 Received: from mailout.melmac.se ([62.20.26.67]:33295) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SsXsJ-0002r4-QE for 11134-done@debbugs.gnu.org; Sat, 21 Jul 2012 07:29:32 -0400 Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id 7A2D29558 for <11134-done@debbugs.gnu.org>; Sat, 21 Jul 2012 13:23:06 +0200 (CEST) Received: (qmail 29072 invoked by uid 89); 21 Jul 2012 11:22:59 -0000 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; 21 Jul 2012 11:22:59 -0000 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id C3ECB7FA06C; Sat, 21 Jul 2012 13:23:05 +0200 (CEST) Subject: Re: bug#11134: 24.0.94; Mac's Text to Speech stopped working in emacs buffers when I moved from Snow Leopard to Lion Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=us-ascii From: =?iso-8859-1?Q?Jan_Dj=E4rv?= In-Reply-To: Date: Sat, 21 Jul 2012 13:23:05 +0200 Content-Transfer-Encoding: 7bit Message-Id: <7350A587-ACAD-487E-9E9B-10222D2B9ADC@swipnet.se> References: To: Charles Magid X-Mailer: Apple Mail (2.1278) X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: 11134-done Cc: 11134-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.2 (-) Hello. Patch slightly reworked and checked in. Jan D. From unknown Mon Jun 23 07:50:49 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 19 Aug 2012 11:24:02 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator