From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: shell-command - missing shell-quote-argument for program? Date: Sat, 14 Oct 2006 01:16:37 +0200 Message-ID: <45301E55.20906@student.lu.se> References: <452517DC.5010007@student.lu.se> <45251C56.8010603@student.lu.se> <45265833.4030709@student.lu.se> <45300469.7030107@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1160781511 22292 80.91.229.2 (13 Oct 2006 23:18:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 13 Oct 2006 23:18:31 +0000 (UTC) Cc: Emacs Devel , "Kim F. Storm" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 14 01:18:28 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 1GYWIN-00057f-6f for ged-emacs-devel@m.gmane.org; Sat, 14 Oct 2006 01:18:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GYWIM-0004Fa-Hw for ged-emacs-devel@m.gmane.org; Fri, 13 Oct 2006 19:18:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GYWGi-000369-KX for emacs-devel@gnu.org; Fri, 13 Oct 2006 19:16:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GYWGg-00032O-8T for emacs-devel@gnu.org; Fri, 13 Oct 2006 19:16:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GYWGf-00031u-Rc for emacs-devel@gnu.org; Fri, 13 Oct 2006 19:16:41 -0400 Original-Received: from [80.76.149.213] (helo=ch-smtp02.sth.basefarm.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GYWPD-0004Op-JR for emacs-devel@gnu.org; Fri, 13 Oct 2006 19:25:31 -0400 Original-Received: from c83-249-218-244.bredband.comhem.se ([83.249.218.244]:64141 helo=[192.168.123.121]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1GYWGc-00076Z-8V; Sat, 14 Oct 2006 01:16:39 +0200 User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) Original-To: Thomas Link In-Reply-To: <45300469.7030107@student.lu.se> X-Scan-Result: No virus found in message 1GYWGc-00076Z-8V. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1GYWGc-00076Z-8V 1f24f37995c9fa4f7dfd49ec8766513d 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:60730 Archived-At: Lennart Borgman wrote: > > Coming this far I looked a bit more carefully at filesets-run-cmd. And > I do not understand what it is doing. The code below is from this > function. I have however replaced the name of the loop variable from > "this" to "file". Further down in the function neither "file" or > "buffer" is used. Seems strange to me. Can someone explain what the > code does or what it was supposed to do? : > > (dolist (file files nil) > (save-excursion > (save-restriction > (let ((buffer (filesets-find-file file))) > (when buffer > (goto-char (point-min)) > Oh, please forget this question. I did not see the find-file. That changes the current buffer and that is what is used later.