From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Newsgroups: gmane.emacs.bugs Subject: bug#50320: 28.0.50; Recent changes cause functions in sh-script-mode to be indented incorrectly Date: Thu, 02 Sep 2021 08:16:22 +0200 Message-ID: <87v93j33k9.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33793"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Lars Ingebrigtsen , Diego To: 50320@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 02 08:17:20 2021 Return-path: Envelope-to: geb-bug-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 1mLg2I-0008Su-K8 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Sep 2021 08:17:18 +0200 Original-Received: from localhost ([::1]:58148 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLg2F-0006Um-U6 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Sep 2021 02:17:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44742) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLg22-0006Ue-Be for bug-gnu-emacs@gnu.org; Thu, 02 Sep 2021 02:17:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56120) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mLg22-0004DG-44 for bug-gnu-emacs@gnu.org; Thu, 02 Sep 2021 02:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mLg21-0007nD-U4 for bug-gnu-emacs@gnu.org; Thu, 02 Sep 2021 02:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Sep 2021 06:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50320 X-GNU-PR-Package: emacs Original-Received: via spool by 50320-submit@debbugs.gnu.org id=B50320.163056339129904 (code B ref 50320); Thu, 02 Sep 2021 06:17:01 +0000 Original-Received: (at 50320) by debbugs.gnu.org; 2 Sep 2021 06:16:31 +0000 Original-Received: from localhost ([127.0.0.1]:39433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mLg1X-0007mG-4N for submit@debbugs.gnu.org; Thu, 02 Sep 2021 02:16:31 -0400 Original-Received: from mail-wr1-f50.google.com ([209.85.221.50]:33442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mLg1V-0007m1-M4 for 50320@debbugs.gnu.org; Thu, 02 Sep 2021 02:16:30 -0400 Original-Received: by mail-wr1-f50.google.com with SMTP id b10so1075830wru.0 for <50320@debbugs.gnu.org>; Wed, 01 Sep 2021 23:16:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=KdFd9HWtJx+agd8gfLzSYSgOwhmcQM8nnn8GdmQvnjo=; b=csRPGVKJXptke9Ir0TMejCqLXVVfLd2bkYr20BjkC1E/GZXzRav9kVY8vo0ou/ronm 4biSKI3FxjEG+uXlt+bwZipRSBh9EA3deph+58i390HlurHzxU26Jkxv1RJ7ndsnjazZ ooPw0LOGlqS3yAUzPneg5zuX5EHfglhEELv6SCL9sPoGcnE8xnmmvkSjAFrUGnmooF7n TqPgLlQ6klT/mRRhdb6ecebtxrKHwexPKfPc7fg87+Ap34dKnMXIfdGsKLqOlGXQ1y5d 8pSEzAQHXwrc5dcRXgsDZ4TRTq8OYAIKePaJospZx6uuQg/F1BXjR32CYdXnr4nvgB+n Pttw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=KdFd9HWtJx+agd8gfLzSYSgOwhmcQM8nnn8GdmQvnjo=; b=rzhKmC9sLJYTYDxxKAhmqHWE0imM766bM3vR0vFDJoBosCXZPSTyqhpN04+0rjBiTX wIwMPCgxi4Zj9O6nIUPmMDqO9MEp/cLNrTAHR7H1McnVYHwUxF4cVa6bHrt3wGBvJIQD fu2RlT1MsI9fMQF+QTVZAjB9/MJUUUYznKUDIx+EH1e/jrFb9maMX8qqSLzRHwdSKB7R j1yEof6BVE+MoETFZ8OS8pK7m+OmTiH0Ml/3qZsLmXYCwzNzkIyiq9aq4r6tfQzK0Tbn dQUqOfnESFnyQ06x5yQo6gaUWCQt/anIUigreMiBDFd86I4HS+KiIe451IZCrb35zynh sx+A== X-Gm-Message-State: AOAM531KatEgy4di8GDr6hVk2arobMVh3MI0ea3Dnlz/rOUSLNRUXLR0 NANp62go4ARa3e1JtSuaGvk= X-Google-Smtp-Source: ABdhPJzeKsuHn830Vx2xoRjWoXt6DbsT2RjikcxAQKYLrRJ9mFhpn9u+mVVoHalMWz8AHDsOvpZjTg== X-Received: by 2002:a5d:5107:: with SMTP id s7mr1579507wrt.283.1630563383708; Wed, 01 Sep 2021 23:16:23 -0700 (PDT) Original-Received: from amdahl30 ([2a01:e0a:20e:d340:2ef0:5dff:fed2:7b49]) by smtp.gmail.com with ESMTPSA id f17sm700801wmf.4.2021.09.01.23.16.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Sep 2021 23:16:23 -0700 (PDT) In-Reply-To: (Diego via's message of "Wed, 01 Sep 2021 04:15:12 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:213225 Archived-At: Diego via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: > I'm not quite sure when this behavior was introduced, but I suspect > commits 4bb70549 or 6392bc37a may be responsible: Seems to be 6392bc37a; reverting it makes your test case pass again. As things stand, I don't know enough about SMIE to understand what the correct fix is. A plain revert might be the best immediate action, unless someone knowledgeable enough can reconcile my commit with Diego's example.