A buffer with HTML comment like <!--more-->
at EOB (no trailing newline!) causes error: (wrong-type-argument integer-or-marker-p nil)
That error should not happen.
Actual BehaviorError happens.
Steps to Reproduce(see the following post in this thread)
BacktraceI get this after having the markdown mode file buffer contain just <!--more-->
. I have require-final-newline
set to nil
, go to the end of that line, do C-d
, then save (C-x C-s
), and then M-x revert-buffer
to get this.
Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
remove-text-properties(nil 12 (markdown-tilde-fence-begin nil markdown-tilde-fence-end nil markdown-fenced-code nil markdown-yaml-metadata-begin nil markdown-yaml-metadata-end nil markdown-yaml-metadata-section nil markdown-gfm-block-begin nil markdown-gfm-block-end nil markdown-gfm-code nil markdown-list-item nil markdown-pre nil markdown-blockquote nil markdown-hr nil markdown-comment nil markdown-heading nil markdown-heading-1-setext nil markdown-heading-2-setext nil markdown-heading-1-atx nil markdown-heading-2-atx nil markdown-heading-3-atx nil markdown-heading-4-atx nil markdown-heading-5-atx nil markdown-heading-6-atx nil markdown-metadata-key nil markdown-metadata-value nil markdown-metadata-markup nil))
markdown-syntax-propertize-comments(6 12)
markdown-syntax-propertize-comments(1 12)
markdown-syntax-propertize(1 12)
markdown-font-lock-extend-region-function(12 12 1)
run-hook-with-args(markdown-font-lock-extend-region-function 12 12 1)
jit-lock-after-change(12 12 1)
delete-char(1)
org-delete-char(1)
funcall-interactively(org-delete-char 1)
call-interactively(org-delete-char nil nil)
command-execute(org-delete-char)
Software Versions
/cc @zzamboni
This issue originated from kaushalmodi/ox-hugo#152.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4