]> git.eshelyaron.com Git - emacs.git/commit
Use completion-at-point in verilog-mode
authorNoam Postavsky <npostavs@gmail.com>
Sun, 14 Aug 2016 02:13:56 +0000 (22:13 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Thu, 22 Dec 2016 02:39:58 +0000 (21:39 -0500)
commitde0671096706bf7404cddce277b918c8d769f17b
treebdcd1ebaef3702670e8bc41afc6d41ab0af9774a
parentacd65a7d948f77701f5bdc99c031ca8fdb1e976e
Use completion-at-point in verilog-mode

There were some functions in verilog-mode that implemented in-buffer
completion, but this needlessly duplicates completion-at-point
functionality, and the popup window management had problems
(see Bug #23842).  We need to keep them for backwards compatibility with
older emacs versions, but use completion-at-point if available.

* lisp/progmodes/verilog-mode.el (verilog-toggle-completions): Mark as
obsolete if completion-cycle-threshold is available.
(verilog-mode-map, verilog-menu): Bind completion-at-point and
completion-help-at-point in preference to verilog-complete-word and
verilog-show-completions, respectively.
(verilog-mode): Add verilog-completion-at-point to
completion-at-point-functions.
(verilog-completion-at-point): New function.
(verilog-show-completions, verilog-complete-word): Use it to avoid code
duplication.
lisp/progmodes/verilog-mode.el