Переглянути джерело

`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\\)\".