zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Nathan Phillip Brink <ohnobinki@ohnopublishing.net>
Cc: "zsh-workers@zsh.org" <zsh-workers@zsh.org>
Subject: Re: emacs-forward-word not emacs-like
Date: Wed, 21 Oct 2020 13:29:24 -0700	[thread overview]
Message-ID: <CAH+w=7auCZq2SjfxYisP04C4nPSnHhH=fSegx44oJAQEN5FxkA@mail.gmail.com> (raw)
In-Reply-To: <20201021032801.GA1808@gibby.ohnopub.net>

On Tue, Oct 20, 2020 at 8:28 PM Nathan Phillip Brink
<ohnobinki@ohnopublishing.net> 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 ‘a’ and I press M-f, bash and Emacs
> will move the cursor to point to the first dash ‘-’ (dash) (i.e., to
> immediately after the ‘a’). zsh’s emacs-forward-word will instead
> position the cursor immediately after ‘c’.

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).


      parent reply	other threads:[~2020-10-21 20:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-21  3:28 Nathan Phillip Brink
2020-10-21  3:35 ` Lawrence Velázquez
2020-10-21 20:29 ` Bart Schaefer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH+w=7auCZq2SjfxYisP04C4nPSnHhH=fSegx44oJAQEN5FxkA@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=ohnobinki@ohnopublishing.net \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).