unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Barry Margolin <barmar@alum.mit.edu>
Subject: Re: making contents of other programs transparent to Emacs
Date: Wed, 11 Aug 2004 22:29:29 -0400	[thread overview]
Message-ID: <barmar-929D1E.22292911082004@comcast.dca.giganews.com> (raw)
In-Reply-To: mailman.813.1092235424.2011.help-gnu-emacs@gnu.org

In article <mailman.813.1092235424.2011.help-gnu-emacs@gnu.org>,
 Joe Corneli <jcorneli@math.utexas.edu> wrote:

> This seems like a hard question, and not completely Emacs-specific.
> 
> Suppose I wanted to make the contents of e.g. an rxvt or Mozilla
> window readable to an Emacs.  What would I need to do?  The text is
> available to X (and I can copy and paste it into other programs) so
> it also seems that with more work I should be able to treat the text
> in these other programs as a read-only Emacs buffer.

As far as X is concerned, these windows are just pixels -- it doesn't 
keep track of the text.  This is done by the client applications.  
Copying and pasting is done by the application itself; when you use the 
Copy operation, the application sends a message to the X server telling 
it to put the text into the cut-buffer so that other applications can 
get at it.  But there's no way for one application to force another one 
to send it the contents of its window.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***

       reply	other threads:[~2004-08-12  2:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.813.1092235424.2011.help-gnu-emacs@gnu.org>
2004-08-12  2:29 ` Barry Margolin [this message]
2004-08-12  9:59 ` making contents of other programs transparent to Emacs Bruce Ingalls
     [not found] <mailman.537.1093715759.1998.help-gnu-emacs@gnu.org>
2004-08-30  6:44 ` Mathias Dahl
2004-08-28 17:50 Joe Corneli
  -- strict thread matches above, loose matches on Subject: below --
2004-08-16 23:22 Joe Corneli
2004-08-28 14:40 ` Kai Grossjohann
     [not found] <38r1iv$3r7l6i@ironman3.mail.utexas.edu>
2004-08-16 17:03 ` Joe Corneli
     [not found] ` <mailman.1442.1092676134.2011.help-gnu-emacs@gnu.org>
2004-08-16 17:48   ` Kevin Rodgers
2004-08-11 14:39 Joe Corneli
2004-08-11 21:27 ` Milan Zamazal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=barmar-929D1E.22292911082004@comcast.dca.giganews.com \
    --to=barmar@alum.mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).