[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [elpa] 02/04: company-clang: handle multibyte chars between bol and
From: |
Dmitry Gutov |
Subject: |
Re: [elpa] 02/04: company-clang: handle multibyte chars between bol and point |
Date: |
Wed, 19 Mar 2014 16:08:14 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Stefan <address@hidden> writes:
> Instead of buffer-subtring composed with string-bytes, you could use
> position-bytes.
I figured written this way it looks a tiny bit nicer, and the
performance difference is negligible. Maybe I shouldn't have tried to
be inventive, though.
> You might also like to add a comment like "Hack attack:
> assume the file's encoding is the same as Emacs's internal encoding".
Hm, yes. Although it just assumes that the encoding used multiple bytes
for the same sets of chars as Emacs internals, which is more reasonable.
- Re: [elpa] 02/04: company-clang: handle multibyte chars between bol and point, Stefan, 2014/03/19
- Re: [elpa] 02/04: company-clang: handle multibyte chars between bol and point,
Dmitry Gutov <=
- Re: [elpa] 02/04: company-clang: handle multibyte chars between bol and point, Eli Zaretskii, 2014/03/19
- Re: [elpa] 02/04: company-clang: handle multibyte chars between bol and point, Dmitry Gutov, 2014/03/19
- Re: [elpa] 02/04: company-clang: handle multibyte chars between bol and point, Eli Zaretskii, 2014/03/19
- Re: [elpa] 02/04: company-clang: handle multibyte chars between bol and point, Dmitry Gutov, 2014/03/19
- Re: [elpa] 02/04: company-clang: handle multibyte chars between bol and point, Dmitry Gutov, 2014/03/19
- Re: [elpa] 02/04: company-clang: handle multibyte chars between bol and point, Eli Zaretskii, 2014/03/19
- Re: [elpa] 02/04: company-clang: handle multibyte chars between bol and point, Dmitry Gutov, 2014/03/20
- Re: [elpa] 02/04: company-clang: handle multibyte chars between bol and point, Eli Zaretskii, 2014/03/20
- Re: [elpa] 02/04: company-clang: handle multibyte chars between bol and point, Richard Stallman, 2014/03/20
- Re: [elpa] 02/04: company-clang: handle multibyte chars between bol and point, Dmitry Gutov, 2014/03/20