Mercurial > emacs
comparison lisp/subr.el @ 144:535ec1aa78ef
*** empty log message ***
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 22 Dec 1990 22:51:22 +0000 |
parents | 899728e6052a |
children | 7e7575d7b6d0 |
comparison
equal
deleted
inserted
replaced
143:fa6580d92860 | 144:535ec1aa78ef |
---|---|
288 (defun eval-next-after-load (file) | 288 (defun eval-next-after-load (file) |
289 "Read the following input sexp, and run it whenever FILE is loaded. | 289 "Read the following input sexp, and run it whenever FILE is loaded. |
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. |
296 This tries to remain unaffected by `su', by looking in environment variables." | 307 This tries to remain unaffected by `su', by looking in environment variables." |
297 (or (getenv "LOGNAME") (getenv "USER") (user-login-name))) | 308 (or (getenv "LOGNAME") (getenv "USER") (user-login-name))) |