From: Carsten Dominik <carsten.dominik@gmail.com>
To: Ryan Thompson <rct@thompsonclan.org>
Cc: Org-Mode List <emacs-orgmode@gnu.org>
Subject: Re: Bug: (org-set-tags t t) gives an error point is not currently on a headline
Date: Tue, 13 Apr 2010 09:09:00 +0200 [thread overview]
Message-ID: <950E6108-688E-41AC-903C-50E71AE46145@gmail.com> (raw)
In-Reply-To: <q2i2a4ba2fd1004081111mf1de8162ze5157984ba9768f5@mail.gmail.com>
Hi Ryan,
thanks for this patch.
I ended up to instead provide a special command to align
all tags, because org-set-tags should throw an error when
called not on a headline, for other reasons.
I am assuming that you want to call this from some lisp function - so
(org-align-all-tags)
should now do the job for you.
HTH. and thanks again.
- Carsten
On Apr 8, 2010, at 8:11 PM, Ryan Thompson wrote:
> Hi,
>
> When I run (org-set-tags t t) to realign all tags in the buffer, it
> doesn't work unless the point is currently on a headline, because
> org-set-tags calls (org-get-tags-string) early on, and
> org-get-tags-string raises an error if not on a headline. This can be
> fixed by moving the binding of `current' to `(org-get-tags-string)'
> into the else clause of the first if statment. I have attached a patch
>
> -Ryan
> --
> <fix-org-set-tags-with-
> prefix.diff>_______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
- Carsten
prev parent reply other threads:[~2010-04-13 7:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-08 18:11 Bug: (org-set-tags t t) gives an error point is not currently on a headline Ryan Thompson
2010-04-13 7:09 ` Carsten Dominik [this message]
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=950E6108-688E-41AC-903C-50E71AE46145@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=rct@thompsonclan.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).