emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Allow inserting non-BMP characters


From: Eli Zaretskii
Subject: Re: [PATCH] Allow inserting non-BMP characters
Date: Wed, 27 Dec 2017 05:41:23 +0200

> Date: Tue, 26 Dec 2017 21:36:42 +0000
> From: Alan Third <address@hidden>
> Cc: Philipp Stephani <address@hidden>, address@hidden,
>       address@hidden
> 
> Appleā€™s documentation says to put it in a buffer:
> 
>     If you want to iterate over the characters of a string, one of the
>     things you should not do is use the characterAtIndex: method to
>     retrieve each character separately. This method is not designed for
>     repeated access. Instead, consider fetching the characters all at once
>     using the getCharacters:range: method and iterating over the bytes
>     directly.
> 
>     
> https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/CocoaPerformance/Articles/StringDrawing.html#//apple_ref/doc/uid/TP40001445-112378

What about the possibility that SAFE_NALLOCA could signal an error and
longjmp to top level?  Does this code always run in the main thread,
and if so, can it allow such longjmp's?



reply via email to

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