From f1d01ba24f462dc943a93328724c12cf8c2e7816 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Thu, 15 Sep 1994 22:19:50 +0000 Subject: [PATCH] (kill-new): Call menu-bar-update-yank-menu only if that function is defined. --- lisp/simple.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/simple.el b/lisp/simple.el index e05c1e7af8d..1e30d146c16 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -998,7 +998,8 @@ Set the kill-ring-yank pointer to point to it. If `interprogram-cut-function' is non-nil, apply it to STRING. Optional second argument REPLACE non-nil means that STRING will replace the front of the kill ring, rather than being added to the list." - (menu-bar-update-yank-menu string (and replace (car kill-ring))) + (and (fboundp 'menu-bar-update-yank-menu) + (menu-bar-update-yank-menu string (and replace (car kill-ring)))) (if replace (setcar kill-ring string) (setq kill-ring (cons string kill-ring)) -- 2.39.5