From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: "Stefan-W. Hahn" <stefan.hahn@s-hahn.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: [RFC/PATCH] org-tree-to-indirect-buffer name without tags
Date: Wed, 06 Jan 2016 19:08:45 +0100 [thread overview]
Message-ID: <8737uatwb6.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <20160106160030.GA9437@scotty.home> (Stefan-W. Hahn's message of "Wed, 6 Jan 2016 17:00:30 +0100")
Hello,
"Stefan-W. Hahn" <stefan.hahn@s-hahn.de> 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
next prev parent reply other threads:[~2016-01-06 18:06 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 [this message]
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=8737uatwb6.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=stefan.hahn@s-hahn.de \
/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).