From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Slawomir Nowaczyk Newsgroups: gmane.emacs.devel Subject: Re: shell-command - missing shell-quote-argument for program? Date: Tue, 10 Oct 2006 08:46:52 +0200 Message-ID: <20061010084635.0406.SLAWOMIR.NOWACZYK.847@student.lu.se> References: <452AC9D6.9030602@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1160462877 26990 80.91.229.2 (10 Oct 2006 06:47:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 10 Oct 2006 06:47:57 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 10 08:47:53 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GXBOm-0006o3-Hm for ged-emacs-devel@m.gmane.org; Tue, 10 Oct 2006 08:47:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GXBOl-00012T-5C for ged-emacs-devel@m.gmane.org; Tue, 10 Oct 2006 02:47:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GXBOX-00011Z-Um for emacs-devel@gnu.org; Tue, 10 Oct 2006 02:47:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GXBOM-000100-6S for emacs-devel@gnu.org; Tue, 10 Oct 2006 02:47:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GXBOL-0000zx-VD for emacs-devel@gnu.org; Tue, 10 Oct 2006 02:47:06 -0400 Original-Received: from [130.235.16.11] (helo=himmelsborg.cs.lth.se) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GXBW4-0007ut-Bs for emacs-devel@gnu.org; Tue, 10 Oct 2006 02:55:04 -0400 Original-Received: from [127.0.0.1] (slawek@dain [130.235.16.76]) by himmelsborg.cs.lth.se (8.13.6/8.13.6/perf-jw-tr) with ESMTP id k9A6kxHA025877 for ; Tue, 10 Oct 2006 08:46:59 +0200 (CEST) Original-To: Emacs Devel In-Reply-To: <452AC9D6.9030602@student.lu.se> X-Esmandil_Citation: done X-Mailer-Plugin: Popup Memopad for Becky!2 Ver.0.02 Rev.2 X-Mailer: Becky! ver. 2.25.02 [en] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:60577 Archived-At: On Tue, 10 Oct 2006 00:14:46 +0200 Lennart Borgman wrote: #> I found examples of what I suspected was missing quoting in the files #> I mentioned and I therefore mailed you as authors (since there is no #> maintainer mentioned in the files). #> Here are the files again: #> #> - progmodes/python.el: python-after-info-look: python-command I am not entirely sure it is needed, but the following shouldn't hurt in any case. ********************************************************************** --- m:/EmacsCVS/EmacsCVS/lisp/progmodes/python.el 2006-09-26 20:28:22.912208000 +0200 +++ c:/Emacs/lisp/progmodes/python.el 2006-10-10 08:39:42.179456000 +0200 @@ -1630,7 +1630,7 @@ (defun python-after-info-look () "Set up info-look for Python. Used with `eval-after-load'." - (let* ((version (let ((s (shell-command-to-string (concat python-command + (let* ((version (let ((s (shell-command-to-string (concat (shell-quote-argument python-command) " -V")))) (string-match "^Python \\([0-9]+\\.[0-9]+\\>\\)" s) (match-string 1 s))) ********************************************************************** -- Best wishes, Slawomir Nowaczyk ( slawomir.nowaczyk.847@student.lu.se ) Never be afraid to try something new. Remember, amateurs built the ark. Professionals built the Titanic.