|
From: | Thorsten Bonow |
Subject: | Re: [SOLVED] |
Date: | Tue, 26 Jul 2022 15:01:20 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Uwe Brauer <oub@mat.ucm.es> writes:
[...]
At this point I give up
Uwe
Don't loose heart...(defun copy-to-register--no-properties (orig-fun &rest args) "Remove properties of region when calling `copy-to-register'." (let ((filter-buffer-substring-function (lambda (beg end &optional delete) (if delete (delete-and-extract-region beg end) (buffer-substring-no-properties beg end))))) (apply orig-fun args))) (advice-add 'copy-to-register :around #'copy-to-register--no-properties) Works for me, but the way I understand the manual, instead of advising a function, better-registers.el should just modify `filter-buffer-substring-function' for its needs.
Hope this helps.Toto
-- Sent from my GNU Emacs running on GNU/Linux
[Prev in Thread] | Current Thread | [Next in Thread] |