From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: c-mode pragma and preproc Date: Thu, 19 Dec 2019 15:07:38 +0100 Message-ID: <20191219140738.q5zdmily5ubwnmg3@Ergus> References: <20191219140738.q5zdmily5ubwnmg3.ref@Ergus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="269944"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 19 15:21:44 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ihwgR-00186R-TZ for ged-emacs-devel@m.gmane.org; Thu, 19 Dec 2019 15:21:44 +0100 Original-Received: from localhost ([::1]:42406 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ihwgQ-0006YU-BK for ged-emacs-devel@m.gmane.org; Thu, 19 Dec 2019 09:21:42 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41906) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ihwTH-0002wE-7b for emacs-devel@gnu.org; Thu, 19 Dec 2019 09:08:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ihwTF-0002Ti-F2 for emacs-devel@gnu.org; Thu, 19 Dec 2019 09:08:06 -0500 Original-Received: from sonic304-9.consmr.mail.bf2.yahoo.com ([74.6.128.32]:44150) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ihwTF-0002Fh-1G for emacs-devel@gnu.org; Thu, 19 Dec 2019 09:08:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1576764483; bh=2cPRqlLxWRa9Etv7wavz7hGIpipQtZ2z/G8JI+G0nTA=; h=Date:From:To:Cc:Subject:References:From:Subject; b=qwiIGnqWYtf8k9aGgTZAXp4wy0IG0K6nyHNtJk0GPQIOd2xhqiN0VkvEfC+iVJP6pHXJaeiDEUIXB+ETkrG2U0EE8f5/MdlQXI94XZ+FnzmTj59H4Qb8Fze0VHQNxTRycTX6APtpK+2S2WWKJdP/KCRDA9c5rlkiFJ9yeUX2yk5vQZ91KQVzM8ZiSkM/ajbCnBt15aeRv8YCViMP715WcQADY7xAgVODf5PfX1bd3oKGQnozDGUA9F5I1yQisIgGwJqguEo+1ky8+chL0auvduW7Cb+0cYGfL/hmGiIzkmIN78xL6r+E6toHyctcibFtcndrBR5oyQDJUZSPZ98pcw== X-YMail-OSG: 378ppPcVM1l_BV2BxeqYZ09gOVN3xgeTelyLAy3LsjZodhjf2FYiB4hdQE_pkNy YKUuzJ_VIPUH9wzgsYvx2ARW.xSEYCb8Jum.CoKaMWpkmlimCc7DcV4fZ7W91BlPk3IZkOxARVsM Swddep0qMHrdiyPd54F_bBEtvhmg3f9Un4y9MF_sBJa2GCDrdIbVZJBmjWY1YGmMHUDDFchw3trX BePsppPgfaMBKurlrlXumMce6qly_fPMtKkD6K02QY0gkxXRh3ilRUKvVze.pJq_QzfN_pPR.InP aB.DGuG.cgbGg9hBf1aUIUOBICFbC.BGSon8jj3Xl4Wjq4ru14RhJNbwM0wc3x8ZpdsOHlOE30cD YgG_hexWDzQ0w0MZYdr1drYBYlzfuYnEiXwa4G0NkMFvoEyAvA2MxzT.o_z90h.pDJ8qgibKNE1m qOFJ7CC8o2Tbyw_A8CvL63CMzTEHKAHfW7mVWz.phJroc0GfO7M5Vu5yVi7Fduu6Mwg2DLVEgey8 JjTZcr607D6LQfSvjwsV5gTSVQzbYiJAYFHulJgrGXEtmKjvyVFq53.2rOnjOHwWzNHdXuuaPyPU KLzT1NzIal.hodTSm9o2.1WYLfcGfHEowaOweL3X9pijP02FIYmdNwVvo6lzSLYHZh9DkEqIimPK 3RMLcUF2Rr3jixtraLZoIC9EcYQgOrsN8xg9sJKjXzVw8LMWDHU7eoCz5_xYjf1byh5FHYK6v1bK J7ZSlXHPKPKUAXZHlkUnSUhLdGNG5dVEK8hcqyXJqliBELC7aimCgyYf9qpb9qUyLBtanxIY7WRQ J1diG0SyV32KsxJfDMJ5Ngw3DTAbHcLjRre8U5gEdL Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.bf2.yahoo.com with HTTP; Thu, 19 Dec 2019 14:08:03 +0000 Original-Received: by smtp401.mail.ir2.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID ff38e94ef58dc68fe9aa475da73f67b6; Thu, 19 Dec 2019 14:07:59 +0000 (UTC) Content-Disposition: inline X-Mailer: WebService/1.1.14873 hermes Apache-HttpAsyncClient/4.1.4 (Java/1.8.0_181) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 74.6.128.32 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:243473 Archived-At: Hi Alan: Recently I have been noticing that many "modern" programming models (Open-MP, OmpSs, OpenACC, programming for Intel Xeon Phi) use extensively the #pragma sentence. But in general, while the pre-processor sentences are usually in column zero ([0]), the #pragma, on the other hand, are preferred to be aligned with text (0). They are more readable that way. Is it possible to add a syntactic symbol to distinguish pragmas from other preprocessor symbols? (actually pragmas are not pre-processor sentences in general) I think that the rest of the rules will not change but probably we need analogs for: cpp-macro and cpp-macro-cont. In general (AFAIK) the pragmas do not create regions inside like a define... so we don't need that either. Thanks in advance, Ergus