From 79cd7e4f42caf3f4477b5e6a372e7572bcb233bd Mon Sep 17 00:00:00 2001 From: Daniel Kraus Date: Fri, 4 Feb 2022 15:52:24 +0100 Subject: [PATCH] Use cl-lib instead of obsolete functions From GNU Emacs 27.1+ incf raises a warning during compilation. Replace with cl-lib. --- go-projectile.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/go-projectile.el b/go-projectile.el index 430f66d..e1f2843 100644 --- a/go-projectile.el +++ b/go-projectile.el @@ -6,7 +6,7 @@ ;; URL: https://github.com/dougm/go-projectile ;; Keywords: project, convenience ;; Version: 0.2.1 -;; Package-Requires: ((projectile "0.10.0") (go-mode "0") (go-eldoc "0.16") (go-rename "0") (go-guru "0") (dash "2.17.0")) +;; Package-Requires: ((cl-lib "0.5") (projectile "0.10.0") (go-mode "0") (go-eldoc "0.16") (go-rename "0") (go-guru "0") (dash "2.17.0")) ;; This file is NOT part of GNU Emacs. @@ -36,6 +36,7 @@ ;;; Code: +(require 'cl-lib) (require 'projectile) (require 'go-eldoc) (require 'go-guru) @@ -208,9 +209,9 @@ When `projectile-project-type' set to `go', GOPATH is checked, calling `go-proje (frame (backtrace-frame index)) (found 0)) (while (not (equal found 2)) - (setq frame (backtrace-frame (incf index))) + (setq frame (backtrace-frame (cl-incf index))) (when (equal t (first frame)) - (incf found))) + (cl-incf found))) (let ((caller (second frame))) (if (and (eq caller 'select-window) (not (go-projectile-directory-gopath-p)))