From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: kgrossjo@emptydomain.de (Kai =?utf-8?Q?Gro=C3=9Fjohann?=) Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add shell-quasiquote. Date: Sat, 07 Nov 2015 00:35:35 +0100 Message-ID: References: <87si59wj42.fsf@T420.taylan> <56267302.7050606@yandex.ru> <87io61igyu.fsf@T420.taylan> <56267CDF.6010201@yandex.ru> <87wpuhh15s.fsf@T420.taylan> <562683B9.1060305@yandex.ru> <83y4exe71v.fsf@gnu.org> <87y4ewoqbs.fsf@fastmail.com> <83si54e2qx.fsf@gnu.org> <87y4ew8fue.fsf@fastmail.com> <83zizcurco.fsf@gnu.org> <87k2qgw3q1.fsf@fastmail.com> <83lhawuny4.fsf@gnu.org> <22055.54617.848927.986392@turnbull.sk.tsukuba.ac.jp> <85a8rcrs8q.fsf@iznogoud.viz> <83fv14ukna.fsf@gnu.org> <854mhkrqwe.fsf@iznogoud.viz> <838u6wujeu.fsf@gnu.org> <85eggnuq9w.fsf@iznogoud.viz> <83fv13t07m.fsf@gnu.org> <87pp07vsxr.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1446852972 27245 80.91.229.3 (6 Nov 2015 23:36:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Nov 2015 23:36:12 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 07 00:36:03 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZuqY5-0000Ra-HH for ged-emacs-devel@m.gmane.org; Sat, 07 Nov 2015 00:36:01 +0100 Original-Received: from localhost ([::1]:41574 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuqY4-0005XU-PS for ged-emacs-devel@m.gmane.org; Fri, 06 Nov 2015 18:36:00 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59247) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuqXs-0005XP-Hp for emacs-devel@gnu.org; Fri, 06 Nov 2015 18:35:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZuqXp-0000En-CT for emacs-devel@gnu.org; Fri, 06 Nov 2015 18:35:48 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:57290) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuqXp-0000Ef-5w for emacs-devel@gnu.org; Fri, 06 Nov 2015 18:35:45 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZuqXm-00009L-QI for emacs-devel@gnu.org; Sat, 07 Nov 2015 00:35:42 +0100 Original-Received: from dslb-188-101-072-195.188.101.pools.vodafone-ip.de ([188.101.72.195]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 07 Nov 2015 00:35:42 +0100 Original-Received: from kgrossjo by dslb-188-101-072-195.188.101.pools.vodafone-ip.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 07 Nov 2015 00:35:42 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dslb-188-101-072-195.188.101.pools.vodafone-ip.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:7BqZZ3bcYyNsonWJqJC4q/FvpCg= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:193480 Archived-At: David Kastrup writes: > I think that M-x shell RET (namely interactive shells) should also cover > csh and their ilk, and I consider it quite likely that > shell-quote-argument will be called when preparing arguments to paste > into the comint window. One thing that could be improved, imho, is that shell-quote-argument looks at the system it's running on and quotes for that. But actually it should quote for the shell that receives the result, and it's not easy to know what that shell is. For example, especially on Windows it's conceivable that some folks would like to quote for cmd.exe, others would like to quote for Powershell, and still others are Cygwin aficionados and would like to quote for bash or zsh... One idea might be that shell-quote-argument could look at shell-file-name. I have no idea whether that would fly. Kai