Explorar el Código

`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 hace 14 años
padre
commit
f99197e143
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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\\)\".