Browse Source

Revert "org-src.el: Enhance `org-edit-src-code'"

This reverts commit cad2a6a588866237ba24f8de2c51037b4b31b0b3.
Bastien 5 years ago
parent
commit
77968ce3a3
1 changed files with 2 additions and 3 deletions
  1. 2 3
      lisp/org-src.el

+ 2 - 3
lisp/org-src.el

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