From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Building an emacs to use the mouse in the linux console Date: Tue, 26 Jun 2012 05:52:52 +0300 Message-ID: <83hatyainv.fsf@gnu.org> References: <2012883564.325560868.1340655385571.JavaMail.root@zimbra73-e12.priv.proxad.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1340679207 18980 80.91.229.3 (26 Jun 2012 02:53:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 26 Jun 2012 02:53:27 +0000 (UTC) Cc: emacs-devel@gnu.org To: joao.moreira@free.fr Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 26 04:53:25 2012 Return-path: Envelope-to: ged-emacs-devel@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 1SjLu7-00040e-Fr for ged-emacs-devel@m.gmane.org; Tue, 26 Jun 2012 04:53:24 +0200 Original-Received: from localhost ([::1]:33603 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjLu4-0006TZ-Qd for ged-emacs-devel@m.gmane.org; Mon, 25 Jun 2012 22:53:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjLu1-0006TJ-MJ for emacs-devel@gnu.org; Mon, 25 Jun 2012 22:53:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SjLtz-00019n-U3 for emacs-devel@gnu.org; Mon, 25 Jun 2012 22:53:17 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:54258) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjLtz-00019c-MF for emacs-devel@gnu.org; Mon, 25 Jun 2012 22:53:15 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0M6700M00EFQ3500@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Tue, 26 Jun 2012 05:52:42 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.210.75]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M6700MEYENU1J20@a-mtaout22.012.net.il>; Tue, 26 Jun 2012 05:52:42 +0300 (IDT) In-reply-to: <2012883564.325560868.1340655385571.JavaMail.root@zimbra73-e12.priv.proxad.net> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.172 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:151167 Archived-At: > Date: Mon, 25 Jun 2012 22:16:25 +0200 (CEST) > From: joao.moreira@free.fr > > I'm trying build an emacs binary that will let me use the mouse when running in the Linux console. I'm running Fedora 16 (LXDE spin), I installed gpm, and I compiled Emacs 24.1 from source, but copy-paste is not working. I can use the mouse to select text, but when trying to paste I get a message saying "Symbol's function definition is void: x-get-selection-internal". This is expected: the GPM support on a TTY does not include copy/paste feature. No one wrote the code to do that. Patches are welcome. > When building emacs, it first complained that I was running X but had no X development libraries. So I configured it with the '--without-x' option, and at the end of the 'configure' run it said emacs would use '-lgpm'. So I'm puzzled by the 'x-' function, do I need X libraries to use the mouse ? No, you don't need X. It's just that, for historical reasons, many functions related to GUI features have names that start with "x-". > The emacs 23.3 that comes with Fedora is able to copy-paste in the console, but of course, I don't know how they built it. What's the right way to go about this ? Sorry, I don't know. Maybe someone else could help. Also, the value of the variable system-configuration-options might reveal something about the way Emacs was configured, and running ldd on the executable will show which shared libraries it uses. Maybe that will give a clue.