From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: emacs doesn't use the X clipboard Date: 14 Jan 2004 08:37:26 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <20040111002614.GM6119@luna.mooo.com> <87fzekv3xc.fsf@newsguy.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1074062226 10337 80.91.224.253 (14 Jan 2004 06:37:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 14 Jan 2004 06:37:06 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 14 07:37:03 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AgeeE-0008IC-01 for ; Wed, 14 Jan 2004 07:37:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Agedp-0004tA-Nq for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Jan 2004 01:36:37 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AgedT-0004sw-5t for help-gnu-emacs@gnu.org; Wed, 14 Jan 2004 01:36:15 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1Agecx-0004me-FU for help-gnu-emacs@gnu.org; Wed, 14 Jan 2004 01:36:14 -0500 Original-Received: from [207.232.27.5] (helo=WST0054) by monty-python.gnu.org with asmtp (Exim 4.24) id 1Agecw-0004mS-Ff for help-gnu-emacs@gnu.org; Wed, 14 Jan 2004 01:35:43 -0500 Original-To: help-gnu-emacs@gnu.org In-reply-to: (message from LEE Sau Dan on 13 Jan 2004 13:06:58 +0100) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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:16018 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:16018 > From: LEE Sau Dan > Newsgroups: gnu.emacs.help > Date: 13 Jan 2004 13:06:58 +0100 > > Ian> I reported it to RMS, and he said "use gdb on Emacs". Which > Ian> I won't, because recompiling Emacs on my laptop takes more > Ian> than an hour. > > But how would that help, if you're not a C programmer or you're not > familiar with Xlib, so that you have no idea of where to put break > points? You can get help debugging Emacs on emacs-devel list. The file etc/DEBUG, which is a part of the distribution, should get you started. The code in Emacs that deals with X selections is in xselect.c. > (BTW, it'd be fun to run gdb under Emacs, debugging another instance > of Emacs. I hope one wouldn't be confused by the two Emacses. (-fg > and -bg suddenly becomes invaluable!) I've done that many times. IMHO, there's no confusion because one Emacs is in the GUD mode, which has some special features in its display. > I'm not sure if ltrace can show the Xlib calls, though. I doubt that. And debugging with ltrace or similar tools is not a very efficient method, anyway, compared to stepping with GDB thru the source code. IMHO, ltrace is for the software to which you don't have the sources.