From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yusuf Talha via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#51799: 29.0.50; Editing C++ Files is Very Slow. Date: Sat, 13 Nov 2021 02:15:44 +0100 (CET) Message-ID: Reply-To: Yusuf Talha Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_885696_1976570840.1636766144977" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23386"; mail-complaints-to="usenet@ciao.gmane.io" To: 51799@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 13 02:19:12 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 1mlhhI-0005vI-Ib for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Nov 2021 02:19:12 +0100 Original-Received: from localhost ([::1]:34728 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mlhhH-0006tA-EA for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Nov 2021 20:19:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56202) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mlhh8-0006sl-Pn for bug-gnu-emacs@gnu.org; Fri, 12 Nov 2021 20:19:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34723) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mlhh8-0004tx-Hj for bug-gnu-emacs@gnu.org; Fri, 12 Nov 2021 20:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mlhh8-0004Ay-EV for bug-gnu-emacs@gnu.org; Fri, 12 Nov 2021 20:19:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Yusuf Talha Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Nov 2021 01:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51799 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.163676630816004 (code B ref -1); Sat, 13 Nov 2021 01:19:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Nov 2021 01:18:28 +0000 Original-Received: from localhost ([127.0.0.1]:46269 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mlhga-0004A3-08 for submit@debbugs.gnu.org; Fri, 12 Nov 2021 20:18:28 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:36350) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mlhe2-00045o-CB for submit@debbugs.gnu.org; Fri, 12 Nov 2021 20:15:52 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55866) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mlhe2-0006f9-7i for bug-gnu-emacs@gnu.org; Fri, 12 Nov 2021 20:15:50 -0500 Original-Received: from w1.tutanota.de ([81.3.6.162]:34844) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mlhdz-0004Sv-I4 for bug-gnu-emacs@gnu.org; Fri, 12 Nov 2021 20:15:49 -0500 Original-Received: from w3.tutanota.de (unknown [192.168.1.164]) by w1.tutanota.de (Postfix) with ESMTP id F41E4FBF5BE for ; Sat, 13 Nov 2021 01:15:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1636766144; s=s1; d=tuta.io; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Cc:Date:Date:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:Sender; bh=MV8rtInekzVDnotXdPowivxVt+IREIwut67g69ialLc=; b=N5bXI7LEKGvHS8N/TahapRl3w/MqQBCmErpg+Lw2+CMNOwCtaOUVUvOXljHLs3xj 61iL9JLL+eybOBZwi9wgpYmvkm3bCAfCX2XY7q1P+47RlZg5AjzRS7uL+BCcTDY/tDI XdOCLbzEi5vjEh4U9hDc7NHN8pOAqnVxa8Xh+tPJPc8jpKY/Sg3sBSavoMDJtPPfkRe NM/N8H8JUzuU5mCKC5qJ0dO8HGehiyTp5HFjxOc/i3W9SgRLWVgTWFdyHw4ZmBoVtR7 2IQa6hUP5g0M1Pp9yvYNIT12MK3SsfndnVo+Nxv4rrkFdz1XfpkHcs6qS3lArPQrqMY 40mPDaO7Qw== Received-SPF: pass client-ip=81.3.6.162; envelope-from=yusuftalha@tuta.io; helo=w1.tutanota.de 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, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 12 Nov 2021 20:18:26 -0500 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:219796 Archived-At: ------=_Part_885696_1976570840.1636766144977 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable When I open a C++ file in Emacs, editing and navigating commands are taking so long with c++-mode.=C2=A0 I figured that the =E2=80=98c-fonti= fy-new-found-type=E2=80=99 function in cc-engine.el causes it.=C2=A0 When I evaluate the old definiti= on of =E2=80=98c-add-type=E2=80=99 function, it fixes the issue.=C2=A0 I would b= e glad if you can handle this. Thank you. In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, cairo version 1.17.4) of 2021-11-12 built on localhost Repository revision: 18eec5720e3b49c0f9efb646bb896ba4e9549ea0 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12013000 System Description: Gentoo Linux Configured using: 'configure --prefix=3D/usr --build=3Dx86_64-pc-linux-gnu --host=3Dx86_64-pc-linux-gnu --mandir=3D/usr/share/man --infodir=3D/usr/share/info --datadir=3D/usr/share --sysconfdir=3D/etc --localstatedir=3D/var/lib --datarootdir=3D/usr/share --disable-silent-rules --docdir=3D/usr/share/doc/emacs-29.0.9999 --htmldir=3D/usr/share/doc/emacs-29.0.9999/html --libdir=3D/usr/lib64 --program-suffix=3D-emacs-29-vcs --includedir=3D/usr/include/emacs-29-vcs --infodir=3D/usr/share/info/emacs-29-vcs --localstatedir=3D/var --enable-locallisppath=3D/etc/emacs:/usr/share/emacs/site-lisp --without-compress-install --without-hesiod --without-pop --with-file-notification=3Dinotify --with-pdumper --enable-acl --with-dbus --with-modules --with-gameuser=3D:gamestat --with-libgmp --with-gpm --with-native-compilation --with-json --without-kerberos --without-kerberos5 --with-lcms2 --with-xml2 --with-mailutils --without-selinux --with-gnutls --without-libsystemd --with-threads --without-wide-int --with-zlib --with-sound=3Dalsa --with-x --without-ns --without-gconf --without-gsettings --without-toolkit-scroll-bars --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xpm --without-imagemagick --with-xft --with-cairo --with-harfbuzz --without-libotf --without-m17n-flt --with-x-toolkit=3Dno --with-dumping=3Dpdumper 'CFLAGS=3D-march=3Dnative -mtune=3Dnative -O2 -pi= pe' CPPFLAGS=3D 'LDFLAGS=3D-Wl,-O1 -Wl,--as-needed'' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY OLDXMENU PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF WEBP X11 XDBE XIM XPM ZLIB Important settings: value of $LANG: en_US.utf8 locale-coding-system: utf-8-unix Major mode: Text Minor modes in effect: shell-dirtrack-mode: t electric-pair-mode: t display-time-mode: t display-battery-mode: t dired-async-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-quote-mode: t electric-indent-mode: t mouse-wheel-mode: t tab-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 column-number-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t Load-path shadows: /usr/share/emacs/site-lisp/cmake-mode hides /usr/share/emacs/site-lisp/cmak= e/cmake-mode /usr/share/emacs/site-lisp/desktop-entry-mode hides /usr/share/emacs/site-l= isp/desktop-file-utils/desktop-entry-mode Features: (uudecode uce supercite regi spam-report spam spam-stat gnus-uu yenc gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime gnus-sum shr kinsoku svg dom gnus-group gnus-undo gnus-start gnus-dbus gnus-cloud nnimap nnmail mail-source nnoo gnus-spec gnus-int gnus-range gnus-win smtpmail sieve-manage sasl sasl-anonymous sasl-login sasl-plain pop3 mspools mh-e mh-compat mh-buffers mh-loaddefs mairix imap rfc2104 utf7 hashcash gnus-dired fortune feedmail ecomplete binhex mail-hist epa-mail add-log tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat parse-time iso8601 ls-lisp ntlm hmac-md5 hex-util md4 nsm netrc net-utils ldap kermit shell pcomplete gravatar dns url-cache gnutls eudc-vars dig bug-reference ange-ftp comint ansi-color mailalias mailclient qp noutline outline kmacro facemenu two-column goto-addr view shadow sort mail-extr emacsbug message yank-media rmc puny rfc822 mml mml-sec epa derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail cc-bytecomp cl-print apropos cus-edit pp cus-start pulse color xref project eieio-opt cl-extra speedbar ezimage dframe find-func shortdoc cc-langs thingatpt cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs misearch multi-isearch smerge-mode diff-mode diff mule-util ebuild-mode skeleton sh-script smie executable display-fill-column-indicator display-line-numbers server pinentry format-spec modus-vivendi-theme modus-themes pcase gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums text-property-search time-date mail-utils mm-util mail-prsvr wid-edit elec-pair time battery dbus xml dired-async async dired-aux dired dired-loaddefs cus-load google-translate-mode easy-mmode site-gentoo geiser-impl help-fns radix-tree help-mode geiser-custom geiser-base ring info package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map url-vars seq gv subr-x byte-opt bytecomp byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode 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 lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax 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 emoji-zwj 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 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 507526 32717) (symbols 48 26920 7) (strings 32 91090 4235) (string-bytes 1 3058380) (vectors 16 55147) (vector-slots 8 1576641 38054) (floats 8 481 583) (intervals 56 9713 940) (buffers 992 26)) ------=_Part_885696_1976570840.1636766144977 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


