Jump to content

Program name: Difference between revisions

m
Emacs Lisp: Fix indentation
m (Emacs Lisp: Fix indentation)
Line 667:
 
(defun main ()
(let ((program (nth 2 command-line-args)))
(message "Program: %s" program)))</lang>
 
<code>load-file-name</code> is the ".el" or ".elc" currently being loaded. Within a batch <code>-l</code> it will be the script name, but within sub-loads like <code>require</code> etc it is that sub-load.
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.