branch: elpa/d-mode
commit 9443ceae65ba59e5fda2b8c6b3a1607edd75f41e
Author: Dylan Gleason <dgleason8...@gmail.com>
Commit: Dylan Gleason <dgleason8...@gmail.com>

    fix: add `d-forward-decl-or-cast-1` function optional param
    
    Fix broken (as of Emacs 29) call to `d-forward-decl-or-cast-1` advice
    function due to apparent change in `c-forward-decl-or-cast-1` function
    definition specifying an optional `inside-macro` param. See
    'cc-engine.el'. More work may be needed to support the optional
    parameter but for now just get font locking working again.
---
 d-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/d-mode.el b/d-mode.el
index e7ae9b17f7..8969d99623 100644
--- a/d-mode.el
+++ b/d-mode.el
@@ -531,7 +531,7 @@ Evaluate OLD-FORM if the Emacs version is older than 
MIN-VERSION,
 
 ;----------------------------------------------------------------------------
 
-(defun d-forward-decl-or-cast-1 (preceding-token-end context last-cast-end)
+(defun d-forward-decl-or-cast-1 (preceding-token-end context last-cast-end 
&optional inside-macro)
   "D version of `c-forward-decl-or-cast-1'." ;; checkdoc-params: 
(preceding-token-end context last-cast-end)
   ;; (message "(d-forward-decl-or-cast-1 %S %S %S) @ %S" preceding-token-end 
context last-cast-end (point))
 

Reply via email to