When I open a C++ file in Emacs, editing= and navigating commands
are taking so long with c++-mode.&nb= sp; I figured that the =E2=80=98c-fontify-new-found-type=E2=80=99
=
function in cc-engine.el causes it.  When I evaluate the old def= inition of
=E2=80=98c-add-type=E2=80=99 function, it fixes th= e issue.  I would be glad if you can handle this.
Thank you.


In GNU Ema= cs 29.0.50 (build 1, x86_64-pc-linux-gnu, cairo version 1.17.4)
of 2021-11-12 built on localhost
Repository revision: 18e= ec5720e3b49c0f9efb646bb896ba4e9549ea0
Repository branch: mast= er
Windowing system distributor 'The X.Org Foundation', versi= on 11.0.12013000
System Description: Gentoo Linux

Configured using:
'configure --prefix=3D/u= sr --build=3Dx86_64-pc-linux-gnu
--host=3Dx86_64-pc-linux-gn= u --mandir=3D/usr/share/man
--infodir=3D/usr/share/info --da= tadir=3D/usr/share --sysconfdir=3D/etc
--localstatedir=3D/va= r/lib --datarootdir=3D/usr/share
--disable-silent-rules --do= cdir=3D/usr/share/doc/emacs-29.0.9999
--htmldir=3D/usr/share= /doc/emacs-29.0.9999/html --libdir=3D/usr/lib64
--program-su= ffix=3D-emacs-29-vcs --includedir=3D/usr/include/emacs-29-vcs
--infodir=3D/usr/share/info/emacs-29-vcs --localstatedir=3D/var
=
--enable-locallisppath=3D/etc/emacs:/usr/share/emacs/site-lisp
--without-compress-install --without-hesiod --without-pop
--with-file-notification=3Dinotify --with-pdumper --enable-acl
--with-dbus --with-modules --with-gameuser=3D:gamestat --with-lib= gmp
--with-gpm --with-native-compilation --with-json --witho= ut-kerberos
--without-kerberos5 --with-lcms2 --with-xml2 --w= ith-mailutils
--without-selinux --with-gnutls --without-libs= ystemd --with-threads
--without-wide-int --with-zlib --with-= sound=3Dalsa --with-x --without-ns
--without-gconf --without= -gsettings --without-toolkit-scroll-bars
--with-gif --with-j= peg --with-png --with-rsvg --with-tiff --with-xpm
--without-= imagemagick --with-xft --with-cairo --with-harfbuzz
--withou= t-libotf --without-m17n-flt --with-x-toolkit=3Dno
--with-dum= ping=3Dpdumper 'CFLAGS=3D-march=3Dnative -mtune=3Dnative -O2 -pipe'
CPPFLAGS=3D 'LDFLAGS=3D-Wl,-O1 -Wl,--as-needed''

