branch: elpa/cycle-at-point commit 4637a9288028f3eaa31cfa9658cfe78f423b16cf Author: Campbell Barton <ideasma...@gmail.com> Commit: Campbell Barton <ideasma...@gmail.com>
Cleanup: use string-replace New function in emacs-28.1 --- cycle-at-point-find-integer.el | 4 ++-- cycle-at-point.el | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cycle-at-point-find-integer.el b/cycle-at-point-find-integer.el index cbfaba194d..bb6bd171d7 100644 --- a/cycle-at-point-find-integer.el +++ b/cycle-at-point-find-integer.el @@ -1,7 +1,7 @@ ;;; cycle-at-point-find-integer.el --- Integer finder -*- lexical-binding: t -*- ;; URL: https://gitlab.com/ideasman42/emacs-cycle-at-point ;; Version: 0.1 -;; Package-Requires: ((emacs "27.1")) +;; Package-Requires: ((emacs "28.1")) ;; SPDX-License-Identifier: GPL-3.0-or-later ;;; Commentary: @@ -131,7 +131,7 @@ Optional keyword ARGS: ;; Strip prefix, also remove "_" (let ((text-eval (substring text (- (point) pt-start) nil))) (when underscore-sep - (setq text-eval (replace-regexp-in-string "_" "" text-eval))) + (setq text-eval (string-replace "_" "" text-eval))) (let ((num (string-to-number text-eval base))) (dolist (base-data (list (cons 16 "0x") (cons 10 "") (cons 8 "0o") (cons 2 "0b"))) diff --git a/cycle-at-point.el b/cycle-at-point.el index 1761d66e33..f19e6bf909 100644 --- a/cycle-at-point.el +++ b/cycle-at-point.el @@ -8,7 +8,7 @@ ;; Version: 0.1 ;; Created: 2022-02-05 ;; Keywords: convenience -;; Package-Requires: ((emacs "27.1") (recomplete "0.2")) +;; Package-Requires: ((emacs "28.1") (recomplete "0.2")) ;; This file is NOT part of GNU Emacs.