From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Amol Surati Newsgroups: gmane.emacs.bugs Subject: bug#70367: 30.0.50; Inconsistent Syntax Highlighting Date: Sat, 13 Apr 2024 18:12:54 +0530 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27727"; mail-complaints-to="usenet@ciao.gmane.io" To: 70367@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 13 18:40:14 2024 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 1rvgQH-0006yM-Tm for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Apr 2024 18:40:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rvgPz-0000r6-UT; Sat, 13 Apr 2024 12:39:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rvgPy-0000qM-3u for bug-gnu-emacs@gnu.org; Sat, 13 Apr 2024 12:39:54 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rvgPx-00010m-Rk for bug-gnu-emacs@gnu.org; Sat, 13 Apr 2024 12:39:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rvgQ8-0006iV-4m for bug-gnu-emacs@gnu.org; Sat, 13 Apr 2024 12:40:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Amol Surati Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Apr 2024 16:40:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 70367 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.171302636525372 (code B ref -1); Sat, 13 Apr 2024 16:40:04 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Apr 2024 16:39:25 +0000 Original-Received: from localhost ([127.0.0.1]:33711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rvgPS-0006aw-5W for submit@debbugs.gnu.org; Sat, 13 Apr 2024 12:39:24 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:51500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rvcii-00070m-Rv for submit@debbugs.gnu.org; Sat, 13 Apr 2024 08:43:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rvciS-0003jK-UZ for bug-gnu-emacs@gnu.org; Sat, 13 Apr 2024 08:42:44 -0400 Original-Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rvciQ-0006mx-PF for bug-gnu-emacs@gnu.org; Sat, 13 Apr 2024 08:42:44 -0400 Original-Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-516cbf3fd3dso2132804e87.2 for ; Sat, 13 Apr 2024 05:42:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713012159; x=1713616959; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=glHUcy0/ftjTZI8cLbxxlEyfwrL4ndDuvdYiKgNuItk=; b=A6lTygQ7UZnrQ1iC6MCCKFGQP+IZS94Ybv+iyhHg5jFN/ui9e7Rk8m0PT5ChSJRwwy 5ALVUFfoRYQbe1vM7spieURT/g5WNUDMdjMZ6URlGWrcrnhXS3jd9Xg1HwrisEnXkpsv nouYx5Zx/SMKPu6Io6XAKDeZ1je0qOsj3D8xYzrfCQ2SM0hmmrHxHpSrQSYjB9tb/ZvM Q9j/qCI/SWa3UBAT49MX8aZ5v3giW7mz2xnShsY+omQPhoNgljAXdUIKqHL5PSI77ziz Je07OrAFH/XgSEJVOfZvKWULJh4jH1+iWvplKjxxhLcx9VtfVrinX8Uwq6qOkWZ4vsdO 1qmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713012159; x=1713616959; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=glHUcy0/ftjTZI8cLbxxlEyfwrL4ndDuvdYiKgNuItk=; b=X5csxe372VdCMiWMdAJhV3TjXtrBCv80SVCIYUX5dO79j9sMxX3VuAlYUsYH0H8105 XpygB2Rgz3pjxU3y9BgW8aKrf8Jkpu7VDqXH0x81IadYopn+Z3T6uWRgiyCu1xhcSpl9 OEZy5FpPhWB7OPK0PfGfs9BKs2ibphCp7PkpxXASFcuzbgU0G4ycKZyMwp3kCYiHipeR ALndBsTq9MDIlRDOY9qTCVHf673oUReHcdbjByiZktULm7Yxx7O3Peo1fOiXhh4pGbxO bOfw6oBJ8QPLZkABBliBHANYQNRSj9iB/lDNfMtskdoyLfhnf+604Xyvj5e46u7LYWlW RrGw== X-Gm-Message-State: AOJu0YxRh3gYZcfpO5+Nl+W9FpI9RboXk4foIc3Vb3dNnMBheSdBg8a2 3pyzlwapn8onert/K0oAq35KTMc0Dd0Rp0aYw3n0bBAePmFag1IWTPZeRfk/SFUJIK1WXCkD9gH 1GyNCBaSdseYuuxuc1syUyVTT5blr2HHfa8w= X-Google-Smtp-Source: AGHT+IGoco39OPdNpngpMafGPI/R4wY7VASeA32RGePSqvnP9V8Pcj5hIHC1fCmadT4Gv6BYQceZ+QdyWXITY+CmqtU= X-Received: by 2002:a2e:8715:0:b0:2d8:55ac:c3a4 with SMTP id m21-20020a2e8715000000b002d855acc3a4mr3234113lji.22.1713012158464; Sat, 13 Apr 2024 05:42:38 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::129; envelope-from=suratiamol@gmail.com; helo=mail-lf1-x129.google.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 13 Apr 2024 12:39:21 -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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:283225 Archived-At: --text follows this line-- The problem is not found in terminal emacs built from the released 29.3.tar.gz, or with emacs running under GUI (i.e. under PGTK). The problem is seen with terminal emacs built from the master branch, at various commit levels. Problem: When a large file (for e.g. vulkan_core.h) is opened, certain constructs have their syntax highlighting broken. The video found at [1] shows the behaviour. At the end of the video, one can see one instance of the problem; the syntax highlighting for the enum constant 'VK_STRUCTURE_TYPE_EVENT_CREATE_INFO = 10,' abruptly breaks. The entire identifier VK_STRUCTURE_TYPE_EVENT_CREATE_INFO must be one colour. Instead, 'VK_STRUCTURE_TYPE_EVENT_CREA' is of the expected colour, while 'TE_INFO' is of the colour that is expected with '= 10,'. You may want to download the video and then play it, if Google Drive plays it at a resolution that is lower than the video's native resolution. Within this same session, there were other such enum constants with broken highlighting, though they have not been captured in the video. The termscript is attached at [2]. The graphics session is Wayland with swaywm as its compositor; XWayland is not enabled. The terminal emulator is 'foot'. Another terminal emulator, 'alacritty' was also tested; the problem occurred there too. The problem doesn't seem to occur with small-sized files; After reducing the vulkan_core.h to contain only around 235 lines, emacs was able to show the (reduced) file with consistent highlighting. Thank you, Amol Surati [1] https://drive.google.com/file/d/1C2pSlh3x1g91lUsErryLnLP5995Jcg6c/ [2] https://pastebin.com/UiKSZWm7 ------------------------------------------------------------------------ In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu) Repository revision: 8b210a636fe426f47bccdb111af61d6310755dde Repository branch: master System Description: Arch Linux Configured using: 'configure --prefix=/home/user/tools/emacs --without-all --with-native-compilation=aot --with-zlib --without-x --without-json --without-sound --with-small-ja-dic --disable-build-details --without-sqlite3 --with-compress-install 'CFLAGS=-O2 -mtune=native -march=native -fomit-frame-pointer'' Configured features: GMP NATIVE_COMP PDUMPER SECCOMP XIM ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: global-display-fill-column-indicator-mode: t display-fill-column-indicator-mode: t save-place-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t minibuffer-regexp-mode: t column-number-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t auto-save-visited-mode: t Load-path shadows: None found. Features: (shadow sort regexp-opt mail-extr emacsbug message mailcap yank-media puny dired dnd dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils term/xterm xterm byte-opt gv bytecomp byte-compile modus-vivendi-theme modus-themes subr-x easy-mmode display-fill-column-indicator saveplace cl-seq cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 126813 13455) (symbols 48 8344 0) (strings 32 19368 1588) (string-bytes 1 634561) (vectors 16 7702) (vector-slots 8 94144 6327) (floats 8 50 8) (intervals 56 241 1) (buffers 984 11))