; Minor simplification of two recent changes

This commit is contained in:
Basil L. Contovounesios 2020-08-19 14:43:11 +01:00
parent 90e65c826f
commit f8d3d18168
2 changed files with 2 additions and 3 deletions

View file

@ -1852,7 +1852,7 @@ to get different commands to edit and resubmit."
(and (commandp (function-called-at-point))
(format "%S" (function-called-at-point)))))
(all (sort (minibuffer-default-add-completions)
(lambda (a b) (string< a b)))))
#'string<)))
(if def
(cons def (delete def all))
all)))))

View file

@ -479,8 +479,7 @@ Subtests signal errors if something goes wrong."
(ert-deftest bytecomp-tests--warnings ()
(with-current-buffer (get-buffer-create "*Compile-Log*")
(let ((inhibit-read-only t)) (erase-buffer)))
(dolist (f '(my-test0 my--test11 my--test12 my--test2))
(fset f nil))
(mapc #'fmakunbound '(my-test0 my--test11 my--test12 my--test2))
(test-byte-comp-compile-and-load t
'(progn
(defun my-test0 ()