Commit b7dffcb5 authored by Simen Heggestøyl's avatar Simen Heggestøyl

Simplify the previous commit

* lisp/progmodes/project.el (project--read-project-list): Simplify the
previous commit by utilizing the optional OMIT-NULLS argument to
parent 449810bb
Pipeline #5687 passed with stage
in 58 minutes and 53 seconds
......@@ -732,13 +732,12 @@ loop using the command \\[fileloop-continue]."
(project--ensure-file-exists filename)
(insert-file-contents filename)
(let ((dirs (split-string (string-trim (buffer-string)) "\n"))
(let ((dirs (split-string (buffer-string) "\n" t))
(project-list '()))
(dolist (dir dirs)
(unless (string-empty-p dir)
(cl-pushnew (file-name-as-directory dir)
:test #'equal)))
(cl-pushnew (file-name-as-directory dir)
:test #'equal))
(setq project--list (reverse project-list))))))
(defun project--ensure-read-project-list ()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment