[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] commit 4e864643 breaks org-return
From: |
Stefan-W. Hahn |
Subject: |
Re: [O] commit 4e864643 breaks org-return |
Date: |
Fri, 23 Oct 2015 22:07:34 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Mail von Stefan-W. Hahn, Thu, 22 Oct 2015 at 18:57:08 +0200:
Hello,
> commit 4e864643bdb6bba3e000ea51fb746a26e40b1f77
> Author: Nicolas Goaziou <address@hidden>
> Date: Sun Oct 18 09:36:15 2015 +0200
>
> changes the behaviour of org-return when positioned right after a link with
> org-return-follows-link set to t.
the following patch seems to repair the behaviour:
#+BEGIN_SRC elisp
diff --git a/lisp/org.el b/lisp/org.el
index a5183aa..3d527ac 100755
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -21354,7 +21354,9 @@ (defun org-return (&optional indent)
((and org-return-follows-link
(or (org-at-timestamp-p t)
(org-at-date-range-p t)
- (org-in-regexp org-any-link-re)))
+ (org-in-regexp org-any-link-re))
+ (< (point)
+ (org-element-property :end context)))
(call-interactively #'org-open-at-point))
;; Insert newline in heading, but preserve tags.
((and (not (bolp))
#+END_SRC elisp
With kind regards,
Stefan
--
Stefan-W. Hahn It is easy to make things.
It is hard to make things simple.