bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#10125: RFE: require and load-path-shadowing


From: Kevin Rodgers
Subject: bug#10125: RFE: require and load-path-shadowing
Date: Wed, 16 Jan 2013 02:45:36 -0700
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20

On 1/15/13 12:34 PM, Achim Gratz wrote:
Achim Gratz writes:
+               (concat invocation-directory invocation-name)

Better make that
+               (expand-file-name invocation-name invocation-directory)

FWIW here's what I use:

(defun run-emacs (command)
  "Run the Emacs COMMAND in the background via `shell-command'."
  (interactive
   (let ((program (expand-file-name invocation-name invocation-directory)))
     (list (read-string "Emacs command: "
                        (cons (concat program
                                      (if (cdr command-line-args)
                                          (mapconcat 'identity
                                                     (cdr command-line-args)
                                                     " ")
                                        " -Q")
                                      " &")
                              (1+ (length program)))))))
  (shell-command command))

--
Kevin Rodgers
Denver, Colorado, USA






reply via email to

[Prev in Thread] Current Thread [Next in Thread]