Since installing Flycheck I've been bombarded with complaints about the elisp functions I've used reliably for years. This is the first one I can't understand. Here my function is designed to return the result of mapcar, not to produce side effects. The suggested replacement of mapc won't do what I need, though dolist could with a bit more effort.
Here's the code:
(defun synclient-get-touchpad-config ()
"Return the touchpad config as a list of strings."
(mapcar (lambda (s)
(string-join (split-string s)))
(seq-drop-while (lambda (s)
(not (string-prefix-p " " s)))
(process-lines "synclient" "-l")))
(current-buffer))
The exact error message is:
‘mapcar’ called for effect; use ‘mapc’ or ‘dolist’ instead (emacs-lisp)
What exactly is flycheck expecting me to do here?