GNU bug report logs -
#35689
Customizable char-fold
Previous Next
Reported by: Juri Linkov <juri <at> linkov.net>
Date: Sat, 11 May 2019 21:32:01 UTC
Severity: wishlist
Tags: fixed, patch
Fixed in version 27.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
Message #37 received at 35689 <at> debbugs.gnu.org (full text, mbox):
>> I can't find a standard way of doing this. So instead of using eval-and-compile
>> I'll try to recalculate the value explicitly when variables are customized:
>>
>> (when (or (get 'char-fold-include-base 'customized-value)
>> (get 'char-fold-include-alist 'customized-value)
>> (get 'char-fold-exclude-alist 'customized-value))
>> (setq char-fold-table (char-fold-make-table)))
>
> Instead of looking at symbol property values, which can make for a
> confusing time when setting variables outside of customize, I think it
> would be nicer to do something like this:
>
> (eval-and-compile (defconst char-fold--include-base-default ...))
>
> (defcustom char-fold-include-base char-fold--include-base-default
> :initialize #'custom-initialize-changed
I tried different possible values of :initialize,
but not custom-initialize-changed. I'll try this now.
The problem I encountered with the previous solution it that
calling `(setq char-fold-table (char-fold-make-table))' above
while loading char-fold.el by autoload, garbled data returned
from `(unicode-property-table-internal 'decomposition)',
it just returned garbage, maybe due to a broken coding.
I was busy debugging unidata-get-decomposition to
understand where this data corruption occurs.
This bug report was last modified 5 years and 295 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.