diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/subr.el | 11 |
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." | |||
| 290 | This makes or adds to an entry on `after-load-alist'. | 290 | This makes or adds to an entry on `after-load-alist'. |
| 291 | FILE should be the name of a library, with no directory name." | 291 | FILE 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). | ||
| 296 | Use 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. |