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 19:43:57 +0100 Message-ID: <87k00g16aa.fsf@thornhill.no> References: <83bkluaevv.fsf@gnu.org> <871qmq7l9q.fsf@thornhill.no> <87ilg1qv71.fsf@thornhill.no> <20230217082935.waa7f473dmvbpg3d@Ergus> <87fsb4r4xf.fsf@thornhill.no> <83k00g1o0k.fsf@gnu.org> <20230217163747.yt5kizq6e4vqmqqe@Ergus> <437CB8E1-1BBA-42A8-BADE-9F729A7AC5CA@thornhill.no> <20230217180228.nzm3wsnxdkjswxiy@Ergus> <2544C83B-0E08-4E67-9349-361603871946@thornhill.no> <20230217182707.bsiwlesafcvkk46u@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="25055"; 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 19:45:00 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 1pT5j9-0006KC-KZ for ged-emacs-devel@m.gmane-mx.org; Fri, 17 Feb 2023 19:44:59 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pT5iK-0003NG-73; Fri, 17 Feb 2023 13:44:08 -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 1pT5iI-0003Mu-BF for emacs-devel@gnu.org; Fri, 17 Feb 2023 13:44:06 -0500 Original-Received: from out0.migadu.com ([2001:41d0:2:267::]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pT5iF-0003x1-0w; Fri, 17 Feb 2023 13:44:06 -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=1676659439; 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=ynGE2d3vghNSuhiChOl41Io50BvHn+cgo8llf0BdNBE=; b=dSD3slVU/5UbhtT5vF3Snc8FOwGLBF/3/0qm5ndWYJ+qYhufw4FQaRfVD+X8Z9o+7wh5/Z qCIPpbnlm1LaEuUHS8okgRTm7KtTWXS0X2VMr1siFG+6azDq/ngSgU36Cw1+n7syp4SQN7 ed42v//Wx6O5DTsGFJQMzGrK0EnNvcA1HOV/awYKwovsebjfuxH6Um7alSl6FZ7ongPEJ4 PVdT2vmHjJrttlAEY397XTCjnWoBMTdPJbTL9vddvcO4JC2QPdU61xqTMNRtW5qqudm0VY DCsgcM5dMdOuWuu0yGfC/iyEF+tmMYxEDdMTxNQDvQJbHiaqe7TvZPRSmRpDoA== In-Reply-To: <20230217182707.bsiwlesafcvkk46u@Ergus> X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=2001:41d0:2:267::; envelope-from=theo@thornhill.no; helo=out0.migadu.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, 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:303512 Archived-At: Ergus writes: > On Fri, Feb 17, 2023 at 07:10:28PM +0100, Theodor Thornhill wrote: >> >> >>On 17 February 2023 19:02:28 CET, Ergus wrote: >> >>Yep! Is there any particular style? Would pragmas be indented from the parent scope, and the next line after it be at the same level as the pragma? >> >>Theo >> > > Hi: > > Yes, pragmas will be generally indented from the parent scope, > continuation lines are usually in the same level or one level more, > > And then everything continues as usual: > > These are the common use cases I know so far: > > // outline pragmas > #pragma bla > int myfunction1() > {...} > > int main() > { > // inline pragmas for functions > #pragma bla bla > somefunction1() > > // inline pragmas for function with continuation one level more > #pragma bla bla\ > the continuation of pragma > somefunction2() > > // inline pragma for a block of code > #pragma bla2 > { > this is a block as usual > > // nested pragma > #pragma mynestedpragma > bla() > } > } > > Best and thanks, > Ergus Great, thanks! I think I have a good idea about what you want, and I'll see if I can come up with something. Theo