From unknown Fri Jun 20 07:16:46 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#57042 <57042@debbugs.gnu.org> To: bug#57042 <57042@debbugs.gnu.org> Subject: Status: 28.1.91; c-mode autoindents cweb style lines Reply-To: bug#57042 <57042@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:16:46 +0000 retitle 57042 28.1.91; c-mode autoindents cweb style lines reassign 57042 emacs submitter 57042 Van Ly severity 57042 normal tag 57042 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 07 12:18:16 2022 Received: (at submit) by debbugs.gnu.org; 7 Aug 2022 16:18:16 +0000 Received: from localhost ([127.0.0.1]:38204 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKiym-0000L8-F8 for submit@debbugs.gnu.org; Sun, 07 Aug 2022 12:18:16 -0400 Received: from lists.gnu.org ([209.51.188.17]:38114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKiyi-0000Kz-NR for submit@debbugs.gnu.org; Sun, 07 Aug 2022 12:18:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48098) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKiyi-0000HB-Ip for bug-gnu-emacs@gnu.org; Sun, 07 Aug 2022 12:18:12 -0400 Received: from mx.sdf.org ([205.166.94.24]:57646) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKiyg-000087-5T for bug-gnu-emacs@gnu.org; Sun, 07 Aug 2022 12:18:12 -0400 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 277GGXWh000810 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO) for ; Sun, 7 Aug 2022 16:16:33 GMT Received: from localhost (van.ly@localhost) by sdf.org (8.15.2/8.12.8/Submit) with ESMTP id 277GGVRM022389 for ; Sun, 7 Aug 2022 16:16:32 GMT Date: Sun, 7 Aug 2022 16:16:31 +0000 (UTC) From: Van Ly To: bug-gnu-emacs@gnu.org Subject: 28.1.91; c-mode autoindents cweb style lines Message-ID: Organization: Sourceware Defines Fortress MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0-1928447193-1659888992=:18062" Received-SPF: pass client-ip=205.166.94.24; envelope-from=van.ly@sdf.org; helo=mx.sdf.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1928447193-1659888992=:18062 Content-Type: text/plain; format=flowed; charset=US-ASCII Hello, C Mode autoindents CWEB style lines undesirably. Steps to reproduce . starting from 'emacs -Q' . open new file 'C-x f /dev/shm/explain.w' . enable mode for C 'M-x c-mode' . enter the C CWEB style source text below . Explanation} the last two lines autoindent but I expect them to be without . at line 6 below at # position c-set-offset reports 'cpp-macro' . at line 0 below at # position c-set-offset reports 'cpp-macro' Expected result is for lines 6, F and 0 below to be without indent. ``` 1 @** Convert 511 decimal to octal. 2 @d _x_number_x_ 511 3 @d _x_banner_x_ "What is the value of %d in octal?" 4 @c 5 #include 6 #include "u.h" 7 int@/ 8 main(void)@/ 9 { A int n = _x_number_x_; B printf (_x_banner_x_, n); C printf ("%s! %d decimal is %o octal\n", "Right", n, n); D } E @ @(u.h@>= F @h 0 #include ``` -- vl --0-1928447193-1659888992=:18062 Content-Type: text/plain; charset=US-ASCII; name=bug-gnu-emacs-28-1-91.text Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: generated details for bug report Content-Disposition: attachment; filename=bug-gnu-emacs-28-1-91.text SW4gR05VIEVtYWNzIDI4LjEuOTEgKGJ1aWxkIDEsIGFhcmNoNjQtdW5rbm93 bi1saW51eC1nbnUsIEdUSysgVmVyc2lvbiAzLjI0LjI0LCBjYWlybyB2ZXJz aW9uIDEuMTYuMCkNCiBvZiAyMDIyLTA4LTA4IGJ1aWx0IG9uIGNoYXJsaWUN ClJlcG9zaXRvcnkgcmV2aXNpb246IDA1OWFiNDdhMDY2NDAxMmI0ZDhjZjhj YzM2YjdkOGEyOGI4MGM2MTQNClJlcG9zaXRvcnkgYnJhbmNoOiBtYWluDQpX aW5kb3dpbmcgc3lzdGVtIGRpc3RyaWJ1dG9yICdUaGUgWC5PcmcgRm91bmRh dGlvbicsIHZlcnNpb24gMTEuMC4xMjAxMTAwMA0KU3lzdGVtIERlc2NyaXB0 aW9uOiBEZWJpYW4gR05VL0xpbnV4IDExIChidWxsc2V5ZSkNCg0KQ29uZmln dXJlZCBmZWF0dXJlczoNCkFDTCBDQUlSTyBEQlVTIEZSRUVUWVBFIEdJRiBH TElCIEdNUCBHTlVUTFMgR1BNIEdTRVRUSU5HUyBIQVJGQlVaWiBKUEVHDQpM Q01TMiBMSUJPVEYgTElCU0VMSU5VWCBMSUJTWVNURU1EIExJQlhNTDIgTTE3 Tl9GTFQgTU9EVUxFUyBOT1RJRlkNCklOT1RJRlkgUERVTVBFUiBQTkcgUlNW RyBTRUNDT01QIFNPVU5EIFRIUkVBRFMgVElGRiBUT09MS0lUX1NDUk9MTF9C QVJTDQpYMTEgW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eCBtdWx0aS10dHkgbWFrZS1uZXR3b3JrLXByb2Nl c3MgZW1hY3MpDQoNCk1lbW9yeSBpbmZvcm1hdGlvbjoNCigoY29uc2VzIDE2 IDkyMzg5IDQ0NzgpDQogKHN5bWJvbHMgNDggOTM4OSAxKQ0KIChzdHJpbmdz IDMyIDI5NTkxIDE0NzEpDQogKHN0cmluZy1ieXRlcyAxIDEwNzg0NzMpDQog KHZlY3RvcnMgMTYgMTg5NzMpDQogKHZlY3Rvci1zbG90cyA4IDIzOTQ3MiA5 OTU5KQ0KIChmbG9hdHMgOCAyOCA0NikNCiAoaW50ZXJ2YWxzIDU2IDE1NTYg MCkNCiAoYnVmZmVycyA5OTIgMjEpKQ0K --0-1928447193-1659888992=:18062-- From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 07 12:31:36 2022 Received: (at 57042) by debbugs.gnu.org; 7 Aug 2022 16:31:36 +0000 Received: from localhost ([127.0.0.1]:38220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKjBg-0000hp-0o for submit@debbugs.gnu.org; Sun, 07 Aug 2022 12:31:36 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36916) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKjBe-0000hd-BO for 57042@debbugs.gnu.org; Sun, 07 Aug 2022 12:31:34 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57784) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKjBW-00025e-Ru; Sun, 07 Aug 2022 12:31:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=0zXUEiECJmKBzmoXwnEZ/WEe59c/UfCSlpnrMkbtobU=; b=DJ/CKVwDY0qp vmdslDTRQWQjszg/PzlYCxy8ibuHcvRNsBNEBRRR0Dpx9DROxgtJfZlesbttKXkOVUz60k23EFL81 DlbS2fdXcc5ajaWs8f2r9ECle8gkfHgRxvYeyDz7Fh7FYh2j4e4soANSlTuoS0zzkiOrjxxsPyQqT e4fqUH5dKD0ZhEUVLGZxVwos0ayrr+tNgxmTWCyJH3XuId/9qI46GpRUovOx2rmwVQE7OZ8GSlFoM 5wYVmVPX4u6Yjx5+joliB99oLpvrJIlepKA9QwkKsSe2MLcnawpcoqvnLXYTPtwBEsRJwDB/Ps61o EWtQ9UO70Z1cVKqRqLrrxA==; Received: from [87.69.77.57] (port=2770 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKjBW-0005Gw-79; Sun, 07 Aug 2022 12:31:26 -0400 Date: Sun, 07 Aug 2022 19:31:11 +0300 Message-Id: <83r11svwvk.fsf@gnu.org> From: Eli Zaretskii To: Van Ly In-Reply-To: (message from Van Ly on Sun, 7 Aug 2022 16:16:31 +0000 (UTC)) Subject: Re: bug#57042: 28.1.91; c-mode autoindents cweb style lines References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 57042 Cc: 57042@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Sun, 7 Aug 2022 16:16:31 +0000 (UTC) > From: Van Ly > > C Mode autoindents CWEB style lines undesirably. > > Steps to reproduce > . starting from 'emacs -Q' > . open new file 'C-x f /dev/shm/explain.w' > . enable mode for C 'M-x c-mode' > . enter the C CWEB style source text below > . Explanation} > the last two lines autoindent but I expect them to be without > . at line 6 below at # position c-set-offset reports 'cpp-macro' > . at line 0 below at # position c-set-offset reports 'cpp-macro' > > Expected result is for lines 6, F and 0 below to be without indent. > > ``` > 1 @** Convert 511 decimal to octal. > 2 @d _x_number_x_ 511 > 3 @d _x_banner_x_ "What is the value of %d in octal?" > 4 @c > 5 #include > 6 #include "u.h" > 7 int@/ > 8 main(void)@/ > 9 { > A int n = _x_number_x_; > B printf (_x_banner_x_, n); > C printf ("%s! %d decimal is %o octal\n", "Right", n, n); > D } > E @ @(u.h@>= > F @h > 0 #include > ``` 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. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 07 14:12:45 2022 Received: (at 57042) by debbugs.gnu.org; 7 Aug 2022 18:12:45 +0000 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 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 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 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 Date: Sun, 7 Aug 2022 18:12:37 +0000 (UTC) From: Van Ly To: Eli Zaretskii Subject: Re: bug#57042: 28.1.91; c-mode autoindents cweb style lines In-Reply-To: <83r11svwvk.fsf@gnu.org> Message-ID: <5bfc098-735f-1930-d058-35ace7605d69@SDF.ORG> References: <83r11svwvk.fsf@gnu.org> Organization: Sourceware Defines Fortress MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 57042 Cc: 57042@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 07 17:58:38 2022 Received: (at 57042) by debbugs.gnu.org; 7 Aug 2022 21:58:38 +0000 Received: from localhost ([127.0.0.1]:38453 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKoIA-0000Uu-BX for submit@debbugs.gnu.org; Sun, 07 Aug 2022 17:58:38 -0400 Received: from quimby.gnus.org ([95.216.78.240]:32894) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKoI8-0000UZ-DZ for 57042@debbugs.gnu.org; Sun, 07 Aug 2022 17:58:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=NQj78gl/xkgtW3r2JDsQrZimTMCT0qCF8DXMA+Szxno=; b=J1sRBEMScSXgFVO7egm4IjpHqj I8JzflCPscUeSNxE5xa47FHBOCnnGXHlTbROfPXffVQatvy9amAJTe+qU7UXmuYB1xkIfuhb2zjVD GcG178XoRjIiB426p758AqkgyIgbEZ2fSTwhdem5gbbiDqQyMgzgNL3u6I2d3ROtZGlM=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oKoHw-0002Nr-Bo; Sun, 07 Aug 2022 23:58:27 +0200 From: Lars Ingebrigtsen To: Van Ly Subject: Re: bug#57042: 28.1.91; c-mode autoindents cweb style lines In-Reply-To: <5bfc098-735f-1930-d058-35ace7605d69@SDF.ORG> (Van Ly's message of "Sun, 7 Aug 2022 18:12:37 +0000 (UTC)") References: <83r11svwvk.fsf@gnu.org> <5bfc098-735f-1930-d058-35ace7605d69@SDF.ORG> Date: Sun, 07 Aug 2022 23:58:23 +0200 Message-ID: <87o7wvyav4.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Van Ly writes: > 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, [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 57042 Cc: 57042@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Van Ly writes: > 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. c-mode doesn't support the cweb language, and won't do that, either. It might make sense to add a package for doing that to ELPA, but I haven't seen anybody request that either, so it seems like there's not really much demand for it. In any case, I don't think there's anything actionable here on the Emacs side, so I'm closing this bug report. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 07 17:58:40 2022 Received: (at control) by debbugs.gnu.org; 7 Aug 2022 21:58:40 +0000 Received: from localhost ([127.0.0.1]:38455 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKoIC-0000V3-Ls for submit@debbugs.gnu.org; Sun, 07 Aug 2022 17:58:40 -0400 Received: from quimby.gnus.org ([95.216.78.240]:32902) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKoI9-0000Uc-Pr for control@debbugs.gnu.org; Sun, 07 Aug 2022 17:58:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=o5/Ns7BSchmn3Kfia3WMmpgEwI6R5jI9lQKXYuTu8Gk=; b=ZXvlYsJQODXncoARfQLukb2jCl hQWwPuLeThtK1dmcDPh/My5h3kTetV3IJxV1aRkerOkRXqqOydAiyGTwc1qJCyT0KMhrO2xhFe1F0 WDw1NNYs7SYJG4kU3qQZ1wSwE4hjto6NOw8b/U9JxQ6tgd9h/lSqzo52Lnc+2PAsNln4=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oKoI2-0002Nv-4j for control@debbugs.gnu.org; Sun, 07 Aug 2022 23:58:32 +0200 Date: Sun, 07 Aug 2022 23:58:29 +0200 Message-Id: <87mtcfyauy.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #57042 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 57042 notabug close 57042 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 57042 notabug close 57042 quit From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 07 23:50:36 2022 Received: (at 57042) by debbugs.gnu.org; 8 Aug 2022 03:50:36 +0000 Received: from localhost ([127.0.0.1]:38719 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKtml-0007Ps-SN for submit@debbugs.gnu.org; Sun, 07 Aug 2022 23:50:36 -0400 Received: from mx.sdf.org ([205.166.94.24]:49599) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKtmh-0007Pd-FO for 57042@debbugs.gnu.org; Sun, 07 Aug 2022 23:50:34 -0400 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 2783oTnO029013 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Mon, 8 Aug 2022 03:50:29 GMT Received: from localhost (van.ly@localhost) by sdf.org (8.15.2/8.12.8/Submit) with ESMTP id 2783oSft028427; Mon, 8 Aug 2022 03:50:28 GMT Date: Mon, 8 Aug 2022 03:50:28 +0000 (UTC) From: Van Ly To: Lars Ingebrigtsen Subject: Re: bug#57042: 28.1.91; c-mode autoindents cweb style lines In-Reply-To: <87o7wvyav4.fsf@gnus.org> Message-ID: References: <83r11svwvk.fsf@gnu.org> <5bfc098-735f-1930-d058-35ace7605d69@SDF.ORG> <87o7wvyav4.fsf@gnus.org> Organization: Sourceware Defines Fortress MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 57042 Cc: 57042@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Sun, 7 Aug 2022, Lars Ingebrigtsen wrote: > > c-mode doesn't support the cweb language, and won't do that, either. > > It might make sense to add a package for doing that to ELPA, but I > haven't seen anybody request that either, so it seems like there's not > really much demand for it. > But I did when I discovered cweb is out there and working. I posted a bug report with a link to the cweb mode el file. I guess ownership and licensing bureaucratic complication make it less available and to keep current. Finding that file wasn't easy. Anyway, cweb has intrinsic value in as much Emacs has. Prog mode doesn't indent the second brace right at all which was why I tried the c mode next. 'C-c C-o' can tell c mode to override the autoindent to offset 0. -- vl From unknown Fri Jun 20 07:16:46 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 05 Sep 2022 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator