aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/subr.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index 512867ee3c0..ffb4cb58184 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -290,6 +290,17 @@ FILE should be the name of a library, with no directory name."
290This makes or adds to an entry on `after-load-alist'. 290This makes or adds to an entry on `after-load-alist'.
291FILE should be the name of a library, with no directory name." 291FILE should be the name of a library, with no directory name."
292 (eval-after-load file (read))) 292 (eval-after-load file (read)))
293
294(defmacro defun-inline (name args &rest body)
295 "Create an \"inline defun\" (actually a macro).
296Use just like `defun'."
297 (nconc (list 'defmacro name '(&rest args))
298 (if (stringp (car body))
299 (prog1 (list (car body))
300 (setq body (or (cdr body) body))))
301 (list (list 'cons (list 'quote
302 (cons 'lambda (cons args body)))
303 'args))))
293 304
294(defun user-original-login-name () 305(defun user-original-login-name ()
295 "Return user's login name from original login. 306 "Return user's login name from original login.