emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-add-planning missing a save-restriction.
@ 2006-10-31  8:17 Alex Bochannek
  2006-10-31  8:26 ` Alex Bochannek
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Bochannek @ 2006-10-31  8:17 UTC (permalink / raw)
  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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: org-add-planning missing a save-restriction.
  2006-10-31  8:17 org-add-planning missing a save-restriction Alex Bochannek
@ 2006-10-31  8:26 ` Alex Bochannek
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Bochannek @ 2006-10-31  8:26 UTC (permalink / raw)
  To: emacs-orgmode

Yes, yes, I did the diff backwards - it's late here :-)

Alex.

Alex Bochannek <alexb@juniper.net> writes:

> $ 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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-10-31  8:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-31  8:17 org-add-planning missing a save-restriction Alex Bochannek
2006-10-31  8:26 ` Alex Bochannek

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).