GNU bug report logs - #3577
23.0.94; Info manual does not explain MTIME argument for dir-locals-set-directory-class

Previous Next

Package: emacs;

Reported by: Teemu Likonen <tlikonen <at> iki.fi>

Date: Mon, 15 Jun 2009 17:00:04 UTC

Severity: minor

Fixed in version 23.3

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #12 received at 3577 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Teemu Likonen <tlikonen <at> iki.fi>
To: 3577 <at> debbugs.gnu.org
Subject: Re: 23.0.94; Info manual does not explain MTIME argument for dir-locals-set-directory-class
Date: Thu, 18 Jun 2009 08:25:48 +0300
On 2009-06-15 19:54 (+0300), 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.

It other words if I copy the example from "(emacs) Directory Variables"
and perhaps use my own variables:

    (dir-locals-set-class-variables 'unwritable-directory
      '((nil . ((fill-column . 78)))))

    (dir-locals-set-directory-class
     "/usr/include/" 'unwritable-directory)

I get this:


Debugger entered--Lisp error: (wrong-number-of-arguments #[(directory
class mtime) [...]
[directory class dir-locals-class-alist mtime dir-locals-directory-cache file-name-as-directory expand-file-name error "No such class `%s'" symbol-name] 4 1821511] 2)
  dir-locals-set-directory-class("/usr/include/" unwritable-directory)
  eval((dir-locals-set-directory-class "/usr/include/" (quote unwritable-directory)))
  eval-last-sexp-1(nil)
  eval-last-sexp(nil)
  call-interactively(eval-last-sexp nil nil)



This bug report was last modified 14 years and 150 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.