all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Herbert Euler" <herberteuler@hotmail.com>
To: rms@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: A prototype of intelligent replace for Emacs
Date: Sun, 06 May 2007 23:01:00 +0800	[thread overview]
Message-ID: <BAY143-F337E97CA996A18185C1FADA460@phx.gbl> (raw)
In-Reply-To: <E1HkTWY-0002WO-Uv@fencepost.gnu.org>

>     If there are many different rules, many features can be computed for a
>     match.  Because features computed from a same rule can be compared,
>     matches can be classified, or grouped together, with their features.
>     This is based on similarity among the matches.  Now the concept of
>     "block" and "class" can be defined.  A _block_ is a match plus its
>     features.  A _class_ is a set of blocks, all of which have the same
>     features.  Continuing from the previous example, since the first and
>     the third block have the same feature "status", they are in one class.
>     The second block is a class itself.
>
>Now I understand.  Can we find a simple way to present this?
>
>The term "block" is not appropriate.  It should be called a "match".
>There is no reason why a "match" can't include these features.

It is Ok for me that a "match" includes features as well, but "match"
is not a good term for this purpose, since "match" is already used to
indicate matches without features in Emacs.  Calling a match with
features "match" too would perhaps disorder names in the source code:
we already have `save-match-data', `set-match-data', `match-beginning'
etc in it, and people may be confused by the two different meanings of
the same term "match".

But they are indeed matches.  How about call them "imatch", the
"i(replace) match", and document it well?

>"Class" would be come clear if introduced as "class of like matches".

This is true.  Then should I use the word "class" in the source code,
and use the term "class of like matches" in the document?
`class-of-like-matches' is too long for a name in program, after all.

Thanks.

Regards,
Guanpeng Xu

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

  reply	other threads:[~2007-05-06 15:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-29  8:32 A prototype of intelligent replace for Emacs Herbert Euler
2007-04-29 18:39 ` Drew Adams
2007-05-05  2:29   ` Herbert Euler
2007-04-30 22:09 ` Richard Stallman
2007-05-05  2:30   ` Herbert Euler
2007-05-05 23:18     ` Richard Stallman
2007-05-06 15:01       ` Herbert Euler [this message]
2007-05-06 22:26         ` Richard Stallman

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=BAY143-F337E97CA996A18185C1FADA460@phx.gbl \
    --to=herberteuler@hotmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=rms@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.
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.