* [BUG] org-special-ctrl-k no longer protects tags
@ 2018-07-17 19:19 Matt Lundin
2018-07-17 20:25 ` Nicolas Goaziou
0 siblings, 1 reply; 2+ messages in thread
From: Matt Lundin @ 2018-07-17 19:19 UTC (permalink / raw)
To: Org Mode
Since commit e87ebca2a7, setting org-special-ctrl-k to t no longer
protects tags if when pressing C-k (org-kill-line) in the middle of a
headline. The expected behavior is described in the docstring for
org-special-ctrl-k: "When in the middle of the headline text, kill the
headline up to the tags."
Take the following example:
* Headline :tag:
If I hit C-k with the cursor on the letter "l" on the example above, I
expect to get this...
* Head :tag:
Instead, I get this...
* Head
I think this is because when (looking-at org-tag-line-re) is called on
line 22840, the cursor is in the middle of the line, whereas
org-tag-line-re expects it to be at the beginning of the line.
Best,
Matt
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [BUG] org-special-ctrl-k no longer protects tags
2018-07-17 19:19 [BUG] org-special-ctrl-k no longer protects tags Matt Lundin
@ 2018-07-17 20:25 ` Nicolas Goaziou
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2018-07-17 20:25 UTC (permalink / raw)
To: Org Mode
Hello,
Matt Lundin <mdl@imapmail.org> writes:
> Since commit e87ebca2a7, setting org-special-ctrl-k to t no longer
> protects tags if when pressing C-k (org-kill-line) in the middle of a
> headline. The expected behavior is described in the docstring for
> org-special-ctrl-k: "When in the middle of the headline text, kill the
> headline up to the tags."
>
> Take the following example:
>
> * Headline :tag:
>
> If I hit C-k with the cursor on the letter "l" on the example above, I
> expect to get this...
>
> * Head :tag:
>
> Instead, I get this...
>
> * Head
Fixed. Thank you.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-07-17 20:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-17 19:19 [BUG] org-special-ctrl-k no longer protects tags Matt Lundin
2018-07-17 20:25 ` Nicolas Goaziou
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).