From unknown Fri Jun 20 07:23:53 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#55002 <55002@debbugs.gnu.org> To: bug#55002 <55002@debbugs.gnu.org> Subject: Status: 27.1; Abnormal behaviour in C mode Reply-To: bug#55002 <55002@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:23:53 +0000 retitle 55002 27.1; Abnormal behaviour in C mode reassign 55002 emacs submitter 55002 bill@billp.org severity 55002 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 18 10:19:53 2022 Received: (at submit) by debbugs.gnu.org; 18 Apr 2022 14:19:53 +0000 Received: from localhost ([127.0.0.1]:40376 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngSEJ-0000Fv-SM for submit@debbugs.gnu.org; Mon, 18 Apr 2022 10:19:52 -0400 Received: from lists.gnu.org ([209.51.188.17]:58442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngQ2Y-0002Vo-Jl for submit@debbugs.gnu.org; Mon, 18 Apr 2022 07:59:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43372) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngQ2Y-0000WH-C3 for bug-gnu-emacs@gnu.org; Mon, 18 Apr 2022 07:59:34 -0400 Received: from mailrelay3-2.pub.mailoutpod1-cph3.one.com ([46.30.212.2]:38620) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngQ2V-0005fZ-EE for bug-gnu-emacs@gnu.org; Mon, 18 Apr 2022 07:59:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=billp.org; s=rsa2; h=content-transfer-encoding:content-type:from:reply-to:subject:to:mime-version: date:message-id:from; bh=LtgkaGxtuVoFSqCafDy9lIBFyo162nyw8aD8YP6Ltzw=; b=NF6O6WxyLGGtfh2ZvaeehdMTkJoyWtqPYw1ZV5c/LYgMloxPUmT5F7wKcKhmo7K9X+ckAG2LC57s8 DvqzasWsRT+J2GtQqGgss8G1d8jjP6/OJeLO0GPr7xddhHpinnUviR4jNweTPwLlcGbEb0nRfAJ9ah sv/xhMcVbc2BM+LDpeA1v+h1LOHjS/qSl+OnVvZT7pbIZ+Qn5S7rEk9OyX9Z0T+w7EI5rpk7sMwMpV rLSRxNiF9+M4lEc4ItJRGK97HYqnWJD7A/Z7ujSMYbHhXxj25ypwrmx5sIrsK6TxQZWQ81Ci1jPPhI ArFmyqkqwaldiV1hwaadJws0ZutNbjQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=billp.org; s=ed2; h=content-transfer-encoding:content-type:from:reply-to:subject:to:mime-version: date:message-id:from; bh=LtgkaGxtuVoFSqCafDy9lIBFyo162nyw8aD8YP6Ltzw=; b=JxInHh/eGpMqpFFba/7dcmwiipm94hlvlSpCQaDQJlkTLMs9vW0s0M2SKjvFCi4VGpfbL/ax8T479 C9PaGxFDQ== X-HalOne-Cookie: 9aef5c86ff8f38df9b8dc866f957082110005ea5 X-HalOne-ID: fd4bb9b0-bf0e-11ec-be68-d0431ea8bb03 Received: from [192.168.1.134] (88.200.208.46.dyn.plus.net [46.208.200.88]) by mailrelay3.pub.mailoutpod1-cph3.one.com (Halon) with ESMTPSA id fd4bb9b0-bf0e-11ec-be68-d0431ea8bb03; Mon, 18 Apr 2022 11:59:24 +0000 (UTC) Message-ID: Date: Mon, 18 Apr 2022 12:59:24 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 To: bug-gnu-emacs@gnu.org Subject: 27.1; Abnormal behaviour in C mode Content-Language: en-US From: Bill Purvis Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: none client-ip=46.30.212.2; envelope-from=bill@billp.org; helo=mailrelay3-2.pub.mailoutpod1-cph3.one.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 18 Apr 2022 10:19:50 -0400 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: , Reply-To: bill@billp.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) I was creating a C program, and part way through I skipped back to define an additional variable. I started to type: 'static int...' but instead of displaying the characters it inserted newlines until it encountered a punctuation character, whereupon the characters I had typed appeared and the inserted newlines disappeared. I found this very disconcerting. Saving the file, restarting emacs and the problem remains. I have eventually tracked down what brings it up, spending the whole of a morning trying variants of code, and finally tracked it down to an incomplete character string lower down in the program. However, I still rate this behaviour as a bug and did a google search on Stack Exchange and was advised by 'drew' to look at me .emacs file. I have been using for many years (30+?) and my .emacs file has accumulated over the years. Most of the entries I can't what they do or why I added them, so I spent quite a while commenting them out, to see if that modifies the effect. I have finally concluded that the line: (global-font-lock-mode 0) appears to be the culprit. Here is a copy of my current .emacs file: ---------------------------o>) id 1ngkKU-00051S-KD for submit@debbugs.gnu.org; Tue, 19 Apr 2022 05:39:26 -0400 Received: from lists.gnu.org ([209.51.188.17]:57792) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngkKS-00051I-Lw for submit@debbugs.gnu.org; Tue, 19 Apr 2022 05:39:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41722) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngkKS-0003QS-9H for bug-gnu-emacs@gnu.org; Tue, 19 Apr 2022 05:39:24 -0400 Received: from zm-mta-out-3.u-ga.fr ([152.77.200.56]:58542) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngkKP-00046h-H0 for bug-gnu-emacs@gnu.org; Tue, 19 Apr 2022 05:39:23 -0400 Received: from mailhub.u-ga.fr (mailhub-1.u-ga.fr [129.88.178.98]) by zm-mta-out-3.u-ga.fr (Postfix) with ESMTP id BF3104023E for ; Tue, 19 Apr 2022 11:39:16 +0200 (CEST) Received: from smtps.univ-grenoble-alpes.fr (smtps2.u-ga.fr [152.77.18.2]) by mailhub.u-ga.fr (Postfix) with ESMTP id BD0FC100065 for ; Tue, 19 Apr 2022 11:39:16 +0200 (CEST) Received: from [192.168.1.15] (unknown [88.126.6.51]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: mounieg@univ-grenoble-alpes.fr) by smtps.univ-grenoble-alpes.fr (Postfix) with ESMTPSA id 86212140059 for ; Tue, 19 Apr 2022 11:39:16 +0200 (CEST) Message-ID: Date: Tue, 19 Apr 2022 11:39:15 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Content-Language: en-US To: bug-gnu-emacs@gnu.org From: =?UTF-8?Q?Gr=c3=a9gory_Mouni=c3=a9?= Subject: bug#55002: 27.1; Abnormal behaviour in C mode Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------txuT0y3PMu2FVPKt8NfkWPIw" X-Greylist: Whitelist-UGA SMTP Authentifie (mounieg@univ-grenoble-alpes.fr) via smtps-465 ACL (42) Received-SPF: pass client-ip=152.77.200.56; envelope-from=Gregory.Mounie@imag.fr; helo=zm-mta-out-3.u-ga.fr 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=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.7 (-) 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.7 (--) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------txuT0y3PMu2FVPKt8NfkWPIw Content-Type: multipart/mixed; boundary="------------yeTb9WXH9UI0ICGb6du1JTKr"; protected-headers="v1" From: =?UTF-8?Q?Gr=c3=a9gory_Mouni=c3=a9?= To: bug-gnu-emacs@gnu.org Message-ID: Subject: bug#55002: 27.1; Abnormal behaviour in C mode --------------yeTb9WXH9UI0ICGb6du1JTKr Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 DQpUaGUgY3VscHJpdCBzZWVtcyB0byBiZSB0aGUgdW50ZXJtaW5hdGVkIHN0cmluZyAobm8g ZW5kaW5nIGRvdWJsZSBxdW90ZSkgDQp3aXRoIGEgcGFyZW50aGVzaXMgaW4gZnJvbnQgb2Yg aXQuDQoNCiAgZW1hY3MgLXEgZHVtbXkuYyAtLWV2YWw9JyhnbG9iYWwtZm9udC1sb2NrLW1v ZGUgMCkNCg0KPT09DQovLyBkdW1teS5jDQoNCi8vIHR5cGUgYW55dGhpbmcgYWZ0ZXIgdGhp cyBsaW5lIHdpdGhvdXQgZ2xvYmFsIGZvbnQtbG9jay1tb2RlDQoNCi8vIHBhcmVudGhlc2lz ICsgdW50ZXJtaW5hdGVkIHN0cmluZyBzZWVtcyB0byBiZSB0aGUgY3VscHJpdA0KKCJ1bnRl cm1pbmF0ZWQgc3RyaW5nDQo9PT0gRU9GDQoNCg0KLS0gDQpHLiBNb3VuacOpIC0gQXNzb2Np YXRlIFByb2YuLCBVbml2LiBHcmVub2JsZSBBbHBlcyAoR3Jlbm9ibGUtSU5QL0Vuc2ltYWcp DQpMSUcgLSBEYXRhbW92ZSBJbnJpYSB0ZWFtLCBvZmYuIDQ0MCwgSU1BRyBidWlsZGluZywr MzMoMCk0NTcgNDIxIDUzMywgRlINCg== --------------yeTb9WXH9UI0ICGb6du1JTKr-- --------------txuT0y3PMu2FVPKt8NfkWPIw Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTzDJ9f66GlP6uDr69c1G3hwz4kBgUCYl6DQwUDAAAAAAAKCRBc1G3hwz4kBkFQ AQCw9ag1MQRmMnE70E02EOw/p/7hH1rFkJnyOVmoAzCS4gD/Yu8TY0W3YehejM9B7g4x8lk2f3QA gAg6XF5qqgQHyQA= =CBtD -----END PGP SIGNATURE----- --------------txuT0y3PMu2FVPKt8NfkWPIw-- From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 19 07:52:10 2022 Received: (at 55002) by debbugs.gnu.org; 19 Apr 2022 11:52:10 +0000 Received: from localhost ([127.0.0.1]:41879 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngmOw-0006kq-AS for submit@debbugs.gnu.org; Tue, 19 Apr 2022 07:52:10 -0400 Received: from quimby.gnus.org ([95.216.78.240]:34882) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngmOv-0006kb-2K for 55002@debbugs.gnu.org; Tue, 19 Apr 2022 07:52:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: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=u0GFeIJbOxPCTbAr1a6UUqJ8A4mopGx9NK0VibLLkwU=; b=vH5Z1hwrqTYsFq5expnyaVTre9 z9N4vkWYtoXV4UgIfQUGAf/Arv60j85gBSCHtaDepr7Yf3R4zaQBX8BQ3GYWBIIxndqoncMas59lj Kkj1jNLZAihvkyzDHAZFFsu8vYnZM9qFlJHqe2EAx0hRZxOmuM5IoxIurgXpmMNDFvFs=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ngmOm-0006Vs-Fw; Tue, 19 Apr 2022 13:52:02 +0200 From: Lars Ingebrigtsen To: =?utf-8?Q?Gr=C3=A9gory_Mouni=C3=A9?= Subject: Re: bug#55002: 27.1; Abnormal behaviour in C mode References: X-Now-Playing: AR Kane's _Single Collection (1)_: "Anitina (The First Time I See She Dance)" Date: Tue, 19 Apr 2022 13:52:00 +0200 In-Reply-To: (=?utf-8?Q?=22?= =?utf-8?Q?Gr=C3=A9gory=09Mouni=C3=A9=22's?= message of "Tue, 19 Apr 2022 11:39:15 +0200") Message-ID: <8735i9cmu7.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; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: Grégory Mounié writes: > The culprit seems to be the unterminated string (no ending double > quote) with a parenthesis in front of it. > > emacs -q dummy.c --eval='(global-font-lock-mode 0) > > === > // dummy.c > > // type [...] 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: 55002 Cc: 55002@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 (---) Gr=C3=A9gory Mouni=C3=A9 writes: > The culprit seems to be the unterminated string (no ending double > quote) with a parenthesis in front of it. > > emacs -q dummy.c --eval=3D'(global-font-lock-mode 0) > > =3D=3D=3D > // dummy.c > > // type anything after this line without global font-lock-mode > > // parenthesis + unterminated string seems to be the culprit > ("unterminated string > =3D=3D=3D EOF I can reproduce this in Emacs 27.2, but not in Emacs 28.1, so it looks like this has been fixed by now, and you just have to upgrade Emacs. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 19 07:52:16 2022 Received: (at control) by debbugs.gnu.org; 19 Apr 2022 11:52:16 +0000 Received: from localhost ([127.0.0.1]:41882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngmP2-0006lA-HG for submit@debbugs.gnu.org; Tue, 19 Apr 2022 07:52:16 -0400 Received: from quimby.gnus.org ([95.216.78.240]:34896) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngmP1-0006kp-GC for control@debbugs.gnu.org; Tue, 19 Apr 2022 07:52:15 -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=ECKtsmeUvoABKfRy4cOC2tgAEsvONnBtZiBS1/+hdug=; b=Z+cRdB4lWgolc1C99uvUO7Rbzj 6Ib1kn29pP5qV02s/S7c9PmkE7b0W5SHLHu4JOYFhDk+a6QPvLdh0GSLvp2SFzzv169ojUBBUYjsD HlVWrawsiHBrkku4qcKdfDAtsU2sqWNu0WFdIjqImHTNkhVVcKkcVn586YGZTzcrB2FA=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ngmOt-0006W8-Ux for control@debbugs.gnu.org; Tue, 19 Apr 2022 13:52:09 +0200 Date: Tue, 19 Apr 2022 13:52:07 +0200 Message-Id: <871qxtcmu0.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #55002 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: close 55002 28.1 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 (---) close 55002 28.1 quit From unknown Fri Jun 20 07:23:53 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 18 May 2022 11:24:04 +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