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: Re: Syntax of "-" in shell-mode Date: Sat, 25 Jun 2016 00:12:54 -0700 Message-ID: <87r3bld9mx.fsf@secretsauce.net> References: <87y45ucnyx.fsf@secretsauce.net> <83h9ch21eq.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1466838816 23045 80.91.229.3 (25 Jun 2016 07:13:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 Jun 2016 07:13:36 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 25 09:13:25 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 1bGhmO-00038R-Od for ged-emacs-devel@m.gmane.org; Sat, 25 Jun 2016 09:13:24 +0200 Original-Received: from localhost ([::1]:48838 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGhmN-000339-Td for ged-emacs-devel@m.gmane.org; Sat, 25 Jun 2016 03:13:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60760) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGhmI-00032t-Cr for emacs-devel@gnu.org; Sat, 25 Jun 2016 03:13:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGhmG-00047A-CV for emacs-devel@gnu.org; Sat, 25 Jun 2016 03:13:17 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:51595) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGhm8-0003xq-QO; Sat, 25 Jun 2016 03:13:11 -0400 Original-Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 0C27620B2D; Sat, 25 Jun 2016 03:12:56 -0400 (EDT) Original-Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Sat, 25 Jun 2016 03:12:56 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=sOQAe 5+vIqvYUM2lb+ttX+L5Xgg=; b=hcEvZMmJTSz8zq2fb4pzstypNKFqWZK1VqhYs T10BHZHOH+mDL1iQopwGzejfmXUobtgmPftLk9VlBGOyIbKL5qFHShPhprTnocGR G5PAHnsCLRUqqDrCHKHdyHbOP4uWj4cmoKDAMszLJyHcdUxrhh1+PP1/OWR26LAq f5ttsk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=sOQAe5+vIqvYUM2lb+ttX+L5Xgg=; b=iyHrG mKsYB70BqqYhll8RB/dekwke4icBcs1PJpKwYO6BwNo/5R5XFEE7DkAlyBuQBaNK BvBuT+4msMa+a/1o09gAo38sAerkuxz2wuzL2U96VP9g9irFyXQUikkpG/V+453f LA6CRYVVm0LdkvsADNFyQtTGaa5WE5TPhZwICc= X-Sasl-enc: kugYEyNseVIu3noDEEkEY89KTVSlY0sefo8H/zB+jQ9B 1466838775 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 A405DCCDAC; Sat, 25 Jun 2016 03:12:55 -0400 (EDT) Original-Received: from dima by shorty.local with local (Exim 4.87) (envelope-from ) id 1bGhlu-0005WR-H9; Sat, 25 Jun 2016 00:12:54 -0700 User-agent: mu4e 0.9.17; emacs 25.0.94.1 In-reply-to: <83h9ch21eq.fsf@gnu.org> 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:204748 Archived-At: Eli Zaretskii writes: > If the problem is with transpose-words, then a possible solution might > be a new shell-transpose-words command, which is smart enough to DTRT > in these cases, at least as a user option? Would you like to propose > such an addition to sh-script.el? Now that I lived with this setting for a day, I don't think it's just (transpose-words): "-" being a word character feels like the right thing for shell commands. With that setting, the behavior of (forward-word) and (backward-word) is much more pleasing as well. Arguments like a standalone -- or - are treated like separate words, which is "right". If you use shell-mode, try it: (modify-syntax-entry ?- "w")