From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Campbell Barton Newsgroups: gmane.emacs.devel Subject: Re: Emacs Lisp code formatting Date: Wed, 3 Nov 2021 10:31:06 +1100 Message-ID: <7e8a9104-5412-8f06-0976-e61e9d67f38e@gmail.com> References: <87mtmmlgr6.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27831"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.1 To: Lars Ingebrigtsen , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 03 00:41:12 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 1mi3Ox-000726-I1 for ged-emacs-devel@m.gmane-mx.org; Wed, 03 Nov 2021 00:41:11 +0100 Original-Received: from localhost ([::1]:59754 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mi3Ov-0002Ko-JF for ged-emacs-devel@m.gmane-mx.org; Tue, 02 Nov 2021 19:41:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53230) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mi3FL-0006sb-Da for emacs-devel@gnu.org; Tue, 02 Nov 2021 19:31:15 -0400 Original-Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]:46003) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mi3FJ-00080w-4D for emacs-devel@gnu.org; Tue, 02 Nov 2021 19:31:15 -0400 Original-Received: by mail-pj1-x1034.google.com with SMTP id gb13-20020a17090b060d00b001a674e2c4a8so30066pjb.4 for ; Tue, 02 Nov 2021 16:31:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=jr2r2dvb6+SSL60KI0S3xeWto/ilGru9N4MUceDbrP8=; b=Av/ifw6iVMGrasSJrIfMF8FIq4XbYu+zsHW67C4xhagdmk/NAfxjelXmCc38LK2Mgc 6VB7LULXQenvibDTs9OhnFV1d2bQxiDhgp9i+O3gJJyfsdUZGUhuoTTt3AGF1heXzEES QeRA43CxYjeu49yrY2jF2w/KAaLU92sV7gVqAC7JaQ5UirL1eOV3m4CWevE07+hU+f92 itvrix2P4mYvMMGAeANr2ylHoJW+7S9lqHvbzKW8/19KYE5xQ+nq2Ze5LNTE7tW9cOzQ FK9TFovByiFTaIg2Xv7K3EnACBhjg6owKPECnmdpW9UIuKt3gJgOufKH1Cx1ZmciN9if HiYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=jr2r2dvb6+SSL60KI0S3xeWto/ilGru9N4MUceDbrP8=; b=GKXu+v1mqaKZpy3jb5otFKIzxTlqDlDKCxWkHAzSeMg5Y46l+TU3hiG6NKVS+H2Suq g23ICg5c1tjdOYsueyrjiwko1fKiPxjoLyRii6+sMr02zMlkYASPROzW0Ot7UpPfcyow 7R2STP2bghTg2qV68bOLHXM5S8D42Cw4YO66trb3JmCRKotv7sk/sxGziUqkiJCrhdF+ vMtiC1GeZIS5HvJnEu8MOg0tXhae/kgHT/zRhTTKOCXgr2erwoi3NyD/FZE1DTTuEH+v guW/zzLdnXJb4/Pv2ZFJT+fDREzO1TZEHyzJvXryxxrYFdI2nynC/50DL9RxzorAR7iF opLQ== X-Gm-Message-State: AOAM530zAnFgopZ8eEVB2fu6584wJZMLAnCESX3eyTsGl7A/zNefix/s sVtB05CyrX5CSz3vhAd3+0A= X-Google-Smtp-Source: ABdhPJxeQwjvPw5jast7po15kKXxZlaQVNmZDdhcffYQj+0J/HxpzHXy5Z59bQk1h0tqMbdBdzJ7fA== X-Received: by 2002:a17:90a:9295:: with SMTP id n21mr10427839pjo.229.1635895870814; Tue, 02 Nov 2021 16:31:10 -0700 (PDT) Original-Received: from ?IPV6:2402:b801:2844:2100::1? ([2402:b801:2844:2100::1]) by smtp.gmail.com with ESMTPSA id a12sm3374785pjq.16.2021.11.02.16.31.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 02 Nov 2021 16:31:10 -0700 (PDT) Content-Language: en-US In-Reply-To: <87mtmmlgr6.fsf@gnus.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=ideasman42@gmail.com; helo=mail-pj1-x1034.google.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, NICE_REPLY_A=-2.549, 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" Xref: news.gmane.io gmane.emacs.devel:278544 Archived-At: On 11/3/21 02:27, Lars Ingebrigtsen wrote: > I've always assumed that Emacs has a function for pretty-printing Emacs > Lisp -- and it's just that I haven't found it. > > `pp' indents sexps nicely, but it doesn't format code in any way a human > would. > > Doesn't Emacs have a pretty-printer for code? As far as I know, Emacs doesn't include this built-in. There are a handful of 3rd party lisp formatting tools [0], though, YMMV. [0]: https://emacs.stackexchange.com/a/55759/2418