[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Towards a cleaner build: hexl
From: |
Noam Postavsky |
Subject: |
Re: Towards a cleaner build: hexl |
Date: |
Fri, 17 May 2019 08:49:30 -0400 |
On Fri, 17 May 2019 at 08:45, Lars Ingebrigtsen <address@hidden> wrote:
>
> In hexl-insert-multibyte-char:
> hexl.el:881:29:Warning: ‘string-as-unibyte’ is an obsolete function (as of
> 26.1); use ‘encode-coding-string’.
>
> This is the code...
>
> (let ((encoded (encode-coding-char ch coding))
> (internal (string-as-unibyte (char-to-string ch)))
> internal-hex)
> ;; If encode-coding-char returns nil, it means our character
> ;; cannot be safely encoded with buffer-file-coding-system.
> ;; In that case, we offer to insert the internal representation
> ;; of that character, byte by byte.
>
> And here we really, really want the internal byte representation of the
> multibyte string,
Shouldn't we use (encode-coding-char ch 'utf-8-emacs) instead?
- Re: Towards a cleaner build: arc-mode, (continued)
- Re: Towards a cleaner build: arc-mode, Eli Zaretskii, 2019/05/18
- Re: Towards a cleaner build: arc-mode, Lars Ingebrigtsen, 2019/05/18
- Re: Towards a cleaner build: arc-mode, Eli Zaretskii, 2019/05/18
- Re: Towards a cleaner build: arc-mode, Lars Ingebrigtsen, 2019/05/18
- Re: Towards a cleaner build: arc-mode, Lars Ingebrigtsen, 2019/05/19
- Re: Towards a cleaner build: arc-mode, Eli Zaretskii, 2019/05/19
Re: Towards a cleaner build: ehelp, Lars Ingebrigtsen, 2019/05/17
Re: Towards a cleaner build: hexl, Lars Ingebrigtsen, 2019/05/17
Re: Towards a cleaner build: custom, Lars Ingebrigtsen, 2019/05/18
Re: Towards a cleaner build: frameset, Lars Ingebrigtsen, 2019/05/18