From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#45140: 28.0.50; rendering c source on the tty inside virtual console Date: Mon, 11 Oct 2021 05:14:28 -0700 Message-ID: References: <865z5ac28u.fsf@sacsa.i-did-not-set--mail-host-address--so-tickle-me> 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="22577"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Cc: 45140@debbugs.gnu.org, Alan Mackenzie To: rrandresf@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 11 14:15:54 2021 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 1mZuDi-0005j2-7m for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Oct 2021 14:15:54 +0200 Original-Received: from localhost ([::1]:48128 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mZuDg-0004P9-Vd for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Oct 2021 08:15:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40322) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZuCt-0003uf-Ma for bug-gnu-emacs@gnu.org; Mon, 11 Oct 2021 08:15:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45365) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mZuCs-0001HU-F9 for bug-gnu-emacs@gnu.org; Mon, 11 Oct 2021 08:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mZuCs-0001qA-A0 for bug-gnu-emacs@gnu.org; Mon, 11 Oct 2021 08:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Oct 2021 12:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45140 X-GNU-PR-Package: emacs Original-Received: via spool by 45140-submit@debbugs.gnu.org id=B45140.16339544777031 (code B ref 45140); Mon, 11 Oct 2021 12:15:02 +0000 Original-Received: (at 45140) by debbugs.gnu.org; 11 Oct 2021 12:14:37 +0000 Original-Received: from localhost ([127.0.0.1]:56911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZuCS-0001pJ-OI for submit@debbugs.gnu.org; Mon, 11 Oct 2021 08:14:37 -0400 Original-Received: from mail-pf1-f172.google.com ([209.85.210.172]:41820) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZuCQ-0001os-Ie for 45140@debbugs.gnu.org; Mon, 11 Oct 2021 08:14:35 -0400 Original-Received: by mail-pf1-f172.google.com with SMTP id y7so5158337pfg.8 for <45140@debbugs.gnu.org>; Mon, 11 Oct 2021 05:14:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=iAwSbJsAmpV/miGkWbklNqmPjDP+2LcQtntbLxNfvMk=; b=BY0GmRYC5ypiQWifAxH9xiO/QZct5vQ0+JVhMMJk3YncZ5MBp9luwoWAJVtbNcrrLV Agm+FvM46VbMQ7h58q7xQklWkZoG3bNv5u78EGnu4k3xx4jbrnh5hOuQHCK66K2VLln1 ejp0g/1E1OCxkPONmrxspMh3WU1y1V2qY1BUCa7Qx9bMfUU9mDp1rftBAj8S9qksURtQ XDsFvMjq0zO9REgokWCeP/tKaD5g8Gh168ZjZZlGC4/yD14HYMqSaTezoadBG1BNYoQS TRyDZJVLQaiyGi51DzdsB73eZ+N8zyqTNzcuQFOuMRHUstfovzKhlBnsMBEQ7Yypghnh RNfA== X-Gm-Message-State: AOAM533PCXqJuWRAx/0y9cvJJilZfZHV/9HFzAhKGyhvGWZ5pe/fukL+ ggmIvE/UOHCrhjSEqAElCJN7NifxODwgXQSPXx+Zc+zz X-Google-Smtp-Source: ABdhPJxDwSR5WgvyZZMVoPuYsWV4YfhWar/zRak0BMcDFemPCnhgV59ZA8XsomHUAL5vOi8G3bm4ZPOK+D0bLe4HcuI= X-Received: by 2002:a63:d506:: with SMTP id c6mr17801549pgg.42.1633954468879; Mon, 11 Oct 2021 05:14:28 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 11 Oct 2021 05:14:28 -0700 In-Reply-To: <865z5ac28u.fsf@sacsa.i-did-not-set--mail-host-address--so-tickle-me> (rrandresf@gmail.com's message of "Wed, 09 Dec 2020 17:34:25 +0000") 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:216886 Archived-At: rrandresf@gmail.com writes: > Hi. Guys. > > On emacs 27.1 emacs on the tty renders pretty fine. > > > > On emacs 28.0.50 the colors has changed (read quality was better on 27) So I guess this is about highlighting in cc-mode? Alan, any idea if anything has changed in this area? Screenshots are in: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=45140 > Part of source code (Just in case) > > // tx_ok set here in case of online; TODO: mark the retry case before calling this func > void edi_tracking_bean_check_ticket_status(edi_tracking_bean_t self) { > inv_company_t company_bean; > credentials_t credentials; > buffer_t text_4_template_xml; > buffer_t text_inc_as_json_data_ptr; > buffer_t text_out; > const char *template_name_4_verbosity; > Err error; > bool flag; > > flag = true; > credentials = (credentials_t)objects_search(self-> app_objects, (int)credentials_free); > company_bean = credentials_get_company_bean(credentials); > > // export_company_data_for_edi_ticket_status > text_inc_as_json_data_ptr = inv_company_short_info_for_getting_ticket_status_to_json(company_bean, edi_tracking_bean_get_ticket_number(self)); > if (!text_inc_as_json_data_ptr || (buffer_len(text_inc_as_json_data_ptr) < 1)) { > fprintf(stderr, "Err\n edi_tracking_bean_check_ticket_status issue on inv_company_short_info_for_getting_ticket_status_to_json %s\n", (const char*)buffer_ptr(text_inc_as_json_data_ptr)); > inv_error_bean_set_data_helper(contrErrElectronicInvoicePoliIssue, "edi_tracking_bean_check_ticket_status issue on inv_company_short_info_for_getting_ticket_status_to_json", &error); > flag = false; > } > > //get_line_content_template > template_name_4_verbosity = "electronic_invoice_get_ticket_status"; > text_out = buffer_alloc (DEFAULT_ARRAY_SIZE); > text_4_template_xml = buffer_alloc( DEFAULT_ARRAY_SIZE ); > contr_print_get_printer_resource_template_from_database(credentials_get_conn(credentials), template_name_4_verbosity, text_4_template_xml, &error); > if (buffer_len(text_4_template_xml) < 1) { > fprintf(stderr, "Err\n edi_tracking_bean_check_ticket_status issue on contr_print_get_printer_template_from_database %s\n", template_name_4_verbosity); > inv_error_bean_set_data_helper(contrSaleErrPrintingIssue, "printer template is not present", &error); > flag = false; > } > > if (flag) { > flag = contr_print_merge((const char*)buffer_ptr(text_inc_as_json_data_ptr), (const char*)buffer_ptr(text_4_template_xml), template_name_4_verbosity, text_out, &error); > if (flag) { > edi_tracking_bean_set_post_data_for_ticket_status(self, (const char*)buffer_ptr(text_out)); > flag = _edi_tracking_bean_check_ticket_status_helper(self, credentials, &error); // send > if (flag) { > // if_ok, {printf log.info} {inspect and analyze xml_result -> } {0127|0|98|99} > edi_tracking_bean_set_was_transaction_ok(self); > } > } > } > > buffer_free(text_4_template_xml); > buffer_free(text_out); > } > > > Best Regards > ps: Ctrl+Alt+F3 {for going to tty3; and then emacsclient -c -t} > > > In GNU Emacs 28.0.50 (build 2, armv7l-unknown-linux-gnueabihf, X toolkit, cairo version 1.17.3, Xaw3d scroll bars) > of 2020-12-09 built on sacsa > Windowing system distributor 'The X.Org Foundation', version 11.0.12009000 > System Description: Arch Linux ARM > > Configured using: > 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib > --localstatedir=/var --with-x-toolkit=lucid --with-xft --without-gconf > --without-gsettings --with-modules > '--program-transform-name=s/^ctags$/ctags.emacs/' --without-pop > --with-wide-int --with-json=yes 'CFLAGS=-march=armv7-a -mfloat-abi=hard > -mfpu=vfpv3-d16 -O2 -pipe -fstack-protector-strong -fno-plt' > CPPFLAGS=-D_FORTIFY_SOURCE=2 > LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' > > Configured features: > XAW3D XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GLIB NOTIFY > INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB > TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON > PDUMPER LCMS2 > > Important settings: > value of $LC_COLLATE: C > value of $LANG: en_US.UTF-8 > locale-coding-system: utf-8-unix > > Major mode: Lisp Interaction > > Minor modes in effect: > tooltip-mode: t > global-eldoc-mode: t > eldoc-mode: t > electric-indent-mode: t > mouse-wheel-mode: t > tool-bar-mode: t > menu-bar-mode: t > file-name-shadow-mode: t > global-font-lock-mode: t > font-lock-mode: t > blink-cursor-mode: t > auto-composition-mode: t > auto-encryption-mode: t > auto-compression-mode: t > line-number-mode: t > transient-mark-mode: t > > Load-path shadows: > None found. > > Features: > (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs > rfc822 mml easymenu mml-sec epa derived epg epg-config gnus-util rmail > rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs > eieio-loaddefs password-cache json map text-property-search time-date > subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies > mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs > cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils > iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks > lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar > dnd fontset image regexp-opt fringe tabulated-list replace newcomment > text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar > rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock > syntax facemenu font-core term/tty-colors frame minibuffer cl-generic > 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 charscript charprop > case-table epa-hook jka-cmpr-hook help simple abbrev obarray > cl-preloaded nadvice button loaddefs faces cus-face macroexp files > window text-properties overlay sha1 md5 base64 format env code-pages > mule custom widget hashtable-print-readable backquote threads dbusbind > inotify lcms2 dynamic-setting font-render-setting cairo x-toolkit x > multi-tty make-network-process emacs) > > Memory information: > ((conses 16 52810 10166) > (symbols 48 7064 1) > (strings 16 19280 2077) > (string-bytes 1 614498) > (vectors 16 12353) > (vector-slots 8 176032 10074) > (floats 8 23 43) > (intervals 40 236 6) > (buffers 872 10))