From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Bochannek Subject: org-add-planning missing a save-restriction. Date: Tue, 31 Oct 2006 00:17:20 -0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GeooV-00079a-U1 for emacs-orgmode@gnu.org; Tue, 31 Oct 2006 03:17:39 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GeooR-00077v-DF for emacs-orgmode@gnu.org; Tue, 31 Oct 2006 03:17:38 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GeooR-00077i-7H for emacs-orgmode@gnu.org; Tue, 31 Oct 2006 03:17:35 -0500 Received: from [207.17.137.57] (helo=colo-dns-ext1.juniper.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1GeooQ-00027u-UJ for emacs-orgmode@gnu.org; Tue, 31 Oct 2006 03:17:35 -0500 Received: from magenta.juniper.net (magenta.juniper.net [172.17.28.122]) by colo-dns-ext1.juniper.net (8.11.3/8.9.3) with ESMTP id k9V8HUX90608 for ; Tue, 31 Oct 2006 00:17:30 -0800 (PST) (envelope-from alexb@juniper.net) Received: from ALEXB-LT ([172.23.1.114]) by magenta.juniper.net (8.11.3/8.11.3) with ESMTP id k9V8HKE48848 for ; Tue, 31 Oct 2006 00:17:24 -0800 (PST) (envelope-from alexb@juniper.net) 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: emacs-orgmode $ diff -bu org.el ../org-4.52/org.el --- org.el 2006-10-31 00:12:14.075793700 -0800 +++ ../org-4.52/org.el 2006-10-04 02:14:17.000000000 -0700 @@ -5487,7 +5487,6 @@ (format-time-string (car org-time-stamp-formats) time)) (setq what nil)) (save-excursion - (save-restriction (let (col list elt ts buffer-invisibility-spec) (org-back-to-heading t) (looking-at (concat outline-regexp "\\( *\\)[^\r\n]*")) @@ -5537,7 +5536,7 @@ (widen) (if (looking-at "[ \t]+\r?\n") (replace-match "")) - ts)))) + ts))) (defvar org-log-note-marker (make-marker)) (defvar org-log-note-purpose nil) This will make changing TODO states or assigining deadlines work in narrowed buffers, e.g., on a project list. Alex.