From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: `open-paren-in-column-0-is-defun-start` (was: cc-mode fontification feels random) Date: Wed, 9 Jun 2021 22:15:37 +0700 Message-ID: References: <86a85d26-75c0-e4a3-e8d3-244c5346dd3a@dancol.org> <83r1hehnz9.fsf@gnu.org> <83lf7mhl3n.fsf@gnu.org> <73ff18bf-66dc-7d7a-a0db-8edc2cdceba8@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5238"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Richard Stallman , Emacs developers , martin rudalics , Alan Mackenzie , Eli Zaretskii , Daniel Colascione To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jun 09 17:21:54 2021 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 1lr01g-0000zI-0r for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Jun 2021 17:21:52 +0200 Original-Received: from localhost ([::1]:38678 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lr01d-0003Ji-W8 for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Jun 2021 11:21:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49886) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqzvu-0000tq-IK for emacs-devel@gnu.org; Wed, 09 Jun 2021 11:15:55 -0400 Original-Received: from mail-ua1-x930.google.com ([2607:f8b0:4864:20::930]:39517) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lqzvq-0007O4-3A; Wed, 09 Jun 2021 11:15:54 -0400 Original-Received: by mail-ua1-x930.google.com with SMTP id c10so71219uan.6; Wed, 09 Jun 2021 08:15:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=gtHedbRi7MLchyoDyospXecEt4OSbH++nMD7KMrmdkA=; b=kVEJhLnR4DDSsCfsjKxRfwtF0mbrOBi/BhYrK8qD7araLcT6fVWfm0d0nKhZ0XwHob l6XLqaVeaEfWGp3rvkGsuBHVZysCC/d62qYuo0WF3vIY0xWHmXpdo9/XQTrZecaheyR0 AoS3/1vddQ2ai0vEFJzyrlPPL6xQQyFedslCUTL7+LwqoctG7O85oRm0dzgEuV54x5Lg STOzajmj6rulGIm2NEHgMzr2/roNDBbtfklosWEm6nJSPKKCBR8Fk1oIL7gjOP/uEPED QqctKVFpEhdRCteOXFSHZFlsUynX07XEL+rB0urKLXjieuQbw0qMpkIvvhw4W15x1SB0 B4zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=gtHedbRi7MLchyoDyospXecEt4OSbH++nMD7KMrmdkA=; b=p9BkOMdAKFlGyuNG+k4hSdUrBb40guSU1g/lQ4/SjgtGIAVOv2X4lul8A6aQs+LfXA vICQIXZ72lyGgVOC5TjKmcRTCN3AXvE/dROY8b0Vxgn7JkuNQGlB1V/SNtUE+QjQ3SY1 32Np/TCtRUC1z/61vZG99WbcWkht7WZQstGI4+WkmEy4aZkTZbf0PI2rVf4NghwF5QkV +yom+5ExGq8PhrAI4gCpnGARCfXhXSr1xdoSicXDcITuTQsFPmYW6zIRzok0Qh8i+vpW MHehTdmp1pXcCL6OdLs115QjOgaTAsAjq3lfWQCXr+KH3eApih/8YMEn/QSwRkV8YRQh lSNA== X-Gm-Message-State: AOAM530Ju66boD4DH4RVmAi8T5+z3gHk25RK+YFTcW81bmdkyFtkJ3rH PbIyVqzOcUSt4xL4ATv1PBPQiDXeGqInoQVtycs= X-Google-Smtp-Source: ABdhPJx6gWAKjUtOQbXz+Uct5XUYGIJ7NNX7loJ4U3TNUDEqeGu8iMJk9xxJOu5zpPhF68YDXESamr6TQhY0qG/ERBU= X-Received: by 2002:ab0:2b15:: with SMTP id e21mr228549uar.102.1623251748449; Wed, 09 Jun 2021 08:15:48 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::930; envelope-from=yurivkhan@gmail.com; helo=mail-ua1-x930.google.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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.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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:270598 Archived-At: On Wed, 9 Jun 2021 at 20:16, Stefan Monnier wrot= e: > I see two problems with `open-paren-in-column-0-is-defun-start` (opic0ids= ): [=E2=80=A6] > - this convention is imposed on top of the definition of the language, > so it's like editing "C with the opic0ids convention" rather than > editing "C". This works fine if your file is indeed written in "C > with the opic0ids convention", but no so well otherwise. And that > convention is specific to Emacs The convention of not indenting lines that start a function, or, at least, an important landmark in the code, is also supported by =E2=80=98dif= f --show-c-function=E2=80=99 and =E2=80=98git show-function=E2=80=99.