From 7cb7cea5d0048fe92477c06e116e81559ec2aa8e Mon Sep 17 00:00:00 2001 From: Alexander Miller Date: Wed, 30 Aug 2023 21:22:22 +0200 Subject: [PATCH] [Compatibility] Disable context-menu-mode warnings. --- src/elisp/treemacs-compatibility.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/elisp/treemacs-compatibility.el b/src/elisp/treemacs-compatibility.el index d5c5cdda..add0baf4 100644 --- a/src/elisp/treemacs-compatibility.el +++ b/src/elisp/treemacs-compatibility.el @@ -150,7 +150,8 @@ width of the new window when the treemacs window is visible." (when (fboundp 'context-menu-mode) (defun treemacs--disable-context-menu-mode () (treemacs-run-in-all-derived-buffers - (setq-local context-menu-functions nil))) + (with-no-warnings + (setq-local context-menu-functions nil)))) (add-hook 'context-menu-mode-hook 'treemacs--disable-context-menu-mode)) (defun treemacs-load-all-the-icons-with-workaround-font (font)