unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* abbrev-mode not expanding entire word
@ 2010-05-19 13:37 Nathaniel Flath
  0 siblings, 0 replies; 2+ messages in thread
From: Nathaniel Flath @ 2010-05-19 13:37 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 756 bytes --]

Hello,
I have some abbrev's defined - my global abbrev table is:
(define-abbrev-table 'global-abbrev-table
  '(
    ("graphg" "G be a graph" nil 2)
    ("h1h2" "(H_1,H_2)" nil 2)
    ("iff" "if and only if" nil 3)
    ("isosub" "isomorphic to a subgraph" nil 1)
    ("simpleg" "G is a simple graph" nil 14)
    ("xycut" "(X,Y)-cutset" nil 5)
    ("xypath" "(X,Y)-path" nil 3)
    ("xypaths" "(X,Y)-paths" nil 5)
   ))

What appears to be happening is that when first loading this cutswet,
nothing is wrong.  everything appears ot be working normally.  Eventually,
it starts breaking, and only the first character of the abbrev is replace,
such that:
 xypath -> (X,Y)-path _ypath
where _ represents point.

Does anyone have any ideas why this is happening?

[-- Attachment #2: Type: text/html, Size: 998 bytes --]

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

* Re: abbrev-mode not expanding entire word
       [not found] <mailman.1.1274276279.5758.help-gnu-emacs@gnu.org>
@ 2010-05-19 17:23 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2010-05-19 17:23 UTC (permalink / raw)
  To: help-gnu-emacs

> What appears to be happening is that when first loading this cutswet,
> nothing is wrong.  everything appears ot be working normally.  Eventually,
> it starts breaking, and only the first character of the abbrev is replace,
> such that:
>  xypath -> (X,Y)-path _ypath
> where _ represents point.

> Does anyone have any ideas why this is happening?

Doesn't ring a bell, no.  Check the various abbrev hooks
(pre-abbrev-expand-hook and abbrev-expand-functions mostly)?


        Stefan


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

end of thread, other threads:[~2010-05-19 17:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-19 13:37 abbrev-mode not expanding entire word Nathaniel Flath
     [not found] <mailman.1.1274276279.5758.help-gnu-emacs@gnu.org>
2010-05-19 17:23 ` Stefan Monnier

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