From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Editing of invisible text Date: Sun, 26 Oct 2008 22:22:28 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1225074168 1324 80.91.229.12 (27 Oct 2008 02:22:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Oct 2008 02:22:48 +0000 (UTC) Cc: Emacs Devel To: "Lennart Borgman" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 27 03:23:48 2008 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KuHli-0007ha-MX for ged-emacs-devel@m.gmane.org; Mon, 27 Oct 2008 03:23:46 +0100 Original-Received: from localhost ([127.0.0.1]:58461 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KuHkc-0005ZK-JS for ged-emacs-devel@m.gmane.org; Sun, 26 Oct 2008 22:22:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KuHkY-0005Yt-5i for emacs-devel@gnu.org; Sun, 26 Oct 2008 22:22:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KuHkW-0005YZ-O3 for emacs-devel@gnu.org; Sun, 26 Oct 2008 22:22:33 -0400 Original-Received: from [199.232.76.173] (port=35435 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KuHkW-0005YW-Id for emacs-devel@gnu.org; Sun, 26 Oct 2008 22:22:32 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:43166 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KuHkW-00049G-Je for emacs-devel@gnu.org; Sun, 26 Oct 2008 22:22:32 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApAFAKrCBElFxIGZ/2dsb2JhbACBdr1Eg0+BDQ X-IronPort-AV: E=Sophos;i="4.33,489,1220241600"; d="scan'208";a="28887101" Original-Received: from 69-196-129-153.dsl.teksavvy.com (HELO pastel.home) ([69.196.129.153]) by ironport2-out.teksavvy.com with ESMTP; 26 Oct 2008 22:22:30 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 931FD8E6F; Sun, 26 Oct 2008 22:22:28 -0400 (EDT) In-Reply-To: (Lennart Borgman's message of "Sun, 26 Oct 2008 14:32:10 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:105025 Archived-At: > Emacs lets you edit invisible text. That is perhaps not bad, but it is > bad that you can't see what you are doing when you are editing > invisible text. Here is a suggestion on how to make this better: > - Implement a minor mode that make all invisible text visible but with > a special face (or background color) that tells the user this is > really invisible text. > - Ask the user if she/he want to turn on this minor mode for the > buffer when invisible text is going to be changed. > - Of course add a variable to override this behaviour when needed ;-) I'm not sure which scenario you have in mind, but: - editing invisible text is not a normal occurrence, since point is normally moved outside of compositions, images, and invisible text at the end of every toplevel command. - reveal-mode was meant as a way to do just what you want (tho it was also meant as a way to use outline-minor-mode differently and this is how it evolved more than as a way to handle editing of invisible text). -- Stefan