From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 08 04:28:03 2019 Received: (at submit) by debbugs.gnu.org; 8 Aug 2019 08:28:03 +0000 Received: from localhost ([127.0.0.1]:39873 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hvdmF-00081D-Ae for submit@debbugs.gnu.org; Thu, 08 Aug 2019 04:28:03 -0400 Received: from lists.gnu.org ([209.51.188.17]:60810) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hvdmC-00080n-H0 for submit@debbugs.gnu.org; Thu, 08 Aug 2019 04:28:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38268) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hvdmB-0007FB-HJ for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2019 04:28:00 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hvdmA-0001Fx-L9 for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2019 04:27:59 -0400 Received: from fmfe11.onbox.hu ([46.107.16.204]:51916 helo=web-out.onbox.hu) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hvdmA-0001FQ-46 for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2019 04:27:58 -0400 X-fm-smtp-source: yes Received: from localhost (localhost [84.236.111.241]) by web-out.onbox.hu (Postfix) with SMTP id 4641hq3MwCzhN7 for ; Thu, 8 Aug 2019 10:27:55 +0200 (CEST) From: ndame Message-ID: Subject: 26.2; invalid-read-syntax could print the location of the error MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11306_1947461089.1565252829306" To: "bug-gnu-emacs@gnu.org" X-AccountId: 57978162 X-Originating-Ip: 84.236.111.241 Date: Thu, 8 Aug 2019 10:27:55 +0200 (CEST) X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrudduhedgtdehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpucfhtffggffotefknfenuceurghilhhouhhtmecufedttdenucenucfjughrpefhkffugggtvfhiffesrgdtregstddtudenucfhrhhomhepnhgurghmvgcuoegvmhgrtghsuhhsvghrsehfrhgvvghmrghilhdrhhhuqeenucfkphepkeegrddvfeeirdduuddurddvgedunecurfgrrhgrmhephhgvlhhopedpihhnvghtpeekgedrvdefiedrudduuddrvdeguddpmhgrihhlfhhrohhmpegvmhgrtghsuhhsvghrsehfrhgvvghmrghilhdrhhhupdhrtghpthhtohepsghughdqghhnuhdqvghmrggtshesghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedt DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=simple/relaxed; t=1565252875; s=20181004; d=freemail.hu; h=From:Message-ID:Subject:MIME-Version:Content-Type:To:Date; l=785; bh=GNuSkwFcoNUmbK5RxlUId7kdswHWtmouWBQEziQLW/U=; b=A1RPRMXMmGx18xrfnjQrDfw9VYmy5n4CgenQu+nrHWVbCjxkEEXUiTakIMu4Z4vX bgV+m9CQq09pMCEAlSQtR7aQJZl6vlzEBOvT0ASFVdDJXWT4hoyl9NMiDNsNGX+RjKf eWcQ2rfXWHbbGyHJ3r2qee+Lo8HvuosZUAOaN94eG0QaJIO3BHWfrY+3gk4R/8gbrKb Ai564/rS6vId8KjCSEW/osOJ+AoKUYiHfMuxl7VH+8aI0EC4RMAi93IeijbaiTMpFdq A9DZwzgj7bsGewSaTyDFO77V2WqpsYZaCl1W7KzC+Kic6IRst0QFYdxgU8DTwOKv91T Niz4COzp4Q== X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 46.107.16.204 X-Spam-Score: -1.3 (-) 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: -2.3 (--) ------=_Part_11306_1947461089.1565252829306 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable It only says: =C2=A0 =C2=A0 (invalid-read-syntax ". in wrong context") It could also print the character location or even the line number and the position in the line to make it easy to find the error. =C2=A0 ------=_Part_11306_1947461089.1565252829306 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit It only says:

    (invalid-read-syntax ". in wrong context")

