From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Defun Self Documentation Date: Thu, 05 Nov 2020 12:28:25 -0500 Message-ID: References: <20201105154537.GA24492@tuxteam.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14584"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Arthur Miller Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 05 18:32:45 2020 Return-path: Envelope-to: geh-help-gnu-emacs@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 1kaj7s-0003be-TF for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 05 Nov 2020 18:32:44 +0100 Original-Received: from localhost ([::1]:58686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kaj7r-0004iW-Vz for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 05 Nov 2020 12:32:44 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57708) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kaj3w-0001nl-BZ for help-gnu-emacs@gnu.org; Thu, 05 Nov 2020 12:28:44 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:20401) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kaj3p-0001cR-LX for help-gnu-emacs@gnu.org; Thu, 05 Nov 2020 12:28:39 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 4AB3380B69; Thu, 5 Nov 2020 12:28:29 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 4B70C809BF; Thu, 5 Nov 2020 12:28:26 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1604597306; bh=agKFE8DhbcZ8xxxX36H+HitQ3sbwCPVKzXyVB8bWAvE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Wvuv+npCeXkatCz23Qw9GsDQI9d/Iyy6P4rzDBzOYWC52a3Oz8BjV88T8NafPlk07 zmEATdJsjW8tXAgf/1Bjp0ecKOg+Ql0HMIy1IQP9JbnpWbzTAWJl7YIfeKdJ/boh1Q LafjHU2IJYeeg0RhXoPGTkeOWudBTo/NeXs8c5GR0DeG/m6cPvhhpIDEBerTh64YlJ JE2ddeEv+zXMMSSI7HjSOsQZcnRKVkamM9fMrnGEPSijVYmSubi7YqLH9sBd9fsvmr SGnbpptYDjNv95/0QL91Eas/QfJ3WP4c0Jwrt0xLrPggRZhsFeKZ8p/EIepsdeUvbp JH6dr0MoR2C6Q== Original-Received: from alfajor (unknown [157.52.9.240]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 1E304120312; Thu, 5 Nov 2020 12:28:26 -0500 (EST) In-Reply-To: (Arthur Miller's message of "Thu, 05 Nov 2020 17:51:43 +0100") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/05 09:21:03 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:125035 Archived-At: >> I don't see why that would be important information. The important >> information is to know whether an expression is "inside" or >> "next/outside" some other and the indentation already gives you that >> information. > I was hacking Emacs' configure.ac earlier today. I really wished there > was a better functioning identation and paren-highlighting mode. For > some reason whatever mode is activated in configure.ac, it didn't really > understood the ']' and ')' in some places despite them being correct. [ Not sure how this relates to the earlier discussion of defun's docstrings or placement closing parens, but in any case: ] This is 100% under the control of `autoconf-mode`, so that's where improvements need to be done for that. IIRC it's not easy to make it work well reliably because of the "two-level" nature of the language (IIRC it's a layering on `m4` on top of `sh`), but currently there is no auto-indentation at all in that mode, so there are plenty of low-hanging fruits. Stefan