unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Eric Ludlam <ericludlam@gmail.com>
Cc: Philipp <p.stephani2@gmail.com>, Eric Ludlam <zappo@gnu.org>,
	42533@debbugs.gnu.org
Subject: bug#42533: 28.0.50; srecode-utest-project test failing on macOS
Date: Tue, 18 Aug 2020 19:57:00 +0200	[thread overview]
Message-ID: <871rk3j0r7.fsf@gnus.org> (raw)
In-Reply-To: <875z9fj3fk.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 18 Aug 2020 18:59:11 +0200")

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	other threads:[~2020-08-18 17:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-25 18:32 bug#42533: 28.0.50; srecode-utest-project test failing on macOS Philipp
2020-08-04 15:14 ` Lars Ingebrigtsen
2020-08-10 14:40   ` Lars Ingebrigtsen
2020-08-15 20:18     ` Eric Ludlam
2020-08-16 11:41       ` Lars Ingebrigtsen
2020-08-16 14:41         ` Eric Ludlam
2020-08-18 16:59           ` Lars Ingebrigtsen
2020-08-18 17:57             ` Lars Ingebrigtsen [this message]
2020-08-30 19:35               ` Eric Ludlam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871rk3j0r7.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=42533@debbugs.gnu.org \
    --cc=ericludlam@gmail.com \
    --cc=p.stephani2@gmail.com \
    --cc=zappo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).