Johannes Altmanninger 9790907ca8 abbr: stop parsing option after first expansion token
Historical behavior is to stop option parsing at the first non-option argument.
Since we have added more options, it seemed impractical to keep that behavior.

However people are using options in their abbr expansions ("abbr e emacs
-nw").  To support this, we ignore options. However, we only ignore them
if they are not valid "abbr" options.  Let's ignore all options in the
expansion definition, which is a small price to pay to keep most existing
configurations working.

Fixes #9410

This does not fix other cases which used to work, like

    abbr x -unknown

Those are hopefully not used by anyone, so I don't think we need to maintain
support for that.
2022-12-13 01:39:31 +01:00
..
2022-06-16 18:43:28 +02:00
2022-06-16 18:43:28 +02:00
2022-11-12 14:25:47 -08:00
2022-06-02 17:25:59 -07:00
2021-04-17 16:43:27 -07:00
2020-11-22 14:39:48 +01:00
2022-06-16 18:43:28 +02:00
2021-01-03 17:48:25 +01:00
2020-06-24 20:43:56 +02:00
2022-06-16 18:43:28 +02:00
2020-11-22 14:39:48 +01:00
2020-11-22 14:39:48 +01:00
2022-06-16 18:43:28 +02:00
2022-03-20 14:39:00 -07:00
2022-06-16 18:43:28 +02:00
2021-01-07 23:53:31 +01:00
2020-11-06 17:56:38 +01:00
2022-04-10 13:53:22 -07:00