From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Indentation of def* Date: Wed, 20 Oct 2021 02:47:01 -0400 Message-ID: References: <878ryw1ptl.fsf@gnus.org> <87czo2lq0d.fsf@gnus.org> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18817"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 20 08:49:33 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 1md5Po-0004gH-W7 for ged-emacs-devel@m.gmane-mx.org; Wed, 20 Oct 2021 08:49:32 +0200 Original-Received: from localhost ([::1]:53380 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1md5Po-0002GC-2r for ged-emacs-devel@m.gmane-mx.org; Wed, 20 Oct 2021 02:49:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48978) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1md5NO-0007Uu-0K for emacs-devel@gnu.org; Wed, 20 Oct 2021 02:47:03 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55826) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1md5NN-0002j7-ML; Wed, 20 Oct 2021 02:47:01 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1md5NN-0003Cs-8i; Wed, 20 Oct 2021 02:47:01 -0400 In-Reply-To: <87czo2lq0d.fsf@gnus.org> (message from Lars Ingebrigtsen on Mon, 18 Oct 2021 10:02:26 +0200) 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:277422 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > That is, any function or macro that has a name that starts with "def" is > > indented similarly to a `defun' (etc). > I've now removed this heuristic in Emacs 29. Please keep the heuristic. It is still useful. If file A uses a deffoober construct defined in file B, and you visit file A with file B not loaded, the heuristic will make the uses of deffoober indent properly. The idea of this was that if you define something whose name starts with `def', it should be a defining construct. If people don't follow that convention, that's a mistake. It's a minor mistake, but still, if calls to a function which violates that convention don't get indented right, the solution is to name it differently. Giving those macros explicit indentation properties is ok. With that done, the heuristic is no longer needed when their definitions are loaded. But I think we should still use the heuristic for any def... construct whose definition is not currenly loaded. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)