From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Pohlack Subject: Re: Backspacing into folded items Date: Thu, 26 Aug 2010 00:28:02 +0200 Message-ID: <4C7598F2.7050200@os.inf.tu-dresden.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=38481 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OoOS1-0004YK-EK for emacs-orgmode@gnu.org; Wed, 25 Aug 2010 18:28:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OoOS0-0000lP-2C for emacs-orgmode@gnu.org; Wed, 25 Aug 2010 18:28:09 -0400 Received: from os.inf.tu-dresden.de ([141.76.48.99]:52570) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OoORz-0000lE-QQ for emacs-orgmode@gnu.org; Wed, 25 Aug 2010 18:28:08 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: David Abrahams , org-mode Hi David, On 25.08.2010 11:22, David Abrahams wrote: > I've gotten myself in trouble several times today by backspacing after > an org-link that ends a headline. That's a typical pattern for > editing an org-link, right? Well it turns out that if the item is > folded, then the backspace writes over the end of the un-folded item > but **appears to have no effect**, and you can easily hit backspace > several times to test your sanity before you realize that something is > wrong, badly corrupting your file. I have had similar such accidents, but not involving links. You probably backspaced into the "..."? > Seems to me that attempts to edit a folded item should either: > > a) restrict changes to the item's headline, or > b) unfold the item and do nothing > > Is there a way to set that up? Just two quick ideas from me here: * You could add a modification hook to all hidden areas to unfold them on modification, or * You could set the read-only property for all hidden areas. This could be setup at the same location where hiding is done. See also here: http://www.gnu.org/software/emacs/elisp/html_node/Special-Properties.html#Special-Properties I proposed a patch for image overlay which show a related problem here: http://patchwork.newartisans.com/patch/31/ Cheers, Martin