emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/doc-show-inline 8b457d565d 06/12: Fix an error with C/C++


From: ELPA Syncer
Subject: [nongnu] elpa/doc-show-inline 8b457d565d 06/12: Fix an error with C/C++ raising an error during syntax highlighting
Date: Thu, 7 Jul 2022 11:58:57 -0400 (EDT)

branch: elpa/doc-show-inline
commit 8b457d565d352c863197c42d7a0cd3b6ae920453
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>

    Fix an error with C/C++ raising an error during syntax highlighting
    
    Always return the bounds from the c-context-expand-fl-region advice.
---
 changelog.rst      | 2 ++
 doc-show-inline.el | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/changelog.rst b/changelog.rst
index f33937fe72..fc7fb07572 100644
--- a/changelog.rst
+++ b/changelog.rst
@@ -3,6 +3,8 @@
 Change Log
 ##########
 
+- 2021-12-15
+  - Fix error with C/C++ range checking causing an error in font locking.
 
 - 2021-12-10
   - Include leading white-space to properly align indented multi-line 
doc-strings.
diff --git a/doc-show-inline.el b/doc-show-inline.el
index 3af7030352..a96b409146 100644
--- a/doc-show-inline.el
+++ b/doc-show-inline.el
@@ -809,8 +809,8 @@ XREF-BACKEND is the back-end used to find this symbol."
   "Advice for `c-context-expand-fl-region' (OLD-FN),extract the region (BEG 
END)."
   (let ((bounds (funcall old-fn beg end)))
     (when (bound-and-true-p doc-show-inline-mode)
-      (doc-show-inline--idle-font-lock-region-pending (car bounds) (cdr 
bounds))
-      bounds)))
+      (doc-show-inline--idle-font-lock-region-pending (car bounds) (cdr 
bounds)))
+    bounds))
 
 (defun doc-show-inline--jit-or-gapless-hack-is-needed ()
   "Check if any buffers need this hack."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]