@@ -462,7 +462,7 @@ to actually set up the systems."
462
462
(asdf :load-asd file)
463
463
(qob-println " Loaded ASD file ~A " file)
464
464
(dolist (new-system (qob-newly-loaded-systems pre-systems))
465
- (push (list new-system file) qob-loaded-asds))))
465
+ (push (cons new-system file) qob-loaded-asds))))
466
466
files)))
467
467
(qob-ansi-green " done ✓" ))
468
468
(setq qob--asds-init-p t )))
@@ -472,12 +472,19 @@ to actually set up the systems."
472
472
(qob-init-asds)
473
473
(unless qob-loaded-asds
474
474
(qob-error " There is no specified ASDF system" ))
475
- (asdf :primary-system-name (car (nth 0 qob-loaded-asds))))
475
+ (some (lambda (asd)
476
+ (asdf :primary-system-name (car asd)))
477
+ qob-loaded-asds))
476
478
477
479
(defun qob-primary-system-entry ()
478
480
" Return the primary system."
479
481
(let ((name (qob-primary-system-name)))
480
- (assoc name qob-loaded-asds)))
482
+ ; ; NOTE: Not sure why function `assoc' isn't working here;
483
+ ; ; use some and return the value instead.
484
+ (some (lambda (asd)
485
+ (when (equal (car asd) name)
486
+ asd))
487
+ qob-loaded-asds)))
481
488
482
489
(defun qob-primary-system ()
483
490
" Return the primary system."
@@ -495,7 +502,7 @@ to actually set up the systems."
495
502
(let ((result))
496
503
(dolist (system qob-loaded-asds)
497
504
(when (equal name (car system))
498
- (setq result (nth 1 system))))
505
+ (setq result (cdr system))))
499
506
result))
500
507
501
508
(defun qob-system-files ()
0 commit comments