byte compiling defalias

View: New views
3 Messages — Rating Filter:   Alert me  

byte compiling defalias

by Dan Nicolaescu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



(defalias 'read-file-name-internal
  (completion-table-in-turn 'completion--embedded-envvar-table
                            'completion--file-name-table)
  "Internal subroutine for `read-file-name'.  Do not call this.")

is byte compiled to:

(byte-code "\300\301\302\303\304\"\305#\207" [defalias read-file-name-internal completion-table-in-turn completion--embedded-envvar-table completion--file-name-table "Internal subroutine for `read-file-name'.  Do not call this."] 5)

Shouldn't it be compiled to a defalias?
That way make-docstring would have a chance to extract the doc string,
so it won't end up in GC memory.



Re: byte compiling defalias

by Stefan Monnier :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Shouldn't it be compiled to a defalias?

Can't think of any reason not to.


        Stefan



Re: byte compiling defalias

by Dan Nicolaescu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Stefan Monnier <monnier@...> writes:

  > > Shouldn't it be compiled to a defalias?
  >
  > Can't think of any reason not to.

I filed a bug, it's not obvious how to do this.   I've made defvaralias
be byte compiled.