소스 검색

`which-function' does not return a list, but the name of the function

* org-test.el (org-test-current-defun): `which-function' does not
return a list, but the name of the function.
David Maus 14 년 전
부모
커밋
f99197e143
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      testing/org-test.el

+ 1 - 1
testing/org-test.el

@@ -197,7 +197,7 @@ files."
 (defun org-test-current-defun ()
   "Test the current function."
   (interactive)
-  (ert (car (which-function))))
+  (ert (which-function)))
 
 (defun org-test-run-all-tests ()
   "Run all defined tests matching \"\\(org\\|ob\\)\".