How can I change the stack size available for Emacs?

When I run the any-c-etags-select command with a relatively large TAGS file, I always get an error message, such as a stack overflow in regular expression matching inside the Emacs mini-buffer. A *Messages*log message appears in the buffer as follows:

File TAGS is large (9MB), really open? (y or n) 
Loading tag file...70%
and: Qaru in regexp matcher

Emacs doesn't seem to have enough stack size to read the entire tag data. Is there a way to increase the stack size for Emacs?

I tried this with two versions of Emacs:

  • Emacs for Mac OS X 24.1 (Universal Binary)
  • Emacs for Mac OS X 23.4 (Universal Binary)

But both of them showed the same error message.

Thanks in advance!

+5
source share
2 answers

Perhaps workarounds will help you:

: [\ 0-\377 [: nonascii:]] * " regexp matcher" , , > 34k.

... /...

, , . $DEVELOP, , , TAGS Emacs vi.

+1

, 2- , . :

$ git diff
diff --git a/lisp/anything/anything-config.el b/lisp/anything/anything-config.el
index 23f00e5..cee5e13 100644
--- a/lisp/anything/anything-config.el
+++ b/lisp/anything/anything-config.el
@@ -7001,7 +7001,7 @@ If not found in CURRENT-DIR search in upper directory."
                        (anything-aif (string-match "\177" i)
                            (substring i 0 it)
                          i))
-           do (cond ((and elm (string-match "^\\(.+\\),[0-9]+" elm))
+           do (cond ((and elm (< (length elm) 2000) (string-match "^\\(.+\\),[0-9]+" elm))
                      (setq fname (match-string 1 elm)))
                     (elm (setq cand (concat fname ": " elm)))
                     (t (setq cand nil)))

, , .

0

All Articles