org-store-link: Don't roll C-u behavior into C-u C-u behavior
commit0de7ad043085cae5129b04dab8ed45f57b45ae44
authorKyle Meyer <kyle@kyleam.com>
Sun, 21 May 2017 05:16:58 +0000 (21 01:16 -0400)
committerKyle Meyer <kyle@kyleam.com>
Sun, 21 May 2017 18:52:30 +0000 (21 14:52 -0400)
tree984c0c3466eba51064fa68f53d832e17ed286736
parent39b3f45a7db6f089f95de34d49f56132438d5648
org-store-link: Don't roll C-u behavior into C-u C-u behavior

* lisp/org.el (org-store-link): When a double C-u prefix argument is
given, do not reverse the meaning of the org-context-in-file-links
option.
* testing/lisp/test-org.el (test-org/store-link): Add tests.

This allows the user to fall back to the core link storing functions
without also reversing their org-context-in-file-links preference,
because wanting to do the former does not mean a user also wants to do
the latter.

Reported-by: York Zhao <gtdplatform@gmail.com>
<https://lists.gnu.org/archive/html/emacs-orgmode/2017-05/msg00254.html>
lisp/org.el
testing/lisp/test-org.el