Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to paste in emacs?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
ld50
Tux's lil' helper
Tux's lil' helper


Joined: 13 Feb 2005
Posts: 135

PostPosted: Sun Feb 13, 2005 8:35 pm    Post subject: How to paste in emacs? Reply with quote

I'm running emacs in aterm (emacs -nw), and i enabled my mouse wheel with M-x xterm-mouse-mode so i can scroll up and down.

The problem is when i try to paste something using the middle button, it says "kill ring is empty" and it doesnt paste.
If i don't use xterm-mouse-fine there's no problem.
Back to top
View user's profile Send private message
rsharman
n00b
n00b


Joined: 16 Jan 2005
Posts: 5
Location: Ottawa, Ontario, Canada

PostPosted: Sun Feb 13, 2005 11:51 pm    Post subject: Re: How to paste in emacs? Reply with quote

ld50 wrote:
I'm running emacs in aterm (emacs -nw), and i enabled my mouse wheel with M-x xterm-mouse-mode so i can scroll up and down.

The problem is when i try to paste something using the middle button, it says "kill ring is empty" and it doesnt paste.
If i don't use xterm-mouse-fine there's no problem.


I just emerge'd aterm to try it and it worked fine for me.

If you get help for key (or run describe-key) on the middle button does it say
Code:
      <mouse-2> at that spot runs the command mouse-yank-at-click 


If so, let's see what the kill-ring has. The error message you gave appears to be given
when the killl-ringis empty.

Try evaluating (e.g. entering in the *scratch* buffer and pressing control-J after the')' ):
Code:
(length kill-ring)

Now cut (yank) some text and then re-evaluate (length kill-ring). Even if the kill ring was
empty before it should not be now. You should also be able to yank it with C-y.
If so, are you still getting the error with the middle button?

If you are, try setting debug-on-error to t then when you click the middle button you should see a traceback; this should give a clue as to what's going on.
(Press q in the *Backtrace* buffer to get out of it, and set debug-on-error to nil to not get the backtraces again.)

Richard
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum