From ed19c94a1edeb9a02e0c7f93367e0fc134949f73 Mon Sep 17 00:00:00 2001 From: John Practicalli <250870+practicalli-john@users.noreply.github.com> Date: Sun, 6 Mar 2022 16:48:20 +0000 Subject: [PATCH] [space-doc] use cl-return as return is obsolete (#15397) --- CHANGELOG.develop | 1 + layers/+spacemacs/spacemacs-org/local/space-doc/space-doc.el | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.develop b/CHANGELOG.develop index 811294ff1..821fa5428 100644 --- a/CHANGELOG.develop +++ b/CHANGELOG.develop @@ -3088,6 +3088,7 @@ files (thanks to Daniel Nicolai) =org-insert-structure-template= commands (thanks to Andriy Kmit') - Added =ox-asciidoc= as org export backend (thanks to Christian "West" Westrom) - Fix org-roam v2 compatibility (thanks to Alex Kapranoff and Caleb Rogers) +- Fix =space-doc.el= to use cl-return (thanks to practicalli-john) **** Osx - Key bindings: - Added key bindings to use ~command-1..9~ for selecting window diff --git a/layers/+spacemacs/spacemacs-org/local/space-doc/space-doc.el b/layers/+spacemacs/spacemacs-org/local/space-doc/space-doc.el index 97547d177..e2ef515b1 100644 --- a/layers/+spacemacs/spacemacs-org/local/space-doc/space-doc.el +++ b/layers/+spacemacs/spacemacs-org/local/space-doc/space-doc.el @@ -159,7 +159,7 @@ This functions is aimed to be used with `spacemacs-space-doc-modificators'." (kbd-marker (dolist (el org-emphasis-alist) (when (member 'org-kbd el) - (return (car el)))))) + (cl-return (car el)))))) (make-spacemacs--space-doc-cache-struct :marker-face marker-face :btn-marker-face btn-marker-face