From: Richard Levitte Date: Fri, 22 Jun 2018 07:33:29 +0000 (+0200) Subject: OpenSSL-II style for emacs: don't indent because of extern block X-Git-Tag: OpenSSL_1_1_1-pre9~245 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8973112884e67feb46384b573db14e62ad18d4cb;p=oweals%2Fopenssl.git OpenSSL-II style for emacs: don't indent because of extern block We don't want an indentation step inside a 'extern "C" {' .. '}' block. Apparently, cc-mode has a c-offsets-alist keyword to allow exactly this. Reviewed-by: Rich Salz Reviewed-by: Matthias St. Pierre (Merged from https://github.com/openssl/openssl/pull/6557) --- diff --git a/doc/openssl-c-indent.el b/doc/openssl-c-indent.el index 38e7a4f39d..59dec44580 100644 --- a/doc/openssl-c-indent.el +++ b/doc/openssl-c-indent.el @@ -54,6 +54,7 @@ (arglist-close . c-lineup-arglist) ; From "gnu" style (inline-open . 0) ; From "gnu" style (brace-list-open . +) ; From "gnu" style + (inextern-lang . 0) ; Don't indent inside extern block (topmost-intro-cont first c-lineup-topmost-intro-cont c-lineup-gnu-DEFUN-intro-cont) ; From "gnu" style )