From a6023c8a8069178965e88d9dc9c0a81f811cbe46 Mon Sep 17 00:00:00 2001 From: Charalampos Mitrodimas Date: Sat, 4 May 2024 22:45:15 +0300 Subject: [PATCH] Fix srecode-all-template-hash always returning nil The issue was that the function always returned nil because the closing parentheses were in the wrong position. This meant that the function couldn't give back the data it was supposed to, making the whole srecode system not work properly. By moving the parentheses to the correct place, the function now returns a hash table with all the templates it finds. * lisp/cedet/srecode/find.el (srecode-all-template-hash): Adjusted the position of closing parentheses so that the mhash variable is returned correctly. (Bug#70765) --- lisp/cedet/srecode/find.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/cedet/srecode/find.el b/lisp/cedet/srecode/find.el index 41030aa6944..db6b3988562 100644 --- a/lisp/cedet/srecode/find.el +++ b/lisp/cedet/srecode/find.el @@ -233,8 +233,8 @@ srecode-all-template-hash (when (or (not predicate) (funcall predicate temp)) (puthash key temp mhash))) - (oref tab namehash)))) - mhash)))) + (oref tab namehash)))))) + mhash)) (defun srecode-calculate-default-template-string (hash) "Calculate the name of the template to use as a DEFAULT. -- 2.39.3 (Apple Git-146)