From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: Indent lisp files on save -- How? Date: Tue, 22 Nov 2022 23:41:55 -0800 Message-ID: References: <87sfia9q80.fsf@rfc20.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35605"; mail-complaints-to="usenet@ciao.gmane.io" To: Matt Armstrong , "T.V Raman" , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 23 08:42:40 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 1oxkP2-00096E-E3 for ged-emacs-devel@m.gmane-mx.org; Wed, 23 Nov 2022 08:42:40 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oxkOb-0005OF-BH; Wed, 23 Nov 2022 02:42:13 -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 1oxkON-0005Nl-8x for emacs-devel@gnu.org; Wed, 23 Nov 2022 02:42:02 -0500 Original-Received: from mail-oi1-x22d.google.com ([2607:f8b0:4864:20::22d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oxkOL-0003aJ-Ks for emacs-devel@gnu.org; Wed, 23 Nov 2022 02:41:58 -0500 Original-Received: by mail-oi1-x22d.google.com with SMTP id r76so18211312oie.13 for ; Tue, 22 Nov 2022 23:41:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :from:to:cc:subject:date:message-id:reply-to; bh=XD1bJOQVF4pfaT0rg8zutkwOaPyQYaecj7w0YHbYV2s=; b=Fav4i2j6R6VzmiT1aMGI3hQEwunzD/q3dEtO8f9J46obm7hWdvhdYc3ZQL7bnCT+X1 iJftnwTBskJ3jcKddYJ5FjoR8p8m8NdsI5IBkbw9k60T/QQ+AIavkXCynGOReUaioDSk x3/qDtYlSFot/m1CJJwkaA7f9yBKYOyNiBA3OtDpPkaeibuOT3DbSI30yLSnWtbt3w7U +WaQ+t7le+AKXHQ/zHSE411qk5ll3ipwzpNxUQ4jlsk73H8B+C3XbDdtKSd3oY2SVGr0 b6BhIZKe0kob5AN9ZUPovRs8oM+yF+DUoGzmJHEi4ip6f91cTcLAzDXEQZl8dCmNAwu6 9CLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XD1bJOQVF4pfaT0rg8zutkwOaPyQYaecj7w0YHbYV2s=; b=zTMJSRHT55Ia3a2f1p8jJ9Ot+q/WsV14ts+JTP0Gn8gnp6yZ9aGGcW2+qorma617js kePKU+xlPy+xA34l2pkCiUdCR8tKZj2Nhu0pasYJot+PYphdlcwAE3fWip8BZ0rK+E/c cnMt6x0urS224ANTPmozjtNYZ67RkYsI+Q9dpxp7Nb7l2gN8oXwI0XOlVFTnIDbF88BR cVIy8apRTEH70IjEaapDsXDY3h0Hy0YWlXqBbJcnAeFTIW+vjEe4DR/L95kMt13tuHPo 8XZi9XoKmOsycvKwYBrz729zhPrm3xkMSUjjKCKProbvaDTgXM6J1ImowXYX4wXGU5eJ eXQA== X-Gm-Message-State: ANoB5pnSr1TBBKqpnkvLpTbEaHhuf69jiXZTQolLhxshPT3AYcNuf2Xh fJAaH7cS8kk5bGpBZsqiFxJmCDKZSO7lILJUQeQ= X-Google-Smtp-Source: AA0mqf6r8DOmBGD7y38Tx1LuAnpgsUqeq1uk6xY6qSscxSKnbuJSx7QLGgBiAdrinxhNszs/tsp9OISYwo6Eg8xREo4= X-Received: by 2002:a05:6808:1287:b0:359:dc32:4f9e with SMTP id a7-20020a056808128700b00359dc324f9emr5022569oiw.92.1669189316472; Tue, 22 Nov 2022 23:41:56 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 22 Nov 2022 23:41:55 -0800 In-Reply-To: <87sfia9q80.fsf@rfc20.org> X-Hashcash: 1:20:221123:raman@google.com::+2NUTeHbN4NP7zW/:1qZ+ Received-SPF: pass client-ip=2607:f8b0:4864:20::22d; envelope-from=stefankangas@gmail.com; helo=mail-oi1-x22d.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.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:300380 Archived-At: Matt Armstrong writes: > "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. FWIW, I use `aggressive-indent' (on GNU ELPA), but I do have to disable it every now and then to avoid getting massive diffs all the time. It unfortunately also doesn't always play very well with `nameless', but that is a more general problem.