From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Shinichi Sakata Newsgroups: gmane.emacs.bugs Subject: bug#41740: 26.1; completion-at-point fails in the Pacal mode Date: Sat, 6 Jun 2020 10:46:37 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000004a2d3105a76df6fb" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="33851"; mail-complaints-to="usenet@ciao.gmane.io" To: 41740@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 06 20:59:02 2020 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 1jhe22-0008fC-7J for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Jun 2020 20:59:02 +0200 Original-Received: from localhost ([::1]:60604 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhe21-0007W3-AD for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Jun 2020 14:59:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35362) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhe15-0006pZ-3q for bug-gnu-emacs@gnu.org; Sat, 06 Jun 2020 14:58:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40927) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jhe14-0008US-6S for bug-gnu-emacs@gnu.org; Sat, 06 Jun 2020 14:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jhe14-0001ct-5W for bug-gnu-emacs@gnu.org; Sat, 06 Jun 2020 14:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Shinichi Sakata Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Jun 2020 18:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41740 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.15914698566203 (code B ref -1); Sat, 06 Jun 2020 18:58:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Jun 2020 18:57:36 +0000 Original-Received: from localhost ([127.0.0.1]:52471 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhe0d-0001by-FL for submit@debbugs.gnu.org; Sat, 06 Jun 2020 14:57:36 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:53334) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhcuD-0006DK-Tx for submit@debbugs.gnu.org; Sat, 06 Jun 2020 13:46:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51104) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhcuD-00024A-La for bug-gnu-emacs@gnu.org; Sat, 06 Jun 2020 13:46:53 -0400 Original-Received: from mail-yb1-xb36.google.com ([2607:f8b0:4864:20::b36]:34925) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jhcuC-0002Bq-EQ for bug-gnu-emacs@gnu.org; Sat, 06 Jun 2020 13:46:53 -0400 Original-Received: by mail-yb1-xb36.google.com with SMTP id x18so146984ybl.2 for ; Sat, 06 Jun 2020 10:46:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=YNDql/zDptyX0qsKO8iSBJAxnFX7lcCmR9ovQCg4xZk=; b=Rbu+XW7nhI1hQSuCIEKv2SuUMicSyRyJ+RHiD6hbJ/Rt2zNuJn1nd4E3cvVdzMobZ6 bByPqAYh2QfcMkzJ87D0ECLaJ9UXtk0C077g15GVV0O3f47rzZKrVQmkzYo1mUjbTzHS QYjPfVPNbuWoiCAh6DX1lDT8CVBupa/GU0pdwiJ3+uslkvnVqTzaR+ND5/SgZeEB318H IDh3oST3lTPnixNtU5xSp5RnwqY1xJI7InDfm94YlDWt9/S68ukyzcodpJX0mcAUSxO8 qaxrO5GJh4S5zelxjChgRtKSXdVGm196ysQtvFc07ORJz3wW7vPmoPhsy3wEJsigz42Q KbGA== 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=YNDql/zDptyX0qsKO8iSBJAxnFX7lcCmR9ovQCg4xZk=; b=VbM/tk9Y+Ed9Da55dEvO0udwGmqrasjPuzol6kLLAkCxp/J3A/orGjywGcyKvOVe9S Vfw/jzvU5KLTMlGVoRJ/nOKjbcnvyLUGcITYTLLgk5d7pAyASQvPbiAeqZTJincgBbMW vI7vOSJRlR988EYmLbEMAORLh9CThPf7r5yPSfQJpOkLcfy329J7b4pJ1ciKa738PDRD yndlRBVDI51cIKdyqrmLIMr9eizzgXHxxIc34ygUXvtre7fsL0GI8cnAi+6tCWjVXz/r ZZ/UAXEWdrMHwmhymXPt/F4kjIf4gqCF6ddHXprSP9suX6eN87zfmPSWbA4GaGOwsH4g pewQ== X-Gm-Message-State: AOAM531L46p2NVT2IxPVDZt9EamPTVhli+lk0A4mq9sIJl1I2KrC9mZo pzxnBFS0NTLHT9pVkgMElyHDp+wm9fVHdUZ/XOFgm67n X-Google-Smtp-Source: ABdhPJw8BKyZ1eTRRPtoXAh7Y+pjSj7uQo/Prmt8hLEiEy5JTlF/mQZ/gJdjIap9OADdK0ZgfjgPFZxXsLNsDUNcJqA= X-Received: by 2002:a25:f447:: with SMTP id p7mr25029479ybe.331.1591465608882; Sat, 06 Jun 2020 10:46:48 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::b36; envelope-from=shinichi.sakata@gmail.com; helo=mail-yb1-xb36.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Mailman-Approved-At: Sat, 06 Jun 2020 14:57:34 -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:181629 Archived-At: --0000000000004a2d3105a76df6fb Content-Type: text/plain; charset="UTF-8" Use of C-M-i (completion-at-point) in the Pascal mode results in errors. Here is a way to reproduce the problem: 1. Start emacs by "emacs -Q". 2. Open a new file with extension "pas" (say, test.pas). 3. Type in: program test; var and then use C-M-i. This should yields an error message like: completion--some: Args out of range: #("var" 0 3 (fontified t face font-lock-type-face)), 0, -14 In GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.5) of 2019-09-22, modified by Debian built on x86-grnet-01 Windowing system distributor 'The X.Org Foundation', version 11.0.12004000 System Description: Debian GNU/Linux 10 (buster) Recent messages: Auto-saving... Mark set [2 times] Saving file /home/ssakata/codesignal/pascal/test.pas... Wrote /home/ssakata/codesignal/pascal/test.pas pascal-completion: End of buffer [6 times] completion--some: Args out of range: #("var" 0 3 (fontified t face font-lock-type-face)), 0, -14 pascal-completion: End of buffer No match [7 times] completion--some: Args out of range: #("in" 0 2 (fontified t face font-lock-keyword-face)), 0, -25 Quit Configured using: 'configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/emacs-StqULU/emacs-26.1+1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 THREADS LIBSYSTEMD LCMS2 Important settings: value of $LANG: en_US.utf8 value of $XMODIFIERS: @im=fcitx locale-coding-system: utf-8-unix Major mode: Pascal Minor modes in effect: diff-auto-refine-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 Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils vc-git diff-mode easymenu easy-mmode pascal elec-pair time-date mule-util 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 menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame 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 minibuffer 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 dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 100828 15914) (symbols 48 20975 1) (miscs 40 58 270) (strings 32 30377 1460) (string-bytes 1 794739) (vectors 16 15486) (vector-slots 8 506994 9878) (floats 8 53 384) (intervals 56 424 0) (buffers 992 14)) --0000000000004a2d3105a76df6fb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Use of C-M-i (completion-at-point) in the Pascal mode results in errors.=C2=A0

