[Top][All Lists]

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

bug#30786: Save text properties in desktop

From: Noam Postavsky
Subject: bug#30786: Save text properties in desktop
Date: Sat, 07 Apr 2018 09:08:08 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux)

Juri Linkov <address@hidden> writes:

>>>>> +     ;; 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?

reply via email to

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