From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Van Ly Newsgroups: gmane.emacs.bugs Subject: bug#57042: 28.1.91; c-mode autoindents cweb style lines Date: Sun, 7 Aug 2022 18:12:37 +0000 (UTC) Organization: Sourceware Defines Fortress Message-ID: <5bfc098-735f-1930-d058-35ace7605d69@SDF.ORG> References: <83r11svwvk.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24959"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57042@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 07 20:13:10 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oKklx-0006Gf-Vb for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Aug 2022 20:13:09 +0200 Original-Received: from localhost ([::1]:55670 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oKklw-0002cq-Bt for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Aug 2022 14:13:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60976) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKklq-0002ci-9N for bug-gnu-emacs@gnu.org; Sun, 07 Aug 2022 14:13:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48535) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oKklq-0007DO-0L for bug-gnu-emacs@gnu.org; Sun, 07 Aug 2022 14:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oKklp-0003El-Ku for bug-gnu-emacs@gnu.org; Sun, 07 Aug 2022 14:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Van Ly Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Aug 2022 18:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57042 X-GNU-PR-Package: emacs Original-Received: via spool by 57042-submit@debbugs.gnu.org id=B57042.165989596512421 (code B ref 57042); Sun, 07 Aug 2022 18:13:01 +0000 Original-Received: (at 57042) by debbugs.gnu.org; 7 Aug 2022 18:12:45 +0000 Original-Received: from localhost ([127.0.0.1]:38284 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKklZ-0003EH-Cl for submit@debbugs.gnu.org; Sun, 07 Aug 2022 14:12:45 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:64715) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKklU-0003E5-04 for 57042@debbugs.gnu.org; Sun, 07 Aug 2022 14:12:43 -0400 Original-Received: from sdf.org (IDENT:van.ly@faeroes.freeshell.org [205.166.94.9]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 277ICcKE016754 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Sun, 7 Aug 2022 18:12:39 GMT Original-Received: from localhost (van.ly@localhost) by sdf.org (8.15.2/8.12.8/Submit) with ESMTP id 277ICbY2022317; Sun, 7 Aug 2022 18:12:37 GMT In-Reply-To: <83r11svwvk.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:239083 Archived-At: 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