Here is a way to reproduce the problem:=C2= =A0

=C2=A0 =C2=A01. Start emacs by "emacs -Q&= quot;.
=C2=A0 =C2=A02. Open a new file with extension "pas&q= uot; (say, test.pas).=C2=A0
=C2=A0 =C2=A03. Type in: program test; var and then use C-M-i.=C2=A0

This should yields an= error message like:=C2=A0

=C2=A0 =C2=A0completion= --some: Args out of range: #("var" 0 3 (fontified t face font-loc= k-type-face)), 0, -14=C2=A0
In GNU Emacs 26.1 (build 2, x86_64-pc= -linux-gnu, GTK+ Version 3.24.5)
=C2=A0of 2019-09-22, modified by Debian= built on x86-grnet-01
Windowing system distributor 'The X.Org Found= ation', version 11.0.12004000
System Description: Debian GNU/Linux 1= 0 (buster)

Recent messages:
Auto-saving...
Mark set [2 times]<= br>Saving file /home/ssakata/codesignal/pascal/test.pas...
Wrote /home/s= sakata/codesignal/pascal/test.pas
pascal-completion: End of buffer [6 ti= mes]
completion--some: Args out of range: #("var" 0 3 (fontifi= ed t face font-lock-type-face)), 0, -14
pascal-completion: End of buffer=
No match [7 times]
completion--some: Args out of range: #("in&q= uot; 0 2 (fontified t face font-lock-keyword-face)), 0, -25
Quit

