emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Stefan-W. Hahn" <stefan.hahn@s-hahn.de>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: [RFC/PATCH] org-tree-to-indirect-buffer name without tags
Date: Wed, 6 Jan 2016 20:29:03 +0100	[thread overview]
Message-ID: <20160106192903.GB9437@scotty.home> (raw)
In-Reply-To: <8737uatwb6.fsf@nicolasgoaziou.fr>

[-- Attachment #1: Type: text/plain, Size: 647 bytes --]

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.

[-- Attachment #2: 0001-Name-org-tree-indirected-buffer-just-with-title.patch --]
[-- Type: text/x-diff, Size: 968 bytes --]

From f24140c66248826b648ad29c82762389ee0175cc Mon Sep 17 00:00:00 2001
From: "Stefan-W. Hahn" <stefan.hahn@s-hahn.de>
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 <stefan.hahn@s-hahn.de>
---
 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)))
-- 
2.5.0.rc3.2.g6f9504c


  reply	other threads:[~2016-01-06 19:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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=20160106192903.GB9437@scotty.home \
    --to=stefan.hahn@s-hahn.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    /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).