From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Stefan-W. Hahn" Subject: Re: [RFC/PATCH] org-tree-to-indirect-buffer name without tags Date: Wed, 6 Jan 2016 20:29:03 +0100 Message-ID: <20160106192903.GB9437@scotty.home> References: <20160106160030.GA9437@scotty.home> <8737uatwb6.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="H+4ONPRPur6+Ovig" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34918) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGtlg-0000NN-7I for emacs-orgmode@gnu.org; Wed, 06 Jan 2016 14:29:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGtlb-0002lN-7j for emacs-orgmode@gnu.org; Wed, 06 Jan 2016 14:29:12 -0500 Received: from mout.kundenserver.de ([212.227.126.134]:60102) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGtla-0002l7-Un for emacs-orgmode@gnu.org; Wed, 06 Jan 2016 14:29:07 -0500 Content-Disposition: inline In-Reply-To: <8737uatwb6.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org --H+4ONPRPur6+Ovig Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Mail von Nicolas Goaziou, Wed, 06 Jan 2016 at 19:08:45 +0100: 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. > > > 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. Attached. With kind regards, Stefan -- Stefan-W. Hahn It is easy to make things. It is hard to make things simple. --H+4ONPRPur6+Ovig Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename="0001-Name-org-tree-indirected-buffer-just-with-title.patch" Content-Transfer-Encoding: quoted-printable =46rom f24140c66248826b648ad29c82762389ee0175cc Mon Sep 17 00:00:00 2001 =46rom: "Stefan-W. Hahn" Date: Wed, 6 Jan 2016 20:20:36 +0100 Subject: Name org-tree indirected buffer just with title Just use org-tree title for naming an indirected org-tree buffer. If tags are appended the name clutters mode-line. TINYCHANGE Signed-off-by: Stefan-W. Hahn --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))) --=20 2.5.0.rc3.2.g6f9504c --H+4ONPRPur6+Ovig--