Skip to content

Commit

Permalink
Try to calm down byte-compiler in Emacs 28.1 AND Emacs 29.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Zawada authored and Tobias Zawada committed Jan 30, 2024
1 parent 00fd941 commit 497bb8b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions adoc-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -2005,7 +2005,7 @@ START-SRC and END-SRC delimit the actual source code."
(when (fboundp lang-mode)
(let ((string (buffer-substring-no-properties start-src end-src))
(modified (buffer-modified-p))
(adoc-buffer (current-buffer)) int)
(adoc-buffer (current-buffer)))
(remove-text-properties start-block end-block '(face nil adoc-code-block nil font-lock-fontified nil font-lock-multiline nil))
(with-current-buffer
(get-buffer-create
Expand All @@ -2018,7 +2018,8 @@ START-SRC and END-SRC delimit the actual source code."
(insert string))
(unless (eq major-mode lang-mode) (funcall lang-mode))
(font-lock-ensure)
(cl-loop for int being the intervals property 'face
(cl-loop for int = nil
for int being the intervals property 'face
for pos = (car int)
for next = (cdr int)
for val = (get-text-property pos 'face)
Expand Down

0 comments on commit 497bb8b

Please sign in to comment.