From: Lars Ingebrigtsen Date: Tue, 18 Aug 2020 21:22:36 +0000 (+0200) Subject: Remove some compat code from viper-cmd.el X-Git-Tag: emacs-28.0.90~6527 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b906ef38fc68ea39b914c89c3c5eab5adfd03a2e;p=emacs.git Remove some compat code from viper-cmd.el * lisp/emulation/viper-cmd.el (viper-next-line-at-bol): No need to check for button-at. --- diff --git a/lisp/emulation/viper-cmd.el b/lisp/emulation/viper-cmd.el index b10a533a77c..5518af4997d 100644 --- a/lisp/emulation/viper-cmd.el +++ b/lisp/emulation/viper-cmd.el @@ -2883,7 +2883,7 @@ If point is on a widget or a button, simulate clicking on that widget/button." (and (consp widget) (get (widget-type widget) 'widget-type)))) (widget-button-press (point)) - (if (and (fboundp 'button-at) (fboundp 'push-button) (button-at (point))) + (if (button-at (point)) (push-button) ;; not a widget or a button (save-excursion