From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Rodgers Subject: bug#10125: RFE: require and load-path-shadowing Date: Wed, 16 Jan 2013 02:45:36 -0700 Message-ID: References: <87sj68eogm.fsf@Rainer.invalid> <87wqvjd7qa.fsf@Rainer.invalid> <87bocvcx9f.fsf@Rainer.invalid> <83ip72u89o.fsf@gnu.org> <87ehhqn1md.fsf@Rainer.invalid> <8338y6txjh.fsf@gnu.org> <71vcb22qgz.fsf__38024.2966501557$1358016217$gmane$org@fencepost.gnu.org> <87hamlbk3w.fsf__41794.7558024482$1358063310$gmane$org@Rainer.invalid> <87hamis0js.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:49777) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvPYo-0005eH-I3 for emacs-orgmode@gnu.org; Wed, 16 Jan 2013 04:45:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TvPYl-00021L-Sm for emacs-orgmode@gnu.org; Wed, 16 Jan 2013 04:45:30 -0500 Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-Message-ID: In-Reply-To: <87hamis0js.fsf@Rainer.invalid> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: 10125@debbugs.gnu.org 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