emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/embark 84d5f9e7bb 8/8: Merge pull request #534 from phi


From: ELPA Syncer
Subject: [elpa] externals/embark 84d5f9e7bb 8/8: Merge pull request #534 from phikal/master
Date: Sun, 23 Oct 2022 12:57:40 -0400 (EDT)

branch: externals/embark
commit 84d5f9e7bb20ea271c4382dfb978de9c0d854e5b
Merge: e2166946d1 0778e2df13
Author: Omar AntolĂ­n Camarena <omar.antolin@gmail.com>
Commit: GitHub <noreply@github.com>

    Merge pull request #534 from phikal/master
    
    Avoid using 'buffer-local-value' as a generalised variable
---
 embark.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/embark.el b/embark.el
index 568ebe7dff..b45786aedd 100644
--- a/embark.el
+++ b/embark.el
@@ -591,8 +591,9 @@ Meant to be be added to `completion-setup-hook'."
   ;; available in the variable standard-output
   (embark--cache-info standard-output)
   (when (minibufferp completion-reference-buffer)
-    (setf (buffer-local-value 'embark--type standard-output)
-          (completion-metadata-get (embark--metadata) 'category))))
+    (with-current-buffer standard-output
+      (setq embark--type
+            (completion-metadata-get (embark--metadata) 'category)))))
 
 ;; We have to add this *after* completion-setup-function because that's
 ;; when the buffer is put in completion-list-mode and turning the mode



reply via email to

[Prev in Thread] Current Thread [Next in Thread]