branch: externals/phps-mode
commit 9d5a82910a0bd257d25426a893dee4a26440ad03
Author: Christian Johansson <[email protected]>
Commit: Christian Johansson <[email protected]>
Garbage collection fix for parser generation
---
admin/phps-mode-automation.el | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/admin/phps-mode-automation.el b/admin/phps-mode-automation.el
index 4d1330c054..015823333a 100644
--- a/admin/phps-mode-automation.el
+++ b/admin/phps-mode-automation.el
@@ -25,6 +25,13 @@
(if (fboundp 'parser-generator-lr-export-to-elisp)
(progn
+ ;; Emacs 29.1
+ ;; Batch jobs that are supposed to run for a long time should
+ ;; adjust the limit back down to 0.1
+ (setq
+ gc-cons-percentage
+ 0.1)
+
(let* ((global-declaration
(phps-mode-automation-parser-generator--global-declaration))
(attributes