emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [RFC/PATCH] org-tree-to-indirect-buffer name without tags


From: Stefan-W. Hahn
Subject: [O] [RFC/PATCH] org-tree-to-indirect-buffer name without tags
Date: Wed, 6 Jan 2016 17:00:30 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]