all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Bruce Korb <bruce.korb@gmail.com>
Cc: 12750@debbugs.gnu.org
Subject: bug#12750: Highlighting text no longer works
Date: Sun, 28 Oct 2012 18:47:02 +0200	[thread overview]
Message-ID: <83objm8ry1.fsf@gnu.org> (raw)
In-Reply-To: <508D5A4D.3020604@gmail.com>

> Date: Sun, 28 Oct 2012 09:16:13 -0700
> From: Bruce Korb <bruce.korb@gmail.com>
> 
> For many years, I have selected text and then pasted it where I wanted.
> There is a new feature in emacs:  selected text is no longer in the
> pasteable buffer.  I must move my hand from the mouse to the keyboard
> to copy the text and then back to the mouse to paste it.  This is a bug.

Actually, it's a feature: it was deemed a Good Thing to behave like
the other GUI applications.

> Pending a fix in the next emacs release, how do I work around this problem?

See this entry in NEWS (what you want, if you still do, is at the
end):

  ** Selection changes.

  The default handling of clipboard and primary selections has been
  changed to conform with modern X applications.  In short, most
  commands for killing and yanking text now use the clipboard, while
  mouse commands use the primary selection.

  In the following, we provide a list of these changes, followed by a
  list of steps to get the old behavior back if you prefer that.

  *** `select-active-regions' now defaults to t.
  Merely selecting text (e.g. with drag-mouse-1) no longer puts it in
  the kill ring.  The selected text is put in the primary selection, if
  the system possesses a separate primary selection facility (e.g. X).

  **** `select-active-regions' also accepts a new value, `only'.
  This means to only set the primary selection for temporarily active
  regions (usually made by mouse-dragging or shift-selection);
  "ordinary" active regions, such as those made with C-SPC followed by
  point motion, do not alter the primary selection.

  **** `mouse-drag-copy-region' now defaults to nil.

  *** mouse-2 is now bound to `mouse-yank-primary'.
  This pastes from the primary selection, ignoring the kill-ring.
  Previously, mouse-2 was bound to `mouse-yank-at-click'.

  *** `x-select-enable-clipboard' now defaults to t on all platforms.

  *** `x-select-enable-primary' now defaults to nil.
  Thus, commands that kill text or copy it to the kill-ring (such as
  M-w, C-w, and C-k) also use the clipboard---not the primary selection.

  **** The "Copy", "Cut", and "Paste" items in the "Edit" menu are now
  exactly equivalent to M-w, C-w, and C-y respectively.

  **** Note that on MS-Windows, `x-select-enable-clipboard' was already
  non-nil by default, as Windows does not support the primary selection
  between applications.

  *** To return to the previous behavior, do the following:

  **** Change `select-active-regions' to nil.
  **** Change `mouse-drag-copy-region' to t.
  **** Change `x-select-enable-primary' to t (on X only).
  **** Change `x-select-enable-clipboard' to nil.
  **** Bind `mouse-yank-at-click' to mouse-2.





  parent reply	other threads:[~2012-10-28 16:47 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-28 16:16 bug#12750: Highlighting text no longer works Bruce Korb
2012-10-28 16:32 ` Bruce Korb
2012-10-28 16:47 ` Eli Zaretskii [this message]
2012-10-28 20:14   ` Bruce Korb
2012-10-28 20:57     ` Bruce Korb
2012-10-29  3:43       ` Eli Zaretskii
2012-10-29  8:44         ` Andreas Schwab
2012-10-29 14:07           ` Bruce Korb
2012-10-29 15:20             ` Andreas Schwab
2012-10-29  9:08       ` Chong Yidong
2012-10-29 12:02         ` Bruce Korb

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83objm8ry1.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=12750@debbugs.gnu.org \
    --cc=bruce.korb@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.