unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: Finding Unused Identifiers
Date: Wed, 08 Mar 2006 11:43:42 -0700	[thread overview]
Message-ID: <dun8m8$ue1$1@sea.gmane.org> (raw)
In-Reply-To: <M_DOf.47170$d5.203735@newsb.telia.net>

August Karlstrom wrote:
 > Thanks Markus for your remarks. When I tested my functions I had
 > previously changed the syntax class for `-' to "w" (word) and then
 > forgot that, so I never noticed the problem. I wonder why the syntax
 > class of dash is not "word" by default in LISP buffers.

Because "-" is a symbol constituent, not a word constituent:

  - Syntax class: word constituent
      "Word constituents" (designated by `w') are parts of normal
      English words and are typically used in variable and command names
      in programs.  All upper- and lower-case letters, and the digits,
      are typically word constituents.

  - Syntax class: symbol constituent
      "Symbol constituents" (designated by `_') are the extra characters
      that are used in variable and command names along with word
      constituents.  For example, the symbol constituents class is used
      in Lisp mode to indicate that certain characters may be part of
      symbol names even though they are not part of English words.
      These characters are `$&*+-_<>'.  In standard C, the only
      non-word-constituent character that is valid in symbols is
      underscore (`_').

-- 
Kevin Rodgers

  reply	other threads:[~2006-03-08 18:43 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-02 13:31 Finding Unused Identifiers August Karlstrom
2006-03-02 14:07 ` Markus Triska
2006-03-02 15:13   ` B. T. Raven
2006-03-02 17:18     ` Markus Triska
2006-03-02 22:25     ` August Karlstrom
2006-03-03  8:39       ` Peter Tury
2006-03-03 11:25         ` Pascal Bourguignon
2006-03-03 13:31           ` Markus Triska
2006-03-04  2:21             ` Pascal Bourguignon
2006-03-04 15:20               ` Markus Triska
2006-03-04 19:19         ` August Karlstrom
2006-03-05  3:15           ` August Karlstrom
2006-03-05 15:13             ` Markus Triska
2006-03-05 16:05               ` August Karlstrom
2006-03-08 18:43                 ` Kevin Rodgers [this message]
     [not found]                 ` <mailman.88.1141843635.2832.help-gnu-emacs@gnu.org>
2006-03-09 13:08                   ` August Karlstrom

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='dun8m8$ue1$1@sea.gmane.org' \
    --to=ihs_4664@yahoo.com \
    /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).