unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Xah <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How can I put the '_' into the elements that form a word use by forward-word?
Date: Thu, 20 Nov 2008 21:39:10 -0800 (PST)	[thread overview]
Message-ID: <fbf77265-9db1-4022-b6ec-30ae9b004899@c2g2000pra.googlegroups.com> (raw)
In-Reply-To: mailman.891.1227220438.26697.help-gnu-emacs@gnu.org

On Nov 20, 2:33 pm, "Drew Adams" <drew.ad...@oracle.com> wrote:

> Use forward-symbol, not forward-word.

forward-symbol is kinda problematic. It does not seems widely
supported. For example, there's no backward-symbol, and the “*-word”
cursor moving keys doesn't change.


> Or change the syntax class of _ from word-constituent to symbol-constituent.


don't know what mode you are using, but here's a example of doing it
with emacs-lisp-mode:

(add-hook 'emacs-lisp-mode-hook
 (lambda ()
  (modify-syntax-entry ?- "w" emacs-lisp-mode-syntax-table )
 )
)

See:

• Syntax Class Table - GNU Emacs Lisp Reference Manual
http://xahlee.org/elisp/Syntax-Class-Table.html

  Xah
∑ http://xahlee.org/

  parent reply	other threads:[~2008-11-21  5:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-20 16:28 How can I put the '_' into the elements that form a word use by forward-word? mgx0018
2008-11-20 22:33 ` Drew Adams
     [not found] ` <mailman.891.1227220438.26697.help-gnu-emacs@gnu.org>
2008-11-21  5:08   ` Xah
2008-11-23 23:42     ` Nikolaj Schumacher
2008-11-21  5:39   ` Xah [this message]
2008-11-21 10:55     ` Andreas Politz

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=fbf77265-9db1-4022-b6ec-30ae9b004899@c2g2000pra.googlegroups.com \
    --to=xahlee@gmail.com \
    --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).