[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problems with better-registers: turn-off-all-minor modes or remove a
From: |
Uwe Brauer |
Subject: |
Re: problems with better-registers: turn-off-all-minor modes or remove all text-properties |
Date: |
Sun, 24 Jul 2022 07:39:02 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
>>> "MH" == Michael Heerdegen <michael_heerdegen@web.de> writes:
> Michael Heerdegen <michael_heerdegen@web.de> writes:
>> Could you please be more specific - what's the problem? As Stefan said,
>> text properties are normally not a problem in this case.
> Ok, after reading again what you had posted in emacs-dev, I saw your
> string contained unreadable properties. Your string contained a button,
> for example.
> What I would do is to advice `set-register' to strip unreadable
> properties from any stringp value. Or just strip text properties if you
> don't want them anyway. That's better than trying to work around that
> problem.
Thanks, that did not occur to me. I tried to advice since a while since
it makes debugging difficult.
In any case, maybe because I have not used it for a while, my attempts
failed:
(defadvice set-property (before removeproperties activate)
"Remove all text properties before setting the property"
(let ((inhibit-read-only t))
(set-text-properties (point-min) (point-max) nil)))
(defadvice set-property (after removeproperties activate)
"Remove all text properties before setting the property"
(let ((inhibit-read-only t))
(set-text-properties (point-min) (point-max) nil)))
None of them worked
Any ideas?
thanks
Uwe Brauer
--
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military.
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine.
smime.p7s
Description: S/MIME cryptographic signature
- problems with better-registers: turn-off-all-minor modes or remove all text-properties, Uwe Brauer, 2022/07/23
- Re: problems with better-registers: turn-off-all-minor modes or remove all text-properties, Thorsten Bonow, 2022/07/23
- Re: problems with better-registers: turn-off-all-minor modes or remove all text-properties, Michael Heerdegen, 2022/07/23
- Re: problems with better-registers: turn-off-all-minor modes or remove all text-properties, Michael Heerdegen, 2022/07/24
- Re: problems with better-registers: turn-off-all-minor modes or remove all text-properties,
Uwe Brauer <=
- [SOLVED] (was: problems with better-registers: turn-off-all-minor modes or remove all text-properties), Uwe Brauer, 2022/07/24
- Re: [SOLVED], Michael Heerdegen, 2022/07/24
- Re: [SOLVED], Uwe Brauer, 2022/07/25
- Re: [SOLVED], Uwe Brauer, 2022/07/25
- Re: [SOLVED], Stefan Monnier, 2022/07/25
- Re: [SOLVED], Uwe Brauer, 2022/07/25
- Re: [SOLVED], Michael Heerdegen, 2022/07/25
- Re: [SOLVED], Uwe Brauer, 2022/07/26
- Re: [SOLVED], Thorsten Bonow, 2022/07/26
- Re: [SOLVED], Uwe Brauer, 2022/07/26