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#7101: Please reveal-mode, don't hide my overlays! Date: Thu, 07 Oct 2010 12:23:07 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1286448129 12363 80.91.229.12 (7 Oct 2010 10:42:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 7 Oct 2010 10:42:09 +0000 (UTC) Cc: 7101@debbugs.gnu.org To: Lennart Borgman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 07 12:42:07 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P3nvK-00046y-4Q for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Oct 2010 12:42:06 +0200 Original-Received: from localhost ([127.0.0.1]:52536 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P3nvJ-0007UJ-37 for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Oct 2010 06:42:05 -0400 Original-Received: from [140.186.70.92] (port=34138 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P3nv5-0007U0-Ph for bug-gnu-emacs@gnu.org; Thu, 07 Oct 2010 06:41:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P3nv4-0007nE-J8 for bug-gnu-emacs@gnu.org; Thu, 07 Oct 2010 06:41:51 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55776) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P3nv4-0007nA-GB for bug-gnu-emacs@gnu.org; Thu, 07 Oct 2010 06:41:50 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1P3na0-0005kV-0O; Thu, 07 Oct 2010 06:20:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Oct 2010 10:20:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7101 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7101-submit@debbugs.gnu.org id=B7101.128644679822090 (code B ref 7101); Thu, 07 Oct 2010 10:20:03 +0000 Original-Received: (at 7101) by debbugs.gnu.org; 7 Oct 2010 10:19:58 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P3nZt-0005kF-Jy for submit@debbugs.gnu.org; Thu, 07 Oct 2010 06:19:57 -0400 Original-Received: from smtp2a.orange.fr ([80.12.242.139]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P3nZr-0005k7-DH for 7101@debbugs.gnu.org; Thu, 07 Oct 2010 06:19:56 -0400 Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2a14.orange.fr (SMTP Server) with ESMTP id 4203180001A5; Thu, 7 Oct 2010 12:23:08 +0200 (CEST) Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2a14.orange.fr (SMTP Server) with ESMTP id 34C9780004A9; Thu, 7 Oct 2010 12:23:08 +0200 (CEST) Original-Received: from fmsmemgm.homelinux.net (AMontsouris-552-1-107-212.w92-140.abo.wanadoo.fr [92.140.114.212]) by mwinf2a14.orange.fr (SMTP Server) with ESMTP id 111D280001A5; Thu, 7 Oct 2010 12:23:08 +0200 (CEST) X-ME-UUID: 20101007102308701.111D280001A5@mwinf2a14.orange.fr Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 9AB4DAE517; Thu, 7 Oct 2010 12:23:07 +0200 (CEST) In-Reply-To: (Lennart Borgman's message of "Sat, 25 Sep 2010 15:23:58 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 07 Oct 2010 06:20:04 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:40739 Archived-At: > Am I the only one that gets crazy when reveal hides the overlays > again? At least I mostly find it very frustrating when moving around > in a buffer that uses org-mode. I love this feature, since it lets me open&close things without ever having to remember a keybinding: I hide everything in the major mode hook and then use reveal-mode to hide&show. > I can see it is useful sometimes though I do not know how to best > separate those times when it is useful and when it is not. So I will > not try that. > Instead in the attached patch I made the automatic hiding optional and > add a new command for hiding Maybe I could live with that, and I think it's going in the right direction (e.g. the reveal-close-revealed functionality sounds good), but I don't think having it as a defcustom is right: it's something you'll likely want to change dynamically at run time. One thing I've considered is to add a "keep-pos/region-shown" command that would mark the current buffer position (or region) as something that should stay revealed, so it won't be auto-closed when you move elsewhere. Of course, it would want to come with something like reveal-close-revealed to later re-hide them. Another thing I'd be interested to see is a hook that major/minor modes can use to have some control over showing/hiding. The main such use for me would be to let smerge-mode teach reveal-mode that if one conflict marker is revealed, all the corresponding markers should also be revealed (or maybe just: if part of a conflict is revealed, always reveal the whole conflict). Stefan