Questions tagged [secondary-selection]

4 questions
4
votes
1 answer

What is this permanently highlighted region?

I accidentally pressed some keys in a buffer and created the permanently highlighted region shown below. What is this region called, and how can I get rid of it?
built1n
  • 143
  • 4
1
vote
1 answer

Secondary Selection beginning end

How can I programmatically define a secondary selection with beginning and end defined?;) I try to look for this, but only find mouse usage;) Any pointers?;)
Jason Hunter
  • 519
  • 2
  • 9
1
vote
2 answers

What's the most efficient, idiomatic way to paste-and-replace in Emacs?

I often do something like this: Copy some stuff Go to where I need to paste it Paste it (C-y) Kill the rest of the line (C-k) Select what I just pasted, and copy it again Repeat steps 2-5 The whole "re-select what I just pasted" thing is not…
0
votes
2 answers

How to check if there exists a secondary selection?

Emacs has a secondary selection (not the X11 selection, rather the mouse-secondary-overlay). On my system holding Alt-LMB dragging sets it. How would I check if there this selection is set in elisp? I tried checking; (if mouse-secondary-overlay …
ideasman42
  • 8,375
  • 1
  • 28
  • 105