From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#37127: [PATCH] cperl-mode: Suppress a misleading message Date: Fri, 30 Oct 2020 13:24:26 +0100 Message-ID: <87eelfkikl.fsf@gnus.org> References: <87ftlu67cy.fsf@vinc17.net> <87eelg3ffl.fsf@hajtower> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13785"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 37127@debbugs.gnu.org To: haj@posteo.de (Harald =?UTF-8?Q?J=C3=B6rg?=) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 30 13:25:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kYTSw-0003TZ-QJ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Oct 2020 13:25:10 +0100 Original-Received: from localhost ([::1]:54552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kYTSv-00010L-Kv for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Oct 2020 08:25:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49172) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYTSo-000100-Q3 for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2020 08:25:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44964) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kYTSo-0001l3-Gr for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2020 08:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kYTSo-00069v-DG for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2020 08:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Oct 2020 12:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37127 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 37127-submit@debbugs.gnu.org id=B37127.160406068123623 (code B ref 37127); Fri, 30 Oct 2020 12:25:02 +0000 Original-Received: (at 37127) by debbugs.gnu.org; 30 Oct 2020 12:24:41 +0000 Original-Received: from localhost ([127.0.0.1]:56507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYTST-00068x-1i for submit@debbugs.gnu.org; Fri, 30 Oct 2020 08:24:41 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:36922) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYTSR-00068h-IJ for 37127@debbugs.gnu.org; Fri, 30 Oct 2020 08:24:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: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=B1jUpXJHk6v1F0Tg5HiDMPhbaemqKo4m9ozI5g7ufQk=; b=pPMsxm2NzlDWyG+MbXQyeOMz7q x0xWT3eGyjnS4vHj8z/Bq+HlczK/Sw4EDZVS6/gX9bdi9HYq133ZqMKzIKZPXDARVWBO+Ey3nTHF+ /z7tyH9S6sgLCledsCcYLZAg3gYZGATZUYcpdkETiK2Z0xUov0gv//kZiImk7nSmaRtA=; Original-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 1kYTSF-0008Nn-Q1; Fri, 30 Oct 2020 13:24:33 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAG1BMVEX7+/vSz8+mo6Zb WF0fGhovKixBPEB/e4H///+DCN/PAAAAAWJLR0QIht6VegAAAAd0SU1FB+QKHgwOIWCHD40AAAGk SURBVDjLtZTPjtsgEMZBfQGDD73GE0U5r6eLH6CwPW8NPMAiptfGrpTX74CdOEqzp6ifLP/hx3wz gsFCPJBiiSfUCCHL7V5SKQ1aPSIcJBvxP/TFhRAph1UJEft5ODYMrAveXuR4zkgjVsATecQumIpB BXYBdo3iD5dX4AJdrSrYItCz1dvED54VwgW4NHgu4F3IQ424AWfvvP8tVMsg3wAc+HOETjKIecvh MDt6/YE/W1qASQuImIy17/uXQ6ggrMBFPLUJT1Lt0drEAC+g10Oz74QCzpHoCmw86Z1oX4SeWq7Q XK1s7LtO4odScHAjmpvkQ8f7nfSA30a8B+LwXanZ/kKkDYw4qa8IoP5EpLJntAGYJw2AxWhZq10B b3gGrSdQiIBlkyma3bIkWLKDgjPMBeQLSJxEMzqyly9eG+iBdS45GPCVF0Cmn+A48zDl0hNXEA0m rmlGrtXdgVh8MPsCSpYKbDQUyripIGwgENXexGzXTvULcDmGEYlT8LsvnVJALRspGV6/17BFPJJ8 7jR/KtU1bN39a84nXD75D2k+Gf8LJHu4UBQcHYUAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjAtMTAt MzBUMTI6MTQ6MzMrMDA6MDCwMDDJAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTEwLTMwVDEyOjE0 OjMzKzAwOjAwwW2IdQAAAABJRU5ErkJggg== X-Now-Playing: PJ Harvey's _Dry Demos_: "Victory" In-Reply-To: <87eelg3ffl.fsf@hajtower> ("Harald =?UTF-8?Q?J=C3=B6rg?="'s message of "Thu, 29 Oct 2020 22:11:58 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:192078 Archived-At: haj@posteo.de (Harald J=C3=B6rg) writes: > The patch suppresses the message if the following conditions are met: > 1) The buffer is currently narrowed > 2) We are at the end of the (narrowed) buffer > 3) The error in question is of type 'scan-error Makes sense to me, so I've pushed the change to Emacs 28. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no