unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Alan <wehmann@fnal.gov>
To: help-gnu-emacs@gnu.org
Subject: Re: How to do this moving in emacs?
Date: Sat, 19 Jul 2008 04:04:07 -0700 (PDT)	[thread overview]
Message-ID: <3feca21d-75c4-4b66-84b6-2433df59fc8c@f36g2000hsa.googlegroups.com> (raw)
In-Reply-To: mailman.14728.1216080057.18990.help-gnu-emacs@gnu.org

On Jul 14, 6:42 pm, anhnmncb <anhnm...@gmail.com> wrote:
> 1)
> M-f/b is for forward/backward words which is separated by non-charactor.
> Say, -->|-->|--->|--->|
>      foo-bar foo2-bar2
>     |<--|<--|<---|<---
>
> How can I make a function to move forward/backward words which are
> separated by space?
> Say, ------>|-------->|
>      foo-bar foo2-bar2
>     |<------|<--------
>
> 2)
> M-f is to forward to a word's ending, M-b is to beginning. Now I want to
> bind M-F to forward to a word's beginning, M-B is for ending, how to
> achieve it?
> Say, ---->|
>      foo   bar
>         |<----
> --
> Regards,
>
>   anhnmncb
>  gpg key: 44A31344

Another possibility is to evaluate

(modify-syntax-entry ?- "w")

in the buffer in which you wish to have M-F treat "-" as a word
character.

By evaluate, of course, I mean the following:

M-: (translated from <escape> :) runs the command eval-expression
  which is an interactive compiled Lisp function in `simple.el'.
It is bound to M-:, M-ESC :.
(eval-expression eval-expression-arg &optional
eval-expression-insert-value)


  parent reply	other threads:[~2008-07-19 11:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.14728.1216080057.18990.help-gnu-emacs@gnu.org>
2008-07-15  0:50 ` How to do this moving in emacs? Xah
2008-07-15  3:30   ` anhnmncb
2008-07-19 11:04 ` Alan [this message]
2008-07-14 23:42 anhnmncb

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=3feca21d-75c4-4b66-84b6-2433df59fc8c@f36g2000hsa.googlegroups.com \
    --to=wehmann@fnal.gov \
    --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).