[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Towards a cleaner build: arc-mode
From: |
Lars Ingebrigtsen |
Subject: |
Re: Towards a cleaner build: arc-mode |
Date: |
Sat, 18 May 2019 06:36:25 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Eli Zaretskii <address@hidden> writes:
>> First of all, it defines defsubsts in the global namespace, but
>> (decode-char 'eight-bit 130) => 4194178
>>
>> Hm... Oh! Is it working in a multibyte buffer, so it wants to insert
>> bytes that are in Emacs' "byte plane"?
>>
>> (insert (decode-char 'eight-bit 130))
>> => \202
>>
>> I guess.
>
> Yes. However, I suspect this juggling is no longer need nowadays. If
> you just use 'insert', does arc-mode break when you invoke the
> commands that end up using these calls? This should be tried also in
> a locale whose codeset is not UTF-8.
Yes, if I just insert the bytes, things break. In a zip file, I did a
chmod change to 0777 and in the new file, I got:
-rwxrwxrwx 5 18-May-2019 05:27:06 text.txt
If I do the same, but replace
(insert (if (< elt 128) elt (decode-char 'eight-bit elt)))
with just
(insert elt)
I get:
crws--S-wx 5 18-May-2019 05:27:06 address@hidden@text.t
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- 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, Stefan Monnier, 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/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 <=
- 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