[Top][All Lists]

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

Re: Redisplay: NS port, high CPU load

From: David Reitter
Subject: Re: Redisplay: NS port, high CPU load
Date: Fri, 10 Jun 2016 09:03:23 +1000

On Jun 10, 2016, at 4:52 AM, Anders Lindgren <address@hidden> wrote:

> (defun ucs-normalize-hfs-nfd-pre-write-conversion (from to)
>   (ucs-normalize-HFS-NFD-region (point-min) (point-max))
>   nil)

Yes, that removes the high CPU load, at least for the reproducible case at hand.

> If I remember correctly, the rewrite tried to correct two problems:
> * When deleting a character like "ä" (which in the HFS file system is 
> decomposed into "a" and "¨") the full character should be deleted. Earlier, 
> when pressing backspace, "ä" was converted to an "a”.

I don’t know how to test that, as I don’t know what deletion of a character 
means in the context of a filename.

> * Completion: If a directory contains files like "åäö.txt" and "aao.txt", 
> Emacs used to say that "a" was the common start to both sequences.

I verified that your new version works correctly with respect to file name 

It looks like this particular issue (30% CPU load) may be addressed.  I don’t 
know yet whether the 100% CPU load issue is the same, as I can't reproduce it.

Do you want to check in the function above?

reply via email to

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