aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman1990-12-22 22:51:22 +0000
committerRichard M. Stallman1990-12-22 22:51:22 +0000
commit408a4c8f5e5ed1a096dbc774c2318653ab555e6f (patch)
treeab5aefa4b20c8845fde47a707cfd2ab45ba1f83e /lisp
parent82ac4b77568ecd0c71ba4bdd824cbe583439d7ba (diff)
downloademacs-408a4c8f5e5ed1a096dbc774c2318653ab555e6f.tar.gz
emacs-408a4c8f5e5ed1a096dbc774c2318653ab555e6f.zip
*** empty log message ***
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.