Skip to content

ucs-utils causes slow shutdown on Windows #11

@jocap

Description

@jocap

It seems that ucs-utils causes C-x C-c to take around three, four seconds on Windows 7. I have yet to figure out exactly what causes it within ucs-utils, but in the mean time, seeing as how Unicode characters aren't really essential to back-button-mode, it may be a good idea to make ucs-utils an optional dependency or to disable it when the operating system is Windows. The following change (around line 417) would fix it:

-(when (featurep 'ucs-utils)
+(when (and (featurep 'ucs-utils)
+           (not (equal system-type 'windows-nt)))
-  (setq back-button-spacer-char (ucs-utils-char back-button-index-spacer-ucs-name back-button-spacer-char 'cdp))
-  (setq back-button-thumb-char  (ucs-utils-char back-button-index-thumb-ucs-name  back-button-thumb-char  'cdp)))

As it stands, installing and enabling back-button-mode causes slow shutdowns on my Windows 7 system at least, even with -Q and even if back-button-mode is disabled again. Ideally, I'd like to find the cause in ucs-utils, but I haven't been able to do so yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions