From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 2879 invoked from network); 21 Oct 2020 20:29:48 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 21 Oct 2020 20:29:48 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1603312188; b=afV0hRfV/GcCaJUFpNc74VEG90FcKel1gdRFf0JpVWLs+UMFVogvt09BHXH2msgk4p//01UHa+ i5kCb4IXDR3BBMYYx+vg/ld+Cj6//sgq1nYyi9m1mqCfIPyh1A/bc2ORGnQTG+62IDScq7pukB /s89cTOom9xLNVE1G5w5RTaarr2hoz/pHNuYLpgcK3Y4ADIASdr9OAVOgRlQ2ahYOzKlDklxXc xu7WGr3aozc+sIWnJQYDQ98sChTscZOHSYub9uCBDDwilVs8unWp7ez9fs21oy3nNvoIv/nHVF FiXSTQcuzxCO86/1PMK7/1xZEA0w80D6eZCEyG0j5BKeEw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ot1-f51.google.com) smtp.remote-ip=209.85.210.51; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1603312188; bh=fnqcoBygPDqzQQlDj0nFg/FVOZsQ+0B+dShL3c/gNq4=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=lkQvlKqnbj1uk40w1AT9hIyEiML3AJ2Mr4CSns+FKIdsAu/TaVf+lP51JvkbptlfTPVUylye/j sMk9GjI4RVb/BVdDyXSEanA0emXEspt+d+6MYq+bd0/9orzZMeAEBPPImQv+Sq3fB2POLpr200 lb5e6mGeSI52m3wdzDMdxicuIM4GscBTnN0ltNeG6F5fGlnGSVaKxi1/kZdHaultU9cCkdQP6Y BWO7ka/WIZrhLcls8q0aKMMbWvp1D8KokKXGxz9VjtBConUd6Xi1szCWtgoYPdi4BzG3Q6kA8i FTGkbFSzuHaWVIyOIRypYnWSMrAXbrHBdkfUjeaLRrlVpA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=hfBnMe422Z5z6Fzpak/J1HF6hDDaqXXDO/j8fDE/i8Y=; b=0/kcCSlMQYKrLKjQ4VftUAMh/J xTlzuM+x5uV6U2yjKqJoxX7L1dbqjTHizpkafX9SRkLbunyJ7wPlNeVxkuXbtvpbq3H7x1OEOEe8Z wsDwqYc5KOmcIPFPPPllJQAAPWZOIdTlmbXmLm10eNariCBrIYukllycype2VZc4lQu6FnoSn/gqp I/og28DQLu9Rly0rASkJMV+n3kB0Oda5tMKgN/zjlwJRCrpDBWynFOx9a+jmyKDrrdO6AFRpYz3Os eI81Z+FW2oRb/uoNVuL3BaQ798fEaNWJrKf4a6I5zRFeEqpuw8HOnnxVvll17fmXio2IhGyKevO9x 1KWPoNTg==; Received: from authenticated user by zero.zsh.org with local id 1kVKjy-000Cj7-OO; Wed, 21 Oct 2020 20:29:46 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ot1-f51.google.com) smtp.remote-ip=209.85.210.51; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ot1-f51.google.com ([209.85.210.51]:32989) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1kVKjo-000Ca4-MG; Wed, 21 Oct 2020 20:29:37 +0000 Received: by mail-ot1-f51.google.com with SMTP id t15so3107712otk.0 for ; Wed, 21 Oct 2020 13:29:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=hfBnMe422Z5z6Fzpak/J1HF6hDDaqXXDO/j8fDE/i8Y=; b=EiGDFXfcdfKE8whPS/YOxFB7+Feq6ZGSlnLl30FAIy2rQfDCKJ+TX5hVTprYr4zxQq pt0E0Q1Rao36FUHGwCqC6VmgHZuvljufFosjRa70tKbn6T3of68Hj7zYEAo8SUdO7JL9 epSurkTdQ1bkPmKYPS0jPyfHFqPSv47fxov7yyoLWJD8iY1F6q1XoKk4I6Ii9l9GGjg9 b9LHTpnQvs/yW6MRyIsRzGinZaiHDuP//+/8myO19cjSYhQ2FZ5JKuWl/W8Nl4i33Uki h8vbxX3CdMrdyD0/VmZg1A1vC6aM82Kv3g+G25xQdmAbH9BmX7YWA5fDmV5jbPPJmls5 tyww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=hfBnMe422Z5z6Fzpak/J1HF6hDDaqXXDO/j8fDE/i8Y=; b=IMxqMOPgvvcOPwJDYzPwjzrhVEOBdadagJkj/T9mAAmWs/luXz1oagxLP5Ho7Ws2d1 0E104wSKNBRertD7uhBk129Aeqa6XaubiQXkBeRvqr5Ylf/jfu+M1aQ8LF0MngLy951f k+B6mX6eGaxYs9/U2kX7i9ETPcBDEIE+nce7HQoB1nWlzg0KM8sJ8WJPAmy9hKhcFHJA 1A78qjj27UZ0fa3MqHZeSVsdhLy0Q+oeC16+shYggBUcy3dNfgAwGXZ/bJoF0tZbQZkF ts4fzXxJGdTquDdLA0sudaqX+ZtwDzbwkgipecbxpJUIdLyqYSZk8NS/B/12aN5nAFGi NpcQ== X-Gm-Message-State: AOAM5332D4zcG14DMIuCEdvDMlB/a/fQu8ASDsz5C9kWBr1fgzUkABL3 2yKU7LWIIy1tZbw8Bq5pIEaNegJslmDqW+3w8wysxACtGopXnwa1 X-Google-Smtp-Source: ABdhPJw2xruNoNR/5P5VbcYPxtJIRE7Tgz891bXtuZf8zPJzBDNJRCONJI83/YXu/saFnLN03VgtPNLgOqBZcit9WCw= X-Received: by 2002:a05:6830:22e2:: with SMTP id t2mr3991921otc.229.1603312175580; Wed, 21 Oct 2020 13:29:35 -0700 (PDT) MIME-Version: 1.0 References: <20201021032801.GA1808@gibby.ohnopub.net> In-Reply-To: <20201021032801.GA1808@gibby.ohnopub.net> From: Bart Schaefer Date: Wed, 21 Oct 2020 13:29:24 -0700 Message-ID: Subject: Re: emacs-forward-word not emacs-like To: Nathan Phillip Brink Cc: "zsh-workers@zsh.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 47472 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: On Tue, Oct 20, 2020 at 8:28 PM Nathan Phillip Brink wrote: > > I was trying to write input to a line and move my cursor about using > M-f and M-b and deleting chunks at a time with M-d. [...] > > a-b-c d-e-f > > If my cursor is positioned at =E2=80=98a=E2=80=99 and I press M-f, bash a= nd Emacs > will move the cursor to point to the first dash =E2=80=98-=E2=80=99 (dash= ) (i.e., to > immediately after the =E2=80=98a=E2=80=99). zsh=E2=80=99s emacs-forward-w= ord will instead > position the cursor immediately after =E2=80=98c=E2=80=99. In addition to Lawrence's reference to WORDCHARS, please note that Zsh generally emulates Gosling Emacs, whereas Bash is patterned more after GNU Emacs. (I await Chet Ramey's correction of any inaccuracy in the latter assertion.) The zsh bindings are also somewhat entangled with the "stty" definitions of word motion, so that people moving to zsh from the default terminal driver will not be surprised (although that's a disappearing minority nowadays).