= Configured using:
=C2=A0'configure --build x86_64-linux-gnu --prefix= =3D/usr
=C2=A0--sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib
=C2= =A0--localstatedir=3D/var/lib --infodir=3D/usr/share/info
=C2=A0--mandir= =3D/usr/share/man --enable-libsystemd --with-pop=3Dyes
=C2=A0--enable-lo= callisppath=3D/etc/emacs:/usr/local/share/emacs/26.1/site-lisp:/usr/local/s= hare/emacs/site-lisp:/usr/share/emacs/26.1/site-lisp:/usr/share/emacs/site-= lisp
=C2=A0--with-sound=3Dalsa --without-gconf --with-mailutils --build<= br>=C2=A0x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib
= =C2=A0--libexecdir=3D/usr/lib --localstatedir=3D/var/lib
=C2=A0--infodir= =3D/usr/share/info --mandir=3D/usr/share/man --enable-libsystemd
=C2=A0-= -with-pop=3Dyes
=C2=A0--enable-locallisppath=3D/etc/emacs:/usr/local/sha= re/emacs/26.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/2= 6.1/site-lisp:/usr/share/emacs/site-lisp
=C2=A0--with-sound=3Dalsa --wit= hout-gconf --with-mailutils --with-x=3Dyes
=C2=A0--with-x-toolkit=3Dgtk3= --with-toolkit-scroll-bars 'CFLAGS=3D-g -O2
=C2=A0-fdebug-prefix-ma= p=3D/build/emacs-StqULU/emacs-26.1+1=3D. -fstack-protector-strong
=C2=A0= -Wformat -Werror=3Dformat-security -Wall' 'CPPFLAGS=3D-Wdate-time=C2=A0-D_FORTIFY_SOURCE=3D2' LDFLAGS=3D-Wl,-z,relro'

Confi= gured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GS= ETTINGS NOTIFY
ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XF= T ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 THREADS LIBSYSTEMD LCMS2

Impo= rtant settings:
=C2=A0 value of $LANG: en_US.utf8
=C2=A0 value of $XM= ODIFIERS: @im=3Dfcitx
=C2=A0 locale-coding-system: utf-8-unix

Maj= or mode: Pascal

Minor modes in effect:
=C2=A0 diff-auto-refine-mo= de: t
=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mode: t
=C2=A0 el= ectric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-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-curso= r-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode= : t
=C2=A0 auto-compression-mode: t
=C2=A0 line-number-mode: t
=C2= =A0 transient-mark-mode: t

Load-path shadows:
None found.

= Features:
(shadow sort mail-extr emacsbug message rmc puny seq byte-opt = gv
bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefsformat-spec rfc822 mml mml-sec password-cache epa derived epg epg-config<= br>gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse<= br>rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045
ietf= -drums mm-util mail-prsvr mail-utils vc-git diff-mode easymenu
easy-mmod= e pascal elec-pair time-date mule-util tooltip eldoc electric
uniquify e= diff-hook vc-hooks lisp-float-type mwheel term/x-win x-win
term/common-w= in x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list rep= lace newcomment text-mode elisp-mode lisp-mode
prog-mode register page m= enu-bar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-= lock syntax facemenu font-core
term/tty-colors frame cl-generic cham geo= rgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean j= apanese eucjp-ms cp51932
hebrew greek romanian slovak czech european eth= iopic indian cyrillic
chinese composite charscript charprop case-table e= pa-hook jka-cmpr-hook
help simple abbrev obarray minibuffer cl-preloaded= nadvice loaddefs
button faces cus-face macroexp files text-properties o= verlay sha1 md5
base64 format env code-pages mule custom widget hashtabl= e-print-readable
backquote dbusbind inotify lcms2 dynamic-setting system= -font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty=
make-network-process emacs)

Memory information:
((conses 16 1= 00828 15914)
=C2=A0(symbols 48 20975 1)
=C2=A0(miscs 40 58 270)
= =C2=A0(strings 32 30377 1460)
=C2=A0(string-bytes 1 794739)
=C2=A0(ve= ctors 16 15486)
=C2=A0(vector-slots 8 506994 9878)
=C2=A0(floats 8 53= 384)
=C2=A0(intervals 56 424 0)
=C2=A0(buffers 992 14))

--0000000000004a2d3105a76df6fb--