From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "John C. Ruttenberg" Newsgroups: gmane.emacs.bugs Subject: bug#48837: Interaction between completion-moide and cc-mode new in 27.2 Date: Fri, 4 Jun 2021 16:13:47 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000eef97405c3f6542c" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36703"; mail-complaints-to="usenet@ciao.gmane.io" To: 48837@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 04 22:17:43 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 1lpGGE-0009Mo-HI for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Jun 2021 22:17:42 +0200 Original-Received: from localhost ([::1]:37904 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lpGGD-0002Jj-H6 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Jun 2021 16:17:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38522) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lpGDe-0004aU-NW for bug-gnu-emacs@gnu.org; Fri, 04 Jun 2021 16:15:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36388) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lpGDe-0006xi-El for bug-gnu-emacs@gnu.org; Fri, 04 Jun 2021 16:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lpGDe-0000Ax-B5 for bug-gnu-emacs@gnu.org; Fri, 04 Jun 2021 16:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "John C. Ruttenberg" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Jun 2021 20:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48837 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.1622837681629 (code B ref -1); Fri, 04 Jun 2021 20:15:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Jun 2021 20:14:41 +0000 Original-Received: from localhost ([127.0.0.1]:47934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lpGDI-0000A5-MG for submit@debbugs.gnu.org; Fri, 04 Jun 2021 16:14:41 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:40906) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lpGCi-000099-3I for submit@debbugs.gnu.org; Fri, 04 Jun 2021 16:14:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38290) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lpGCh-0002Aj-Qr for bug-gnu-emacs@gnu.org; Fri, 04 Jun 2021 16:14:03 -0400 Original-Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:46661) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lpGCf-0006QQ-27 for bug-gnu-emacs@gnu.org; Fri, 04 Jun 2021 16:14:03 -0400 Original-Received: by mail-wm1-x32c.google.com with SMTP id h22-20020a05600c3516b02901a826f84095so1267301wmq.5 for ; Fri, 04 Jun 2021 13:13:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=reservoir-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=X76/PTNGu/BIp/C71o6L4vb3Y4k1xArAzFKcZs/JMyg=; b=u0VOBaf3VHydzWyGPpTxMr9cuAhG9qWxVeaZ423h2KR4jIEU9bO1KCuhsAzkn8IZ6d 9S4gXtJ8e105jHX4Q2OJBThjYrx0+a6j5ypBjyWWiWnudUYQ7IINkgi3hEmrZzmrwt98 M7s4MVmBLERpWK4VJEDFJppfsDFXpPRXg9cBUz0RUqbaMbYaHUK4u+YXYdDU5Pcf3oDx sK4A23gapFu5RFKrSKk7GyoMFx9U5pKeCYi3+0meXOyOUsRiD4rob4FKYMgzRYaauOfJ dU6cCFqVMspPj6Gjq/vqBNCdeQHTAo+MpDzVYHFE+zuK4HayAseiNyaaEtcSrGg3P+av nOIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=X76/PTNGu/BIp/C71o6L4vb3Y4k1xArAzFKcZs/JMyg=; b=tbQ+GrWyvEri5KIafCh/39YxKj974JlgCPX0tvS3nj3uJ9JxsuEsNUBry4RJLv7dtY JdmUqKKMlNYdQiyjNVfZqKSaq7p/fIACsn138ZHnZkVZWWUHsLP1O2Hpjck1SBgw8e5T qXRB9QflCBVnFyaNdabU76vzulcb7z232wP4G0RPjcc1w0yuNNzHUWTI92GtzX/VJFl7 g/U6cfC/ritI31MMJauYkNZfExMKAKU2XjfpRe7e3cWhjZalS90nUCf6lOB1xhIOvl5B EcL/mlGC+Wt+bLAkGlvsfEIl9kOtGK8tLtsdyIImrOqNbDGZHZ1H53ZIEpsNR1rYBi+V iNXg== X-Gm-Message-State: AOAM533dCPiVe9Y/ZJfHwzcULedcQzOUh8kOztKO/ZDidM1kubsROl2g BA2oEz0HI6U0GZhXSU1LpBah6ynSBKhUmXsGfRb7FGlyiF0bEg== X-Google-Smtp-Source: ABdhPJw3L3mLvO3xJf983rbW+YqePaiLIJ+Cl0tPVYpjK7FdBgoXgEecrwpTgCBW3fR3BeI+65Umm/KgJsktbmuLkmU= X-Received: by 2002:a1c:23d6:: with SMTP id j205mr5398360wmj.94.1622837637866; Fri, 04 Jun 2021 13:13:57 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=ruttenberg@reservoir.com; helo=mail-wm1-x32c.google.com 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=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: Fri, 04 Jun 2021 16:14:39 -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:208039 Archived-At: --000000000000eef97405c3f6542c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable This bug occurs in 27.2 but not in 26.3 In a clean emacs "emacs -q --no-site-file": 1. Enable dynamic completion "(dynamic-completion-mode)" 2. Open a c++ source file 3. Text should be: foo() { std::cerr < int i =3D static_cast(z); } 4. Position the cursor directly after the "<" and type "< " (two characters "<" " " 5. I get this error message: "Scan error: containing expression ends prematurely, 22, 22" In GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20) of 2021-06-02 built on catb Windowing system distributor 'AT&T Laboratories Cambridge', version 11.0.3332 System Description: Ubuntu 20.04.2 LTS Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Loading completions from file /home/ruttenberg/.emacs.d/completions . . . Loading completions from file /home/ruttenberg/.emacs.d/completions . . . Done. You can run the command =C3=A2=E2=82=AC=CB=9Cdynamic-completion-mode=C3=A2= =E2=82=AC=E2=84=A2 with M-x dy-m RET Loading completions from file /home/ruttenberg/.emacs.d/completions . . . Done. Error in pre-command-hook (completion-before-command): (scan-error "Containing expression ends prematurely" 16 16) symbol-before-point: Scan error: "Containing expression ends prematurely", 17, 17 Configured using: 'configure --prefix=3D/opt/emacs-27.2' Configured features: XPM JPEG TIFF GIF PNG SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY LIBSELINUX GNUTLS FREETYPE HARFBUZZ XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS PDUMPER GMP Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: C++//l Minor modes in effect: dynamic-completion-mode: t tooltip-mode: t global-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 abbrev-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs 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 sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cl-loaddefs cl-lib cus-start cus-load completion 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 loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 76735 9686) (symbols 48 9655 1) (strings 32 23478 2066) (string-bytes 1 843632) (vectors 16 13035) (vector-slots 8 166467 11092) (floats 8 22 45) (intervals 56 208 3) (buffers 1000 14)) --000000000000eef97405c3f6542c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
This bug occurs in 27.2 but not in 26.3

