From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Nikolay Kudryavtsev Newsgroups: gmane.emacs.help Subject: Re: Debugging SMIE for sh-script.el Date: Sun, 5 Sep 2021 21:01:08 +0300 Message-ID: References: <87k0jz9rri.fsf@gmail.com> <04ae9f30-5e65-d7de-501e-92d557ddf84c@gmail.com> <87bl5ad5g4.fsf@gmail.com> <3b4cea5f-c08f-3307-655f-a43185ada5ee@gmail.com> <760e21aa-03ea-fb6c-5625-57493c59e455@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2501"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 To: Stefan Monnier , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 05 20:01:44 2021 Return-path: Envelope-to: geh-help-gnu-emacs@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 1mMwSe-0000Z1-BS for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 05 Sep 2021 20:01:44 +0200 Original-Received: from localhost ([::1]:34382 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mMwSd-0003R7-89 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 05 Sep 2021 14:01:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54922) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMwS9-0003Qt-8S for help-gnu-emacs@gnu.org; Sun, 05 Sep 2021 14:01:13 -0400 Original-Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]:40574) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mMwS7-0005hD-Qq for help-gnu-emacs@gnu.org; Sun, 05 Sep 2021 14:01:12 -0400 Original-Received: by mail-lj1-x22e.google.com with SMTP id i28so7253892ljm.7 for ; Sun, 05 Sep 2021 11:01:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:subject:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=aKjxEQZNPCIplAT+5vgAuS8RnO5V6+JDVTPzH9agDUY=; b=EEZPhh2QRkGtrdo0FLTGs/NcGif7aG7pNkeUVQo3tw7F84dSpU+GQ1zarvPRZl1jh7 jjV+Ii1RvRqxs8+L/Lwgz9CShnDSqSpgbBeRkrvAht8MyKdFhs9t7Dvfq1j7AsIuyAzV sn/DLq4w9Va/8FMh1vUhNMVNsBynAHYGpqzE4UF9tIt1AEggBh5nnW2Kv7Oz1x1XiVFF jIjNYCU6G65NFR15FoeC9Yccjuvj+FAoK6Nv0nPr0hfJAZlXHuf181wY8eIAr0BQjbTJ YOMdBKTQAkCZ1aNrw6XOrr6NN6EL9VLpM7RRSPAMy2WtD812x19VBCIie/A50lEhau79 Tz2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=aKjxEQZNPCIplAT+5vgAuS8RnO5V6+JDVTPzH9agDUY=; b=U1IgojovkB0zKPRCwH91WFgWNoLppPecq/gkDNEdMsLSDOdcT7Z45e53nao/VWc0eJ nSoa+8xby9i0jypCDpIaF0wcz0c2p7SXuV2wRXVm6lkW5OwWmbz4kM2xJ2wltSEKK2x6 V0BenQlPTwVLvAS8lZYa+1e1AaWI159hnPC28Tnz4x5rNcwQwY41pBBIlwW7d8gGU0vn fJfPXyAOclfsavpyeFwpeoCnVXv9R2FUdLUQePz4M19qWMW9wIEODjsNCwGn/EZX9enK HmllkDtl6CZB/dHUC89Em/Kg6OkNfwRoamtpRfO79g9M9sL4onsNrzBVH8wVXHhEgJBE ZvxQ== X-Gm-Message-State: AOAM531zGWGpC6rYkac9ZFt8J7azdqsvx9JJnhoabWJrgvG5o6QydXHm a4GBx68Fg1n6vvcr98WKXexo/RXRQeo= X-Google-Smtp-Source: ABdhPJwDulUMnlCSCysYCv1AyQBprhxO+3pMJbjtUcFdru7xZY7pgKo4SBSwM2vQ/QXSR9n4FzT25g== X-Received: by 2002:a05:651c:10a8:: with SMTP id k8mr7363657ljn.356.1630864869998; Sun, 05 Sep 2021 11:01:09 -0700 (PDT) Original-Received: from [192.168.1.72] (128-69-156-0.broadband.corbina.ru. [128.69.156.0]) by smtp.gmail.com with ESMTPSA id m17sm718544ljp.80.2021.09.05.11.01.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 05 Sep 2021 11:01:09 -0700 (PDT) X-Google-Original-From: Nikolay Kudryavtsev In-Reply-To: Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::22e; envelope-from=nikolay.kudryavtsev@gmail.com; helo=mail-lj1-x22e.google.com X-Spam_score_int: -58 X-Spam_score: -5.9 X-Spam_bar: ----- X-Spam_report: (-5.9 / 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, NICE_REPLY_A=-3.832, 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: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:132908 Archived-At: I do understand that, but the default (smie-indent-calculate) cycle being inadequate for the current use case is where we started at. I'm just saying that since someone has already introduced a custom function (sh-smie--indent-continuation) for dealing with this particular use case, we might as well implement whatever proper logic is required within it. Actually, I'm not even sure if introducing (sh-smie--indent-continuation) was warranted, since we could just have implemented a (:after . "\")  rule, but I'm probably missing some particular use case or caveat requiring it.