emacs-devel
[Top][All Lists]
Advanced

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

Re: Yanking text properties


From: Stefan Monnier
Subject: Re: Yanking text properties
Date: Fri, 02 Nov 2001 11:25:26 -0500

> Would 
> 
>     (make-local-variable 'inhibit-field-text-motion)
>     (setq inhibit-field-text-motion t) ; Ignore the field property.
>     (make-local-variable 'inhibit-read-only)
>     (setq inhibit-read-only t)         ; Ignore the read-only property.
>     (make-local-variable 'inhibit-point-motion-hooks)
>     (setq inhibit-point-motion-hooks t); Ignore the intangible property.
> 
> be an acceptable partial[1] workaround?

I think the above approach is a bit too heavy-weight.

> We could also use 'after-change-functions' to strip the properties.

That sounds like a better approach.  Although, advising `yank'
might work just as well.


        Stefan




reply via email to

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