From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 31 17:30:42 2025 Received: (at submit) by debbugs.gnu.org; 31 Jul 2025 21:30:42 +0000 Received: from localhost ([127.0.0.1]:50599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uharJ-0000Mg-TE for submit@debbugs.gnu.org; Thu, 31 Jul 2025 17:30:42 -0400 Received: from lists.gnu.org ([2001:470:142::17]:43190) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uharG-0000M9-SQ for submit@debbugs.gnu.org; Thu, 31 Jul 2025 17:30:39 -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 1uhar1-00059r-3e for bug-gnu-emacs@gnu.org; Thu, 31 Jul 2025 17:30:24 -0400 Received: from fout-b8-smtp.messagingengine.com ([202.12.124.151]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uhaqz-0008Ly-3e for bug-gnu-emacs@gnu.org; Thu, 31 Jul 2025 17:30:22 -0400 Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfout.stl.internal (Postfix) with ESMTP id BCBF11D00727 for ; Thu, 31 Jul 2025 17:30:19 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-10.internal (MEProxy); Thu, 31 Jul 2025 17:30:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net; h=cc:content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm2; t=1753997419; x=1754083819; bh=s5qi5FL9W9Pdu6l4aSD/rw+xVui+JAxQ AvTh2Z8bXa8=; b=iEox1lGKi6HHQHKyQVO/TF4tK7wTaZf6RBNOtcd59j/Yt13u lmENf0Sh7Yu1LbpJto8iMjk3VryEf9BZMwQ5zAilVhqBBIlxo88fOraNYpA2UwUQ tIELkthLQt/2yrAmgIstA9d+SBywRmiEfFjAxBbzsf4ZobRgp+XXJhY512GUQDKQ 3vBT+jGoYj0rvS3DxcZqBjHTzvIrZeuMm/iaOLshEG3X3LLg+8X67IkWeuwdd01s pMVsLio0sz+35gjwuOxX6BmL1hiwXNDeQpQvzU8iXrM1Udx59cVChKYpJACOfCHJ RDNMSD8ME8Yc+MJ9vo+6niN5KabVbPJ+03vvtA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1753997419; x= 1754083819; bh=s5qi5FL9W9Pdu6l4aSD/rw+xVui+JAxQAvTh2Z8bXa8=; b=H lnDVL8VVBpS22wCGWLC/rTSAO2Fy+KRGbZ/xoQqvfCSIruN/VePb4NOOsRN4ocP1 +IfNlQwpJxGMGjcnHt9687y2299ghydXMxPFHhoaqcAVWvGyU2tPplRCt07NFy2z vvrAVuB2FUaR2l/tY1l0MCZxyoUBGeaY/9Nyu4fELM2lDG51SVVsTy7sowxXRcSi ssI2KKzRRjX7PprLyTVRQHIg5pnJIs8JdaL09dAg94YP5xDvpRt1PGx/xWZwM8LE cHRXHLtZ3aBkUVwIsY2S4NaiVoAx/PupV3l6ChmurnIM0udW9IUeWiJ0UAOO0ArG 0JWMbhq4/K/Wi9359/Q/w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgddutddukeelucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkgggtsehttdertddttddtne cuhfhrohhmpeffihhmrgcumfhoghgrnhcuoeguihhmrgesshgvtghrvghtshgruhgtvgdr nhgvtheqnecuggftrfgrthhtvghrnhepffdvffduhfekfffhieefhfffvddtgfefjeevue dvfedujeejudevfedtgeeguedvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomhepughimhgrsehsvggtrhgvthhsrghutggvrdhnvghtpdhnsggprh gtphhtthhopedupdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegsuhhgqdhgnhhu qdgvmhgrtghssehgnhhurdhorhhg X-ME-Proxy: Feedback-ID: i3e8042a0:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 31 Jul 2025 17:30:19 -0400 (EDT) From: Dima Kogan To: bug-gnu-emacs@gnu.org Subject: 31.0.50; (report-emacs-bug-check-org) throws an error when reporting unrelated bug X-Debbugs-Cc: Date: Thu, 31 Jul 2025 14:32:56 -0700 Message-ID: <87zfckhwqf.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=202.12.124.151; envelope-from=dima@secretsauce.net; helo=fout-b8-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) 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.3 (/) Hi. I'm using the bleeding-edge emacs from git: 99080d0c049. On Debian. GTK. I just tried to M-x reportbug for something, and it repeatedly failed because (report-emacs-bug-check-org) throws an "Args out of range" error. The function in question: (defun report-emacs-bug-check-org () "Warn the user if the bug report mentions org-mode." (unless report-emacs-bug-no-confirmation (goto-char (point-max)) (skip-chars-backward " \t\n") (let* ((text (buffer-substring-no-properties (point-min) (point))) (l (length report-emacs-bug-orig-text)) (text (substring text 0 l)) (org-regex "\\b[Oo]rg\\(-mode\\)?\\b")) (when (string-match-p org-regex text) (when (yes-or-no-p "Is this bug about org-mode?") (error (substitute-command-keys "\ Not sending, use \\[org-submit-bug-report] to report an Org-mode bug."))))))) So it gets the current buffer text into 'text (goto-char (point-max)) (text (buffer-substring-no-properties (point-min) (point))) And then it cuts this variable to the size of the text in 'report-emacs-bug-orig-text. (l (length report-emacs-bug-orig-text)) (text (substring text 0 l)) In this case report-emacs-bug-orig-text is much bigger than text, so the (substring) fails. So currently (report-emacs-bug-check-org) is not self-contained: it's making assumptions on the value of some external variable ('report-emacs-bug-orig-text) when called, and if those assumptions fail (as they do here), it dies. Thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 01 02:46:22 2025 Received: (at 79138) by debbugs.gnu.org; 1 Aug 2025 06:46:22 +0000 Received: from localhost ([127.0.0.1]:54104 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uhjX4-0000Pu-43 for submit@debbugs.gnu.org; Fri, 01 Aug 2025 02:46:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42766) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uhjX1-0000PH-5c; Fri, 01 Aug 2025 02:46:20 -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 1uhjWv-0004SB-I1; Fri, 01 Aug 2025 02:46:13 -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=cBqLJHpQAGmk/q+IksWKaiHaBR6NipwudZikuFk5yGo=; b=lDqzXedx1FSJ IEnfM+mmRkqkKSbIpjcGsXB76npkzGMmtJnh57f8eVOMAAQ2B+r47/JvesInkz2c3dxT6MNRwHGJ/ 98aI0/XHUSuQpK4iCZxxH1ZjI8bMTJaCk3wPvG+Eds2ZW0yiLgKAOU0/MKR+9tyHmR17U10PvJfA+ AKCSM04O9kXGe94N0uIfI76krNjhrZIEYr2Z/UVukfaQDIGalCKDdNNtTuL2gulvyNXfp42mB1xW9 zAtQLUgd3e8q2s39IB6s7+1C2uFxepSExiUqyVAvN6v/a90V9TYQ6AtgLBzClr5PTX1E9RYp+VzyD XNSKor1tLpZChmJRsC7T8w==; Date: Fri, 01 Aug 2025 09:46:09 +0300 Message-Id: <86v7n7tu8e.fsf@gnu.org> From: Eli Zaretskii To: Dima Kogan In-Reply-To: <87zfckhwqf.fsf@secretsauce.net> (message from Dima Kogan on Thu, 31 Jul 2025 14:32:56 -0700) Subject: Re: bug#79138: 31.0.50; (report-emacs-bug-check-org) throws an error when reporting unrelated bug References: <87zfckhwqf.fsf@secretsauce.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79138 Cc: 79138@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 (---) merge 79138 79080 thanks > From: Dima Kogan > Date: Thu, 31 Jul 2025 14:32:56 -0700 > > Hi. I'm using the bleeding-edge emacs from git: 99080d0c049. On Debian. > GTK. > > I just tried to M-x reportbug for something, and it repeatedly failed > because (report-emacs-bug-check-org) throws an "Args out of range" > error. The function in question: > > (defun report-emacs-bug-check-org () > "Warn the user if the bug report mentions org-mode." > (unless report-emacs-bug-no-confirmation > (goto-char (point-max)) > (skip-chars-backward " \t\n") > (let* ((text (buffer-substring-no-properties (point-min) (point))) > (l (length report-emacs-bug-orig-text)) > (text (substring text 0 l)) > (org-regex "\\b[Oo]rg\\(-mode\\)?\\b")) > (when (string-match-p org-regex text) > (when (yes-or-no-p "Is this bug about org-mode?") > (error (substitute-command-keys "\ > Not sending, use \\[org-submit-bug-report] to report an Org-mode bug."))))))) > > So it gets the current buffer text into 'text > > (goto-char (point-max)) > (text (buffer-substring-no-properties (point-min) (point))) > > And then it cuts this variable to the size of the text in > 'report-emacs-bug-orig-text. > > (l (length report-emacs-bug-orig-text)) > (text (substring text 0 l)) > > In this case report-emacs-bug-orig-text is much bigger than text, so the > (substring) fails. So currently (report-emacs-bug-check-org) is not > self-contained: it's making assumptions on the value of some external > variable ('report-emacs-bug-orig-text) when called, and if those > assumptions fail (as they do here), it dies. This is bug#79080, so I'm now merging them. If you can try the patch proposed there, it would help. (It would also help if other people with write access would examine and install patches instead of always waiting for me to do it, which sometime makes the reaction times too slow, but that's a rant.) From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 02 09:33:04 2025 Received: (at 79138) by debbugs.gnu.org; 2 Aug 2025 13:33:04 +0000 Received: from localhost ([127.0.0.1]:35088 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uiCMB-0005np-A1 for submit@debbugs.gnu.org; Sat, 02 Aug 2025 09:33:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41270) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uiCM9-0005n7-IH for 79138@debbugs.gnu.org; Sat, 02 Aug 2025 09:33:02 -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 1uiCM4-0002Xz-5C; Sat, 02 Aug 2025 09:32:56 -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=fOBAKWtjPsr/z2SrYTUO2+UDBr7tcCg3vu+1gl7kOP0=; b=hngb0Ua/KCA/ kkBfbATCqDXPxeGhmdE9JNoKlSz05AAFNeZRZE+3asyk5xvYQ8kHqskKJCAiFbZ3y4oVXQBEj2ui0 1fKuvbZ2SNnuynCoWzQKUskDdGQYPKQWJQZwFR6geVmtz7iRd7YyNzv+2lCEbntmqrZGKNIFQrN02 HPGURSyLCjNFEZZGsRFnl0Aqga2jvrKSSclW/jASDBsHjcNtYMsv7A8qjlvT90/QMhiccDHi/JE8L y72E394VsjxumarAnAhQOHLHuEa6uqPSMixAD8x8n3ZlGaytUZ3Oxm3MCtSR6BYwjORwQTBlwun3X 8TWwYxkmhnNXbSwzbnLjEA==; Date: Sat, 02 Aug 2025 16:32:52 +0300 Message-Id: <8634a9svaz.fsf@gnu.org> From: Eli Zaretskii To: dima@secretsauce.net In-Reply-To: <86v7n7tu8e.fsf@gnu.org> (message from Eli Zaretskii on Fri, 01 Aug 2025 09:46:09 +0300) Subject: Re: bug#79138: 31.0.50; (report-emacs-bug-check-org) throws an error when reporting unrelated bug References: <87zfckhwqf.fsf@secretsauce.net> <86v7n7tu8e.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79138 Cc: 79138@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: 79138@debbugs.gnu.org > Date: Fri, 01 Aug 2025 09:46:09 +0300 > From: Eli Zaretskii > > merge 79138 79080 > thanks > > > From: Dima Kogan > > Date: Thu, 31 Jul 2025 14:32:56 -0700 > > > > Hi. I'm using the bleeding-edge emacs from git: 99080d0c049. On Debian. > > GTK. > > > > I just tried to M-x reportbug for something, and it repeatedly failed > > because (report-emacs-bug-check-org) throws an "Args out of range" > > error. The function in question: > > > > (defun report-emacs-bug-check-org () > > "Warn the user if the bug report mentions org-mode." > > (unless report-emacs-bug-no-confirmation > > (goto-char (point-max)) > > (skip-chars-backward " \t\n") > > (let* ((text (buffer-substring-no-properties (point-min) (point))) > > (l (length report-emacs-bug-orig-text)) > > (text (substring text 0 l)) > > (org-regex "\\b[Oo]rg\\(-mode\\)?\\b")) > > (when (string-match-p org-regex text) > > (when (yes-or-no-p "Is this bug about org-mode?") > > (error (substitute-command-keys "\ > > Not sending, use \\[org-submit-bug-report] to report an Org-mode bug."))))))) > > > > So it gets the current buffer text into 'text > > > > (goto-char (point-max)) > > (text (buffer-substring-no-properties (point-min) (point))) > > > > And then it cuts this variable to the size of the text in > > 'report-emacs-bug-orig-text. > > > > (l (length report-emacs-bug-orig-text)) > > (text (substring text 0 l)) > > > > In this case report-emacs-bug-orig-text is much bigger than text, so the > > (substring) fails. So currently (report-emacs-bug-check-org) is not > > self-contained: it's making assumptions on the value of some external > > variable ('report-emacs-bug-orig-text) when called, and if those > > assumptions fail (as they do here), it dies. > > This is bug#79080, so I'm now merging them. If you can try the patch > proposed there, it would help. The bug should be fixed now.