bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#55079: 28.1; kp-decimal not working in vhdl-stutter-mode


From: Stefan Monnier
Subject: bug#55079: 28.1; kp-decimal not working in vhdl-stutter-mode
Date: Sat, 23 Apr 2022 16:21:42 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

[ Adding Reto to the Cc:  ]

> -      (cond ((= (preceding-char) vhdl-last-input-event)
> +      (cond ((or (and (integerp vhdl-last-input-event)
> +                      (= (preceding-char) vhdl-last-input-event))
> +                 (and (eq vhdl-last-input-event 'kp-decimal)
> +                      (equal (lookup-key local-function-key-map
> +                                         (vector vhdl-last-input-event))
> +                             [?.])
> +                      (= (preceding-char) ?.)))

It does sound pretty kludgey.
How 'bout just replacing `vhdl-last-input-event` with `?\.`, since the
function's name says that this is for period anyway (and the subsequent
`insert-char` inserts a `?\.` regardless of `vhdl-last-input-event`)?


        Stefan






reply via email to

[Prev in Thread] Current Thread [Next in Thread]