branch: elpa/popup commit 51f4430604bb933c0f0d963959f6ad86c345d7bb Author: Jen-Chieh <jcs090...@gmail.com> Commit: Jen-Chieh <jcs090...@gmail.com>
Fixed to not use emacs 26.1 as dep. --- popup.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/popup.el b/popup.el index 20a380e..55a3fa7 100644 --- a/popup.el +++ b/popup.el @@ -5,7 +5,7 @@ ;; Author: Tomohiro Matsuyama <m2ym....@gmail.com> ;; Keywords: lisp ;; Version: 0.5.7 -;; Package-Requires: ((emacs "26.1") (cl-lib "0.5")) +;; Package-Requires: ((cl-lib "0.5")) ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by @@ -30,7 +30,6 @@ ;;; Code: (require 'cl-lib) -(require 'display-line-numbers) (defconst popup-version "0.5.7") @@ -151,7 +150,7 @@ untouched." (defun popup-vertical-motion (column direction) "A portable version of `vertical-motion'." - (when display-line-numbers-mode + (when (bound-and-true-p display-line-numbers-mode) (setq column (- column (line-number-display-width 'columns)))) (if (>= emacs-major-version 23) (vertical-motion (cons column direction))