emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/popup 51f4430 171/184: Fixed to not use emacs 26.1 as dep.


From: ELPA Syncer
Subject: [nongnu] elpa/popup 51f4430 171/184: Fixed to not use emacs 26.1 as dep.
Date: Wed, 6 Oct 2021 00:01:36 -0400 (EDT)

branch: elpa/popup
commit 51f4430604bb933c0f0d963959f6ad86c345d7bb
Author: Jen-Chieh <jcs090218@gmail.com>
Commit: Jen-Chieh <jcs090218@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.pub@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))



reply via email to

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