=
Configured features:
ACL CAIRO DBUS FREETYPE GIF G= LIB GMP GNUTLS GPM HARFBUZZ JPEG JSON LCMS2
LIBXML2 MODULES N= ATIVE_COMP NOTIFY INOTIFY OLDXMENU PDUMPER PNG RSVG
SECCOMP S= OUND THREADS TIFF WEBP X11 XDBE XIM XPM ZLIB

I= mportant settings:
value of $LANG: en_US.utf8
= locale-coding-system: utf-8-unix

Major mode: = Text

Minor modes in effect:
she= ll-dirtrack-mode: t
electric-pair-mode: t
dis= play-time-mode: t
display-battery-mode: t
dir= ed-async-mode: t
tooltip-mode: t
global-eldoc= -mode: t
show-paren-mode: t
electric-quote-mo= de: t
electric-indent-mode: t
mouse-wheel-mod= e: t
tab-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<= br>
auto-encryption-mode: t
auto-compression-mode= : t
column-number-mode: t
line-number-mode: t=
indent-tabs-mode: t
transient-mark-mode: t

Load-path shadows:
/usr/share/ema= cs/site-lisp/cmake-mode hides /usr/share/emacs/site-lisp/cmake/cmake-mode
/usr/share/emacs/site-lisp/desktop-entry-mode hides /usr/share= /emacs/site-lisp/desktop-file-utils/desktop-entry-mode

