From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Ken Raeburn <raeburn@raeburn.org>
Cc: Emacs Dev <emacs-devel@gnu.org>, Miles Bader <miles@gnu.org>
Subject: Underscores and word commands
Date: Thu, 19 Jan 2012 13:57:02 -0500 [thread overview]
Message-ID: <jwvd3afjzjj.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <E24079C5-D39C-4F27-B075-8664DD9662DF@raeburn.org> (Ken Raeburn's message of "Thu, 19 Jan 2012 12:15:07 -0500")
> My "instincts" have long been to interpret "word" as "identifier or keyword"
That's OK.
> in programming modes, to the point of customizing the syntax tables at
> startup to make "_" a word component. Not for regular expressions, but for
While you're free to do it in your .emacs of course, it's not a good
solution when it makes its way into a package's source code because it
then imposes this conflation of the two concepts on every user (they
can't easily fix it in their .emacs).
C-M-SPC, C-M-f, and C-M-b already jump over symbols in many of the
relevant cases, but we should probably offer, along the lines of
subword-mode, a new minor mode that makes word commands operate on
symbols rather than just words (without messing with syntax tables,
since that can have much further reaching consequences).
Stefan
next prev parent reply other threads:[~2012-01-19 18:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAERznn_UcioQzHojyW=JaDsSHkfihAP3b0YfcUz_NT2cLefTTg@mail.gmail.com>
[not found] ` <CAERznn9+Y8OFPBNSDk=S_wRF+eP0u4_zfzUQjA9=Y=f=zf+MKw@mail.gmail.com>
2012-01-18 4:32 ` Last call for lua-mode contributors Miles Bader
2012-01-19 17:15 ` Ken Raeburn
2012-01-19 18:57 ` Stefan Monnier [this message]
2012-01-19 20:39 ` Underscores and word commands John Yates
2012-01-20 21:25 ` Stefan Monnier
2012-01-20 5:12 ` Last call for lua-mode contributors Miles Bader
2012-01-20 7:12 ` Ken Raeburn
2012-01-20 14:17 ` Stefan Monnier
2012-01-21 3:20 ` Miles Bader
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=jwvd3afjzjj.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=miles@gnu.org \
--cc=raeburn@raeburn.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 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.