]> git.eshelyaron.com Git - emacs.git/commit
* lisp/progmodes/vhdl-mode.el: Use progress-reporter
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 8 Apr 2021 18:44:37 +0000 (14:44 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 8 Apr 2021 18:44:37 +0000 (14:44 -0400)
commitd365c947b53a2a1e4b43ab65922ebfeca23943d1
tree53be654687f64cdfcb4e691186c598ffc040448a
parenta45493f2596c566de253eca98dfd5b82224ea217
* lisp/progmodes/vhdl-mode.el: Use progress-reporter

This was actually prompted by a backward compatibility problem
(because of the use of Emacs-27's `time-convert`).  The new code
seems to work fine in Emacs-25.
It also fixes a minor bug that made the echo area messages of
`vhdl-indent-region` compete with those of `indent-region`.

(vhdl-progress-info): Delete variable.
(vhdl--progress-reporter): New var to replace it.
(vhdl-update-progress-info): Delete function.
(vhdl-indent-line): Call progress-reporter-update instead.
(vhdl-indent-region): Make it an obsolete alias of `indent-region`.
Change all users.
(vhdl-align-region-groups, vhdl-align-region, vhdl-fix-case-region-1):
Use `make-progress-reporter` and `progress-reporter-update`.
lisp/progmodes/vhdl-mode.el