[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Towards a cleaner build: disass.el
From: |
Lars Ingebrigtsen |
Subject: |
Re: Towards a cleaner build: disass.el |
Date: |
Thu, 13 Jun 2019 02:27:32 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
In disassemble-1:
emacs-lisp/disass.el:171:42:Warning: `string-as-unibyte' is an obsolete
function (as of 26.1); use `encode-coding-string'.
It's this code:
(if (consp obj)
(setq bytes (car (cdr obj)) ;the byte code
constvec (car (cdr (cdr obj)))) ;constant vector
;; If it is lazy-loaded, load it now
(fetch-bytecode obj)
(setq bytes (aref obj 1)
constvec (aref obj 2)))
(let ((lap (byte-decompile-bytecode (string-as-unibyte bytes) constvec))
But...
(multibyte-string-p (aref (byte-compile '(lambda (foo) (+ 4 foo))) 1))
=> nil
Is there any way the byte string in a byte-compiled function is
multibyte? It kinda looks like a NOP to me...
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- Re: Towards a cleaner build: cedet, (continued)
- Re: Towards a cleaner build: cedet, Dmitry Gutov, 2019/06/14
- Re: Towards a cleaner build: cedet, Lars Ingebrigtsen, 2019/06/15
- Re: Towards a cleaner build: cedet, Dmitry Gutov, 2019/06/15
- Re: Towards a cleaner build: cedet, Lars Ingebrigtsen, 2019/06/15
- Re: Towards a cleaner build: cedet, Dmitry Gutov, 2019/06/15
- Re: Towards a cleaner build: cedet, Eric Ludlam, 2019/06/15
- Re: Towards a cleaner build: cedet, Lars Ingebrigtsen, 2019/06/16
- Re: Towards a cleaner build: calendar, Lars Ingebrigtsen, 2019/06/14
- Re: Towards a cleaner build: calendar, Eli Zaretskii, 2019/06/14
- Re: Towards a cleaner build: calendar, Lars Ingebrigtsen, 2019/06/15
- Re: Towards a cleaner build: disass.el,
Lars Ingebrigtsen <=
- Re: Towards a cleaner build: disass.el, Eli Zaretskii, 2019/06/12
- Re: Towards a cleaner build: disass.el, Lars Ingebrigtsen, 2019/06/13
- Re: Towards a cleaner build: disass.el, Stefan Monnier, 2019/06/13
- Re: Towards a cleaner build: erc.el, Stefan Monnier, 2019/06/13
- Re: Towards a cleaner build: erc.el, Lars Ingebrigtsen, 2019/06/14
- Re: Towards a cleaner build: project.el, Dmitry Gutov, 2019/06/13
- Re: Towards a cleaner build: project.el, Lars Ingebrigtsen, 2019/06/13
- Re: Towards a cleaner build: project.el, Dmitry Gutov, 2019/06/13
- Re: Towards a cleaner build: project.el, Lars Ingebrigtsen, 2019/06/13
- Re: Towards a cleaner build: byte-run.el, Lars Ingebrigtsen, 2019/06/13