[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Extra information in autoload error

From: Alex
Subject: Re: [PATCH] Extra information in autoload error
Date: Mon, 24 Oct 2016 13:21:08 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

>> From: Alex <address@hidden>
>> Cc: address@hidden,  address@hidden
>> Date: Sun, 23 Oct 2016 15:24:01 -0600
>> I was wondering if you preferred the version that used
>>  SDATA (Fcar (Fcar (Vload_history)))
>> or
>>  SDATA (Fcar (Fcdr (fundef)))
>> to get the extra information. The first one gets the file path, while
>> the second one just gets what was in the autoload object.
> Don't we want both?

That would display more information, but it would also make the error
message more verbose.

> Can you show the textual description of the
> "autoload object" that is returned by the latter form?

Here, fundef is the autoload object. That is, it's a list of the form:

  (autoload filename docstring interactive type)

So SDATA (Fcar (Fcdr (fundef))) just gets the filename of the autoload
object. The filename of the autoload object is just the 2nd argument of
the `autoload' function.

So the Vload_history version returns the whole path, while the fundef
version just uses whatever was passed into autoload. Usually that is
just the filename sans extension, e.g.:

(symbol-function 'linum-mode) => (autoload "linum" 1174895 t nil)

> (Sorry, too busy with more urgent issues to try that myself.)

No worries.

reply via email to

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