From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: Syntax of "-" in shell-mode Date: Fri, 24 Jun 2016 13:58:16 -0700 (PDT) Message-ID: References: <87y45ucnyx.fsf@secretsauce.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1466801988 21242 80.91.229.3 (24 Jun 2016 20:59:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Jun 2016 20:59:48 +0000 (UTC) To: Dima Kogan , Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 24 22:59:36 2016 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 1bGYCO-0005Lc-Je for ged-emacs-devel@m.gmane.org; Fri, 24 Jun 2016 22:59:36 +0200 Original-Received: from localhost ([::1]:47307 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGYCO-0007OW-08 for ged-emacs-devel@m.gmane.org; Fri, 24 Jun 2016 16:59:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44585) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGYBd-0007Ma-9z for emacs-devel@gnu.org; Fri, 24 Jun 2016 16:58:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGYBZ-0007gU-5o for emacs-devel@gnu.org; Fri, 24 Jun 2016 16:58:48 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:40603) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGYBY-0007bI-TJ for emacs-devel@gnu.org; Fri, 24 Jun 2016 16:58:45 -0400 Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u5OKwIBb031491 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 24 Jun 2016 20:58:19 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.13.8) with ESMTP id u5OKwIiS002691 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 24 Jun 2016 20:58:18 GMT Original-Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u5OKwHZD009751; Fri, 24 Jun 2016 20:58:18 GMT In-Reply-To: <87y45ucnyx.fsf@secretsauce.net> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6744.5000 (x86)] X-Source-IP: userv0022.oracle.com [156.151.31.74] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:204737 Archived-At: > Hi. What do people think about giving "-" a syntax of "word" in > shell-mode? The rationale is that in this mode one is generally editing > shell commands where "-" precedes commandline options, and strings such > as "--help" generally represent a single semantic token. >=20 > More specifically if I have something like "xxx --yyy" with the point in > the whitespace, and I invoke (transpose-words) I want the result to be > "--yyy xxx" and not "yyy --xxx". The latter means something very > different in a shell command. Maybe not so simple. A shell command can involve lots of stuff, including arguments to commands that use their own syntax (think `find').