all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* abbreviation definitions with non word characters
@ 2014-11-25 14:51 H. Dieter Wilhelm
  2014-11-25 15:01 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: H. Dieter Wilhelm @ 2014-11-25 14:51 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

does somebody have an example with the use of :regexp in the property
list of abbreviation tables?

Thanks you

       Dieter
-- 
Best wishes
H. Dieter Wilhelm
Darmstadt, Germany



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: abbreviation definitions with non word characters
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2014-11-25 15:01 UTC (permalink / raw)
  To: help-gnu-emacs

> 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).


        Stefan




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: abbreviation definitions with non word characters
  2014-11-25 15:01 ` Stefan Monnier
@ 2014-11-26 12:10   ` H. Dieter Wilhelm
  0 siblings, 0 replies; 3+ messages in thread
From: H. Dieter Wilhelm @ 2014-11-26 12:10 UTC (permalink / raw)
  To: help-gnu-emacs

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-11-26 12:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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.