emacs-devel
[Top][All Lists]
Advanced

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

cc-compat fix


From: Po Lu
Subject: cc-compat fix
Date: Tue, 05 Oct 2021 09:25:04 +0800

This keeps cc-compat from failing, though I have no idea if it still
works entirely.  It seems to.

diff --git a/lisp/obsolete/cc-compat.el b/lisp/obsolete/cc-compat.el
index 037a8e9e87..2c383d31c8 100644
--- a/lisp/obsolete/cc-compat.el
+++ b/lisp/obsolete/cc-compat.el
@@ -80,7 +80,7 @@ c-continued-brace-offset
 
 ;; these offsets are taken by brute force testing c-mode.el, since
 ;; there's no logic to what it does.
-(let* ((offsets        '(c-offsets-alist .
+(let* ((offsets        '((c-offsets-alist .
                    ((defun-block-intro     . cc-block-intro-offset)
                     (statement-block-intro . cc-block-intro-offset)
                     (defun-open            . 0)
@@ -95,7 +95,7 @@ c-continued-brace-offset
                     (case-label            . c-label-offset)
                     (access-label          . c-label-offset)
                     (label                 . c-label-offset)
-                    ))))
+                    )))))
   (c-add-style "BOCM" offsets))
 
 

reply via email to

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