emacs-devel
[Top][All Lists]
Advanced

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

Re: Compiling Elisp to a native code with a GCC plugin


From: David Kastrup
Subject: Re: Compiling Elisp to a native code with a GCC plugin
Date: Fri, 17 Sep 2010 16:57:10 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Lars Magne Ingebrigtsen <address@hidden> writes:

> David Kastrup <address@hidden> writes:
>
>> Fbuffer_substring also likely copies the multibyteness, not just the
>> bytes.
>
> Yes, probably, but I don't know what that means.

This:

>   if (! NILP (current_buffer->enable_multibyte_characters))
>     result = make_uninit_multibyte_string (end - start, end_byte - 
> start_byte);
>   else
>     result = make_uninit_string (end - start);


> So no matter whether it creates a "multibyte string" or not (and I
> don't know what the difference is), it still just does a memcpy from
> the buffer representation over to the string representation.

Sure.  But when you compare you can be in the unfortunate situation that
multibyteness _differs_.

In this case, the byte patterns can be the same and the texts still
different, and vice versa.

-- 
David Kastrup




reply via email to

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