From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dima Kogan Newsgroups: gmane.emacs.devel Subject: Syntax of "-" in shell-mode Date: Fri, 24 Jun 2016 13:48:38 -0700 Message-ID: <87y45ucnyx.fsf@secretsauce.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1466801359 11640 80.91.229.3 (24 Jun 2016 20:49:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Jun 2016 20:49:19 +0000 (UTC) To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 24 22:49:09 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 1bGY2E-0007pH-FK for ged-emacs-devel@m.gmane.org; Fri, 24 Jun 2016 22:49:06 +0200 Original-Received: from localhost ([::1]:47283 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGY2D-0003Yl-Cb for ged-emacs-devel@m.gmane.org; Fri, 24 Jun 2016 16:49:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42585) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGY28-0003Yg-4y for emacs-devel@gnu.org; Fri, 24 Jun 2016 16:49:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGY25-0005IV-05 for emacs-devel@gnu.org; Fri, 24 Jun 2016 16:49:00 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:36281) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGY22-0005G7-Hi for emacs-devel@gnu.org; Fri, 24 Jun 2016 16:48:56 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 6723920C08 for ; Fri, 24 Jun 2016 16:48:40 -0400 (EDT) Original-Received: from frontend2 ([10.202.2.161]) by compute3.internal (MEProxy); Fri, 24 Jun 2016 16:48:40 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=content-type:date:from:message-id:mime-version:subject:to :x-sasl-enc:x-sasl-enc; s=mesmtp; bh=I+MNAMVehRyD7yNAb1dWWBfgs/4 =; b=Ts7gjvWUxy9K3yXYAqsbcbx422VBiHKWP9O61Vh3/jNEZoayZR8yAqXMRCH t+AqCELgcyq6hrqYsHZQS23ambOg+hB3NbjN2H8+x+3wMDlylLZUMkRdXTBIit02 pz3N6OqSJfXsxju+Mck3RqTLSqPPEJ6vueUFQd0z8+j4QWB4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=I+ MNAMVehRyD7yNAb1dWWBfgs/4=; b=M0j0yLcpYPir6KTySVMOsv9YoT6yOMvvKQ 8vivpElI9m0fZWn2k6iU5RPPrKNtKyQEKn2IOD8fKuI2SEMbVWPiBYrQxlNYKoP2 6/+jLO/CncSruIhaWh1sIY/IVvyV/FAT1GCm+rnW92ZhT7AssN0aAp6cGjiIYU83 lW4iY/cVI= X-Sasl-enc: ORUX1tJa5j2VHebS+f/H0/JD2/e8OqV6ut8OiTt1mUVf 1466801320 Original-Received: from shorty.local (50-1-153-216.dsl.dynamic.fusionbroadband.com [50.1.153.216]) by mail.messagingengine.com (Postfix) with ESMTPA id 07C6DCC01D for ; Fri, 24 Jun 2016 16:48:40 -0400 (EDT) Original-Received: from dima by shorty.local with local (Exim 4.87) (envelope-from ) id 1bGY1m-0006H1-R7 for emacs-devel@gnu.org; Fri, 24 Jun 2016 13:48:38 -0700 User-agent: mu4e 0.9.17; emacs 25.0.94.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.27 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:204736 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. 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. dima