[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy e9c0fb953d 09/10: Clean up compatibility of recent
From: |
Basil L. Contovounesios |
Subject: |
[elpa] externals/ivy e9c0fb953d 09/10: Clean up compatibility of recent changes |
Date: |
Sun, 11 Sep 2022 08:15:33 -0400 (EDT) |
branch: externals/ivy
commit e9c0fb953db9f6a23018a52441f3cd775710472c
Author: Basil L. Contovounesios <contovob@tcd.ie>
Commit: Basil L. Contovounesios <contovob@tcd.ie>
Clean up compatibility of recent changes
* counsel.el: Remove unused dynvar and add needed function
declarations.
(counsel-yank-pop-action): Pacify undefined vterm-insert warning.
* ivy-overlay.el (ivy-display-function-overlay): Simplify Emacs
version check.
---
counsel.el | 11 ++++++-----
ivy-overlay.el | 3 ++-
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/counsel.el b/counsel.el
index 7f7e6fd16a..bd1c1b5bb3 100644
--- a/counsel.el
+++ b/counsel.el
@@ -354,13 +354,12 @@ Update the minibuffer with the amount of lines collected
every
;;** `counsel-company'
(defvar company-candidates)
-(defvar company-common)
-(defvar company-prefix)
(declare-function company-abort "ext:company")
(declare-function company-complete "ext:company")
(declare-function company-mode "ext:company")
(declare-function company-call-backend "ext:company")
(declare-function company--clean-string "ext:company")
+(declare-function company--continue "ext:company")
;;;###autoload
(defun counsel-company ()
@@ -4493,9 +4492,10 @@ mark, as per \\[universal-argument] \\[yank]."
"Like `yank-pop', but insert the kill corresponding to S.
Signal a `buffer-read-only' error if called from a read-only
buffer position."
- (if (eq major-mode 'vterm-mode)
- (let ((inhibit-read-only t))
- (vterm-insert s)))
+ (when (and (eq major-mode 'vterm-mode)
+ (fboundp 'vterm-insert))
+ (let ((inhibit-read-only t))
+ (vterm-insert s)))
(barf-if-buffer-read-only)
(setq yank-window-start (window-start))
(unless (eq last-command 'yank)
@@ -4692,6 +4692,7 @@ S will be of the form \"[register]: content\"."
(defvar imenu-auto-rescan-maxout)
(declare-function imenu--subalist-p "imenu")
(declare-function imenu--make-index-alist "imenu")
+(declare-function python-imenu-create-flat-index "python")
(defun counsel--imenu-candidates ()
(require 'imenu)
diff --git a/ivy-overlay.el b/ivy-overlay.el
index f553cc7251..b61fcaf093 100644
--- a/ivy-overlay.el
+++ b/ivy-overlay.el
@@ -153,7 +153,8 @@ Hide the minibuffer contents and cursor."
(+
(if (and (eq major-mode 'org-mode)
(bound-and-true-p org-indent-mode)
- (version< emacs-version "28.1"))
+ ;; FIXME: Should this check `org-version'?
+ (< emacs-major-version 28))
(if (org-at-heading-p)
(1- (org-current-level))
(* org-indent-indentation-per-level (or
(org-current-level) 1)))
- [elpa] externals/ivy updated (166b3161a3 -> d9c2053316), Basil L. Contovounesios, 2022/09/11
- [elpa] externals/ivy 2c23dae5ea 01/10: counsel.el (counsel--imenu-candidates): Specialize python-mode, Basil L. Contovounesios, 2022/09/11
- [elpa] externals/ivy e322890809 05/10: ivy.el (ivy-occur-flush-lines): Add, Basil L. Contovounesios, 2022/09/11
- [elpa] externals/ivy fa2f99bdc6 06/10: Fix for issue #2805 by using company-finish on counsel-company., Basil L. Contovounesios, 2022/09/11
- [elpa] externals/ivy 2cfccf44a8 07/10: Fix company-prefix and company-common when using counsel-company., Basil L. Contovounesios, 2022/09/11
- [elpa] externals/ivy d9c2053316 10/10: Merge branch 'master' into externals/ivy, Basil L. Contovounesios, 2022/09/11
- [elpa] externals/ivy e9c0fb953d 09/10: Clean up compatibility of recent changes,
Basil L. Contovounesios <=
- [elpa] externals/ivy 88715a5e1e 04/10: counsel.el (counsel-git-history): Add, Basil L. Contovounesios, 2022/09/11
- [elpa] externals/ivy 4c370d6677 08/10: Refactored counsel-company simplifying and removing uneeded code., Basil L. Contovounesios, 2022/09/11
- [elpa] externals/ivy ee7f7f8c79 02/10: ivy-overlay.el (ivy-display-function-overlay): Check org offset based on Emacs version, Basil L. Contovounesios, 2022/09/11
- [elpa] externals/ivy b85f7840a2 03/10: counsel.el (counsel-yank-pop-action): Adjust for vterm-mode, Basil L. Contovounesios, 2022/09/11