emacs-devel
[Top][All Lists]
Advanced

[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



reply via email to

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