From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#13648: 24.3.50; remove-overlays bugs Date: Thu, 07 Feb 2013 20:45:32 -0500 Message-ID: References: <8738x8b1pa.fsf@rosalinde.fritz.box> <87y5f09bpk.fsf@rosalinde.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1360287970 12745 80.91.229.3 (8 Feb 2013 01:46:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Feb 2013 01:46:10 +0000 (UTC) Cc: 13648@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 08 02:46:31 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U3d2t-0006bd-1X for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Feb 2013 02:46:31 +0100 Original-Received: from localhost ([::1]:55193 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3d2a-0006Nh-21 for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Feb 2013 20:46:12 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38208) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3d2W-0006NX-Iq for bug-gnu-emacs@gnu.org; Thu, 07 Feb 2013 20:46:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U3d2S-0001TP-2l for bug-gnu-emacs@gnu.org; Thu, 07 Feb 2013 20:46:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37228) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3d2R-0001T9-Vj for bug-gnu-emacs@gnu.org; Thu, 07 Feb 2013 20:46:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U3d2Q-0000av-K1 for bug-gnu-emacs@gnu.org; Thu, 07 Feb 2013 20:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Feb 2013 01:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13648 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13648-submit@debbugs.gnu.org id=B13648.13602879362252 (code B ref 13648); Fri, 08 Feb 2013 01:46:02 +0000 Original-Received: (at 13648) by debbugs.gnu.org; 8 Feb 2013 01:45:36 +0000 Original-Received: from localhost ([127.0.0.1]:42692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U3d20-0000aH-8O for submit@debbugs.gnu.org; Thu, 07 Feb 2013 20:45:36 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:20077) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U3d1y-0000a9-07 for 13648@debbugs.gnu.org; Thu, 07 Feb 2013 20:45:35 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFFpZnt/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCws0EhQYDSQuh3AGwS2RCgOIYZwZgV6DFQ X-IPAS-Result: Av8EABK/CFFFpZnt/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCws0EhQYDSQuh3AGwS2RCgOIYZwZgV6DFQ X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="736381" Original-Received: from 69-165-153-237.dsl.teksavvy.com (HELO pastel.home) ([69.165.153.237]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 07 Feb 2013 20:45:32 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 75D7D59042; Thu, 7 Feb 2013 20:45:32 -0500 (EST) In-Reply-To: <87y5f09bpk.fsf@rosalinde.fritz.box> (Stephen Berman's message of "Thu, 07 Feb 2013 20:16:07 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:70866 Archived-At: > Damn, I get tripped up by that a lot. And the fact that the empty > string is an exception doesn't help to keep the difference in mind. > Still, it is rather cumbersome to include appropriate let-bindings or > calls to overlay-get for each string value in each use of > remove-overlays, as opposed to adding a single equal-check to that. Generally the best solution is very different: add another property to every overlay. E.g. smerge adds the property `smerge' with values like `conflict' or `refine', so you can then (remove-overlays beg end 'smerge 'refine) without caring about particular values of `after-string' or any other property. Stefan