comparison lisp/subr.el @ 861:345296f94a1e

*** empty log message ***
author Richard M. Stallman <rms@gnu.org>
date Fri, 24 Jul 1992 05:00:23 +0000
parents 113281b361ec
children 1dba066c1e0a
comparison
equal deleted inserted replaced
860:08045dee5b71 861:345296f94a1e
310 "Read the following input sexp, and run it whenever FILE is loaded. 310 "Read the following input sexp, and run it whenever FILE is loaded.
311 This makes or adds to an entry on `after-load-alist'. 311 This makes or adds to an entry on `after-load-alist'.
312 FILE should be the name of a library, with no directory name." 312 FILE should be the name of a library, with no directory name."
313 (eval-after-load file (read))) 313 (eval-after-load file (read)))
314 314
315 (defmacro defun-inline (name args &rest body) 315 ;;(defmacro defun-inline (name args &rest body)
316 "Create an \"inline defun\" (actually a macro). 316 ;; "Create an \"inline defun\" (actually a macro).
317 Use just like `defun'." 317 ;;Use just like `defun'."
318 (nconc (list 'defmacro name '(&rest args)) 318 ;; (nconc (list 'defmacro name '(&rest args))
319 (if (stringp (car body)) 319 ;; (if (stringp (car body))
320 (prog1 (list (car body)) 320 ;; (prog1 (list (car body))
321 (setq body (or (cdr body) body)))) 321 ;; (setq body (or (cdr body) body))))
322 (list (list 'cons (list 'quote 322 ;; (list (list 'cons (list 'quote
323 (cons 'lambda (cons args body))) 323 ;; (cons 'lambda (cons args body)))
324 'args)))) 324 ;; 'args))))
325 325
326 (defun user-original-login-name () 326 (defun user-original-login-name ()
327 "Return user's login name from original login. 327 "Return user's login name from original login.
328 This tries to remain unaffected by `su', by looking in environment variables." 328 This tries to remain unaffected by `su', by looking in environment variables."
329 (or (getenv "LOGNAME") (getenv "USER") (user-login-name))) 329 (or (getenv "LOGNAME") (getenv "USER") (user-login-name)))