Procházet zdrojové kódy

`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 před 14 roky
rodič
revize
f99197e143
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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\\)\".