summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/progmodes/project.el5
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'."
"Add project PR to the front of the project list.
Save the result to disk if the project list was changed."
(project--ensure-read-project-list)
- (let* ((dir (project-root pr))
- (do-write (not (equal (car project--list) dir))))
- (when do-write
+ (let ((dir (project-root pr)))
+ (unless (equal (car project--list) dir)
(setq project--list (delete dir project--list))
(push dir project--list)
(project--write-project-list))))