Features:
(uudecode uce supercite regi spam-report s= pam spam-stat gnus-uu yenc
gnus-msg gnus-art mm-uu mml2015 mm= -view mml-smime smime gnus-sum shr
kinsoku svg dom gnus-group= gnus-undo gnus-start gnus-dbus gnus-cloud
nnimap nnmail mail= -source nnoo gnus-spec gnus-int gnus-range gnus-win
smtpmail = sieve-manage sasl sasl-anonymous sasl-login sasl-plain pop3
m= spools mh-e mh-compat mh-buffers mh-loaddefs mairix imap rfc2104 utf7
hashcash gnus-dired fortune feedmail ecomplete binhex mail-hist ep= a-mail
add-log tramp tramp-loaddefs trampver tramp-integratio= n files-x
tramp-compat parse-time iso8601 ls-lisp ntlm hmac-m= d5 hex-util md4 nsm
netrc net-utils ldap kermit shell pcomple= te gravatar dns url-cache
gnutls eudc-vars dig bug-reference = ange-ftp comint ansi-color mailalias
mailclient qp noutline o= utline kmacro facemenu two-column goto-addr view
shadow sort = mail-extr emacsbug message yank-media rmc puny rfc822 mml
mml= -sec epa derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail cc-byt= ecomp
cl-print apropos cus-edit pp cus-start pulse color xref= project
eieio-opt cl-extra speedbar ezimage dframe find-func= shortdoc cc-langs
thingatpt cc-mode cc-fonts cc-guess cc-men= us cc-cmds cc-styles cc-align
cc-engine cc-vars cc-defs misea= rch multi-isearch smerge-mode diff-mode
diff mule-util ebuild= -mode skeleton sh-script smie executable
display-fill-column-= indicator display-line-numbers server pinentry
format-spec mo= dus-vivendi-theme modus-themes pcase gnus nnheader
gnus-util = rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums
text-property= -search time-date mail-utils mm-util mail-prsvr wid-edit
elec= -pair time battery dbus xml dired-async async dired-aux dired
dired-loaddefs cus-load google-translate-mode easy-mmode site-gentoo
geiser-impl help-fns radix-tree help-mode geiser-custom geiser-bas= e ring
info package browse-url url url-proxy url-privacy url-= expand url-methods
url-history url-cookie url-domsuf url-util= mailcap url-handlers
url-parse auth-source cl-seq eieio eiei= o-core cl-macs eieio-loaddefs
password-cache json map url-var= s seq gv subr-x byte-opt bytecomp
byte-compile cconv cl-loadd= efs cl-lib iso-transl tooltip eldoc paren
electric uniquify e= diff-hook vc-hooks lisp-float-type elisp-mode mwheel
term/x-w= in x-win term/common-win x-dnd tool-bar dnd fontset image
reg= exp-opt fringe tabulated-list replace newcomment text-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch easyme= nu
timer select scroll-bar mouse jit-lock font-lock syntax fo= nt-core
term/tty-colors frame minibuffer cl-generic cham geor= gian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet la= o korean japanese eucjp-ms
cp51932 hebrew greek romanian slov= ak czech european ethiopic indian
cyrillic chinese composite = emoji-zwj charscript charprop case-table
epa-hook jka-cmpr-ho= ok help simple abbrev obarray cl-preloaded nadvice
button loa= ddefs faces cus-face macroexp files window text-properties
ov= erlay 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 multi-tty
= make-network-process native-compile emacs)

Mem= ory information:
((conses 16 507526 32717)
(sy= mbols 48 26920 7)
(strings 32 91090 4235)
(st= ring-bytes 1 3058380)
(vectors 16 55147)
(vec= tor-slots 8 1576641 38054)
(floats 8 481 583)
= (intervals 56 9713 940)
(buffers 992 26))

------=_Part_885696_1976570840.1636766144977--