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: Indentation of def* Date: Thu, 14 Oct 2021 12:06:58 -0700 Message-ID: References: <878ryw1ptl.fsf@gnus.org> <871r4nn9ty.fsf@yahoo.com> <87ilxzzwn1.fsf@gnus.org> <878ryvzw7s.fsf@gnus.org> <87h7djlskn.fsf@yahoo.com> <87v91zyfiy.fsf@gnus.org> <87wnmfkd7p.fsf@yahoo.com> <87bl3rka3n.fsf@yahoo.com> 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="27523"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 14 21:08:32 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 1mb65g-0006uz-Ah for ged-emacs-devel@m.gmane-mx.org; Thu, 14 Oct 2021 21:08:32 +0200 Original-Received: from localhost ([::1]:54818 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mb65f-0001KN-0p for ged-emacs-devel@m.gmane-mx.org; Thu, 14 Oct 2021 15:08:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42962) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mb64O-0008JQ-Js for emacs-devel@gnu.org; Thu, 14 Oct 2021 15:07:12 -0400 Original-Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]:33440) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mb64C-0001lT-7H for emacs-devel@gnu.org; Thu, 14 Oct 2021 15:07:12 -0400 Original-Received: by mail-pl1-x62f.google.com with SMTP id y4so4853020plb.0 for ; Thu, 14 Oct 2021 12:06:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:in-reply-to:references:mime-version:date:message-id:subject:to :cc; bh=z90DM8Z3ZHufqglZ7MTIJqMF1cKLimNRGoNMtU3vueE=; b=F7BNFyxWFJhwAaAEAqvRfuIB1RM6CVGZPvBcOFgbVEEpUXd75rklN8LHnIMx2zyRsi 6RQjg1aJOvYvw6M6chx7AGZWt/Sn/oky7tZuFoxZxUrLxrVVHQ9Yl9rzQDoPQQCK5wBa d41h96b1W7no8LPmW/lZp13gplAMPt6Fuf9z7Oe2P2D03+2opqeHl+oB+kpV16EXfnzu nfk6J/loAhihEoBq8tgu//2A3YJNse/6XJzygQzYLC+YjACTYxEkUlOS3k7Qg51lgX3w 4EJOANjNud3Nd5doNiGiSIl9brvmmu7pqlui/86lemKWRS/oy9qTCyISqbBESrH/vJBq eM2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=z90DM8Z3ZHufqglZ7MTIJqMF1cKLimNRGoNMtU3vueE=; b=0IAVKJvEH+/5YgDWFdLDvhSVrZN4ojxb89AfdfW6byOEVQZ0Xng6lW4vk+M/SfNqpI gffrzRMoTWPl4/MSujH0fj2FWU/s08RNZSMVHVaXljIX5c7QBWdz/ye4SxZ21Doh9z0d sjLXdpc2e2aoIBUelOT+z2NJBKFQG6Z5n1KZTDdTn5w/08FcgGZi+0i1RKpHXWdqh3x2 Sg7IUtcYe2f9CKTGJ4mxdKKHadBfHUHLtTy0GVu4bYHc71O6HiFSvMTOD4gNsb7GYYDS yiPckJwbs9oTnbhF+BmkN6QcrdPcvKNYnatPxnQZ3pP2HHe6QHbAqyx0u0eFUli06kD+ vh1g== X-Gm-Message-State: AOAM530fkeAWz3p9MOrameEP6SGQwGGUJAYC78Ram78QQsH8US5+nw8Q c80BPXl8sajxIbjZe18zt+zSoBIkG+yrcUr7NM8= X-Google-Smtp-Source: ABdhPJxekbRgHAUFZ8m1x1ZwLOqNqoab50Dy26JeEvs8DqR8bTn/unRBTuPHffiJPQvLLIbMEN7XWrb7stlpTXDg+dc= X-Received: by 2002:a17:902:e74a:b0:13f:3538:fca0 with SMTP id p10-20020a170902e74a00b0013f3538fca0mr6726006plf.22.1634238418568; Thu, 14 Oct 2021 12:06:58 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 14 Oct 2021 12:06:58 -0700 In-Reply-To: <87bl3rka3n.fsf@yahoo.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::62f; envelope-from=stefankangas@gmail.com; helo=mail-pl1-x62f.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.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:277044 Archived-At: Po Lu writes: > If it's a heuristic that worked (at least, AFAIR) in Emacs 18, then I'm > usually inclined to trust it. (And I considered it smart at the time, > when I first discovered it). It's clearly not smart enough though, and fails in some cases. I don't see how you could design a heuristic that won't fail, so better than emacs-lisp-mode silently trying to fix this in a "smart" way (that leads to some surprising results) is to force the user to be explicit about her expectations. That's a step forward, IMO.