[OS X Emacs] Aquamacs 1.8 intermittent problems with command-C
david.reitter at gmail.com
Mon Jul 20 13:04:56 EDT 2009
On Jul 20, 2009, at 2:35 PM, Tom Van Vleck wrote:
> Ever since Aquamacs 1.8 came out,
> I have noticed intermittent problems with
> highlighting text and doing Command-C to copy it.
seems like this is related to a change in version 1.8.
Please try the code below in your Preferences.el / .emacs and let me
know if that fixes things for you.
Thanks for reporting this
http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
http://aquamacs.org/donate -- Could we help you? Return the favor and
support the Aquamacs Project!
(when (< aquamacs-version-id 183)
(defun clipboard-kill-ring-save (beg end)
"Copy region to kill ring, and save in the X clipboard.
Do not copy region to kill ring if that would
result in a duplicate entry."
(when (or (not transient-mark-mode) mark-active)
(let ((x-select-enable-clipboard t))
(kill-ring-save beg end)
(when (equal (car kill-ring) (cadr kill-ring))
(setq kill-ring (cdr kill-ring))
(if (fboundp 'menu-bar-update-yank-menu)
(menu-bar-update-yank-menu (car kill-ring) nil)))))))
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2193 bytes
Desc: not available
More information about the MacOSX-Emacs