In a clean emacs "emacs -q --no-site-file":
1. Enable = dynamic completion "(dynamic-completion-mode)"
2. Open = a c++ source file
3. Text should be:
foo() {
=C2=A0 std:= :cerr <
=C2=A0 int i =3D static_cast<unsigned>(z);
=
}
=C2=A0 =C2=A04. Position the cursor directly = after the "<" and type "< " (two characters=C2=A0= "<" " "
=C2=A0 =C2=A05. I get this err= or message: "Scan error: containing expression ends prematurely, 22, 2= 2"



In GNU Emacs 27.2 (build 1, x86_64-pc-linux-g= nu, GTK+ Version 3.24.20)
=C2=A0of 2021-06-02 built on catb
Windowing= system distributor 'AT&T Laboratories Cambridge', version 11.0= .3332
System Description: Ubuntu 20.04.2 LTS

Recent messages:
= For information about GNU Emacs and the GNU system, type C-h C-a.
Loadin= g completions from file /home/ruttenberg/.emacs.d/completions . . .
Load= ing completions from file /home/ruttenberg/.emacs.d/completions . . . Done.=
You can run the command =C3=A2=E2=82=AC=CB=9Cdynamic-completion-mode=C3= =A2=E2=82=AC=E2=84=A2 with M-x dy-m RET
Loading completions from file /h= ome/ruttenberg/.emacs.d/completions . . . Done.
Error in pre-command-hoo= k (completion-before-command): (scan-error "Containing expression ends= prematurely" 16 16)
symbol-before-point: Scan error: "Contain= ing expression ends prematurely", 17, 17
Configured using:
=C2= =A0'configure --prefix=3D/opt/emacs-27.2'

Configured feature= s:
XPM JPEG TIFF GIF PNG SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY
LIB= SELINUX GNUTLS FREETYPE HARFBUZZ XFT ZLIB TOOLKIT_SCROLL_BARS GTK3
X11 X= DBE XIM MODULES THREADS PDUMPER GMP

Important settings:
=C2=A0 va= lue of $LANG: en_US.UTF-8
=C2=A0 locale-coding-system: utf-8-unix
Major mode: C++//l

Minor modes in effect:
=C2=A0 dynamic-complet= ion-mode: t
=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mode: t
=C2= =A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-ba= r-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
= =C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink= -cursor-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryptio= n-mode: t
=C2=A0 auto-compression-mode: t
=C2=A0 line-number-mode: t<= br>=C2=A0 transient-mark-mode: t
=C2=A0 abbrev-mode: t

Load-path = shadows:
None found.

Features:
(shadow sort mail-extr emacsbug= message rmc puny dired dired-loaddefs
format-spec rfc822 mml mml-sec pa= ssword-cache epa derived epg epg-config
gnus-util rmail rmail-loaddefs t= ext-property-search time-date subr-x seq
byte-opt gv bytecomp byte-compi= le cconv mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm= -utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr= mail-utils cc-mode cc-fonts
easymenu cc-guess cc-menus cc-cmds cc-style= s cc-align cc-engine cc-vars
cc-defs cl-loaddefs cl-lib cus-start cus-lo= ad completion tooltip eldoc
electric uniquify ediff-hook vc-hooks lisp-f= loat-type mwheel term/x-win
x-win term/common-win x-dnd tool-bar dnd fon= tset image regexp-opt fringe
tabulated-list replace newcomment text-mode= elisp-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshad= ow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facem= enu font-core
term/tty-colors frame minibuffer cl-generic cham georgian = utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanes= e eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic = indian
cyrillic chinese composite charscript charprop case-table epa-hoo= k
jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs=
button faces cus-face macroexp files text-properties overlay sha1 md5base64 format env code-pages mule custom widget hashtable-print-readable<= br>backquote threads dbusbind inotify dynamic-setting system-font-settingfont-render-setting move-toolbar gtk x-toolkit x multi-tty
make-networ= k-process emacs)

Memory information:
((conses 16 76735 9686)
= =C2=A0(symbols 48 9655 1)
=C2=A0(strings 32 23478 2066)
=C2=A0(string= -bytes 1 843632)
=C2=A0(vectors 16 13035)
=C2=A0(vector-slots 8 16646= 7 11092)
=C2=A0(floats 8 22 45)
=C2=A0(intervals 56 208 3)
=C2=A0(= buffers 1000 14))
--000000000000eef97405c3f6542c--