[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/popup 4265237 164/184: Fixed compatible to display line nu
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/popup 4265237 164/184: Fixed compatible to display line numbers mode in Emacs 26.1 or after. |
Date: |
Wed, 6 Oct 2021 00:01:35 -0400 (EDT) |
branch: elpa/popup
commit 4265237a923d114fdb07c873ec96f8233a95874b
Author: jenchieh <jcs090218@gmail.com>
Commit: jenchieh <jcs090218@gmail.com>
Fixed compatible to display line numbers mode in Emacs 26.1 or after.
---
popup.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/popup.el b/popup.el
index 1b8b3c8..c9be320 100644
--- a/popup.el
+++ b/popup.el
@@ -5,7 +5,7 @@
;; Author: Tomohiro Matsuyama <m2ym.pub@gmail.com>
;; Keywords: lisp
;; Version: 0.5.4
-;; Package-Requires: ((cl-lib "0.5"))
+;; Package-Requires: ((emacs "26.1") (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
@@ -150,6 +150,8 @@ untouched."
(defun popup-vertical-motion (column direction)
"A portable version of `vertical-motion'."
+ (when display-line-numbers-mode
+ (setq column (- column (line-number-display-width 'columns))))
(if (>= emacs-major-version 23)
(vertical-motion (cons column direction))
(vertical-motion direction)
- [nongnu] elpa/popup 0f640e0 087/184: remove require because popup already requires it, (continued)
- [nongnu] elpa/popup 0f640e0 087/184: remove require because popup already requires it, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 33dac62 127/184: Fix MELPA stable link, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 982f4ec 108/184: Untabify, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 8ca9644 091/184: Delete trailing spaces, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 2af1c6c 129/184: Update copyright, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 730b408 113/184: Ignore byte-compiled files, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 46632ab 134/184: Merge pull request #93 from auto-complete/fix-for-24.5, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 91285c2 140/184: Update document about customize variables, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 441ee40 152/184: Merge pull request #107 from danrharms/master, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 8eee9c5 148/184: Merge pull request #101 from auto-complete/needless-quote, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 4265237 164/184: Fixed compatible to display line numbers mode in Emacs 26.1 or after.,
ELPA Syncer <=
- [nongnu] elpa/popup 5e9043e 032/184: Bug fix for test helper, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup a651fa0 090/184: Merge pull request #59 from auto-complete/add-unstrip-parameter, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup de70ea8 088/184: Merge pull request #56 from ryantm/cl-lib, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 140f12d 122/184: Update Installation section, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 80829dd 154/184: Fix for newer Cask directory hierarchy, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup df4b147 159/184: Removed looking for new maintainer., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 0eeb16d 160/184: Merge pull request #113 from EdwardBetts/spelling, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 2d3226a 169/184: Comment indentation., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup fa96fe6 155/184: Count only visible lines for popup direction, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 24619f5 183/184: Merge pull request #126 from phst/mapcar, ELPA Syncer, 2021/10/06