LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-02-2007, 02:04 PM   #1
xowl
Member
 
Registered: Jan 2005
Distribution: Slackware current (and others)
Posts: 188

Rep: Reputation: 30
Problem copying to emacs -nw


Hi there.

I have a problem:

When I select text with the mouse and copy it to emacs -nw by clicking the middle mouse button, the text copies disordered. Is this an emacs' issue? Thanks in advance.

Example:

I select this
Quote:
05-Seguridad servidores => cajimenezc
+ analisis de riesgos servidores
+ carpeta contrato CC
+ contratos guillermo cosas electricas y plan contingencia
+ monitoreo de accesos a centro de computo
+ politicas acceso a servers
+ registro de backups (jjcardenasj hipocrates, ejortegau los
demás)
+ politicas seguridad (www1), políticas firewall (imprimir de
fortinet)
and it copies

Quote:
s)
ticas firewall (imprimir de
fortinet) + politicas seguridad (www1), pol05-Seguridad servidores => cajimenezc
+ analisis de riesgos servidores
+ carpeta contrato CC
+ contratos guillermo cosas electricas y plan contingencia
+ monitoreo de accesos a centro de computo
+ politicas acceso a servers
+ registro de backups (jjcardenasj hipocrates, ejortegau los
dem
Camilo

Last edited by xowl; 01-02-2007 at 02:06 PM.
 
Old 01-02-2007, 06:34 PM   #2
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
that is SO WEIRD.
it did exactly the same thing here.

the burning question has to be why "emacs -nw" ?
when you can have it in a window and in text mode.
when you do emacs -nw fron a term window emacs is in a window (the terms window) anyway.

i think the reason this is happening is when you do emacs -nw you are putting emacs into lisp interactive interpreter mode.

any particular behaviour you are trying to get here ?
 
Old 01-03-2007, 07:39 AM   #3
xowl
Member
 
Registered: Jan 2005
Distribution: Slackware current (and others)
Posts: 188

Original Poster
Rep: Reputation: 30
The situation is when I am using ssh to a server, so using X is slower.


man emacs says
-nw Tells Emacs not to use its special interface to X. If you use this switch when invoking Emacs from an xterm(1) window, display is done in that window. This must be the first option specified in the command line.


Any idea ?
 
Old 01-03-2007, 11:49 PM   #4
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
i can't figure out how to fix it.
sorry
perhaps someone else will come along.

normally in x emacs adopts primary mouse selection as it's own cut buffer.
outside of x it does not.
so when you paste using primary selection into emacs -nw.
it appears you are pasting to the underlying window not emacs.
so i can't figure out any way to use emacs code to change the strange behaviour.
 
Old 01-04-2007, 12:21 PM   #5
mfeat
Member
 
Registered: Aug 2003
Location: Akron, OH
Distribution: Fedora Core 3
Posts: 185

Rep: Reputation: 30
fwiw, mine doesn't have the problem, i've got emacs version 21.3.1, so it's not necessarily an emacs problem unless it's version specific.
 
Old 01-04-2007, 10:08 PM   #6
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
Quote:
Originally Posted by mfeat
fwiw, mine doesn't have the problem, i've got emacs version 21.3.1, so it's not necessarily an emacs problem unless it's version specific.
what xterm type thingy are you using ? my emacs is 21.4.1 and mine does it too.

when primary selection is pasted with middle mouse button there is actually some farmatting type decisions/communication between the two apps so it can even be a matter of what app you use as source app too.
 
Old 01-04-2007, 10:42 PM   #7
mfeat
Member
 
Registered: Aug 2003
Location: Akron, OH
Distribution: Fedora Core 3
Posts: 185

Rep: Reputation: 30
Quote:
what xterm type thingy are you using ? my emacs is 21.4.1 and mine does it too.
good point. i was using "GNOME Terminal 2.7.3" but also tried it with xterm (xterm -v yields: X.Org 6.7.0(192)).

as for the source app, was using firefox 2.0 but also sourced from vi, gedit and xterm with same result (works fine). perhaps this is a "feature" of the 21.4 version of emacs?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Emacs tips: Cross-platform Emacs LXer Syndicated Linux News 0 08-16-2006 11:12 PM
LXer: Emacs tips: Customize your Emacs experience LXer Syndicated Linux News 0 08-10-2006 12:21 PM
emacs not responding to .emacs file in Mandriva 2005 LE. Please help LaptopLinux Mandriva 1 06-08-2005 08:36 AM
Copying text from firefox into emacs MDBlueIce Linux - Software 1 05-22-2005 03:58 PM
edb (emacs database) won't open file - emacs 20 & 21 tip184 Linux - Software 0 04-03-2004 07:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration