summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNic Ferier <nic@ferrier.me.uk>2013-05-11 19:31:32 +0100
committerNic Ferier <nic@ferrier.me.uk>2013-05-11 19:31:32 +0100
commit41ab3d2dbd7bcb7bf7b32803568bf576d25ca1ef (patch)
tree75883dcb48dbd27878e780db2ae3abb34c4a5b75
parent4141e76582879425408521319fc7aa206318ceec (diff)
add package template stuff
-rw-r--r--noflet.el32
1 files changed, 29 insertions, 3 deletions
diff --git a/noflet.el b/noflet.el
index 620463f..798fa23 100644
--- a/noflet.el
+++ b/noflet.el
@@ -1,3 +1,30 @@
+;;; noflet-p.el --- locally override functions
+
+;; Copyright (C) 2013 Nic Ferrier
+
+;; Author: Nic Ferrier <nferrier@ferrier.me.uk>
+;; Keywords: lisp
+
+;; This program is free software; you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
+
+;; This program is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+;; GNU General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+;;; Commentary:
+
+;; This let's you locally override functions, in the manner of `flet',
+;; but with access to the original function through the symbol:
+;; `this-fn'.
+
+;;; Code:
(require 'cl-macs)
@@ -86,6 +113,5 @@ the name `this-fn':
This is great for overriding in testing and such like."
(apply 'noflet|expand bindings body))
-
-
-;; (expand-file-name "~/")
+(provide 'noflet-p)
+;;; noflet-p.el ends here