From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Syntax of "-" in shell-mode Date: Sat, 25 Jun 2016 09:27:12 +0200 Message-ID: References: <87y45ucnyx.fsf@secretsauce.net> <83h9ch21eq.fsf@gnu.org> <87r3bld9mx.fsf@secretsauce.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1466839663 2690 80.91.229.3 (25 Jun 2016 07:27:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 Jun 2016 07:27:43 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Dima Kogan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 25 09:27:35 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 1bGi06-0001Dw-L3 for ged-emacs-devel@m.gmane.org; Sat, 25 Jun 2016 09:27:34 +0200 Original-Received: from localhost ([::1]:48863 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGi05-000156-Ma for ged-emacs-devel@m.gmane.org; Sat, 25 Jun 2016 03:27:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34374) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGhzz-000150-Il for emacs-devel@gnu.org; Sat, 25 Jun 2016 03:27:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGhzy-00068G-Lx for emacs-devel@gnu.org; Sat, 25 Jun 2016 03:27:27 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.10]:34265) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGhzu-00067Z-6f; Sat, 25 Jun 2016 03:27:22 -0400 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3rc6GX3MWJz3hjpQ; Sat, 25 Jun 2016 09:27:16 +0200 (CEST) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3rc6GX0dtDzwcLY; Sat, 25 Jun 2016 09:27:16 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id hx7lTnQJ0cDE; Sat, 25 Jun 2016 09:27:15 +0200 (CEST) X-Auth-Info: ftLgHG/DK7crxmKZ4DIKt9XAveCRi36So08dnbKxBnglM5bWWx7vRj4yiPQ8pzzJ Original-Received: from linux.local (ppp-88-217-19-100.dynamic.mnet-online.de [88.217.19.100]) by mail.mnet-online.de (Postfix) with ESMTPA; Sat, 25 Jun 2016 09:27:15 +0200 (CEST) Original-Received: by linux.local (Postfix, from userid 501) id 960701E532C; Sat, 25 Jun 2016 09:27:12 +0200 (CEST) X-Yow: A dwarf is passing out somewhere in Detroit! In-Reply-To: <87r3bld9mx.fsf@secretsauce.net> (Dima Kogan's message of "Sat, 25 Jun 2016 00:12:54 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.95 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 212.18.0.10 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:204749 Archived-At: Dima Kogan writes: > 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". Use *-sexp instead. Making - a word characters will break a lot of use cases. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."