From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [RFC/PATCH] org-tree-to-indirect-buffer name without tags Date: Wed, 06 Jan 2016 19:08:45 +0100 Message-ID: <8737uatwb6.fsf@nicolasgoaziou.fr> References: <20160106160030.GA9437@scotty.home> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32771) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGsU0-000116-3t for emacs-orgmode@gnu.org; Wed, 06 Jan 2016 13:06:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGsTw-0003yB-UI for emacs-orgmode@gnu.org; Wed, 06 Jan 2016 13:06:52 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:47599) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGsTw-0003y5-Oz for emacs-orgmode@gnu.org; Wed, 06 Jan 2016 13:06:48 -0500 In-Reply-To: <20160106160030.GA9437@scotty.home> (Stefan-W. Hahn's message of "Wed, 6 Jan 2016 17:00:30 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Stefan-W. Hahn" Cc: emacs-orgmode@gnu.org Hello, "Stefan-W. Hahn" writes: > 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))) Sounds good. Thank you. Could you send it using git format-patch, with an appropriate commit message? If you haven't signed FSF papers, you'll need to add TINYCHANGE at its end. Regards, -- Nicolas Goaziou