Subject: bug#3577: 23.0.94; Info manual does not explain MTIME argument for dir-locals-set-directory-class

From: Glenn Morris <[email-masked]>
Date: Thu, 18 Jun 2009 02:58:57 -0400

Teemu Likonen wrote:

>> Info nodes
>>
>>     (emacs) Directory Variables
>>     (elisp) Directory Local Variables
>>
>> explain or give examples of function dir-locals-set-directory-class but
>> neither of them mentions the mandatory third argument MTIME.
[...]
>     (dir-locals-set-directory-class
>      "/usr/include/" 'unwritable-directory)
[...]
> Debugger entered--Lisp error: (wrong-number-of-arguments #[(directory

Yes, calling a function with the wrong number of arguments causes an error.

The mtime argument is now optional, so there is no error, and no need
to mention the mtime bit in the Emacs manual, IMO. It probably should
be added to the elisp manual.