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: Eli Zaretskii
Subject: Re: Towards a cleaner build: arc-mode
Date: Sat, 18 May 2019 08:39:32 +0300

> From: Lars Ingebrigtsen <address@hidden>
> Cc: address@hidden
> Date: Sat, 18 May 2019 06:04:33 +0200
> 
> >> We have get-byte nowadays, so I believe the first defsubst is not
> >> needed.  You just need to catch errors, maybe.
> 
> For byte-after, I tried this:
> 
> (defun byte-after (pos)
>   "Like char-after but an eight-bit char is converted to unibyte."
>   (cl-assert (= (multibyte-char-to-unibyte (char-after pos))
>                 (get-byte pos)))
>   (get-byte pos))
> 
> I then opened some archives (which will use byte-after all over the
> place), and I got no assertion errors.
> 
> If you think it's OK, I can just replace all the calls to byte-after
> with get-byte in arc-mode.el and remove the defsubst. 

Yes, I think that would be fine, thanks.



reply via email to

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