diff options
author | Michael Brand <michael.brand@alumni.ethz.ch> | 2016-02-04 18:41:30 +0100 |
---|---|---|
committer | Michael Brand <michael.brand@alumni.ethz.ch> | 2016-02-04 18:41:30 +0100 |
commit | 169dfebbff9a72b48ac89736b07c46b6323207c5 (patch) | |
tree | d3fe559ac5d195e6282d27799a0ee62a71031f8b | |
parent | c53936dcfbfd06d6183d6b5cb08c2c2e30fdb29e (diff) | |
download | org-mode-169dfebbff9a72b48ac89736b07c46b6323207c5.tar.gz |
`org-file-apps' add migration hint
* lisp/org.el (org-file-apps): Add an error when still a sexp is in
use.
-rw-r--r-- | lisp/org.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/org.el b/lisp/org.el index c93e4e1..9c6f5d0 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -11326,6 +11326,14 @@ If the file does not exist, an error is thrown." (save-match-data (set-match-data link-match-data) (funcall cmd file link))) + ((consp cmd) + ;; FIXME: Remove this check when most default installations of + ;; Emacs have at least Org 9.0. + ;; Heads-up instead of silently fall back to + ;; `org-link-frame-setup' for an old usage of `org-file-apps' + ;; with sexp instead of a function for `cmd'. + (user-error + "Please see Org News for version 9.0 about `org-file-apps'")) (t (funcall (cdr (assq 'file org-link-frame-setup)) file))) (and (derived-mode-p 'org-mode) (eq old-mode 'org-mode) |