|
From: | Stefan |
Subject: | Re: [elpa] 02/04: company-clang: handle multibyte chars between bol and point |
Date: | Wed, 19 Mar 2014 09:15:27 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
> - (- (point) (line-beginning-position) -1)))) > + (1+ (string-bytes (buffer-substring > + (line-beginning-position) > + (point))))))) Instead of buffer-subtring composed with string-bytes, you could use position-bytes. You might also like to add a comment like "Hack attack: assume the file's encoding is the same as Emacs's internal encoding". Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |