X-Git-Url: https://git.distorted.org.uk/~mdw/skel/blobdiff_plain/7fb0878b62328fd3bf80e2142a5d68b314105eb1..0beaeb377e3ff99dc172ee59b7759824c0b56ec5:/skel.el.in diff --git a/skel.el.in b/skel.el.in index d409011..bb039b8 100644 --- a/skel.el.in +++ b/skel.el.in @@ -1,6 +1,6 @@ ;;; -*-emacs-lisp-*- ;;; -;;; $Id: skel.el.in,v 1.1 1999/04/05 13:44:59 mdw Exp $ +;;; $Id: skel.el.in,v 1.5 2004/04/08 01:36:28 mdw Exp $ ;;; ;;; Filling in skeletons ;;; @@ -23,19 +23,12 @@ ;;; along with this program; if not, write to the Free Software Foundation, ;;; Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -;;;----- Revision history --------------------------------------------------- -;;; -;;; $Log: skel.el.in,v $ -;;; Revision 1.1 1999/04/05 13:44:59 mdw -;;; Initial revision -;;; - ;;;----- Variables (largely tweakable) -------------------------------------- (defvar skel-directory-list '(".skel" "") "*List of directory names which contain skeleton files.") -(defvar skel-skeleton-path '("@skeldir@" "~/skel" "~/src/skel") +(defvar skel-skeleton-path '("/etc/skel" "@skeldir@" "~/skel" "~/src/skel") "*List of directories to search for skeleton data anyway.") (defvar skel-skelrc '(".skelrc" "skelrc") @@ -103,14 +96,14 @@ first. ACC is a base list to which the matching filenames are prepended." ;; --- Build one big list of all the possible names --- - (let ((l (skel-join (lambda (x y) (if (string= y "") - x - (expand-file-name y x))) + (let ((l (skel-join #'(lambda (x y) (if (string= y "") + x + (expand-file-name y x))) nil (append (skel-parents default-directory) skel-skeleton-path) skel-directory-list - (if (listp name) name (cons name nil))))) + (if (consp name) name (cons name nil))))) ;; --- Now filter out any which aren't interesting --- @@ -171,7 +164,7 @@ argument is called to display the buffer." ;; ;; This is a little bit of a hack, but do I look like someone who cares? - (let (ext rc) + (let (ext) ;; --- Find out if the file's there already --- @@ -215,7 +208,7 @@ argument is called to display the buffer." (and ext (skel-find-skeleton (if (listp skel-skelrc) - (mapcar (lambda (x) (concat x ext)) skel-skelrc) + (mapcar #'(lambda (x) (concat x ext)) skel-skelrc) (concat skel-skelrc ext)) t))))) (while rc