From 1c52bf243458c0cbe47c97aa23a8170cd8df607b Mon Sep 17 00:00:00 2001 From: Diego Sevilla Ruiz Date: Tue, 26 Nov 2024 10:29:37 +0100 Subject: [PATCH] Allow "backquote" to be used as a substitute for ` in backquote expansion As per an error reported years ago: https://stackoverflow.com/a/17395105/62365 I'm adding the fixed version tested. It just equals using `backquote` instead of the actual backquote symbol '\` in all situations, even when expanded by this backquote function. --- lisp/emacs-lisp/backquote.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/backquote.el b/lisp/emacs-lisp/backquote.el index 6917128d70a7..c48b376dc385 100644 --- a/lisp/emacs-lisp/backquote.el +++ b/lisp/emacs-lisp/backquote.el @@ -170,7 +170,8 @@ LEVEL is only used internally and indicates the nesting level: (error "Multiple args to ,@ are not supported: %S" s) (cons 2 (nth 1 s))) (backquote-delay-process s (1- level)))) - ((eq (car s) backquote-backquote-symbol) + ((or (eq (car s) backquote-backquote-symbol) + (eq (car s) 'backquote)) (backquote-delay-process s (1+ level))) (t (let ((rest s)