[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#30786: Save text properties in desktop
From: |
Juri Linkov |
Subject: |
bug#30786: Save text properties in desktop |
Date: |
Sat, 07 Apr 2018 23:46:41 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) |
>>>>>> + ;; Get rid of unreadable text properties.
>>>>>> + (if (ignore-errors (read (format "%S" value)))
>>>>>> + (cons 'may value)
>>>>>> + (let ((copy (copy-sequence value)))
>>>>>> + (set-text-properties 0 (length copy) nil copy)
>>>>>> + (cons 'may copy))))
>
>> If we can afford continuing incrementing the desktop file version in
>> ‘desktop-file-version’ doing this every time when support for reading more
>> syntaxes is added, thus preventing incompatibilities, then the patch above
>> would be the most reliable solution.
>
> You would also have to strip text properties according to the value of
> desktop-file-version, right?
This won't help for the counterexample that you demonstrated earlier with
(put-text-property 1 2 'foo (point-marker)). Whereas this patch does.
- bug#30786: Save text properties in desktop, Juri Linkov, 2018/04/02
- bug#30786: Save text properties in desktop, Noam Postavsky, 2018/04/02
- bug#30786: Save text properties in desktop, Juri Linkov, 2018/04/03
- bug#30786: Save text properties in desktop, Noam Postavsky, 2018/04/03
- bug#30786: Save text properties in desktop, Juri Linkov, 2018/04/04
- bug#30786: Save text properties in desktop, Noam Postavsky, 2018/04/07
- bug#30786: Save text properties in desktop,
Juri Linkov <=
- bug#30786: Save text properties in desktop, Noam Postavsky, 2018/04/07
- bug#30786: Save text properties in desktop, Juri Linkov, 2018/04/08
- bug#30786: Save text properties in desktop, Juri Linkov, 2018/04/19