unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "R. Diez" <rdiezmail-emacs@yahoo.de>
To: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Skipping words with C-<right> like other editors do
Date: Sun, 15 Apr 2018 18:49:47 +0000 (UTC)	[thread overview]
Message-ID: <778085015.663724.1523818187137@mail.yahoo.com> (raw)
In-Reply-To: 778085015.663724.1523818187137.ref@mail.yahoo.com

Hi all:

I am not satisfied with the standard behaviour of C-<right> etc. I want it to work the way most "normal" editors do.

I tried the following with Mousepad under Linux (the default editor under Xfce):

text --- ^^^ *** /// ;;; aa-xx bb


I have marked with an exclamation mark all places where the cursor stops at when you repeatedly press Ctrl+right or Ctrl+left:


!text! ---! ^^^! ***! ///! ;;;! aa!-!xx! bb!

KDE's text editor Kate, Notepad++ under Windows, and Java environment NetBeans behave a little different with regards to the start/end word position:

!text !--- !^^^ !*** !/// !;;; !aa!-!xx !bb!

I think that this is the behaviour that I prefer.

I would prefer that the cursor only stopped once inside "aa-xx", like it is the case inside a text field in Firefox. In any case, I guess that, if Emacs' "superword-mode" is on, the cursor should not stop inside "aa-xx" at all.


I have tried everything I could think of to make Emacs behave that way: forward-word, forward-symbol, modify-syntax-entry.


I also tried this more elaborated solution:

https://emacs.stackexchange.com/questions/26417/custom-c-arrow-cursor-movement

But I just cannot get it right. Unfortunately, my Lips knowledge is too limited to come up with a more complex or flexible solution myself. After some years of frustration, I finally decided to post here.


Can anybody help?


Many thanks in advance,
  rdiez



       reply	other threads:[~2018-04-15 18:49 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 ` R. Diez [this message]
2018-04-15 22:09   ` Skipping words with C-<right> like other editors do Skip Montanaro
     [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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=778085015.663724.1523818187137@mail.yahoo.com \
    --to=rdiezmail-emacs@yahoo.de \
    --cc=help-gnu-emacs@gnu.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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).