alexott / muse

Emacs MUSE

Home Page:https://gna.org/projects/muse-el/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Muse cannot publish files larger than 48KB

shackra opened this issue · comments

I have discovered that with files larger than 48KB, muse-pubish-this-file hangs Emacs and use almost all the RAM of my laptop (4GB). This RAM is not freed unless one close Emacs.

I workaround could be splitting the file by chapters instead of putting the entire book in one file, however I don't know if this will work for chapters that are fairly large.

Here is a Backtrace that I got from executing the command and then canceling with C-g:

Debugger entered--Lisp error: (quit)
  looking-at("^\\(<\\(/?\\)quote>\\)")
  #[(indent) "\301 \210\302\225b\210`dW\205�\303!?\207" [quote-regexp muse-forward-paragraph 0 looking-at] 2]("[[:blank:]]+")
  muse-publish-surround-text("<para>" "</para>" #[(indent) "\301 \210\302\225b\210`dW\205�\303!?\207" [quote-regexp muse-forward-paragraph 0 looking-at] 2] nil nil nil "^\\(<\\(/?\\)quote>\\)")
  muse-publish-quote-tag(44306 #<marker at 5860133 in  *muse-temp*>)
  apply(muse-publish-quote-tag (44306 #<marker at 5860133 in  *muse-temp*>))
  muse-publish-markup-tag()
  muse-publish-markup("en donde dice la biblia que" ((1000 "\\(\\`\n+\\|\n+\\'\\)" 0 "") (1100 "[[:blank:]]+$" 0 "") (1200 "\\`#\\([a-zA-Z-]+\\)\\s-+\\(.+\\)\n+" 0 directive) (1250 "^;\\(?:[[:blank:]]+\\(.+\\)\\|$\\|'\\)" 0 comment) (1300 muse-tag-regexp 0 tag) (1400 muse-explicit-link-regexp 0 muse-publish-mark-link) (1600 "\\(^\\|[-[[:blank:]<('`\"\n]\\)\\(=[^=[:blank:]\n]\\|_[^_[:blank:]\n]\\|\\*+[^*[:blank:]\n]\\)" 2 word) (1700 "^\\(\\*+\\)\\s-+" 0 heading) (1800 "\\.\\.\\.\\." 0 enddots) (1850 "\\.\\.\\." 0 dots) (1900 "^----+" 0 rule) (1950 "~~" 0 no-break-space) (2000 "^Footnotes:?\\s-*" 0 fn-sep) (2100 "\\[\\([1-9][0-9]*\\)\\]" 0 footnote) (2200 "^[[:blank:]]*\\(\\([^\n[:blank:]].*?\\)?::\\(?:[[:blank:]]+\\|$\\)\\|[[:blank:]]-[[:blank:]]*\\|[[:blank:]][0-9]+\\.[[:blank:]]*\\)" 0 list) (2300 "^[[:blank:]]*\\+\\(-*\\+\\)+[[:blank:]]*\n\\(\\([[:blank:]]*|\\(.*|\\)*[[:blank:]]*\n\\)+\\([[:blank:]]*\\+\\(-*\\+\\)+[[:blank:]]*\\)\\(\n\\|\\'\\)\\)+" 0 table-el) (2350 "\\(\\([[:blank:]]*\n\\)?\\(\\(?:.*[[:blank:]]+\\(|+\\)\\(?:[[:blank:]]\\|$\\).*\\|[[:blank:]]*|[-+]+|[[:blank:]]*\\)\\(?:\n\\|\\'\\)\\)\\)+" 0 table) (2400 "^\\([[:blank:]]+\\).+" 0 quote) (2500 "\\(^\\|[[:blank:]]*\\)---?\\($\\|[[:blank:]]*\\)" 0 emdash) (2600 "^[[:blank:]]*> " 0 verse) (2700 "^\\(\\W*\\)#\\(\\S-+\\)\\s-*" 0 anchor) (2900 muse-explicit-link-regexp 0 link) (3000 muse-url-regexp 0 url) (3500 "\\([^[]\\)[-a-zA-Z0-9._]+@\\([-a-zA-z0-9_]+\\.\\)+[a-zA-Z0-9]+" 0 email) (10000 "\\(\\(\n\\(?:[[:blank:]]*\n\\)*\\([[:blank:]]*\n\\)\\)\\|\\`\\s-*\\|\\s-*\\'\\)" 3 muse-docbook-markup-paragraph)))
  muse-publish-markup-region(1 78473 "en donde dice la biblia que" ("docbook" :suffix muse-docbook-extension :regexps muse-docbook-markup-regexps :functions muse-docbook-markup-functions :strings muse-docbook-markup-strings :specials muse-xml-decide-specials :before-end muse-docbook-munge-buffer :after muse-docbook-finalize-buffer :header muse-docbook-header :footer muse-docbook-footer :browser find-file))
  muse-publish-markup-buffer("en donde dice la biblia que" ("docbook" :suffix muse-docbook-extension :regexps muse-docbook-markup-regexps :functions muse-docbook-markup-functions :strings muse-docbook-markup-strings :specials muse-xml-decide-specials :before-end muse-docbook-munge-buffer :after muse-docbook-finalize-buffer :header muse-docbook-header :footer muse-docbook-footer :browser find-file))
  byte-code("rq\210\306 !\210\307\310!\210\n\203�\311 \210\312\313\314  !\f\"\210)\315
!\203,�\316\317\f   
%\210)\306\207" [temp-buffer file muse-publish-enable-local-variables muse-inhibit-before-publish-hook style output-path muse-insert-file-contents run-hooks muse-before-publish-hook hack-local-variables t muse-publish-markup-buffer muse-page-name muse-write-file muse-style-run-hooks :final target] 6)
  muse-publish-file("/home/jorge/Documentos/en donde dice la biblia que.muse" ("docbook" :suffix muse-docbook-extension :regexps muse-docbook-markup-regexps :functions muse-docbook-markup-functions :strings muse-docbook-markup-strings :specials muse-xml-decide-specials :before-end muse-docbook-munge-buffer :after muse-docbook-finalize-buffer :header muse-docbook-header :footer muse-docbook-footer :browser find-file) "/home/jorge/Documentos/" nil)
  muse-publish-this-file(("docbook" :suffix muse-docbook-extension :regexps muse-docbook-markup-regexps :functions muse-docbook-markup-functions :strings muse-docbook-markup-strings :specials muse-xml-decide-specials :before-end muse-docbook-munge-buffer :after muse-docbook-finalize-buffer :header muse-docbook-header :footer muse-docbook-footer :browser find-file) "/home/jorge/Documentos/" nil)
  call-interactively(muse-publish-this-file record nil)
  command-execute(muse-publish-this-file record)
  execute-extended-command(nil "muse-publish-this-file")
  call-interactively(execute-extended-command nil nil)
  command-execute(execute-extended-command)

I know this awesome package have no activity since 2010, but, I'm making the bug report anyway.

I find out that this problem is caused by the <quote> tag not being able to get exported to docbook.