From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Aleksey Kliger Newsgroups: gmane.emacs.bugs Subject: bug#63379: 29.0.60; Indentation not working properly in csharp-mode Date: Sat, 2 Sep 2023 07:14:17 -0400 Message-ID: References: <83il8t9cir.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000006f2b1706045e6102" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27052"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63379@debbugs.gnu.org, Theodor Thornhill To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 02 13:50:44 2023 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 1qcP9I-0006w8-MB for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 Sep 2023 13:50:44 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qcOaj-0001FF-MY; Sat, 02 Sep 2023 07:15:01 -0400 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 1qcOai-0001Eq-9l for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2023 07:15:00 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qcOab-00066f-4h for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2023 07:15:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qcOak-0001Gy-CX for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2023 07:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Aleksey Kliger Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Sep 2023 11:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63379 X-GNU-PR-Package: emacs Original-Received: via spool by 63379-submit@debbugs.gnu.org id=B63379.16936532854855 (code B ref 63379); Sat, 02 Sep 2023 11:15:02 +0000 Original-Received: (at 63379) by debbugs.gnu.org; 2 Sep 2023 11:14:45 +0000 Original-Received: from localhost ([127.0.0.1]:35308 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qcOaT-0001GF-CV for submit@debbugs.gnu.org; Sat, 02 Sep 2023 07:14:45 -0400 Original-Received: from mail-ot1-x32f.google.com ([2607:f8b0:4864:20::32f]:60808) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qcOaS-0001G2-0Q for 63379@debbugs.gnu.org; Sat, 02 Sep 2023 07:14:44 -0400 Original-Received: by mail-ot1-x32f.google.com with SMTP id 46e09a7af769-6b9e478e122so2232902a34.1 for <63379@debbugs.gnu.org>; Sat, 02 Sep 2023 04:14:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693653268; x=1694258068; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=kar66SBayuL2U4dzkeKFkA98Lur0MoPTllwl07JnGZI=; b=QG2xkJht3WfrBsPAlftEgCOVG9w2AaH+gzsoKtFxHGzrcTMRW9rTxqV/27qNm6XuuH iad2/INVNYwuiWGtCUeFsxNYXCij9HYtvQkywFQh/bJcWjXthINCs6RfYwy2y0UW04GR t65Ei6mHZRIKQplUR6XXzY2JVNzledE3yGz+jGyUHUrXmd+Oxa7Sr/DulGGlMd2SS0rJ e/+HCTMQUgRyIJ/jRn2oXE9g8l8WWpJgc5WiS6XZWSXFY1IGtFM9t7Lp5AswBAxjSqB7 mSspPXR8Yp9qgrZpmUU/Qs0JSZLUZSC+l6x3EEMShxAT0kEvs47/sO65oEpae9N5JMNT WT/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693653268; x=1694258068; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kar66SBayuL2U4dzkeKFkA98Lur0MoPTllwl07JnGZI=; b=SSblaBXWCS9BnLxN3C6+B+CTocuOzHKXhDqJ+3XoouxW3gmhTPMqGXpnkjGHHFU1xp u55lL5Wxe0ZDmSilKEv4tiRhF4ZiKB8kpxgwmgRR6SU5nlLzKrUlcTF6VnszYfbLKqvr dejW2L1dxio2g3r5NGmXdYrt833rVwcjYqloNU0FQyZA/i+e7TJm/zyQ+olksdPbrwea lDY/TgSPjd+6X14sHEmQPkxHEbtEMKlQNzF53wE48w37B8eO5m8iNUx7HVkKqrYC5/sD fiwnrUHwtR9FKCF/AW66IyPeGsvPWHioWpmL7/H1DepU2luvqWaJ0AfJB0uT3EuXyA/w OP4g== X-Gm-Message-State: AOJu0Yzdzf3RKuIvSSKZh7Og5ObFUb09yUc5+NHhquuzTpMbRKMN5NDa YPprw9f0hPjLEnSt1p39/Mnd7hSrSK2xG2CBtDE= X-Google-Smtp-Source: AGHT+IGVet5/Z9vRj9THDpiBOIf2H35tNlETBwIjGm/l6VFkpizp/8R2ZgJl9TjfbhQbdBVOzoKmxZ3Q3VrID68fsIA= X-Received: by 2002:a9d:73d2:0:b0:6be:e616:39cb with SMTP id m18-20020a9d73d2000000b006bee61639cbmr5413287otk.20.1693653268375; Sat, 02 Sep 2023 04:14:28 -0700 (PDT) In-Reply-To: <83il8t9cir.fsf@gnu.org> 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:268983 Archived-At: --0000000000006f2b1706045e6102 Content-Type: text/plain; charset="UTF-8" I'm not using the git version. I'm using what Debian is currently shipping. I just git blamed the line that added the call to backward-up-list. On Sat, Sep 2, 2023, 04:59 Eli Zaretskii wrote: > > From: Aleksey Kliger > > Date: Fri, 1 Sep 2023 22:10:18 -0400 > > > > This seems to be due to > > > https://github.com/emacs-mirror/emacs/commit/dfc850ca0223ffd1d2048657ea6d20c971865d51 > > You mean, you haven't updated your Git since February? > > > specifically (backward-up-list 1 t t) seems to emit that error message: > > > > ;; Assume called interactively; don't signal an error. > > (user-error "At top level") > > > > Easy reproduction: edit a csharp file, go to some toplevel line (e.g. > "using System;" that is pervasive > > in a lot of C# code) and run c-indent-line-or-region. > > Theo, could you please look into this? TIA. > > > By the way: (advice-add 'c-guess-basic-syntax :around > #'csharp-guess-basic-syntax) > > means that csharp-guess-basic-syntax runs also in all other c-mode > derived modes. So this error > > also happens if you first edit a .cs file and then a normal .c file and > you try to, for example, indent a > > toplevel comment in the C code. Very frustrating. > --0000000000006f2b1706045e6102 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm not using the git version. I'm using wha= t Debian is currently shipping. I just git blamed the line that added the c= all to backward-up-list.



On Sat, Sep 2, 2023, 04:59 Eli Zaretskii <eliz@gnu.org> wrote:
> From: Aleksey Kliger <akliger@gmail.com>
> Date: Fri, 1 Sep 2023 22:10:18 -0400
>
> This seems to be due to
> https://github.com/emacs-mirror/emacs/commit/dfc850ca0223ffd1d2048657ea6d2= 0c971865d51

You mean, you haven't updated your Git since February?

> specifically (backward-up-list 1 t t) seems to emit that error message= :
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;; Assume= called interactively; don't signal an error.
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(user-err= or "At top level")
>
> Easy reproduction: edit a csharp file, go to some toplevel line (e.g. = "using System;" that is pervasive
> in a lot of C# code) and run c-indent-line-or-region.

Theo, could you please look into this?=C2=A0 TIA.

> By the way: (advice-add 'c-guess-basic-syntax :around #'csharp= -guess-basic-syntax)
> means that csharp-guess-basic-syntax runs also in all other c-mode der= ived modes.=C2=A0 So this error
> also happens if you first edit a .cs file and then a normal .c file an= d you try to, for example, indent a
> toplevel comment in the C code.=C2=A0 Very frustrating.
--0000000000006f2b1706045e6102--