From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Theodor Thornhill Newsgroups: gmane.emacs.devel Subject: Re: Missing features in c-ts-mode Date: Fri, 17 Feb 2023 10:56:28 +0100 Message-ID: <87fsb4r4xf.fsf@thornhill.no> References: <83wn4iajyy.fsf@gnu.org> <87fsb67pfj.fsf@thornhill.no> <83lekyagwy.fsf@gnu.org> <87a61e7n5j.fsf@thornhill.no> <877cwi7mju.fsf@thornhill.no> <83bkluaevv.fsf@gnu.org> <871qmq7l9q.fsf@thornhill.no> <87ilg1qv71.fsf@thornhill.no> <20230217082935.waa7f473dmvbpg3d@Ergus> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13155"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , casouri@gmail.com, emacs-devel@gnu.org To: Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Feb 17 10:57:33 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pSxUi-0003Bf-LQ for ged-emacs-devel@m.gmane-mx.org; Fri, 17 Feb 2023 10:57:32 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSxTp-0007rF-5B; Fri, 17 Feb 2023 04:56:37 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pSxTn-0007r2-Bs for emacs-devel@gnu.org; Fri, 17 Feb 2023 04:56:35 -0500 Original-Received: from out2.migadu.com ([188.165.223.204]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pSxTl-0007IM-Cm; Fri, 17 Feb 2023 04:56:35 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1676627790; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=d+slPUZGB7BOMpnyo5+60qPojEsN+amueEAIboVlWC8=; b=ItkV7JNWNpyOC8uxwHNTJTudfwglqMmfRFkxUpnz8IddMw0EthEgecSNqjbTOMff/1ExFy uyweaD1/Bc5tfDjNzcxbvK5RE77QoL4MSAGP8Mt4+UgXdoNT/O28mDE9VwIK7oWrT6eQIG XW9x8pGMgp9xIIDHxENY0+cVbIQOX21eG7PHGXXt6O5hQTGxjBOin5LZDTI/X4NTC5xLZv xx1je4ZcFx9aEJdmuw4CGRN5LW5YEooEiqCVtY4Dw1qF1ZyGy9LcsgdXGQX0Nz1RRxs/07 If9UY7BKrBYK8NUfhELNoRuHzJFIWaytwl8jY7YeHpW7YBlphJSwIaxbcV2f8g== In-Reply-To: <20230217082935.waa7f473dmvbpg3d@Ergus> X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=188.165.223.204; envelope-from=theo@thornhill.no; helo=out2.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:303459 Archived-At: Ergus writes: > Hi Theodor: > > Sorry to bother, but I have a question about commit: > > f1f571e Add electric indent for preproc directives > > c-mode had by default the [0] indentation for #preprocesor directives, > but there are some use cases where that behavior is not desired (i.e > #pragma). > > Actually there are even multi-line pragmas when using OpenMP > > int main() > { > #pragma parallel for first private(x) \ > shared(y) etc > for (...) { > .... > } > } > > In this case the pragma in column zero is very confusing. Alan added a > new mode (c-toggle-cpp-indent-to-body) which worked around this issue a > few years ago. I don't if it is possible to enable similar behavior with > your change? Is is? > > Best, > Ergus > It's absolutely possible, but IMO that sounds like an improvement for emacs 30, maybe? Just create a bug-report and I can take it from there? Theo