emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: address@hidden: Kill ring leak in winemacs macros]


From: Stuart D. Herring
Subject: Re: address@hidden: Kill ring leak in winemacs macros]
Date: Wed, 3 Aug 2005 13:59:29 -0700 (PDT)
User-agent: SquirrelMail/1.4.4-2

> Is not the variable `x-select-enable-clipboard' for this?

No, that enables the use of the X "clipboard selection" in addition to the
X "primary selection", and is only relevant on X (not Windows, which has a
clipboard but doesn't have "selections").  The variables
`interprogram-cut-function' and `interprogram-paste-function' can be set
to nil to suppress the synchronization, but this isn't just a
customization issue (as in "this isn't a problem, you should set X to Y")
because the issue only arises during keyboard macro execution.  If we want
to support this, presumably we want a new variable thusly:

(defcustom macro-private-kills nil
  "*Non-nil means kill and yank commands executed by a keyboard macro
don't interact with window system cut and paste facilities."
  :type 'boolean
  :group 'killing
  :version "22.1")

Then `kill-new', `kill-append', and `current-kill' would be modified to
ignore `interprogram-*-function' if `macro-private-kills' is set and a
keyboard macro is executing.  Better variable names and/or docstrings are
of course welcome.

Davis Herring

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]