From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.bugs Subject: bug#66406: Broken `re-search-forward' (?) Date: Sun, 8 Oct 2023 22:06:23 +0200 Message-ID: References: <87pm1osy2n.fsf@epfl.ch> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b05daf06073a0277" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2519"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66406@debbugs.gnu.org To: "Basil L. Contovounesios" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 08 22:08:03 2023 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 1qpa4J-0000Or-Lg for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 08 Oct 2023 22:08:03 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qpa40-0007Xl-BS; Sun, 08 Oct 2023 16:07:44 -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 1qpa3y-0007Vb-84 for bug-gnu-emacs@gnu.org; Sun, 08 Oct 2023 16:07:42 -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 1qpa3y-0007gP-02 for bug-gnu-emacs@gnu.org; Sun, 08 Oct 2023 16:07:42 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qpa4H-00028g-P1 for bug-gnu-emacs@gnu.org; Sun, 08 Oct 2023 16:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Pogonyshev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Oct 2023 20:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66406 X-GNU-PR-Package: emacs Original-Received: via spool by 66406-submit@debbugs.gnu.org id=B66406.16967956268155 (code B ref 66406); Sun, 08 Oct 2023 20:08:01 +0000 Original-Received: (at 66406) by debbugs.gnu.org; 8 Oct 2023 20:07:06 +0000 Original-Received: from localhost ([127.0.0.1]:58586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpa3N-00027S-EU for submit@debbugs.gnu.org; Sun, 08 Oct 2023 16:07:06 -0400 Original-Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]:47271) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpa3J-00026w-HB for 66406@debbugs.gnu.org; Sun, 08 Oct 2023 16:07:03 -0400 Original-Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-50437c618b4so4819543e87.2 for <66406@debbugs.gnu.org>; Sun, 08 Oct 2023 13:06:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696795595; x=1697400395; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=/eZOcrcRLmX14ngk3GWB9bI+ITrnVuQ3RgC9OFv5CJg=; b=i/zD1Iq57h9P6lOD9M8sqLvUE+7WEgn8JqNNVyve4W29KPrgT48QWsX4yEz8ZTDpSQ nggTTK8OBCPiswAK3wXJRnwLAog7mDfH8u5l/OTIYoZzJu9ncb2iNK3nVTbE43dpxuOL OdwMVrY7t11P4b3OEb6qPekzhPy8cFz5q7ESRBw5MQ4VDpz1zhzP2309GmrHj4PR01OZ wzlSWIQuJM5L4Uemm2+DlEvIOwVKzH7L+amzpJGO78TFTGCb/DAyD9Ej7G4UU0xx/HOY 4Ug9ZDA/4yGbwP4j/bc3v4dNbW/fK79H6yVgWhsAqJTtj1S5mVd7gYk5pHq8YtdDmlM3 9bPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696795595; x=1697400395; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/eZOcrcRLmX14ngk3GWB9bI+ITrnVuQ3RgC9OFv5CJg=; b=L7Ae1/tUJxQm75dh9OYHyJIlAp5A0MlzvzCAPns4jQFXz5/C4ImqIB0RMC/vN2i1ST 7zp/mrVo/HJpbegfCr7BYALZk8LR9aRByKpgsgTCxJDPN24k9XjOaLSUeAaSVDatCj4I kVmiklQVYPwjrcJb7g/Ak5nQdQoYavUjdEJe2h5bYirn0oi3D/72GCt92h999i/Y1Qzm 4ZE6D2Qh2+hRPu7syrhZllTxFO9f8fPFTMCPjy6MlOSYCysW1M2G8zZTMN5AdLtnf2gS RfaLle0TOvQa+tL0dCcBMF0U6dL/qsQGEXj6JAXJXl+Bk4cznGBUBB89gjoTYco5mbj2 E2RQ== X-Gm-Message-State: AOJu0YyAtyr6Eks0WEE03FFIwn8DBXwDJza7ZqDW/jOAXqbHdJiCBVyM fgxC2ITxtBDH633gwpaHPz749Ae3xr/SCv8Nww== X-Google-Smtp-Source: AGHT+IEmjsyKMH2ENyfaBtNDma566lcvdKszSzfTZJXrlQvDxYPxpBdpo9PYPYt2zZ4A7nNYqXOpTJ7UBOP3fGh9d40= X-Received: by 2002:ac2:4a65:0:b0:500:c2d7:3ab4 with SMTP id q5-20020ac24a65000000b00500c2d73ab4mr10342987lfp.8.1696795594872; Sun, 08 Oct 2023 13:06:34 -0700 (PDT) In-Reply-To: <87pm1osy2n.fsf@epfl.ch> 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:272106 Archived-At: --000000000000b05daf06073a0277 Content-Type: text/plain; charset="UTF-8" > > In a recent Emacs master (as provided in Silex's Docker image): > > Any chance of knowing which commit precisely? Not really, if you evaluate `emacs-repository-version' on Silex-image-packaged Emacs, result is nil. As far as I know, they are just built from Emacs VCS snapshot tarballs, but exact commit hash is lost in the build process. This was even discussed before: https://github.com/Silex/docker-emacs/issues/86#issuecomment-1234266607 I don't know the details, but apparently GNU provides the snapshots ("archive tarballs are downloaded and unpacked"), so you could just inject revision number in the proper place and then get better bug reports. I'd provide commit number if I knew it somehow. > I get 16 with today's master as well Then it is apparently fixed already. Paul On Sun, 8 Oct 2023 at 21:39, Basil L. Contovounesios wrote: > Paul Pogonyshev [2023-10-08 12:35 +0200] wrote: > > > In a recent Emacs master (as provided in Silex's Docker image): > > Any chance of knowing which commit precisely? > > > $ emacs --batch --eval "(with-temp-buffer (insert > \"\n;;;###autoload\n(defun ...)\n\") (goto-char 1) (print > > (re-search-forward \"^[[:space:]]*;;;###autoload[[:space:]]*$\" nil t)))" > > > > Prints nil. > > > > With every stable version of Emacs I have this prints 16. > > I get 16 with today's master as well > (M-x report-emacs-bug info follows below). > > HTH, > -- > Basil > > In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo > version 1.18.0, Xaw3d scroll bars) of 2023-10-08 built on tia > Repository revision: 940df63d2daf50b899a66cd1542bec0c0f3eaebf > Repository branch: master > Windowing system distributor 'The X.Org Foundation', version 11.0.12101008 > System Description: Debian GNU/Linux trixie/sid > > Configured using: > 'configure 'CFLAGS=-O2 -ggdb3' -C --prefix=/home/blc/.local > --enable-checking=structs --with-file-notification=yes > --with-x-toolkit=lucid --with-x' > > Configured features: > ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG > JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY > INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF > TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XAW3D XDBE XIM XINPUT2 XPM > LUCID ZLIB > > Important settings: > value of $LANG: en_IE.UTF-8 > value of $XMODIFIERS: @im=ibus > locale-coding-system: utf-8-unix > > Major mode: Lisp Interaction > > Minor modes in effect: > tooltip-mode: t > global-eldoc-mode: t > eldoc-mode: t > show-paren-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 > minibuffer-regexp-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 > > Load-path shadows: > None found. > > Features: > (shadow sort mail-extr emacsbug message mailcap yank-media puny dired > dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 > epg-config gnus-util text-property-search time-date subr-x 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 rmc iso-transl tooltip cconv eldoc paren electric > uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel > term/x-win x-win term/common-win x-dnd touch-screen 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 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 threads dbusbind inotify lcms2 > dynamic-setting system-font-setting font-render-setting cairo x-toolkit > xinput2 x multi-tty move-toolbar make-network-process emacs) > > Memory information: > ((conses 16 38056 9275) (symbols 48 5209 0) (strings 32 14029 1781) > (string-bytes 1 386914) (vectors 16 10297) > (vector-slots 8 156208 17511) (floats 8 23 23) (intervals 56 259 0) > (buffers 992 10)) > --000000000000b05daf06073a0277 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
>= > In a recent Emacs master (as provided in Silex's Docker image):>
>=C2=A0Any ch= ance of knowing which commit precisely?

Not really, if you evaluate= `emacs-repository-version' on Silex-image-packaged Emacs, result is ni= l. As far as I know, they are just built from Emacs VCS snapshot tarballs, = but exact commit hash is lost in the build process.=C2=A0 This was even dis= cussed before: https://github.com/Silex/docker-emacs/issues/86#iss= uecomment-1234266607 I don't know the details, but apparently GNU p= rovides the snapshots ("archive tarballs are downloaded and unpacked&q= uot;), so you could just inject revision number in the proper place and the= n get better bug reports. I'd provide commit number if I knew it someho= w.

> I get 16 with today's master as well

Then it is apparently fixed already.

Paul

On Sun, 8 Oct 2023 at 21:39, Basil L. Contovounesi= os <contovob@tcd.ie> wrote:
Paul Pogonyshev [2= 023-10-08 12:35 +0200] wrote:

> In a recent Emacs master (as provided in Silex's Docker image):
Any chance of knowing which commit precisely?

> $ emacs --batch --eval "(with-temp-buffer (insert \"\n;;;###= autoload\n(defun ...)\n\") (goto-char 1) (print
> (re-search-forward \"^[[:space:]]*;;;###autoload[[:space:]]*$\&qu= ot; nil t)))"
>
> Prints nil.
>
> With every stable version of Emacs I have this prints 16.

I get 16 with today's master as well
(M-x report-emacs-bug info follows below).

HTH,
--
Basil

In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo
=C2=A0version 1.18.0, Xaw3d scroll bars) of 2023-10-08 built on tia
Repository revision: 940df63d2daf50b899a66cd1542bec0c0f3eaebf
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.1= 2101008
System Description: Debian GNU/Linux trixie/sid

Configured using:
=C2=A0'configure 'CFLAGS=3D-O2 -ggdb3' -C --prefix=3D/home/blc/= .local
=C2=A0--enable-checking=3Dstructs --with-file-notification=3Dyes
=C2=A0--with-x-toolkit=3Dlucid --with-x'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY
INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XAW3D XDBE XIM XINPUT2 XPM
LUCID ZLIB

Important settings:
=C2=A0 value of $LANG: en_IE.UTF-8
=C2=A0 value of $XMODIFIERS: @im=3Dibus
=C2=A0 locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mode: t
=C2=A0 eldoc-mode: t
=C2=A0 show-paren-mode: t
=C2=A0 electric-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-cursor-mode: t
=C2=A0 minibuffer-regexp-mode: t
=C2=A0 line-number-mode: t
=C2=A0 indent-tabs-mode: t
=C2=A0 transient-mark-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message mailcap yank-media puny dired
dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x 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 rmc iso-transl tooltip cconv eldoc paren electric
uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel
term/x-win x-win term/common-win x-dnd touch-screen 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 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 threads dbusbind inotify lcms2
dynamic-setting system-font-setting font-render-setting cairo x-toolkit
xinput2 x multi-tty move-toolbar make-network-process emacs)

Memory information:
((conses 16 38056 9275) (symbols 48 5209 0) (strings 32 14029 1781)
=C2=A0(string-bytes 1 386914) (vectors 16 10297)
=C2=A0(vector-slots 8 156208 17511) (floats 8 23 23) (intervals 56 259 0) =C2=A0(buffers 992 10))
--000000000000b05daf06073a0277--