It could also print the character location or even the line number and
the position in the line to make it easy to find the error.
  ------=_Part_11306_1947461089.1565252829306-- From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 08 08:20:46 2019 Received: (at control) by debbugs.gnu.org; 8 Aug 2019 12:20:46 +0000 Received: from localhost ([127.0.0.1]:40082 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hvhPR-00013c-PF for submit@debbugs.gnu.org; Thu, 08 Aug 2019 08:20:45 -0400 Received: from mail-ot1-f44.google.com ([209.85.210.44]:46292) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hvhPO-000138-VV for control@debbugs.gnu.org; Thu, 08 Aug 2019 08:20:43 -0400 Received: by mail-ot1-f44.google.com with SMTP id z23so9432837ote.13 for ; Thu, 08 Aug 2019 05:20:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=hOh9an4rwKOAy3H3s14O7nvxSlmlr1BvUVZV1OSHb4U=; b=KaGlVLm3dL6DreLhyQ0kL4rmeCidharY/2KqITiIE2Drl1SjMhM0iPhvEdAA/TEAjm zq1P3HJzMN88gI+XXR9MxfZM64ZRrpD5qAOgzWP3jDWpSMcyLSWEcKnh8Lqe1RhTg/4k Cvw6nWn7k9S/5LwBJj9BSB+okQ/a0xDJTXEgeN+gVH4hQzvFRWFeIw5tp0+cufTEMzne bPrlCnHN2VX1j2+u370bL0tAHUtaT9aobLD1IM1eSr8VID6UrGF5YFFVtUmgHp141mPc TPMfiCrVNBmroI+M+kmvV0gNSdpJlBJK27NfL0Df7ETmRqNpbL5Zn4i6bSlpblPYJkm6 kayA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=hOh9an4rwKOAy3H3s14O7nvxSlmlr1BvUVZV1OSHb4U=; b=nsD1Gnico++R1Rzeu2c0ugCkf4sko4HI4d8uYC1kijOMc2+bubK2mPbmzchs3m6BVz rcSou3hbhR9pD9+yL44Fot1v1Kzuh312RzzKqckH3owk7Ng0hpeS09nUYc2AOZAPoYdZ W5F/9Q7bgSP5O2km9iHZroodknoHMCm74nJpCUx7bZQVQuOvlrq/XpufZ1kOW2dK3T5+ eEXjn+fM3AsJEzNPmP95zVlG3SAAnd6tnFAfdbODZrb6lA7Xt66wRlCpiKa/Dw+oHaSV 58O2Kz53HBVCH2l4NrGx8D1ckcT1rKSnsK+DoQFY0lwzG0EN3YFeRSgvWSsVZFCWSKb3 R7IA== X-Gm-Message-State: APjAAAUJBaW/ViC8FBMs+J/Dm8DGbNwcfqmtVy0KgcB5+Uyknw7zDPsU L9uWprOsJc9Ng4dzljmrm6VAXFjs X-Google-Smtp-Source: APXvYqzX9tJpazYijpGpDGtyScH0VEQw3mXnDvFPacZ8Bek1+r2uct1mfXg2GvsR5dMVsLNnguQaLA== X-Received: by 2002:a02:6a22:: with SMTP id l34mr16782409jac.126.1565266837243; Thu, 08 Aug 2019 05:20:37 -0700 (PDT) Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.gmail.com with ESMTPSA id m4sm78088690iok.68.2019.08.08.05.20.36 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Aug 2019 05:20:36 -0700 (PDT) From: Noam Postavsky To: control@debbugs.gnu.org Subject: control message for bug #36970 Date: Thu, 08 Aug 2019 08:20:35 -0400 Message-ID: <87zhkjrgq4.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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 (-) severity 36970 wishlist quit From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 30 02:54:36 2021 Received: (at 36970) by debbugs.gnu.org; 30 Jan 2021 07:54:36 +0000 Received: from localhost ([127.0.0.1]:53564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5l5Y-0005k3-8V for submit@debbugs.gnu.org; Sat, 30 Jan 2021 02:54:36 -0500 Received: from quimby.gnus.org ([95.216.78.240]:53134) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5l5T-0005jm-PA for 36970@debbugs.gnu.org; Sat, 30 Jan 2021 02:54:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=aQZyrU+GtVJ4DykVtYkdn0KgyYT5vIAFZPJvIEn1PEg=; b=V+lY5l2aNUjSIJa85FFWT3e7ms lQp1triQhDXV7Yn7IbSuh/9ff/+Vuxw3JJ4mD+tsRdcuTR3bOPfXRBGAZJAAu8yFQsHczR3rzeguy 8Zy8ngGaLpFgbJeUJFqq1NPYoCj47jFU8vCY5AO8dWV/9+SEsOrMYP67ZF104VnmDjfU=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l5l5K-000670-Nc; Sat, 30 Jan 2021 08:54:25 +0100 From: Lars Ingebrigtsen To: ndame Subject: Re: bug#36970: 26.2; invalid-read-syntax could print the location of the error References: X-Now-Playing: The Ring - Savage Lover (12" Disco Mix: Long Version's _For Discos Only (3)_: "Vocal)" Date: Sat, 30 Jan 2021 08:54:21 +0100 In-Reply-To: (ndame's message of "Thu, 8 Aug 2019 10:27:55 +0200 (CEST)") Message-ID: <87tuqyx3ki.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: ndame writes: > It only says: > > (invalid-read-syntax ". in wrong context") > > It could also print the character location or even the line number and > the position in the line to make it easy to find the error. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36970 Cc: 36970@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 (-) ndame writes: > It only says: > > (invalid-read-syntax ". in wrong context") > > It could also print the character location or even the line number and > the position in the line to make it easy to find the error. Poking around in read1 and friends, this doesn't seem very difficult to implement -- the errors are signalled from the invalid_syntax function. The wrinkle is that we may be reading from a string or something else based on readcharfun. However, the common case is reading from a buffer, and we could improve the error message there. So my idea here would be to change all the calls that are like this: invalid_syntax (". in wrong context"); into invalid_syntax (". in wrong context", readcharfun); and then, in that function do if (BUFFERP (readcharfun)) make_string_based_on_point () Since point is at the problematic element, that could just do a Fcount_lines/Fcurrent_column to get the line number/column number, presumably. Before starting to hack away at this, does anybody see any problems with this approach? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 04:15:20 2021 Received: (at 36970) by debbugs.gnu.org; 31 Jan 2021 09:15:21 +0000 Received: from localhost ([127.0.0.1]:56394 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l68pD-00014y-UI for submit@debbugs.gnu.org; Sun, 31 Jan 2021 04:15:20 -0500 Received: from quimby.gnus.org ([95.216.78.240]:35932) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l68pA-00014f-1N for 36970@debbugs.gnu.org; Sun, 31 Jan 2021 04:15:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=az2MhvzdGx6djGBdAbUTMRebCXstiKrOoIFMwQJjPFQ=; b=JNktX+i+wP2+g0kRX8RqOVGtKN qRNxwvS44boV2aMxUsWD07Mqz0a6uBtHMkXgvL+VtL29kMewr+lLI2soq3UvfcAkocMFqX6gp0qK/ v1kza6GDI3fn94J8SJLE90dc3gRUadEeVe9qB51x7z7nxD4lHTeX0vp8b//ph0xaNElk=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l68oy-00047L-2n; Sun, 31 Jan 2021 10:15:09 +0100 From: Lars Ingebrigtsen To: ndame Subject: Re: bug#36970: 26.2; invalid-read-syntax could print the location of the error References: <87tuqyx3ki.fsf@gnus.org> X-Now-Playing: Joan as Police Woman's _Joanthology (2)_: "Holy City" Date: Sun, 31 Jan 2021 10:14:59 +0100 In-Reply-To: <87tuqyx3ki.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 30 Jan 2021 08:54:21 +0100") Message-ID: <87wnvttqlo.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > if (BUFFERP (readcharfun)) > make_string_based_on_point () > > Since point is at the problematic element, that could just do a > Fcount_lines/Fcurrent_column to get the line number/column number, > [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36970 Cc: 36970@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 (-) Lars Ingebrigtsen writes: > if (BUFFERP (readcharfun)) > make_string_based_on_point () > > Since point is at the problematic element, that could just do a > Fcount_lines/Fcurrent_column to get the line number/column number, > presumably. I started tinkering with this, but there's a couple of things that are less obvious to me than I thought: Should the line/column numbers be based on what Fcount_lines return, or should they be the actual line number of the buffer? That is, taking selective display etc into consideration or not? Ignoring all that and just counting newlines would make sense in many situations (it's more like when compiling a file), but not in others? And... I'm slightly nervous about calling out to something as complicated as Fcount_lines. There's no efficiency considerations here (this is for error handling only), so I think calling that would be OK, but it'd be un-fun if the error handling bugged out. So I was poking through the Emacs lisp code to see whether there's any function that will just tell me what line I'm on, and there's... display_count_lines in xdisp.c, but that doesn't really seem like a good fit, since that's in redisplay, and not lread.c context. Isn't there any function that will just return the line number at point? I've been grepping for half an hour without finding anything. So I wrote a current_line function, which is trivial enough (and fast) if we're just looking for newlines and ignoring everything else... which... may be what we want here? Or not? Any opinions? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 05:15:49 2021 Received: (at 36970) by debbugs.gnu.org; 31 Jan 2021 10:15:49 +0000 Received: from localhost ([127.0.0.1]:56456 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l69lk-0002ZD-BP for submit@debbugs.gnu.org; Sun, 31 Jan 2021 05:15:49 -0500 Received: from quimby.gnus.org ([95.216.78.240]:36160) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l69lf-0002Yy-SR for 36970@debbugs.gnu.org; Sun, 31 Jan 2021 05:15:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=fERFdK4xqv2ksP39VV2YQLx/ncZ8qay+b0Ps0x0S6DM=; b=F4t2MRrLCQ0+6MTpG2oLQcTYqZ z4t+EplWfvG4yIUtSfbaiNru+Dj00vJNZJK2gXhe393ZDk1uoZ1DR9AHT4kW+vO96mn0vdYk6Bykk ZXSnktNnCy9rqsCMl/LwiXPGs5rR+iYYmPzECYiFdIo0pmfhVC1EGFhNG+FjeEsQiU8c=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l69lV-0004Ya-He; Sun, 31 Jan 2021 11:15:37 +0100 From: Lars Ingebrigtsen To: ndame Subject: Re: bug#36970: 26.2; invalid-read-syntax could print the location of the error References: <87tuqyx3ki.fsf@gnus.org> <87wnvttqlo.fsf@gnus.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEU9ODqBfn3Jxr7/ //+6/dMtAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+UBHwoNJ6J0ABgAAAFxSURBVCjPPdDBattAEAbg f4Ukgk4KrMHeUw8qyHkKGdwcclJgtzg6y2DtUzgl5KwWu4ScJLCLtE/ZmZWcOeljZjQzC9G0IaYI sHH98guBu+T8VTJWbhgYpxkacSFayAB6QMjooAOE2TmE4gzhKEeJpBBHpAHeypHLpl+/7hoJMc/Z LqUG5sxJ8Yg5cxc7/YXlwvBuqcdYp4zMo6/1hIKQXNIwmiCQdLhLCqw84qHc0gJxwdjoTgatP07g KNqc9odkXH+ectRAxHCuzKmdLiTsjc4R6QkUO9Cd8D3GjsY4H/PC3xs7Pt+waMzhxc7IDmK3r25l dfSS+rJ9QT1qKT4Zdiwy2wCKUbkhswfIBc/693fI1t/MihHQetn63jwZQuLcRa4RmR+ER0Km2vD+ eUK3T9qk6gmKcFVb4RixRxlVv6dMf32oxcPrDeoAO+PPVdWwG17N4yysmPDrEo9RdUMXjIsPBr3E ey/ceSAIRhfRMPEfr656eHeUTk0AAAAldEVYdGRhdGU6Y3JlYXRlADIwMjEtMDEtMzFUMTA6MTM6 MzkrMDA6MDCdBY/6AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTAxLTMxVDEwOjEzOjM5KzAwOjAw 7Fg3RgAAAABJRU5ErkJggg== X-Now-Playing: K Leimer's _Third Noise Principle (Formative North American Electronica 1975-1984) (2)_: "Archie's Dub" Date: Sun, 31 Jan 2021 11:15:32 +0100 In-Reply-To: <87wnvttqlo.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 31 Jan 2021 10:14:59 +0100") Message-ID: <87o8h5tnsr.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > Should the line/column numbers be based on what Fcount_lines return, or > should they be the actual line number of the buffer? That is, taking > selective display etc into consideration or not? Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36970 Cc: 36970@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 (-) Lars Ingebrigtsen writes: > Should the line/column numbers be based on what Fcount_lines return, or > should they be the actual line number of the buffer? That is, taking > selective display etc into consideration or not? I think perhaps not? Getting better error reporting here is mostly useful when doing batch compilation etc. If we're just saying (read (current-buffer)), then point will be left at the offending character, so we don't really need the info? But we do need the info when doing that from a byte-compile-file or the like... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 09:57:46 2021 Received: (at 36970) by debbugs.gnu.org; 31 Jan 2021 14:57:46 +0000 Received: from localhost ([127.0.0.1]:57659 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6EAZ-0003TJ-VM for submit@debbugs.gnu.org; Sun, 31 Jan 2021 09:57:46 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35582) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6EAV-0003T2-5r for 36970@debbugs.gnu.org; Sun, 31 Jan 2021 09:57:42 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33842) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6EAO-0007pb-WF; Sun, 31 Jan 2021 09:57:33 -0500 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4660 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1l6EAN-00040B-QJ; Sun, 31 Jan 2021 09:57:32 -0500 Date: Sun, 31 Jan 2021 16:57:54 +0200 Message-Id: <831re1887h.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <87wnvttqlo.fsf@gnus.org> (message from Lars Ingebrigtsen on Sun, 31 Jan 2021 10:14:59 +0100) Subject: Re: bug#36970: 26.2; invalid-read-syntax could print the location of the error References: <87tuqyx3ki.fsf@gnus.org> <87wnvttqlo.fsf@gnus.org> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36970 Cc: emacsuser@freemail.hu, 36970@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.7 (-) > From: Lars Ingebrigtsen > Date: Sun, 31 Jan 2021 10:14:59 +0100 > Cc: 36970@debbugs.gnu.org > > Should the line/column numbers be based on what Fcount_lines return, or > should they be the actual line number of the buffer? That is, taking > selective display etc into consideration or not? Ignoring all that and > just counting newlines would make sense in many situations (it's more > like when compiling a file), but not in others? > > And... I'm slightly nervous about calling out to something as > complicated as Fcount_lines. What is Fcount_lines? > So I was poking through the Emacs lisp code to see whether there's any > function that will just tell me what line I'm on, and there's... > display_count_lines in xdisp.c, but that doesn't really seem like a good > fit, since that's in redisplay, and not lread.c context. Can you tell why did you think display_count_lines will not do the job you need it to do? > Isn't there any function that will just return the line number at point? That's display_count_lines, IMO. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 01 03:40:23 2021 Received: (at 36970) by debbugs.gnu.org; 1 Feb 2021 08:40:23 +0000 Received: from localhost ([127.0.0.1]:58685 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6Ukx-00007l-Dv for submit@debbugs.gnu.org; Mon, 01 Feb 2021 03:40:23 -0500 Received: from quimby.gnus.org ([95.216.78.240]:46086) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6Uks-00007R-Mc for 36970@debbugs.gnu.org; Mon, 01 Feb 2021 03:40:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=E2tzswJiGQx6rkLzQXGefwYpjO3CmHeqqTcuQP+tzXY=; b=mDeIjZqBnO/4cbicuiuwOw60lM ytaXgTQBWDEkhwsrcR0qUdjyYG1im+h2LbkKMHycy3eKJ/oQbiSxzlud4WZvWnIEP5giBgRAsNIXf mIFlnGver0XJt+1Ge0bNuPfWjbuWQqVI4J5dHmDmegMD284U7NfP72LDjyIbbKd2lf0o=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l6Ukj-000798-3E; Mon, 01 Feb 2021 09:40:11 +0100 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#36970: 26.2; invalid-read-syntax could print the location of the error References: <87tuqyx3ki.fsf@gnus.org> <87wnvttqlo.fsf@gnus.org> <831re1887h.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEUKCAYtJx9fWEqK gHKzp5v////iIdWkAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+UCAQggE1cIIFAAAAGhSURBVDjLlVOB kdwwCAQnBQBuwEIpICe5gf9T/zVlkeSzLslnJjvjmzMLywojItaBXEvSC0JA/PFkVtzBxKtoxMmY xIq61woKAVbvFYYnF0gFCgrM6wFatiQW6QOl/0QFm4tafcPRe6gTJ1SUfMXPQRCHk+g89c72GHGD 3ThGRk17nrU1GRV2sNvM7fikSaSUDzRoF+qoYPZQOdtNTFe0v0Qm8XO6qosM8NRpl1Z9hJUu7KvS B93gtQDv2yVF25uSmrxKUjrbs/lZ+2c8aOmC0IMjByM7LJfr8DB26H7iQ8newstVIs5CmlsrMhre alaLy/6sic5JzJVwz/XB8Vm3/OxEbxlNkEya/KBNvGeHeHwmi90RjgDtrw7HJjiO8Dwcj1+l79hD x56xy+0Hu0Vb4b6xnGipAL7NxPeKNcPeCf4t7ybsr1GZS9HvyiKs97AADc+aF4J/BFEwDU68LwSR D2BEcZuEtc8LjxluE7SUeZWCNfMMOdxN9gjrZcEZlxclqiAwojEeuMkwy90w39vIKn8OqhfoZL8G /4Pkr0ml/8YvoI5XsdQ7Bh8AAAAldEVYdGRhdGU6Y3JlYXRlADIwMjEtMDItMDFUMDg6MzI6MTkr MDA6MDBfTrVOAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTAyLTAxVDA4OjMyOjE5KzAwOjAwLhMN 8gAAAABJRU5ErkJggg== X-Now-Playing: Normil Hawaiians's _What's Going On?_: "Martin" Date: Mon, 01 Feb 2021 09:40:07 +0100 In-Reply-To: <831re1887h.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 31 Jan 2021 16:57:54 +0200") Message-ID: <87k0rsrxjs.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: >> And... I'm slightly nervous about calling out to something as >> complicated as Fcount_lines. > > What is Fcount_lines? Sorry, I meant `count-lines'. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36970 Cc: emacsuser@freemail.hu, 36970@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 (-) Eli Zaretskii writes: >> And... I'm slightly nervous about calling out to something as >> complicated as Fcount_lines. > > What is Fcount_lines? Sorry, I meant `count-lines'. >> So I was poking through the Emacs lisp code to see whether there's any >> function that will just tell me what line I'm on, and there's... >> display_count_lines in xdisp.c, but that doesn't really seem like a good >> fit, since that's in redisplay, and not lread.c context. > > Can you tell why did you think display_count_lines will not do the job > you need it to do? Because it's only used in xdisp.c, and I was guessing there was some reason for that, and: Set *BYTE_POS_PTR to the byte position where we stopped. This is either the position COUNT lines after/before START_BYTE, if we found COUNT lines, or LIMIT_BYTE if we hit the limit before finding COUNT lines. */ So from the comments it seemed like this had some other, more complex use case. But I see from the actual call sites that it looks just like what I need: nlines = display_count_lines (startpos_byte, PT_BYTE, PT, &junk); So I guess I should just put the prototype in lisp.h and use it? (It's kinda surprising that no other part of Emacs has felt the need to compute a line number before...) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 01 10:06:58 2021 Received: (at 36970) by debbugs.gnu.org; 1 Feb 2021 15:06:58 +0000 Received: from localhost ([127.0.0.1]:32864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6an4-0006lK-6i for submit@debbugs.gnu.org; Mon, 01 Feb 2021 10:06:58 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43706) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6an2-0006l5-NP for 36970@debbugs.gnu.org; Mon, 01 Feb 2021 10:06:57 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:53717) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6amw-0005Zw-Lx; Mon, 01 Feb 2021 10:06:50 -0500 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1912 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1l6amf-0002gb-PB; Mon, 01 Feb 2021 10:06:35 -0500 Date: Mon, 01 Feb 2021 17:06:59 +0200 Message-Id: <835z3b7ros.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <87k0rsrxjs.fsf@gnus.org> (message from Lars Ingebrigtsen on Mon, 01 Feb 2021 09:40:07 +0100) Subject: Re: bug#36970: 26.2; invalid-read-syntax could print the location of the error References: <87tuqyx3ki.fsf@gnus.org> <87wnvttqlo.fsf@gnus.org> <831re1887h.fsf@gnu.org> <87k0rsrxjs.fsf@gnus.org> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36970 Cc: emacsuser@freemail.hu, 36970@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.7 (-) > From: Lars Ingebrigtsen > Cc: emacsuser@freemail.hu, 36970@debbugs.gnu.org > Date: Mon, 01 Feb 2021 09:40:07 +0100 > > nlines = display_count_lines (startpos_byte, > PT_BYTE, PT, &junk); > > So I guess I should just put the prototype in lisp.h and use it? Yes (and make it non-static). Alternatively, define a wrapper for it that doesn't accept that last arg, and make _that_ wrapper extern and more suitably named. > (It's kinda surprising that no other part of Emacs has felt the need > to compute a line number before...) Emacs almost never counts lines, except for 2 display features: the line-number display in the mode line and display-line-numbers-mode. The buffer-with-gap paradigm makes a point of not knowing where each line ends and how many lines are there. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 01 11:10:47 2021 Received: (at 36970) by debbugs.gnu.org; 1 Feb 2021 16:10:48 +0000 Received: from localhost ([127.0.0.1]:32945 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6bmp-0008QO-MH for submit@debbugs.gnu.org; Mon, 01 Feb 2021 11:10:47 -0500 Received: from quimby.gnus.org ([95.216.78.240]:51082) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6bmm-0008Q2-UO for 36970@debbugs.gnu.org; Mon, 01 Feb 2021 11:10:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=HAj1uJpsXQoJhyxoJFni32bg8/Xjc+bzzZESPbFi8Sk=; b=gEJd9MM1VOsCwpIDtFGcARi91e X9jiVGcnKFGelK1mdB0QE5ngNYznMLIS+E4g/R19F/X9vgFufdldtwUv+dgqN5rRU8b8v9bYplIQh B5XDk7uymT3gKu93twGonpKdrmUy/8+dg5f+v5EcA2gmF1Af0P3DcTbGlr/vt1ZW2Qzc=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l6bmb-0002J1-2h; Mon, 01 Feb 2021 17:10:38 +0100 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#36970: 26.2; invalid-read-syntax could print the location of the error References: <87tuqyx3ki.fsf@gnus.org> <87wnvttqlo.fsf@gnus.org> <831re1887h.fsf@gnu.org> <87k0rsrxjs.fsf@gnus.org> <835z3b7ros.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEUjJicfICIdHiBO SkOnjIH////lxkJsAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+UCARAEKAXe2hoAAAGaSURBVDjLbVSL ccMgDJVCB5BIBwhkAa54gN7F+89UfTHJlUtsx4+nJz2JAGwLeS0AArlRQhvQ7E6frG0Pg/5Mlt3I OIRbOHJA6MjP45jny0OhAb4JypxjDl6S8mqAPJVxKTdORgQng5pzVq4hjleO5KnQe41AHLs+il8F qpzHciwAlGLgFiJk30uqDIKUk09bscoSqURLqzb6voFSKBXVKa691WNa9RQ5IutD7/w4z/M3S1Rq QyX0WgQYYY0C1EkJAsDx8jq82kc1oPF9XgAZYNrMz3nObLteHzdVr9JamAZIj83nhj28Kk6gYAiQ Jc0RocyaBjElWBLw1ah6LxEKvAGcwN4tB7plZX3YAGlStb0LII/J1efiYiCZy1yts0g2lz53YMNX Td0apGH0XUn3u0ZCGyYYuKaeFOBQkiSAVu9zICSBClkLXUdKHcZ/AQuyAcusHNHFMEAGovfHmCm+ JvE+pq1I6TrOX6euOREth3WcZUqKMX7UmphdNV6ntDU1K2o0wJseFVOeBuZ1UtVApGXV9pcDpaAp wB+vEjoP0NtPFgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMS0wMi0wMVQxNjowNDozOSswMDowMO5+ SbMAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMDItMDFUMTY6MDQ6MzkrMDA6MDCfI/EPAAAAAElF TkSuQmCC X-Now-Playing: Laurel Halo's _DJ Kicks_: "(untitled)" Date: Mon, 01 Feb 2021 17:10:30 +0100 In-Reply-To: <835z3b7ros.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 01 Feb 2021 17:06:59 +0200") Message-ID: <87mtwnojk9.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: > Yes (and make it non-static). Alternatively, define a wrapper for it > that doesn't accept that last arg, and make _that_ wrapper extern and > more suitably named. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36970 Cc: emacsuser@freemail.hu, 36970@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 (-) Eli Zaretskii writes: > Yes (and make it non-static). Alternatively, define a wrapper for it > that doesn't accept that last arg, and make _that_ wrapper extern and > more suitably named. Yup. I've made the wrapper even simpler, and dropped the count, too. >> (It's kinda surprising that no other part of Emacs has felt the need >> to compute a line number before...) > > Emacs almost never counts lines, except for 2 display features: the > line-number display in the mode line and display-line-numbers-mode. > The buffer-with-gap paradigm makes a point of not knowing where each > line ends and how many lines are there. Emacs almost never counts lines while running normally, but line numbers are useful when reporting errors (like here), so I was surprised not to find a convenient function to use. On the other hand, perhaps this explains why errors like these didn't use to report lines. :-) Anyway, I'm running some more tests, and then I'll push the change. The error message could be improved: It's CALLN (Fformat, build_string ("%s (line %d, column %d)"), which looks a bit awkward -- feel free to tweak, everybody. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 01 11:10:59 2021 Received: (at control) by debbugs.gnu.org; 1 Feb 2021 16:10:59 +0000 Received: from localhost ([127.0.0.1]:32948 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6bn0-0008Qo-Vd for submit@debbugs.gnu.org; Mon, 01 Feb 2021 11:10:59 -0500 Received: from quimby.gnus.org ([95.216.78.240]:51098) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6bmy-0008Qa-Vu for control@debbugs.gnu.org; Mon, 01 Feb 2021 11:10:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=/Pg+VXC4QBddPjjo/5FnUOR/g56czgt4RIjTzbyBuic=; b=JW5Xue/5EzyAOpx0+iwVzlKQ6O dpLZ6rEzVpKEF7995LuZEs1AyjxE96nB8SgLpdTyto/rmZwuFjX7HtYqx4/EaqQQb4bSDRj3qVDzX am/WPVTLHrkK0DkvztCizXL3YFelApI1MhXm3OX9qvaGIaWMgj/Ibbm/jYjmWDHnhhMg=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l6bmr-0002JD-F4 for control@debbugs.gnu.org; Mon, 01 Feb 2021 17:10:51 +0100 Date: Mon, 01 Feb 2021 17:10:48 +0100 Message-Id: <87lfc7ojjr.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #36970 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 36970 fixed close 36970 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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 (-) tags 36970 fixed close 36970 28.1 quit From unknown Sun Jun 22 07:57:59 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 02 Mar 2021 12:24:10 +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