From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#19422: 25.0.50; `remove-overlays` needs one additional `point` at end of narrowed region. Date: Mon, 22 Dec 2014 18:32:01 +0200 Message-ID: <83r3vrprwe.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1419266009 16489 80.91.229.3 (22 Dec 2014 16:33:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Dec 2014 16:33:29 +0000 (UTC) Cc: 19422@debbugs.gnu.org To: Keith David Bershatsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 22 17:33:21 2014 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 1Y35v3-00039X-U3 for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Dec 2014 17:33:18 +0100 Original-Received: from localhost ([::1]:41163 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y35v3-0003wI-7t for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Dec 2014 11:33:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48532) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y35uu-0003ms-0N for bug-gnu-emacs@gnu.org; Mon, 22 Dec 2014 11:33:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y35uo-0001yp-Mt for bug-gnu-emacs@gnu.org; Mon, 22 Dec 2014 11:33:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45715) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y35uo-0001yi-Kk for bug-gnu-emacs@gnu.org; Mon, 22 Dec 2014 11:33:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Y35uo-0005p8-8v for bug-gnu-emacs@gnu.org; Mon, 22 Dec 2014 11:33:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Dec 2014 16:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19422 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19422-submit@debbugs.gnu.org id=B19422.141926593922327 (code B ref 19422); Mon, 22 Dec 2014 16:33:02 +0000 Original-Received: (at 19422) by debbugs.gnu.org; 22 Dec 2014 16:32:19 +0000 Original-Received: from localhost ([127.0.0.1]:55080 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y35u6-0005o2-RQ for submit@debbugs.gnu.org; Mon, 22 Dec 2014 11:32:19 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:43895) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y35u4-0005nr-AM for 19422@debbugs.gnu.org; Mon, 22 Dec 2014 11:32:17 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NGZ00D00SH4RB00@a-mtaout22.012.net.il> for 19422@debbugs.gnu.org; Mon, 22 Dec 2014 18:32:14 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NGZ00DARSLP8T80@a-mtaout22.012.net.il>; Mon, 22 Dec 2014 18:32:14 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:97676 Archived-At: > Date: Sun, 21 Dec 2014 09:42:36 -0800 > From: Keith David Bershatsky > Cc: 19422@debbugs.gnu.org > > In my particular use case, I am narrowing to a region and then inserting an `after-string` overlay at `point-max`: > > (overlay-put (make-overlay (point-max) (point-max)) 'after-string "|") > > I have a minor mode that draws a vertical line that tracks the cursor position and I extend that to window-end or point-max. The end of the buffer has a different color and a different character overlay depending upon where `point` is --- a leading cushion is used if the vertical column extends beyond the point at the end of the line. It looks like overlays-in treats EOB specially, and does not treat (point-max) in the same way. This is explicitly stated in the doc string of overlays-in. I don't know what are the reasons for such a special treatment, and why a narrowed region doesn't get the same treatment. I always thought that Emacs treats both the same. Perhaps all we need is to give both the same treatment, and that's it. Besides that, the doc string of remove-overlays is inaccurate and misleading; I will take care of that.