Lars Ingebrigtsen <address@hidden
> Andreas Röhler <address@hidden
>> add-abbrev uses forward-word to catch the expansion,
which isn't good
>> for programming code.
>> Suggest to use forward-symbol instead, or still better
to make if customizable:
> `add-abbrev' doesn't have a doc string itself, but as all
> callers of this function says:
> Don't use this function in a Lisp program; use
> So you probably shouldn't use this programmatically,
I don't think the OP wanted to use `add-abbrev' in a Lisp
I understand is that the problem reported arises when someone
add an abbrev for a programming construct (in the example:
it is likely that `add-abbrev' won't give the entire desired
With that being said, at least in current Emacs it is easy to
abbrev, by setting the mark and point properly and calling
`add-mode-abbrev' with a 0 prefix argument.
> However, it's possible that the `forward-word' should
> changed, but on the other hand, abbrev.el will probably be
> any year now in favour of nabbrev.el, so I don't think it's
a good idea
What is nabbrev.el? I did a search in what I believe are usual
but didn't found anything.