mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-23 11:18:41 +00:00
Merge branch 'origin-maint'
This commit is contained in:
commit
a9510349ea
|
@ -604,15 +604,17 @@ arguments and pop open the results in a preview buffer."
|
||||||
;; TODO: report malformed code block
|
;; TODO: report malformed code block
|
||||||
;; TODO: report incompatible combinations of header arguments
|
;; TODO: report incompatible combinations of header arguments
|
||||||
;; TODO: report uninitialized variables
|
;; TODO: report uninitialized variables
|
||||||
(let ((too-close 2)) ;; <- control closeness to report potential match
|
(let ((too-close 2) ;; <- control closeness to report potential match
|
||||||
|
(names (mapcar #'symbol-name org-babel-header-arg-names)))
|
||||||
(dolist (header (mapcar (lambda (arg) (substring (symbol-name (car arg)) 1))
|
(dolist (header (mapcar (lambda (arg) (substring (symbol-name (car arg)) 1))
|
||||||
(and (org-babel-where-is-src-block-head)
|
(and (org-babel-where-is-src-block-head)
|
||||||
(org-babel-parse-header-arguments
|
(org-babel-parse-header-arguments
|
||||||
(org-babel-clean-text-properties
|
(org-babel-clean-text-properties
|
||||||
(match-string 4))))))
|
(match-string 4))))))
|
||||||
(dolist (name (mapcar #'symbol-name org-babel-header-arg-names))
|
(dolist (name names)
|
||||||
(when (and (not (string= header name))
|
(when (and (not (string= header name))
|
||||||
(<= (org-babel-edit-distance header name) too-close))
|
(<= (org-babel-edit-distance header name) too-close)
|
||||||
|
(not (member header names)))
|
||||||
(error "supplied header \"%S\" is suspiciously close to \"%S\""
|
(error "supplied header \"%S\" is suspiciously close to \"%S\""
|
||||||
header name))))
|
header name))))
|
||||||
(message "No suspicious header arguments found.")))
|
(message "No suspicious header arguments found.")))
|
||||||
|
|
Loading…
Reference in a new issue