diff options
| author | Simen Heggestøyl | 2020-06-04 19:29:10 +0200 |
|---|---|---|
| committer | Simen Heggestøyl | 2020-06-04 20:11:58 +0200 |
| commit | b41be0ee83bdcc7882b360b66105f192503f0dc7 (patch) | |
| tree | dc4c065a0ccc7bb6ab3570d9173c71ec4d1c2190 | |
| parent | cdadb7a97cbed523af9f52705d8b03e91d17313f (diff) | |
| download | emacs-b41be0ee83bdcc7882b360b66105f192503f0dc7.tar.gz emacs-b41be0ee83bdcc7882b360b66105f192503f0dc7.zip | |
; Small cleanup in project.el
* lisp/progmodes/project.el (project--add-to-project-list-front):
Minor simplification after recent changes.
| -rw-r--r-- | lisp/progmodes/project.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index c701b801599..c5b6209d9b4 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el | |||
| @@ -787,9 +787,8 @@ Arguments the same as in `compile'." | |||
| 787 | "Add project PR to the front of the project list. | 787 | "Add project PR to the front of the project list. |
| 788 | Save the result to disk if the project list was changed." | 788 | Save the result to disk if the project list was changed." |
| 789 | (project--ensure-read-project-list) | 789 | (project--ensure-read-project-list) |
| 790 | (let* ((dir (project-root pr)) | 790 | (let ((dir (project-root pr))) |
| 791 | (do-write (not (equal (car project--list) dir)))) | 791 | (unless (equal (car project--list) dir) |
| 792 | (when do-write | ||
| 793 | (setq project--list (delete dir project--list)) | 792 | (setq project--list (delete dir project--list)) |
| 794 | (push dir project--list) | 793 | (push dir project--list) |
| 795 | (project--write-project-list)))) | 794 | (project--write-project-list)))) |