emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] Call org-reveal after archiving
@ 2009-01-14  0:04 Bernt Hansen
  2009-01-14  6:55 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Bernt Hansen @ 2009-01-14  0:04 UTC (permalink / raw)
  To: emacs-orgmode

Sometimes archiving a task displays the next task heading after ... at the
end of a folded task.  This keeps the next task the cursor is on starting
in column 1 which feels more natural.
---
Carsten: This is also available on my 'for-carsten' branch.

 lisp/org-archive.el |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/lisp/org-archive.el b/lisp/org-archive.el
index d37f843..6ae6743 100644
--- a/lisp/org-archive.el
+++ b/lisp/org-archive.el
@@ -306,7 +306,8 @@ this heading."
       (message "Subtree archived %s"
 	       (if (eq this-buffer buffer)
 		   (concat "under heading: " heading)
-		 (concat "in file: " (abbreviate-file-name afile)))))))
+		 (concat "in file: " (abbreviate-file-name afile))))))
+  (org-reveal))
 
 (defun org-archive-to-archive-sibling ()
   "Archive the current heading by moving it under the archive sibling.
@@ -357,7 +358,8 @@ sibling does not exist, it will be created at the end of the subtree."
       (outline-up-heading 1 t)
       (hide-subtree)
       (org-cycle-show-empty-lines 'folded)
-      (goto-char pos))))
+      (goto-char pos)))
+  (org-reveal))
 
 (defun org-archive-all-done (&optional tag)
   "Archive sublevels of the current tree without open TODO items.
-- 
1.6.1.28.gc32f76

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

* Re: [PATCH] Call org-reveal after archiving
  2009-01-14  0:04 [PATCH] Call org-reveal after archiving Bernt Hansen
@ 2009-01-14  6:55 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2009-01-14  6:55 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: emacs-orgmode

Thanks.

- Carsten

On Jan 14, 2009, at 1:04 AM, Bernt Hansen wrote:

> Sometimes archiving a task displays the next task heading after ...  
> at the
> end of a folded task.  This keeps the next task the cursor is on  
> starting
> in column 1 which feels more natural.
> ---
> Carsten: This is also available on my 'for-carsten' branch.
>
> lisp/org-archive.el |    6 ++++--
> 1 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/lisp/org-archive.el b/lisp/org-archive.el
> index d37f843..6ae6743 100644
> --- a/lisp/org-archive.el
> +++ b/lisp/org-archive.el
> @@ -306,7 +306,8 @@ this heading."
>       (message "Subtree archived %s"
> 	       (if (eq this-buffer buffer)
> 		   (concat "under heading: " heading)
> -		 (concat "in file: " (abbreviate-file-name afile)))))))
> +		 (concat "in file: " (abbreviate-file-name afile))))))
> +  (org-reveal))
>
> (defun org-archive-to-archive-sibling ()
>   "Archive the current heading by moving it under the archive sibling.
> @@ -357,7 +358,8 @@ sibling does not exist, it will be created at  
> the end of the subtree."
>       (outline-up-heading 1 t)
>       (hide-subtree)
>       (org-cycle-show-empty-lines 'folded)
> -      (goto-char pos))))
> +      (goto-char pos)))
> +  (org-reveal))
>
> (defun org-archive-all-done (&optional tag)
>   "Archive sublevels of the current tree without open TODO items.
> -- 
> 1.6.1.28.gc32f76
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

end of thread, other threads:[~2009-01-14  6:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-14  0:04 [PATCH] Call org-reveal after archiving Bernt Hansen
2009-01-14  6:55 ` Carsten Dominik

Code repositories for project(s) associated with this 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).