From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Rewriting make-docfile.c in Lisp? Date: Wed, 05 May 2021 21:49:04 +0300 Message-ID: <83im3xf23j.fsf@gnu.org> References: <87zgx9rx7w.fsf@catern.com> <83bl9p2m6s.fsf@gnu.org> <87v97xrurb.fsf@catern.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22788"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Spencer Baugh Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed May 05 20:50:58 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 1leMbq-0005lc-OB for ged-emacs-devel@m.gmane-mx.org; Wed, 05 May 2021 20:50:58 +0200 Original-Received: from localhost ([::1]:47238 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1leMbo-0003rl-S1 for ged-emacs-devel@m.gmane-mx.org; Wed, 05 May 2021 14:50:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58708) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leMaE-0003OA-Sh for emacs-devel@gnu.org; Wed, 05 May 2021 14:49:19 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49899) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1leMaE-0002hh-IM; Wed, 05 May 2021 14:49:18 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1752 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1leMaD-0003qc-Dm; Wed, 05 May 2021 14:49:18 -0400 In-Reply-To: <87v97xrurb.fsf@catern.com> (message from Spencer Baugh on Wed, 05 May 2021 12:49:12 -0400) 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:268916 Archived-At: > From: Spencer Baugh > Cc: emacs-devel@gnu.org > Date: Wed, 05 May 2021 12:49:12 -0400 > > Eli Zaretskii writes: > >> Couldn't this be written in Lisp? > > > > make-docfile does several jobs; did you mean to convert them all to > > Lisp? One of them is globals.h, which is needed for compiling the > > Emacs C sources. > > Ah, I didn't see that globals.h was generated by make-docfile. I just > meant generating etc/DOC. Pluss any other jobs done by make-docfile that > aren't required to compile Emacs, if there are any. But writing globals.h uses the same text-parsing code as the other jobs, so I'm not sure it's a win to rewrite only the DOC parts in Lisp, as we'd still need to maintain the globals part. Does anyone else have an opinion?