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: Indent lisp files on save -- How? Date: Wed, 23 Nov 2022 14:47:48 +0200 Message-ID: <83leo1zvkb.fsf@gnu.org> References: <87sfia9q80.fsf@rfc20.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29389"; mail-complaints-to="usenet@ciao.gmane.io" Cc: raman@google.com, emacs-devel@gnu.org To: Matt Armstrong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 23 13:48:20 2022 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 1oxpAn-0007GZ-Jc for ged-emacs-devel@m.gmane-mx.org; Wed, 23 Nov 2022 13:48:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oxpA5-0006tL-Gw; Wed, 23 Nov 2022 07:47:33 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oxpA4-0006tD-Jr for emacs-devel@gnu.org; Wed, 23 Nov 2022 07:47:32 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oxpA3-0001Ku-Te; Wed, 23 Nov 2022 07:47:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=5gUmN9zR8o+PAJxS7JtGzmV0k+ykwlqo9D6Hg595bvo=; b=CqPdyCSVJXdP WJxQXZT9mF6KWM6XXxYJlJOOC7idZmmA+ET9goL4pl+fRjcT6M0nZPJpOU39bSYb+kk6+HUvWlgdV /rAgyH7n/BPrPIZS/oO9CTkBENrYmTlLEpYctnFbITpzIy0TsIdcEbOultuQj5yi4V0BOvP7jQFvg AigtNraEoaR7QWU7+tyWvKhiasrHNgbp3hEPBPW5BCHiKGxv5w7e9ITdXe6nhUNGLAm4Dl5ng2Cfs gOYTc6tFyT8WTiG2z5WZZlJMvuKg60grZKPEvSgp02qPtR0tBCQRsOXz04afkXy4BIQc+/exruQ4w r0BzU5WsE4S+WsXZtzacSw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oxpA3-0000ky-CT; Wed, 23 Nov 2022 07:47:31 -0500 In-Reply-To: <87sfia9q80.fsf@rfc20.org> (message from Matt Armstrong on Tue, 22 Nov 2022 21:47:43 -0800) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:300391 Archived-At: > From: Matt Armstrong > Date: Tue, 22 Nov 2022 21:47:43 -0800 > > "T.V Raman" writes: > > > I'm somewhat surprized I've never setup the above for emacs-lisp or > > Common-Lisp in all these years. > > For Emacs Lisp, I don't think there is a good "format on save" > implementation. It should be easy to define a before-save-hook that would run indent-region on the entire buffer. Would that be a useful solution?