all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [RFC/PATCH] org-tree-to-indirect-buffer name without tags
@ 2016-01-06 16:00 Stefan-W. Hahn
  2016-01-06 18:08 ` Nicolas Goaziou
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan-W. Hahn @ 2016-01-06 16:00 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

when indirecting an org-tree the buffer gets the titel of the task together
with its tags and also the spaces between the title and the tags. This is an
ugly behaviour for the mode-line.

I will propose following patch which removes the tags for the buffer name
and therefore generates a shorter name:

diff --git a/lisp/org.el b/lisp/org.el
index c600f2f..47c28fb 100755
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -7595,7 +7595,7 @@ org-tree-to-indirect-buffer
 	(while (> (setq level (org-outline-level)) arg)
 	  (org-up-heading-safe)))
       (setq beg (point)
-	    heading (org-get-heading))
+	    heading (org-get-heading 'no-tags))
       (org-end-of-subtree t t)
       (when (org-at-heading-p) (backward-char 1))
       (setq end (point)))

With kind regards,
Stefan

-- 
Stefan-W. Hahn                          It is easy to make things.
                                        It is hard to make things simple.

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

end of thread, other threads:[~2016-01-06 21:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-06 16:00 [RFC/PATCH] org-tree-to-indirect-buffer name without tags Stefan-W. Hahn
2016-01-06 18:08 ` Nicolas Goaziou
2016-01-06 19:29   ` Stefan-W. Hahn
2016-01-06 22:01     ` Nicolas Goaziou

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.