From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: E Sabof Newsgroups: gmane.emacs.bugs Subject: bug#14582: 24.3.50.1; Strange overlay behavior, when window-start is inside an overlay. Date: Sun, 9 Jun 2013 18:37:12 +0100 Message-ID: References: <83y5ajmcwk.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=14dae94edcbd3e3a3604debc1df5 X-Trace: ger.gmane.org 1370799490 24722 80.91.229.3 (9 Jun 2013 17:38:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Jun 2013 17:38:10 +0000 (UTC) Cc: 14582@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 09 19:38:08 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 1UljZ7-0001g2-TJ for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Jun 2013 19:38:06 +0200 Original-Received: from localhost ([::1]:42482 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UljZ7-0004jI-9j for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Jun 2013 13:38:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UljZ2-0004jB-5V for bug-gnu-emacs@gnu.org; Sun, 09 Jun 2013 13:38:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UljYz-0002cp-LS for bug-gnu-emacs@gnu.org; Sun, 09 Jun 2013 13:38:00 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49297) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UljYz-0002cj-Hp for bug-gnu-emacs@gnu.org; Sun, 09 Jun 2013 13:37:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UljZ3-0001zs-TD for bug-gnu-emacs@gnu.org; Sun, 09 Jun 2013 13:38:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: E Sabof Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 09 Jun 2013 17:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14582 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14582-submit@debbugs.gnu.org id=B14582.13707994457625 (code B ref 14582); Sun, 09 Jun 2013 17:38:01 +0000 Original-Received: (at 14582) by debbugs.gnu.org; 9 Jun 2013 17:37:25 +0000 Original-Received: from localhost ([127.0.0.1]:53531 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UljYS-0001yr-Ho for submit@debbugs.gnu.org; Sun, 09 Jun 2013 13:37:24 -0400 Original-Received: from mail-qc0-f182.google.com ([209.85.216.182]:59633) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UljYQ-0001yU-Ph for 14582@debbugs.gnu.org; Sun, 09 Jun 2013 13:37:23 -0400 Original-Received: by mail-qc0-f182.google.com with SMTP id e10so964455qcy.13 for <14582@debbugs.gnu.org>; Sun, 09 Jun 2013 10:37:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ZRCAWjOl51fppmiSrNOre46cYcQr2y2OEtZ1lOF4l6E=; b=LDK6NJ1G3e/hlyioN0/WFAmFh9TWKSv0p0Do/d2rGHPEXvwvx81Apz6k4frHvmunbV azyFZ3lgU972X8adgWJx1MzjjhPGVxZzpRE+wajsA9y01MJkl86PvkxRwUaKS5zVvWKi vF/Ih9N4hKn4lj/j35A/G+iTj/eb+xIuIFesTaHQh/dlnXZLX2WrQPKBxRYuG75E6rIe IayWRCIWAGVOfV85B9SQA9MhE+GZlE9QsukyZMSzp1iX/Gg1+OOoN+MpEk9cQxEp1RG0 gPTBv8fcIgod6Y7vRaunfzxqit3fWy+flNZCNPZKLk7jhZdBp39q7Rzkf5fmSG88Zu2l X3Lw== X-Received: by 10.229.94.77 with SMTP id y13mr1351555qcm.98.1370799432676; Sun, 09 Jun 2013 10:37:12 -0700 (PDT) Original-Received: by 10.49.18.162 with HTTP; Sun, 9 Jun 2013 10:37:12 -0700 (PDT) In-Reply-To: <83y5ajmcwk.fsf@gnu.org> 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 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:74938 Archived-At: --14dae94edcbd3e3a3604debc1df5 Content-Type: text/plain; charset=ISO-8859-1 On Sun, Jun 9, 2013 at 6:06 PM, Eli Zaretskii wrote: > > "If it hurts, don't do that." You've put window-start on a position > that is at the beginning of a line, but happens to be covered by an > overlay. Emacs obeyed. > > What did you expect instead, and why? Is there some real-life use > case where this causes trouble? > I think the correct behavior would be to adjust the window-position. As far as the window is concerned, putting a hiding overlay should be no different than deleting text. Yes, it happens quite frequently after (fold-dwim-hide-all), and maybe in similar commands. --14dae94edcbd3e3a3604debc1df5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable



On Sun, Jun 9, 2013 at 6:06 PM, Eli Zaretskii <= ;eliz@gnu.org> wrote:
"If it hurts, don't do that." =A0You've put window-start = on a position
that is at the beginning of a line, but happens to be covered by an
overlay. =A0Emacs obeyed.

What did you expect instead, and why? =A0Is there some real-life use
case where this causes trouble?

I think the correct= behavior would be to adjust the window-position. As far as the window is c= oncerned, putting a hiding overlay should be no different than deleting tex= t.

Yes, it hap= pens quite frequently after (fold-dwim-hide-all), and maybe in similar comm= ands.=A0
--14dae94edcbd3e3a3604debc1df5--