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)

Copyright-paperwork-exempt: yes
scratch/igc
Charalampos Mitrodimas 2024-05-04 22:45:15 +03:00 committed by Eli Zaretskii
parent 751e21af42
commit e0ca21f9fb
1 changed files with 2 additions and 2 deletions

View File

@ -233,8 +233,8 @@ templates."
(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.