-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
font-lock-fontify-buffer crashes on gitit doc #155
Comments
I cannot reproduce this issue on Emacs 24.5 and development Emacs. Can you reproduce this issue with latest version ? And could you tell us how to reproduce this issue in more detail ?
|
@syohex I just tried again and didn't get the error. However, this one (as used by (font-lock-fontify-region (point-min) (point-max)) Okay when the last line has only three hyphens, but crashes on four. I also fixed the formatting in my issue report above, to clarify that the "More than" and "---" lines are part of the test case. The following Emacs startup code suffices for me to provoke the error: (setq debug-on-error t)
(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t)
(package-initialize)
(require 'markdown-mode)
|
It does seem that there may be some connection to To see the problematic interaction between (setq debug-on-error t)
(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t)
(package-initialize)
(package-install 'markdown-mode)
(package-install 'mmm-mode)
(require 'markdown-mode)
(require 'mmm-mode) To trigger the error, visit the markdown example given above, and do |
Please reopen if you still have problem. |
The following Markdown doc crashes mmm-mode breaks mmm-mode:
More than three hyphens below, and
(font-lock-fontify-buffer)
crashes.----
Note that in gitit pages, meta-data blocks end with three dots, not three hyphens.
I first encountered this issue when using
markdown-mode
withmmm-mode
. I submitted anmmm-mode
issue, but it appears to be independent ofmmm-mode
, and indeed can be triggered byfont-lock-fontify-buffer
.I'm running markdown-mode version 2.1 from MELPA.
Backtrace:
The text was updated successfully, but these errors were encountered: