From: marc0 <marc0@autistici.org>
Subject: Re: C++ Mode: Interpretation of Underscores In Words
Date: Wed, 12 Nov 2003 17:57:26 +0100 [thread overview]
Message-ID: <87oevhjzih.fsf@despammed.com> (raw)
In-Reply-To: Jhtsb.181286$Tr4.504347@attbi_s03
Sandip Chitale on Wed, 12 Nov 2003 16:33:45 GMT writes:
> <DIV><FONT face=Arial size=2>The word boundary is controlled by the syntax
> table. You can change the syntax of _ to be part of the word using
> modify-syntax.</FONT></DIV>
> <DIV><FONT face=Arial size=2>Do C-h f modify-syntax RET to get help on the
> defun. </FONT><FONT face=Arial size=2>This however may affect other features
> <DIV>Given a variable like "employee_name" is there a way to make emacs
> treat this as one word. Would be nice when doing commands
> like "forward-word" which treats employee_name as two words. </DIV>
> <DIV> </DIV>
or while in cc-mode:
M-x modify-syntax-entry RET _ RET w RET
but, as Stefan wrote, there are C-M-f and similar.
PS: please stop posting in HTML.
HTML posts are less accessible then plain-text ones, HTML posts make
archives less useful to search with grep & co, they take more space
and bandwith, they are nearly-unreadable for many peoples who have no
HTML redering configuration, and take away (cpu-)time to peoples who
have it. plain-text is enought for mail, anyone setups its MUA/NR to
display mails with the fonts/colors/font-size he wants, paragraph
separator can be an empty line.
--
marc0@autistici.org - 0x4E8899C2
next prev parent reply other threads:[~2003-11-12 16:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.209.1068653145.2005.help-gnu-emacs@gnu.org>
2003-11-12 15:38 ` C++ Mode: Interpretation of Underscores In Words Stefan Monnier
2003-11-12 16:33 ` Sandip Chitale
2003-11-12 16:57 ` marc0 [this message]
2003-11-12 18:54 ` kgold
2003-11-12 15:03 Joe Mama
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=87oevhjzih.fsf@despammed.com \
--to=marc0@autistici.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).