From unknown Wed Sep 10 13:56:09 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#37733 <37733@debbugs.gnu.org> To: bug#37733 <37733@debbugs.gnu.org> Subject: Status: [PATCH]: Erroneous grep call thows exception in compilation-tear-down-arrow-spec-in-margin. Reply-To: bug#37733 <37733@debbugs.gnu.org> Date: Wed, 10 Sep 2025 20:56:09 +0000 retitle 37733 [PATCH]: Erroneous grep call thows exception in compilation-t= ear-down-arrow-spec-in-margin. reassign 37733 emacs submitter 37733 Alan Mackenzie severity 37733 normal tag 37733 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 13 09:05:24 2019 Received: (at submit) by debbugs.gnu.org; 13 Oct 2019 13:05:24 +0000 Received: from localhost ([127.0.0.1]:35350 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJdYn-0006sq-AR for submit@debbugs.gnu.org; Sun, 13 Oct 2019 09:05:24 -0400 Received: from lists.gnu.org ([209.51.188.17]:34237) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJdYl-0006sh-2v for submit@debbugs.gnu.org; Sun, 13 Oct 2019 09:05:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42329) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJdYj-0006dk-UP for bug-gnu-emacs@gnu.org; Sun, 13 Oct 2019 09:05:18 -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 autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iJdYi-0003fL-6L for bug-gnu-emacs@gnu.org; Sun, 13 Oct 2019 09:05:17 -0400 Received: from colin.muc.de ([193.149.48.1]:45595 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1iJdYh-0003eW-Pg for bug-gnu-emacs@gnu.org; Sun, 13 Oct 2019 09:05:16 -0400 Received: (qmail 7711 invoked by uid 3782); 13 Oct 2019 13:05:13 -0000 Received: from acm.muc.de (p2E5D5B34.dip0.t-ipconnect.de [46.93.91.52]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 13 Oct 2019 15:05:12 +0200 Received: (qmail 10950 invoked by uid 1000); 13 Oct 2019 13:05:12 -0000 Date: Sun, 13 Oct 2019 13:05:12 +0000 To: bug-gnu-emacs@gnu.org Subject: [PATCH]: Erroneous grep call thows exception in compilation-tear-down-arrow-spec-in-margin. Message-ID: <20191013130512.GC10125@ACM> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 193.149.48.1 X-Spam-Score: -1.6 (-) 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.6 (--) In master: emacs -Q C-u M-x grep grep --color -nH --null '-syn-' *.el ; Note the '-syn-' is ; interpreted by grep as flags. This throws an exception. Fix as follows: diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index e312def18d..25c8a4d067 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el @@ -2669,10 +2669,11 @@ compilation-set-up-arrow-spec-in-margin (defun compilation-tear-down-arrow-spec-in-margin () "Restore compilation-arrow-overlay to not using the margin, which is removed." - (overlay-put compilation-arrow-overlay 'before-string nil) - (delete-overlay compilation-arrow-overlay) - (setq compilation-arrow-overlay nil) - (set-window-margins (selected-window) (- (car (window-margins)) 2))) + (when (overlayp compilation-arrow-overlay) + (overlay-put compilation-arrow-overlay 'before-string nil) + (delete-overlay compilation-arrow-overlay) + (setq compilation-arrow-overlay nil) + (set-window-margins (selected-window) (- (car (window-margins)) 2)))) (defun compilation-set-overlay-arrow (w) "Set up, or switch off, the overlay-arrow for window W." . -- Alan Mackenzie (Nuremberg, Germany). From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 13 09:22:47 2019 Received: (at 37733-done) by debbugs.gnu.org; 13 Oct 2019 13:22:47 +0000 Received: from localhost ([127.0.0.1]:35368 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJdpf-0007J5-Ce for submit@debbugs.gnu.org; Sun, 13 Oct 2019 09:22:47 -0400 Received: from colin.muc.de ([193.149.48.1]:36685 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1iJdpd-0007Iw-Fc for 37733-done@debbugs.gnu.org; Sun, 13 Oct 2019 09:22:46 -0400 Received: (qmail 11727 invoked by uid 3782); 13 Oct 2019 13:22:43 -0000 Received: from acm.muc.de (p2E5D5B34.dip0.t-ipconnect.de [46.93.91.52]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 13 Oct 2019 15:22:42 +0200 Received: (qmail 11518 invoked by uid 1000); 13 Oct 2019 13:22:42 -0000 Date: Sun, 13 Oct 2019 13:22:42 +0000 To: 37733-done@debbugs.gnu.org Subject: Re: bug#37733: Acknowledgement ([PATCH]: Erroneous grep call thows exception in compilation-tear-down-arrow-spec-in-margin.) Message-ID: <20191013132242.GD10125@ACM> References: <20191013130512.GC10125@ACM> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 37733-done 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 (-) Bug fixed in the master branch. -- Alan Mackenzie (Nuremberg, Germany). From unknown Wed Sep 10 13:56:09 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 11 Nov 2019 12:24:08 +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