[Top][All Lists]

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

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

From: Richard M. Stallman
Subject: Re: address@hidden: Kill ring leak in winemacs macros]
Date: Thu, 04 Aug 2005 08:48:45 -0400

    So, what he really wants is to not have the system clipboard consulted or
    updated during the execution of a keyboard macro, when the kill-ring
    should be "internal" data.  If that sounds like a good idea, I can whip up
    a patch.

This would be entirely harmless if, at the end of the macro,
the current kill ring contents were copied to the clipboard
if the kill ring was set during the macro.  Can you do that?

Lennart wrote:

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

The mere existence of the variable doesn't solve this problem,
but maybe the solution could make use of that variable.

    Perhaps would it be convenient to put a defadvice around on 
    execute-kbd-macro for this?

No!  Emacs code should not use defadvice.

When you're trying to make improvements in Emacs or fix problems in
Emacs, please do NOT think of defadvice as the way to do it.

reply via email to

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