فهرست منبع

Tiny refactoring

* lisp/org.el (org-edit-special): Tiny refactoring.
Nicolas Goaziou 8 سال پیش
والد
کامیت
5bc8492388
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      lisp/org.el

+ 1 - 2
lisp/org.el

@@ -20980,8 +20980,7 @@ On a link, call `ffap' to visit the link at point.
 Otherwise, return a user error."
   (interactive "P")
   (let ((element (org-element-at-point)))
-    (cl-assert (not buffer-read-only) nil
-	       "Buffer is read-only: %s" (buffer-name))
+    (barf-if-buffer-read-only)
     (pcase (org-element-type element)
       (`src-block
        (if (not arg) (org-edit-src-code)