all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Skip Montanaro <skip.montanaro@gmail.com>
To: "R. Diez" <rdiezmail-emacs@yahoo.de>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: Skipping words with C-<right> like other editors do
Date: Sun, 15 Apr 2018 17:09:51 -0500	[thread overview]
Message-ID: <CANc-5UyDUkZF+dOTGTY6oYL+Spkt2jKvGZJfZ2ZrFWSxwv=zSQ@mail.gmail.com> (raw)
In-Reply-To: <778085015.663724.1523818187137@mail.yahoo.com>

While I agree with Emanuel's and Tim's comments (learning the basics
of Emacs' elementary cursor movement bindings is a good idea), I think
rdiez is actually complaining about how streams of characters are
divided into "words". I suspect the problem would exist with
forward-word. Right-word (target of C-right key binding) is little
more than a choice between forward-word and backward-word.

I think you probably want to tweak the relevant syntax table for the
editing mode you find yourself in most of the time. If you write
Python code, then overriding python-mode-syntax-table is probably what
you want. If, on the other hand, you mostly edit prose in text-mode,
then look at replacing text-mode-syntax-table. The key bit of
documentation you will want is the function documentation for
modify-syntax-entry. (C-h f modify-syntax-entry RET). The Emacs Lisp
reference manual has more detail:

https://www.gnu.org/software/emacs/manual/html_node/elisp/Syntax-Tables.html

I'd actually start there, maybe with an example syntax table for
something you are familiar with by your side.

Skip



  reply	other threads:[~2018-04-15 22:09 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <778085015.663724.1523818187137.ref@mail.yahoo.com>
2018-04-15 18:49 ` Skipping words with C-<right> like other editors do R. Diez
2018-04-15 22:09   ` Skip Montanaro [this message]
     [not found]   ` <mailman.12470.1523830225.27995.help-gnu-emacs@gnu.org>
2018-04-15 22:17     ` Emanuel Berg
     [not found] ` <mailman.12459.1523825033.27995.help-gnu-emacs@gnu.org>
2018-04-15 21:43   ` Emanuel Berg
2018-04-15 21:54     ` Tim Johnson
2018-04-15 23:34   ` James K. Lowden
2018-04-16  8:22     ` Yuri Khan
2018-04-16 17:31       ` Yuri Khan
2018-04-16 18:49         ` Stefan Monnier
2018-04-16 19:23           ` Yuri Khan
2018-04-17  9:27           ` Yuri Khan
2018-04-17 12:09             ` Stefan Monnier
2018-04-18  8:59               ` Yuri Khan
     [not found]     ` <mailman.12492.1523866951.27995.help-gnu-emacs@gnu.org>
2018-04-16 23:53       ` James K. Lowden

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='CANc-5UyDUkZF+dOTGTY6oYL+Spkt2jKvGZJfZ2ZrFWSxwv=zSQ@mail.gmail.com' \
    --to=skip.montanaro@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=rdiezmail-emacs@yahoo.de \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.