[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Bug in org-paste-subtree
From: |
Anders Johansson |
Subject: |
[O] Bug in org-paste-subtree |
Date: |
Thu, 19 Jun 2014 14:02:39 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
Hi,
The force-level check in org-paste-subtree seems to contain a small bug.
If I try to paste a subtree at the end of a line only containing some
stars, I get an error "Wrong type argument: number-or-marker-p, nil".
The problem is (- (match-end 1) (match-end 1)) (see below)
We have no subexpression to match, it should be zero.
(force-level (cond (level (prefix-numeric-value level))
((and (looking-at "[ \t]*$")
(string-match
"^\\*+$" (buffer-substring
(point-at-bol) (point))))
(- (match-end 1) (match-beginning 1)))
((and (bolp)
(looking-at org-outline-regexp))
(- (match-end 0) (point) 1))))
Cheers,
Anders Johansson
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [O] Bug in org-paste-subtree,
Anders Johansson <=