From: dieter@duenenhof-wilhelm.de (H. Dieter Wilhelm)
To: help-gnu-emacs@gnu.org
Subject: Re: abbreviation definitions with non word characters
Date: Wed, 26 Nov 2014 13:10:49 +0100 [thread overview]
Message-ID: <87vbm2yxfa.fsf@vsl28t2g.ww011> (raw)
In-Reply-To: <jwvfvd7nx5c.fsf-monnier+gmane.emacs.help@gnu.org> (Stefan Monnier's message of "Tue, 25 Nov 2014 10:01:30 -0500")
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> does somebody have an example with the use of :regexp in the property
>> list of abbreviation tables?
>
> I think there are examples in python.el, fortran.el, and f90.el (tho
> the last two are probably identical).
from fortan.el:
...
(";w" . "write" )
(";wh" . "where" )))
"Abbrev table for Fortran mode."
;; Accept ; as the first char of an abbrev. Also allow _ in abbrevs.
:regexp "\\(?:[^[:word:]_;]\\|^\\)\\(;?[[:word:]_]+\\)[^[:word:]_]*")
Thank you, exactly what I was looking for!
Dieter
--
Best wishes
H. Dieter Wilhelm
Darmstadt, Germany
prev parent reply other threads:[~2014-11-26 12:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-25 14:51 abbreviation definitions with non word characters H. Dieter Wilhelm
2014-11-25 15:01 ` Stefan Monnier
2014-11-26 12:10 ` H. Dieter Wilhelm [this message]
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=87vbm2yxfa.fsf@vsl28t2g.ww011 \
--to=dieter@duenenhof-wilhelm.de \
--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.
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).