bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#42533: 28.0.50; srecode-utest-project test failing on macOS


From: Lars Ingebrigtsen
Subject: bug#42533: 28.0.50; srecode-utest-project test failing on macOS
Date: Tue, 18 Aug 2020 19:57:00 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Found it!

For test-project, proj is "/tmp/", and on Debian default-directory is
/tmp/.  That is not the case on Macos -- proj is
/var/folders/xv/8kvz838x15533stz7gy96zd40000gn/T/ there:

(cl-defmethod srecode-template-table-in-project-p ((tab srecode-template-table))
  "Return non-nil if the table TAB can be used in the current project.
If TAB has a :project set, check that the directories match.
If TAB is nil, then always return t."
  (let ((proj (oref tab project)))
    ;; Return t if the project wasn't set.
    (if (not proj) t
      ;; If the project directory was set, let's check it.
      (let ((dd (expand-file-name default-directory))
            (projexp (regexp-quote (directory-file-name proj))))
        (if (string-match (concat "^" projexp) dd)
            t nil)))))

*phew*

OK, now to fix that...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no






reply via email to

[Prev in Thread] Current Thread [Next in Thread]