GNU bug report logs - #60932
29.0.60; c-ts-mode: Fails to indent enum block emitting a warning

Previous Next

Package: emacs;

Reported by: Mohammed Sadiq <sadiq <at> sadiqpk.org>

Date: Wed, 18 Jan 2023 14:10:02 UTC

Severity: normal

Found in version 29.0.60

Fixed in versions 30.1, 29.1

Done: Theodor Thornhill <theo <at> thornhill.no>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Theodor Thornhill <theo <at> thornhill.no>
To: Mohammed Sadiq <sadiq <at> sadiqpk.org>
Cc: 60932 <at> debbugs.gnu.org
Subject: bug#60932: 29.0.60; c-ts-mode: Fails to indent enum block emitting a warning
Date: Fri, 20 Jan 2023 22:24:51 +0100
Mohammed Sadiq <sadiq <at> sadiqpk.org> writes:

> enums are not indented with select -> TAB, Example:
>
> enum {
> PROP_0,
> PROP_NAME,
> N_PROPS
> };
>
>
> When trying to indent, I get the following warning in *Messages*:
> indent-line-to: Wrong type argument: wholenump, -2
>
>
> In GNU Emacs 29.0.60 (build 8, x86_64-pc-linux-gnu, GTK+ Version
>  3.24.36, cairo version 1.16.0) of 2023-01-18 built on purism
> Repository revision: 1798ff5a6636d6b34d23ab2dadb966e94cc57467
> Repository branch: emacs-29
> Windowing system distributor 'The X.Org Foundation', version 11.0.12101005
> System Description: Debian GNU/Linux bookworm/sid


Thanks!

Should be fixed in latest master, closing this :)

Theo




This bug report was last modified 2 years and 120 days ago.

Previous Next


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