Steve Youngs <steve(a)sxemacs.org> writes:
The comment above `savehist-coding-system' says it prefers
utf-8,
this patch lets savehist use utf-8 even in XEmacs 21.4 providing
utf-8 is present in the coding system list.
I know you can check for UTF-8 at runtime. The code avoids using it
for a different reason: if UTF-8 is available through an external
package, it can be present in one XEmacs invocation, but not in the
next one. For example, someone can load the mule-ucs package by
mistake or by loading a third package that depends on mule-ucs. It
would be a mistake for savehist to conclude that it is safe to use
UTF-8 because it probably won't work when XEmacs is next restarted.
Note that a user can always override savehist's choice of coding
system by customizing `savehist-coding-system'. That is what a person
who uses XEmacs 21.4 and wants to use UTF-8 should do.