GNU bug report logs - #63379
29.0.60; Indentation not working properly in csharp-mode

Previous Next

Package: emacs;

Reported by: Jen-Chieh Shen <jcs090218 <at> gmail.com>

Date: Mon, 8 May 2023 17:49:01 UTC

Severity: normal

Found in version 29.0.60

Fixed in version 29.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #20 received at 63379 <at> debbugs.gnu.org (full text, mbox):

From: Aleksey Kliger <akliger <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 63379 <at> debbugs.gnu.org, Theodor Thornhill <theo <at> thornhill.no>
Subject: Re: bug#63379: 29.0.60;
 Indentation not working properly in csharp-mode
Date: Sat, 2 Sep 2023 07:14:17 -0400
[Message part 1 (text/plain, inline)]
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 <eliz <at> gnu.org> wrote:

> > From: Aleksey Kliger <akliger <at> gmail.com>
> > 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.
>
[Message part 2 (text/html, inline)]

This bug report was last modified 1 year and 324 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.