[Top][All Lists]

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

Re: auto-insert-alist

From: Kevin Rodgers
Subject: Re: auto-insert-alist
Date: Thu, 15 Jul 2004 17:38:34 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/20020406 Netscape6/6.2.2

DrMemory wrote:
> I'm sort of an elisp novice, but this seems to be the relevant code
> from autoinsert.el:
>     ;; Now, if we found something, do it
>     (and action
>          (if (stringp action)
>              (file-readable-p (concat auto-insert-directory action))
>            t)
>          (if auto-insert-query
>              (or (if (eq auto-insert-query 'function)
>                      (eq this-command 'auto-insert))
>                  (y-or-n-p (format auto-insert-prompt desc)))
>            t)
>          (mapcar
>           (lambda (action)
>             (if (stringp action)
>                 (if (file-readable-p
>                      (setq action (concat auto-insert-directory action)))
>                     (insert-file-contents action))
>            [...]
> Looks to me as if the "absolute filename" option is illusory, and any file
> to be inserted would have to be given relative to auto-insert-directory.

Yep: in both cases (concat auto-insert-directory action) should be
(expand-file-name action auto-insert-directory).

Kevin Rodgers

reply via email to

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