From: finotti <luis.finotti@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: abbreviation ending with "."
Date: Thu, 12 Nov 2009 08:28:03 -0800 (PST) [thread overview]
Message-ID: <398df4fc-f32e-4ef8-be43-ea37d148e37e@k19g2000yqc.googlegroups.com> (raw)
In-Reply-To: jwv639gjrna.fsf-monnier+gnu.emacs.help@gnu.org
Thanks for the reply!
On Nov 11, 11:30 pm, Stefan Monnier <monn...@iro.umontreal.ca> wrote:
> Abbreviations by default only work if they're exclusively made up of
> "word chars" (a.k.a chars of syntax class "word").
I see. Thanks for clarifying that.
> So you can either change the char "." to be a word constituent (which
> may lead to surprises), or you can change the setting on the
> abbrev-table in which you placed that "p." abbreviation.
>
> E.g. if it's added to the abbrev table named `foo-abbrev-table', you
> could do
>
> (abbrev-table-put foo-abbrev-table
> :regexp "\\<\\(\\w+\\.?\\)\\W*")
Should I put it in my .emacs? If so, it did not work. (BTW, I have
it in my global-abbrev-table.)
> See C-h v define-abbrev-table to see the default value used for
> the :regexp (to which I just added \\.?).
That command did not work for me: define-<TAB> gives only "define-key-
rebound-commands"...
Any suggestions?
Thanks again for the quick reply!
Luis
next prev parent reply other threads:[~2009-11-12 16:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-12 0:30 abbreviation ending with "." finotti
2009-11-12 4:30 ` Stefan Monnier
2009-11-12 16:28 ` finotti [this message]
2009-11-14 8:11 ` Stefan Monnier
2009-11-16 10:34 ` harven
2009-11-16 11:08 ` Andreas Röhler
[not found] ` <mailman.10801.1258369753.2239.help-gnu-emacs@gnu.org>
2009-11-16 14:54 ` Stefan Monnier
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=398df4fc-f32e-4ef8-be43-ea37d148e37e@k19g2000yqc.googlegroups.com \
--to=luis.finotti@gmail.com \
--cc=help-gnu-emacs@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.