GNU bug report logs - #57042
28.1.91; c-mode autoindents cweb style lines

Previous Next

Package: emacs;

Reported by: Van Ly <van.ly <at> sdf.org>

Date: Sun, 7 Aug 2022 16:19:02 UTC

Severity: normal

Tags: notabug

Found in version 28.1.91

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: Van Ly <van.ly <at> sdf.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 57042 <at> debbugs.gnu.org
Subject: Re: bug#57042: 28.1.91; c-mode autoindents cweb style lines
Date: Sun, 7 Aug 2022 18:12:37 +0000 (UTC)
On Sun, 7 Aug 2022, Eli Zaretskii wrote:

>
> Sorry, I don't understand: why do you expect C Mode to DTRT for CWEB
> files?  The above is not valid C code, it's a different language that
> needs a dedicated major mode.
>

Yes, there is a dedicated mode for cweb by dek.  I guess it is out of 
date in relation to modern Emacs.  I'm expecting c mode might have 
enough fuzzy heuristic to play well with cweb.  For example, skip the 
lines beginning with @ when autoindenting.  C code validity is a 
moving target.

-- 
vl





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

Previous Next


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