Merge branch 'maint'

This commit is contained in:
Bastien 2020-02-03 13:12:05 +01:00
commit 5922dab4b9
1 changed files with 3 additions and 2 deletions

View File

@ -1039,8 +1039,9 @@ name of the sub-editing buffer."
(babel-info (and (eq type 'src-block)
(org-babel-get-src-block-info 'light)))
deactivate-mark)
(when (and (eq type 'src-block) (not (functionp lang-f)))
(error "No such language mode: %s" lang-f))
(when (and (called-interactively-p 'any)
(eq type 'src-block) (not (functionp lang-f)))
(user-error "No such language mode: %s" lang-f))
(org-src--edit-element
element
(or edit-buffer-name