From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Schwab Subject: bug#10125: RFE: require and load-path-shadowing Date: Wed, 16 Jan 2013 11:06:43 +0100 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 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:54536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvPu6-0002ET-0p for emacs-orgmode@gnu.org; Wed, 16 Jan 2013 05:07:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TvPu4-0007FA-If for emacs-orgmode@gnu.org; Wed, 16 Jan 2013 05:07:29 -0500 Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-Message-ID: In-Reply-To: (Kevin Rodgers's message of "Wed, 16 Jan 2013 02:45:36 -0700") 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: Kevin Rodgers Cc: 10125@debbugs.gnu.org Kevin Rodgers writes: > (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) You need to use shell-quote-argument to properly shell-quote each argument. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."