From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?Vincent_Bela=EFche?= Newsgroups: gmane.emacs.devel Subject: RE: Initialisation of dired-x for install-info guessing Date: Sat, 9 May 2009 20:58:08 +0200 Message-ID: References: <87hbzzs7ax.fsf@gmail.com> <8363gfe2r1.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_d85fea6d-d942-42be-ace2-aee31b743fb2_" X-Trace: ger.gmane.org 1241895514 5982 80.91.229.12 (9 May 2009 18:58:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 May 2009 18:58:34 +0000 (UTC) Cc: Karl Berry To: , emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 09 20:58:24 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M2rkd-0006Nb-Oa for ged-emacs-devel@m.gmane.org; Sat, 09 May 2009 20:58:24 +0200 Original-Received: from localhost ([127.0.0.1]:46138 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M2rkd-0007ze-8o for ged-emacs-devel@m.gmane.org; Sat, 09 May 2009 14:58:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M2rkU-0007vD-3W for emacs-devel@gnu.org; Sat, 09 May 2009 14:58:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M2rkP-0007qX-Pw for emacs-devel@gnu.org; Sat, 09 May 2009 14:58:13 -0400 Original-Received: from [199.232.76.173] (port=59602 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M2rkP-0007qL-LY for emacs-devel@gnu.org; Sat, 09 May 2009 14:58:09 -0400 Original-Received: from blu0-omc3-s18.blu0.hotmail.com ([65.55.116.93]:19439) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M2rkP-0004M0-9n for emacs-devel@gnu.org; Sat, 09 May 2009 14:58:09 -0400 Original-Received: from BLU104-W5 ([65.55.116.72]) by blu0-omc3-s18.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Sat, 9 May 2009 11:58:09 -0700 X-Originating-IP: [90.32.151.3] Importance: Normal In-Reply-To: X-OriginalArrivalTime: 09 May 2009 18:58:09.0063 (UTC) FILETIME=[17FB5370:01C9D0D8] X-detected-operating-system: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ 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:110804 Archived-At: --_d85fea6d-d942-42be-ace2-aee31b743fb2_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > That was my impression as well. So why is the suggested command using > the weird `for' loop=20 The for is there mainly to extract the directory path=2C so that if you lau= nch the guessed command on some foo.info file=2C foo.info is installed in t= he dir file that is in the same directory where foo.info is. The for will also make it work in case of marking several files=2C but in m= y opinion this is not useful. The point is that in MSDOS I don't think that= it is possible to get the directory name otherwise than with a for. This `for' would be useless if there was some other mean to get the directo= ry name (like Emacs setting some environment variable with the directory na= me before launching the command...) > (which will make it apply to all kinds of other > unrelated files). >=20 Well the user is supposed to mark only the info files to be installed. But = as I wrote=2C the intention of for was not iterating=2C and probably I shou= ld not have proposed a for in the bash case. Vincent. =20 >=20 > Stefan _________________________________________________________________ T=E9l=E9phonez gratuitement =E0 tous vos proches avec Windows Live Messenge= r=A0 !=A0 T=E9l=E9chargez-le maintenant !=A0 http://www.windowslive.fr/messenger/1.asp= --_d85fea6d-d942-42be-ace2-aee31b743fb2_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

>=3B That was my impression as well. So why is the suggested com= mand using
>=3B the weird `for' loop

The for is there mainly t= o extract the directory path=2C so that if you launch the guessed command o= n some foo.info file=2C foo.info is installed in the dir file that is in th= e same directory where foo.info is.

The for will also make it work i= n case of marking several files=2C but in my opinion this is not useful. Th= e point is that in MSDOS I don't think that it is possible to get the direc= tory name otherwise than with a for.

This `for' would be useless if = there was some other mean to get the directory name (like Emacs setting som= e environment variable with the directory name before launching the command= ...)

>=3B (which will make it apply to all kinds of other
>= =3B unrelated files).
>=3B

Well the user is supposed to mark o= nly the info files to be installed. But as I wrote=2C the intention of for = was not iterating=2C and probably I should not have proposed a for in the b= ash case.

 =3B Vincent.
 =3B =3B =3B

>=3B
>=3B Stefan



Discutez sur Messenger o=F9 que vous soyez ! Mettez Messenger sur = votre mobile ! = --_d85fea6d-d942-42be-ace2-aee31b743fb2_--