From: Aleksey Kliger <akliger@gmail.com>
To: 63379@debbugs.gnu.org
Subject: bug#63379: 29.0.60; Indentation not working properly in csharp-mode
Date: Fri, 1 Sep 2023 22:10:18 -0400 [thread overview]
Message-ID: <CAO=vpa+G3GSabmGeY_vB3AEiC5WPktLJj0EsOrRVJJGNi88xLw@mail.gmail.com> (raw)
In-Reply-To: <CAMiGhTMB9KMA98uTFr1d+KHAzWHNY_rncRCXMTnOKbGwspEg4Q@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 808 bytes --]
This seems to be due to
https://github.com/emacs-mirror/emacs/commit/dfc850ca0223ffd1d2048657ea6d20c971865d51
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.
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.
-Aleksey
[-- Attachment #2: Type: text/html, Size: 1164 bytes --]
next prev parent reply other threads:[~2023-09-02 2:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-08 17:47 bug#63379: 29.0.60; Indentation not working properly in csharp-mode Jen-Chieh Shen
2023-05-18 21:52 ` Yuan Fu
2023-05-19 2:09 ` Jen-Chieh Shen
2023-09-02 2:10 ` Aleksey Kliger [this message]
2023-09-02 8:59 ` Eli Zaretskii
2023-09-02 11:14 ` Aleksey Kliger
2023-09-02 17:17 ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-02 17:20 ` Eli Zaretskii
[not found] ` <875y4sa35m.fsf@thornhill.no>
2023-09-02 18:03 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAO=vpa+G3GSabmGeY_vB3AEiC5WPktLJj0EsOrRVJJGNi88xLw@mail.gmail.com' \
--to=akliger@gmail.com \
--cc=63379@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).