emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Stefan-W. Hahn" <stefan.hahn@s-hahn.de>
To: emacs-orgmode@gnu.org
Subject: [RFC/PATCH] org-tree-to-indirect-buffer name without tags
Date: Wed, 6 Jan 2016 17:00:30 +0100	[thread overview]
Message-ID: <20160106160030.GA9437@scotty.home> (raw)

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	other threads:[~2016-01-06 16:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-06 16:00 Stefan-W. Hahn [this message]
2016-01-06 18:08 ` [RFC/PATCH] org-tree-to-indirect-buffer name without tags Nicolas Goaziou
2016-01-06 19:29   ` Stefan-W. Hahn
2016-01-06 22:01     ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160106160030.GA9437@scotty.home \
    --to=stefan.hahn@s-hahn.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).