[Top][All Lists]

[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))


(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

reply via email to

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