Merge branch 'maint'
This commit is contained in:
commit
c8452bfca0
|
@ -80,12 +80,13 @@
|
||||||
|
|
||||||
(ert-deftest test-org-src/blank-line-block ()
|
(ert-deftest test-org-src/blank-line-block ()
|
||||||
"Editing block with just a blank line."
|
"Editing block with just a blank line."
|
||||||
(org-test-with-temp-text
|
(org-test-with-temp-text-in-file
|
||||||
"
|
"
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
"
|
"
|
||||||
|
(progn
|
||||||
(goto-line 3)
|
(goto-line 3)
|
||||||
(org-edit-special)
|
(org-edit-special)
|
||||||
(insert "blah")
|
(insert "blah")
|
||||||
|
@ -94,8 +95,7 @@
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
blah
|
blah
|
||||||
#+end_src
|
#+end_src
|
||||||
"))
|
")))))
|
||||||
(should (equal (word-at-point) "blah"))))
|
|
||||||
|
|
||||||
(provide 'test-org-src)
|
(provide 'test-org-src)
|
||||||
;;; test-org-src.el ends here
|
;;; test-org-src.el ends here
|
||||||
|
|
|
@ -201,7 +201,7 @@ otherwise place the point at the beginning of the inserted text."
|
||||||
(goto-char ,(match-beginning 0)))
|
(goto-char ,(match-beginning 0)))
|
||||||
`(progn (insert ,inside-text)
|
`(progn (insert ,inside-text)
|
||||||
(goto-char (point-min)))))
|
(goto-char (point-min)))))
|
||||||
(prog1 ,@body (kill-buffer)))))
|
,@body)))
|
||||||
(def-edebug-spec org-test-with-temp-text (form body))
|
(def-edebug-spec org-test-with-temp-text (form body))
|
||||||
|
|
||||||
(defmacro org-test-with-temp-text-in-file (text &rest body)
|
(defmacro org-test-with-temp-text-in-file (text &rest body)
|
||||||
|
|
Loading…
Reference in New Issue