all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Richard Stallman <rms@gnu.org>, Emacs developers <emacs-devel@gnu.org>
Subject: Re: Characterset for Abbrevation names limited
Date: Tue, 26 Jun 2007 22:56:38 -0400	[thread overview]
Message-ID: <70fy4eds0p.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <jwvr6nyp2h3.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Tue, 26 Jun 2007 22:19:19 -0400")

Stefan Monnier wrote:

> I can't recover the original email so I'm not sure what was suggested,

The parent was off-list (for some reason...), but I quoted all of it.
The rest of the thread is in bug-gnu-emacs with the same subject.

> but if the suggestion is to make define-abbrev signal an error if
> the abbrev uses chars that are not word constituents, this will be
> problematic because the criterion depends on the syntax-table in use
> and that one may not be the same during define-abbrev as during
> expand-abbrev (some code in Emacs even uses pre-abbrev-expand-hook
> to change the syntax-table used during expand-abbrev independently
> from the syntax-table used otherwise in the buffer).

Yes, I did think about the define-abbrev case, and didn't see how one
could do much because of the reasons you cite. I think the suggestion
was perhaps just for define-global-abbrev, either to make it error or
warn if using a "non-standard-word-constituent" ([^a-zA-Z0-9] ?),
probably only when called interactively. As it stands you can define
"global" abbrevs that only work in some modes, which is a bit odd. But
I guess one could always construct a mode with a suitably bizarre
syntax that would still mess things up...

  reply	other threads:[~2007-06-27  2:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-21 13:17 Characterset for Abbrevation names limited Wilmar Igl
2007-06-22 19:20 ` Glenn Morris
2007-06-24 15:08   ` Wilmar Igl
2007-06-25 18:44     ` Glenn Morris
     [not found]       ` <E1I2ucR-00013Q-80@fencepost.gnu.org>
2007-06-26 23:57         ` Glenn Morris
2007-06-27  2:19           ` Stefan Monnier
2007-06-27  2:56             ` Glenn Morris [this message]
2007-06-27 19:49             ` 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=70fy4eds0p.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --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.