From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Samuel Wales Newsgroups: gmane.emacs.orgmode,gmane.emacs.devel Subject: Re: Backspacing into folded items Date: Fri, 3 Sep 2010 08:44:54 -0700 Message-ID: References: <4C7598F2.7050200@os.inf.tu-dresden.de> <4C80FADF.5030607@easy-emacs.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1283528761 18897 80.91.229.12 (3 Sep 2010 15:46:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 3 Sep 2010 15:46:01 +0000 (UTC) Cc: Bastien , Martin Pohlack , Emacs developers , emacs-orgmode@gnu.org, David Abrahams To: Lennart Borgman Original-X-From: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Fri Sep 03 17:45:56 2010 Return-path: Envelope-to: geo-emacs-orgmode@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 1OrYSh-0004Xy-Pm for geo-emacs-orgmode@m.gmane.org; Fri, 03 Sep 2010 17:45:56 +0200 Original-Received: from localhost ([127.0.0.1]:51665 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrYSh-0001gP-6t for geo-emacs-orgmode@m.gmane.org; Fri, 03 Sep 2010 11:45:55 -0400 Original-Received: from [140.186.70.92] (port=41864 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrYRs-0001fB-Ez for emacs-orgmode@gnu.org; Fri, 03 Sep 2010 11:45:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrYRq-0007ks-Tf for emacs-orgmode@gnu.org; Fri, 03 Sep 2010 11:45:03 -0400 Original-Received: from mail-fx0-f41.google.com ([209.85.161.41]:38358) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrYRk-0007jR-Ed; Fri, 03 Sep 2010 11:44:56 -0400 Original-Received: by fxm3 with SMTP id 3so1401671fxm.0 for ; Fri, 03 Sep 2010 08:44:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=UkErwT72RswCRlLEqo+ek4E6lQ3RfYHco6kUZJ9UKms=; b=VIEG7dHmh1Tm24YWSWgnrOFMlg3im092MuyuRqe5KKbqB60wqzl7JyLhXMqT1n0qgX LGtC6g4KjUXnSvng5GfmMaIw90yY2StXdrtTc02P2BE0UDL1YkmsYRyr102hxFAKw86R H81sfVa9ud0nvXcRrI9HNKR7wplGKr/JXoRpY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=J3MmkTjac1DsgdD6fz/TwlH+mzi0jeVDzv2gP9Lzvr7pKyAyT1St40VMwEIR/RTggB FVrwoa+zxSMFEhFTgevfGCJO5np/pS6XsTEp3SnKgDx+PP1t5FU8ewD8xkdVfu1TynqQ Afa6teuDFo1rKmv6b0ysX7i9ZHpem8mgpFECc= Original-Received: by 10.216.155.74 with SMTP id i52mr850123wek.26.1283528695236; Fri, 03 Sep 2010 08:44:55 -0700 (PDT) Original-Received: by 10.216.50.11 with HTTP; Fri, 3 Sep 2010 08:44:54 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-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 Xref: news.gmane.org gmane.emacs.orgmode:29722 gmane.emacs.devel:129653 Archived-At: Dunno what is best, but when a solution is found, the following should probably be tested to ensure that it is able to reverse the non-editability: (let ((buffer-invisibility-spec)) On 2010-09-03, Lennart Borgman wrote: > On Fri, Sep 3, 2010 at 3:40 PM, Andreas R=F6hler > wrote: >> >> Hi, >> >> posting forwarded herewith describes a design inconvenience, wich affect= s >> common hide-show- and outline-modes too. >> >> As too different solutions have been proposed, let me suggest >> "setting read-only property" rather than "use of a modification hook". >> >> Setting hidden text read-only should be more simple, straitforward - as >> presumably hiding some code had some reasons. > > > I recently filed a bug report about that hidden text in org-mode nodes > did not get visible when you start to edit them. It turned out I was > mistaken, I did not have reveal-mode on as I believed. However the > plan is to make reveal-mode default: > > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D6950 > > How would making the text read-only or add a modification hook > interact with the kind of problem reported in the bug above? > > >> Editing hidden code is an error, which should be signaled rather than >> cured >> via hook. >> >> >> Andreas >> >> -- >> https://code.launchpad.net/~a-roehler/python-mode >> https://code.launchpad.net/s-x-emacs-werkstatt/ >> >> >> Am 26.08.2010 00:28, schrieb Martin Pohlack: >>> >>> 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 coul= d >>> be setup at the same location where hiding is done. >>> >>> See also here: >>> >>> http://www.gnu.org/software/emacs/elisp/html_node/Special-Properties.ht= ml#Special-Properties >>> >>> I proposed a patch for image overlay which show a related problem here: >>> http://patchwork.newartisans.com/patch/31/ >>> >>> Cheers, >>> Martin >>> >> >> >> >> > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > --=20 Q: How many CDC "scientists" does it take to change a lightbulb? A: "You only think it's dark." [CDC has denied a deadly serious disease for 25 years] =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Retrovirus: http://www.wpinstitute.org/xmrv/index.html -- PLEASE DONATE =3D=3D=3D I would like to see the original Lo et al. 2010 NIH/FDA XMRV paper. _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode