From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Milan Zamazal Newsgroups: gmane.emacs.help Subject: Re: making contents of other programs transparent to Emacs Date: Wed, 11 Aug 2004 23:27:33 +0200 Organization: BRAILCOM, o.p.s. Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87u0v95pru.fsf@swan.zamazal.org> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1092292295 16435 80.91.224.253 (12 Aug 2004 06:31:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 12 Aug 2004 06:31:35 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 12 08:31:27 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Bv97X-00056E-00 for ; Thu, 12 Aug 2004 08:31:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bv9BN-0008JC-FM for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Aug 2004 02:35:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bv9BE-0008Iv-90 for help-gnu-emacs@gnu.org; Thu, 12 Aug 2004 02:35:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bv9BD-0008Ih-K0 for help-gnu-emacs@gnu.org; Thu, 12 Aug 2004 02:35:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bv9BD-0008Ie-H5 for help-gnu-emacs@gnu.org; Thu, 12 Aug 2004 02:35:15 -0400 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Bv96t-0005Wl-GV for help-gnu-emacs@gnu.org; Thu, 12 Aug 2004 02:30:48 -0400 Original-Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1Bv96r-0000Il-00 for ; Thu, 12 Aug 2004 08:30:45 +0200 Original-Received: from racek.programky.cz ([81.30.247.3]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 Aug 2004 08:30:45 +0200 Original-Received: from pdm by racek.programky.cz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 Aug 2004 08:30:45 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 29 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: racek.programky.cz X-Face: >kl&pL}(a*u\BCj7Q, \Yoq35~, 4dAu"CPGaJ[ahMli9uu#aF7dWxc3L.eaK2RWRU|', E+. -':&gJ-JAZ/N$f^4-3?G7M&Knna[A=lJ$}^!%@vuvulVl6-)x.V8RZ7fW9< User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:4R9dvg9XyqIdoteLHSriFclZNuo= X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:20091 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20091 >>>>> "JC" == Joe Corneli writes: JC> Suppose I wanted to make the contents of e.g. an rxvt or Mozilla JC> window readable to an Emacs. What would I need to do? The text JC> is available to X (and I can copy and paste it into other JC> programs) so it also seems that with more work I should be able JC> to treat the text in these other programs as a read-only Emacs JC> buffer. I'm afraid the X selection mechanism is generally not much help to you, since the way of selecting something is application specific. But you might use accessibility features of applications for this, quite easily. For instance, if the given application supports AT-SPI, you can query its contents via the AT-SPI interface. There's no support for this in Emacs directly, but there are programs that can do it and you can call them from Emacs and insert their output into an Emacs buffer. (Unfortunately, current accessibility support in Mozilla is very poor, so this won't work for Mozilla now.) Regards, Milan Zamazal -- real programmer? don't get me started. if you need to hide your pathetic excuse for a carreer behind super-macho languages like C, C++, and/or Perl instead of writing clean, maintainable, efficient code, you aren't much of a real programmer in my view. -- Erik Naggum in comp.emacs