From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bill Purvis Newsgroups: gmane.emacs.bugs Subject: bug#55002: 27.1; Abnormal behaviour in C mode Date: Mon, 18 Apr 2022 12:59:24 +0100 Message-ID: Reply-To: bill@billp.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="609"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 To: 55002@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 18 16:20:17 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 1ngSEi-000ASr-QE for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 18 Apr 2022 16:20:17 +0200 Original-Received: from localhost ([::1]:48008 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngSEh-0002Bk-Kz for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 18 Apr 2022 10:20:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41492) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngSEU-0002A2-V4 for bug-gnu-emacs@gnu.org; Mon, 18 Apr 2022 10:20:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46479) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngSEU-0003Ic-MV for bug-gnu-emacs@gnu.org; Mon, 18 Apr 2022 10:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ngSEU-0000GS-I4 for bug-gnu-emacs@gnu.org; Mon, 18 Apr 2022 10:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Bill Purvis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Apr 2022 14:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55002 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.1650291593992 (code B ref -1); Mon, 18 Apr 2022 14:20:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Apr 2022 14:19:53 +0000 Original-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 Original-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 Original-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 Original-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 Original-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) Content-Language: en-US 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-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 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:230184 Archived-At: 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>