|
@@ -6396,11 +6396,7 @@ in special contexts.
|
|
|
(setq has-children (org-list-has-child-p (point) struct)))
|
|
|
(org-back-to-heading)
|
|
|
(setq eoh (save-excursion (outline-end-of-heading) (point)))
|
|
|
- (setq eos (save-excursion
|
|
|
- (org-end-of-subtree t)
|
|
|
- (unless (eobp)
|
|
|
- (skip-chars-forward " \t\n"))
|
|
|
- (if (eobp) (point) (1- (point)))))
|
|
|
+ (setq eos (save-excursion (1- (org-end-of-subtree t t))))
|
|
|
(setq has-children
|
|
|
(or (save-excursion
|
|
|
(let ((level (funcall outline-level)))
|
|
@@ -9476,10 +9472,11 @@ Use TAB to complete link prefixes, then RET for type-specific completion support
|
|
|
;; URL-like link, normalize the use of angular brackets.
|
|
|
(setq link (org-remove-angle-brackets link)))
|
|
|
|
|
|
- ;; Check if we are linking to the current file with a search option
|
|
|
- ;; If yes, simplify the link by using only the search option.
|
|
|
+ ;; Check if we are linking to the current file with a search
|
|
|
+ ;; option If yes, simplify the link by using only the search
|
|
|
+ ;; option.
|
|
|
(when (and buffer-file-name
|
|
|
- (string-match "^file:\\(.+?\\)::\\([^>]+\\)" link))
|
|
|
+ (string-match "^file:\\(.+?\\)::\\(.+\\)" link))
|
|
|
(let* ((path (match-string 1 link))
|
|
|
(case-fold-search nil)
|
|
|
(search (match-string 2 link)))
|