bug#80267: CC Mode 5.35.2 (C/*l); C mode comment in signature indentation regression

Arsen Arsenović via CC-Mode-help <[email protected]> Thu, 29 Jan 2026 15:21:31 +0100
Newsgroups gmane.emacs.cc-mode.general
Message-ID <[email protected]>
--===============5667641768117173000==
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi Alan,

Alan Mackenzie <[email protected]> writes:

> Here's a patch which should fix it.  It tidies up other aspects of the
> "leading comment" handling, too.  Please try it out and let me know
> how well it works.  Thanks!

It does appear to work, though I found it slightly unintuitive at first
that line X+1 affects indent at line X, I understand why, so I think
this is fine.  Thank you so much!

It may be wise to drop in some tests of both leading and non-leading
comments.  This should prevent future regressions.

> Incidentally, I am no longer part of the Emacs project, so I don't
> commit changes there any more.  The patch is based on the CC Mode
> repository head at https://hg.savannah.nongnu.org/hgweb/cc-mode, which
> can be cloned from that address with $ hg clone.  It should work, more
> or less, on the Emacs repository too.

That is unfortunate.  I didn't quite follow the thread where you
announced the departure (sorry, I'm sure you can understand, I'm quite
busy still..).

That is a massive loss for Emacs.  Hopefully they at least pull CC-mode
changes.

Thank you once again, have a lovely day!
=2D-=20
Arsen Arsenovi=C4=87

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQECBAEWCgCqFiEE/uKz0RP8AKMWLWBhUsKUMB6ixJMFAml7bOsbFIAAAAAABAAO
bWFudTIsMi41KzEuMTEsMiwyXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25z
Lm9wZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRGRUUyQjNEMTEzRkMwMEEzMTYyRDYw
NjE1MkMyOTQzMDFFQTJDNDkzEBxhcnNlbkBhYXJzZW4ubWUACgkQUsKUMB6ixJO4
yQD9HChxXf1tkKB4QqbgPcAfnB2EdLpfG+ocRA6d6G3eqz8A/1kWmNs/6TrTc/vY
mDwdQrpYeIk5lsm1UOQxL5Ia7HoF
=ZcG+
-----END PGP SIGNATURE-----
--=-=-=--




--===============5667641768117173000==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============5667641768117173000==--