* Building an emacs to use the mouse in the linux console [not found] <297874776.325554404.1340655282573.JavaMail.root@zimbra73-e12.priv.proxad.net> @ 2012-06-25 20:16 ` joao.moreira 2012-06-26 2:52 ` Eli Zaretskii 2012-06-26 7:23 ` Andreas Schwab 0 siblings, 2 replies; 3+ messages in thread From: joao.moreira @ 2012-06-25 20:16 UTC (permalink / raw) To: emacs-devel Hello, 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". 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 ? I certainly hope not... 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 ? How can I build and configure emacs 24.1 so that the mouse is fully functional in the Linux console wth gpm ? Am I missing some elisp package ? or is it mandatory to include teh X libraries ? Joao ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Building an emacs to use the mouse in the linux console 2012-06-25 20:16 ` Building an emacs to use the mouse in the linux console joao.moreira @ 2012-06-26 2:52 ` Eli Zaretskii 2012-06-26 7:23 ` Andreas Schwab 1 sibling, 0 replies; 3+ messages in thread From: Eli Zaretskii @ 2012-06-26 2:52 UTC (permalink / raw) To: joao.moreira; +Cc: emacs-devel > 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. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Building an emacs to use the mouse in the linux console 2012-06-25 20:16 ` Building an emacs to use the mouse in the linux console joao.moreira 2012-06-26 2:52 ` Eli Zaretskii @ 2012-06-26 7:23 ` Andreas Schwab 1 sibling, 0 replies; 3+ messages in thread From: Andreas Schwab @ 2012-06-26 7:23 UTC (permalink / raw) To: joao.moreira; +Cc: emacs-devel The problem is that mouse-yank-primary calls x-get-selection without checking whether the frame supports it. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-06-26 7:23 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <297874776.325554404.1340655282573.JavaMail.root@zimbra73-e12.priv.proxad.net> 2012-06-25 20:16 ` Building an emacs to use the mouse in the linux console joao.moreira 2012-06-26 2:52 ` Eli Zaretskii 2012-06-26 7:23 ` Andreas Schwab
Code repositories for project(s) associated with this public inbox https://git.savannah.gnu.org/cgit/emacs.git 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).