From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 08 06:36:33 2023 Received: (at submit) by debbugs.gnu.org; 8 Oct 2023 10:36:33 +0000 Received: from localhost ([127.0.0.1]:56359 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpR9C-0000iv-SX for submit@debbugs.gnu.org; Sun, 08 Oct 2023 06:36:33 -0400 Received: from lists.gnu.org ([2001:470:142::17]:41716) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpR9A-0000ih-NY for submit@debbugs.gnu.org; Sun, 08 Oct 2023 06:36:29 -0400 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 1qpR8l-0005uW-3s for bug-gnu-emacs@gnu.org; Sun, 08 Oct 2023 06:36:03 -0400 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qpR8j-00052V-Mf for bug-gnu-emacs@gnu.org; Sun, 08 Oct 2023 06:36:02 -0400 Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-50567477b29so4683156e87.3 for ; Sun, 08 Oct 2023 03:36:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696761359; x=1697366159; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=rbS76NJVBR9Du82foeNIGtEvujA8EerXvsRpfoKg/wg=; b=PPuragJKDvvSWDZ/NGmKplmq8+gtlH8XKeKHwB+uBAIUSF0VHi/21De+JoVb3dp0U1 ToFrNH8RzPrB0u8nff1kdLu/IYlbU1pInj1Ctaf6DiawMySqgNwV2idbD4bvbT1yoYp7 J0l/u/AGd5wFTEOJsul2c5Ku/dVkf2gf+jo/LiFiamAprUQxWsV9V10m/AKtFxbpFC6b AWcBZbRTcaDvmrYs1GgITy08GUIT1A8RR2Nmwhos9VfTR1DSVDTzO+gSF4OHg5c8qKpR 4uYMqqZcqGP+GKbYqq+1MbRiUKHt+7qTCD80BTpOk8f5Z+Fx4kiNuDLnWNlfaHPeqrws 8ASQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696761359; x=1697366159; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=rbS76NJVBR9Du82foeNIGtEvujA8EerXvsRpfoKg/wg=; b=YeyLp/IAjFbHMhBL5EIxBooKCqxjWGPnNsVOTGKoSwg0f83BRNIhmJlZDOnqJhC3Rb 0cd6NKDjJ7/OzMN/Fp3hXPFKAwiXUWwLd4bPXMQ7TzCeecGtT6eZojQso/1glMHigRgU aBYQXpOjrTauIXrVdNROYkVV41Sxq3gSLzHEf7QLAY1zGdgcB2YGeP+sPlck/LcLrDiv /Nw6z9Ckpk8DjvCyCXa/q3Rg2Q4TKiZejm9y4Sf85kJK4fRUMfU9a0TJyuU4a9wq+H41 73K7LQChwdg3zia7BARyIcvMegYTkEce4CVt/CWoJgwuoCTKzRKMTVGvtSqHAxyi7ZaF X9NQ== X-Gm-Message-State: AOJu0YwvmJ28ZyZEeAmGEO7bWZH4DjVMzaJF5BbtUKbWXs74hrKMsywI OB3+Pawvcj+7lujbIMg5XQ9OWWUWP33mEkHBnbvZpDlQZg== X-Google-Smtp-Source: AGHT+IEPBhu5zeO/+n5mEP3sOG+KVqsZRzLbl2sDN/8+yMp0kEvra/FVijb1puI19FNivZDGqAa4CpvHYUeWKnoZX+g= X-Received: by 2002:a05:6512:128a:b0:503:3278:3221 with SMTP id u10-20020a056512128a00b0050332783221mr13645204lfs.69.1696761358826; Sun, 08 Oct 2023 03:35:58 -0700 (PDT) MIME-Version: 1.0 From: Paul Pogonyshev Date: Sun, 8 Oct 2023 12:35:47 +0200 Message-ID: Subject: Broken `re-search-forward' (?) To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="0000000000000fc4040607320a84" Received-SPF: pass client-ip=2a00:1450:4864:20::12d; envelope-from=pogonyshev@gmail.com; helo=mail-lf1-x12d.google.com 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_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --0000000000000fc4040607320a84 Content-Type: text/plain; charset="UTF-8" In a recent Emacs master (as provided in Silex's Docker image): $ 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. Paul --0000000000000fc4040607320a84 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
In a recent Emacs master (as provided in Silex's Docke= r image):

$ emacs --batch --eval "(with-temp-buffer (in= sert \"\n;;;###autoload\n(defun ...)\n\") (goto-char 1) (print (r= e-search-forward \"^[[:space:]]*;;;###autoload[[:space:]]*$\" nil= t)))"

Prints nil.

With = every stable version of Emacs I have this prints 16.

Paul
--0000000000000fc4040607320a84-- From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 08 07:42:20 2023 Received: (at 66406) by debbugs.gnu.org; 8 Oct 2023 11:42:20 +0000 Received: from localhost ([127.0.0.1]:56424 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpSAu-0007zg-6t for submit@debbugs.gnu.org; Sun, 08 Oct 2023 07:42:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34260) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpSAs-0007zU-N6 for 66406@debbugs.gnu.org; Sun, 08 Oct 2023 07:42:19 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qpSAS-00042V-PQ; Sun, 08 Oct 2023 07:41:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=KSfuLdy83mgq3Qiojwge/zPhmdQxQmk2danMdiLkgBE=; b=hYJI4WDGET/s yew77uxZlmUn0Qtf5za7J0a8YdXsjX0pna0WeHTIyxelxyFi1h8o1B9/8/JHcSBfCzw2Dp/3df+kO CagSXlM5nPd/F1erYDVvEulVS0VbwbvDD4ZDaLqrN9ZXCSv3N0Ng7zlk1LxmdcY5ZbU5tuuh2hKZJ FC5aEwZeut76NoyUEHabPcf1j4hHfqCMDx5mo7qJrpXOfHMN8N7KwMz3rZcCkwkfbD3bgYQezojdj Geqfwev+JYlRgczW4xElwn3ht8EhMFPDHnuQmxh60cqjgpYu90ajvYZJd3quEQoTE/QtsBUK95zGA pd8NOtyp2HXCJ8Qd/FqZbw==; Date: Sun, 08 Oct 2023 14:41:38 +0300 Message-Id: <83mswtxrwt.fsf@gnu.org> From: Eli Zaretskii To: Paul Pogonyshev , Stefan Monnier In-Reply-To: (message from Paul Pogonyshev on Sun, 8 Oct 2023 12:35:47 +0200) Subject: Re: bug#66406: Broken `re-search-forward' (?) References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66406 Cc: 66406@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Paul Pogonyshev > Date: Sun, 8 Oct 2023 12:35:47 +0200 > > In a recent Emacs master (as provided in Silex's Docker image): > > $ 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. Adding Stefan, who made some changes there recently. From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 08 15:40:16 2023 Received: (at 66406) by debbugs.gnu.org; 8 Oct 2023 19:40:16 +0000 Received: from localhost ([127.0.0.1]:58556 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpZdP-00015v-Gw for submit@debbugs.gnu.org; Sun, 08 Oct 2023 15:40:16 -0400 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]:45213) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpZdM-00015e-Sm for 66406@debbugs.gnu.org; Sun, 08 Oct 2023 15:40:14 -0400 Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-53b38d1ac36so3783673a12.2 for <66406@debbugs.gnu.org>; Sun, 08 Oct 2023 12:39:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; t=1696793987; x=1697398787; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=sED9emfaCxnUKlsLRX6nUogOzhHNTKhkI+k7D9PaX+c=; b=RZWwkxkisSOlT93yG4Cd5tKSop6EYUs/0B6tlF11JNZnja1R7dIE+YWQAp136YCQum xXPStpJ5Gg7vqnJsT/Cqvs+L5YOEYQQWVm269uwLhXjscprL1C0lN5q0k+aTaU2L0QbJ RLSllwkFozP/Q+Hgqc3IF7LUjaOIz4V/fWINv+r4gC0Mgo+yrXNuTifeWS0odWLLF1UI KX3igRqNTzBkUYPFgazmP0Fdw0jGDp1JXCjZHG5ZqtgGMRfS1S/fvWivTevAc1xyWhSt uuZwxtxOsNUw0UypJ0ZcLHijvVfxUr7CETEu9nRJXyaVA8hhl+mQ2tJ9Dr7eIL9Tmsga R6kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696793987; x=1697398787; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=sED9emfaCxnUKlsLRX6nUogOzhHNTKhkI+k7D9PaX+c=; b=pkO55jRTAU0j+/Don0PFU8xBs9ZfIxLoASCmWOFWzfGCWZMRH4L7zw7/rtCDwyoDw8 rnelUBczLTfotgL2E+LUSVZ7MK4Y2sSTXB6off95lxxxGTbPplZVjgbCDwi8wl0ojE4P h5/4YKo4NHpXhBsR9foS+HTmkNsux0CNzmcbO+PDBX3pPRpT9lIPl/WMSj6djNFQcSv0 umzj3JuwsbzW71EansmsHCLCWaneCA740HPBSkH5ZtZeGy+3daCseEBbEK/qZxglY/aI YW67Grqnza+8aJZ4yc0mw3M+UPpfQVTcPWhGfyC7xTz/d4SlHbkzo5xNfPRyrmmrH2fn MThQ== X-Gm-Message-State: AOJu0Yxk5DmsI3oV7R+kd0gKXgsl150gsDVMfhIDxMXPTmBORIH+uCFA m0a0n+CgWY1CkEXnRiNg3aXw75VS+QnxM6FH038= X-Google-Smtp-Source: AGHT+IHoagVXWweRme+zZsHuIZle7WAtqsJjt/KdWFgALJUuzGYy1RtvrdFbzLFnq6cOCTw/ZLrh5g== X-Received: by 2002:a50:ee84:0:b0:531:9c1:8276 with SMTP id f4-20020a50ee84000000b0053109c18276mr12796769edr.4.1696793986741; Sun, 08 Oct 2023 12:39:46 -0700 (PDT) Received: from localhost ([2a02:aa12:b102:1b80:415e:345d:c031:c2fa]) by smtp.gmail.com with ESMTPSA id a23-20020a50ff17000000b005342fa19070sm5275983edu.89.2023.10.08.12.39.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Oct 2023 12:39:45 -0700 (PDT) From: "Basil L. Contovounesios" To: Paul Pogonyshev Subject: Re: bug#66406: Broken `re-search-forward' (?) In-Reply-To: (Paul Pogonyshev's message of "Sun, 8 Oct 2023 12:35:47 +0200") References: Date: Sun, 08 Oct 2023 21:39:44 +0200 Message-ID: <87pm1osy2n.fsf@epfl.ch> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 66406 Cc: 66406@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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)) From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 08 16:07:06 2023 Received: (at 66406) by debbugs.gnu.org; 8 Oct 2023 20:07:06 +0000 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 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 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) MIME-Version: 1.0 References: <87pm1osy2n.fsf@epfl.ch> In-Reply-To: <87pm1osy2n.fsf@epfl.ch> From: Paul Pogonyshev Date: Sun, 8 Oct 2023 22:06:23 +0200 Message-ID: Subject: Re: bug#66406: Broken `re-search-forward' (?) To: "Basil L. Contovounesios" Content-Type: multipart/alternative; boundary="000000000000b05daf06073a0277" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 66406 Cc: 66406@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --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-- From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 08 22:28:43 2023 Received: (at 66406-done) by debbugs.gnu.org; 9 Oct 2023 02:28:43 +0000 Received: from localhost ([127.0.0.1]:58935 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpg0g-0000qR-Sm for submit@debbugs.gnu.org; Sun, 08 Oct 2023 22:28:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42810) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpg0e-0000qB-LW for 66406-done@debbugs.gnu.org; Sun, 08 Oct 2023 22:28:42 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qpg0E-0004nU-Ds; Sun, 08 Oct 2023 22:28:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=KxKCs27NJnXIGjiXdUwrfTvsP1NK2qyYSj7VD2EUXLg=; b=cfNILOu5vUnI DOwKfAQ9fB9oC+MyDQFp0gk0fWsIe8+J/he0y8wU0jxR36JJCtHEwvGmocPrH6pfKSB5tLPAjyE4d QkuB8Vwr20VX5m5dRk8vt4TBeo5idjacuIgXE9VQcJvgFIGjJyE4f0ppvs/Y6btfXVaN7Qw0+sOiT OPyfxYF68uW2P8Q5pesbpoHBye/NuA1qCj0QL7icLNzLbKCsrOXhc7/H/RvO5xXOp81JHxIklL8B3 P9SNt9WVeZihcs4SCKe7JNm7QshJYO2oHslG7wG7kR2yjQKjwoinVruAXU0NSXAdhjiYmROCm+yw2 EIVu9vn7JiHqOunS4FlSJw==; Date: Mon, 09 Oct 2023 05:28:00 +0300 Message-Id: <83zg0swmvj.fsf@gnu.org> From: Eli Zaretskii To: Paul Pogonyshev In-Reply-To: (message from Paul Pogonyshev on Sun, 8 Oct 2023 22:06:23 +0200) Subject: Re: bug#66406: Broken `re-search-forward' (?) References: <87pm1osy2n.fsf@epfl.ch> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66406-done Cc: contovob@tcd.ie, 66406-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Cc: 66406@debbugs.gnu.org > From: Paul Pogonyshev > Date: Sun, 8 Oct 2023 22:06:23 +0200 > > > > 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. I also get 16, so I presume this bug was already fixed, and I'm closing it. From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 10 09:37:58 2023 Received: (at 66406-done) by debbugs.gnu.org; 10 Oct 2023 13:37:58 +0000 Received: from localhost ([127.0.0.1]:34340 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qqCvu-0004CE-HE for submit@debbugs.gnu.org; Tue, 10 Oct 2023 09:37:58 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:10761) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qqCvr-0004By-3J for 66406-done@debbugs.gnu.org; Tue, 10 Oct 2023 09:37:56 -0400 Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 13A424443A3; Tue, 10 Oct 2023 09:37:28 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1696945042; bh=K+myCHZkbW29Mgb1DBK0s6nkndEHBqSipUKjuqSAW7I=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=OQ+wJwosSr/FRgPidQP22xWD/jRmUVXNeQANp8C3cVtfMgeVLZTwxQ1SpmVboRPor 3IGi/R8rQjlUS9Vl6wKe+h9nhj5YphrzpLU4zCgzRBwEVzkc3A4r1+ykA6r0Oyin1/ p6R908WY2HHrpoqpzble9bqRY9z14pA8995SDio9WCGARvfkh77k9nrFeCZBe/8cz/ N+mI9OxkFVlu41YXu8Zs4hKIB58s646ssroACpQiLx5LDauwsykOVwXcvjMkI3F7nG 4VBqspBMfwlU+rtRcyTIKy19GhfrKPf3mqp4DmwfFTBjCL/AuBJvYA8DUR4QLInsi/ 5LGYoC3Yo/WLQ== Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 45F5B4443A9; Tue, 10 Oct 2023 09:37:22 -0400 (EDT) Received: from pastel (unknown [216.154.28.175]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 1FC5B1201B4; Tue, 10 Oct 2023 09:37:22 -0400 (EDT) From: Stefan Monnier To: "Basil L. Contovounesios" Subject: Re: bug#66406: Broken `re-search-forward' (?) In-Reply-To: <87pm1osy2n.fsf@epfl.ch> (Basil L. Contovounesios's message of "Sun, 08 Oct 2023 21:39:44 +0200") Message-ID: References: <87pm1osy2n.fsf@epfl.ch> Date: Tue, 10 Oct 2023 09:37:20 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL 0.005 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66406-done Cc: 66406-done@debbugs.gnu.org, Paul Pogonyshev X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Basil L. Contovounesios [2023-10-08 21:39:44] 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). According, to my test, this was fixed by commit 37130fd500fbf78ff0d0037aa6275f0f70a415dd Author: Stefan Monnier Date: Tue Oct 3 10:10:57 2023 -0400 regex.c: Fix recent regression with mutually_exclusive_p The new analysis code ended up increasing the scope of an optimization a bit too far. Reign it in. * src/regex-emacs.c (struct mutexcl_data): Add `unconstrained` field. (mutually_exclusive_one): Use and set it. (mutually_exclusive_p): Initialize it. * test/src/regex-emacs-tests.el (regexp-tests-backtrack-optimization): Add test. -- Stefan From unknown Thu Jun 19 16:24:08 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 08 Nov 2023 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator