Skip to content

Add assess-with-filesystem #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

DamienCassou
Copy link
Collaborator

This work has been done by @Fuco1. I'm only responsible for a bug fix and for the adaptation to assess source code.

@Fuco1
Copy link

Fuco1 commented Nov 11, 2016

Out of curiosity, what was the bug? Thanks for packaging this up btw :)

@DamienCassou
Copy link
Collaborator Author

I sent you an email about it. Didn't you get it?

The code you sent contained:

(defun with-buttercup-filesystem--make-parent (spec path)
  "If SPEC is a file name, create its parent directory rooted at PATH."
  (save-match-data
    (string-match "\\(.*\\)/" spec)
    (when (match-string 1 spec)
  (make-directory (concat path "/" (match-string 1 spec)) t))))

which I think is buggy because it calls match-string even if string-match fails. The new code is:

(defun assess-with-filesystem--make-parent (spec path)
  "If SPEC is a file name, create its parent directory rooted at PATH."
  (save-match-data
    (when (string-match "\\(.*\\)/" spec)
      (make-directory (concat path "/" (match-string 1 spec)) t))))

(assess-with-filesystem SPEC &rest FORMS)

Create temporary file hierarchy according to SPEC and run FORMS.

SPEC is a list of specifications for file system entities which
are to be created.
@phillord
Copy link
Owner

It looks like a really nice addition.

Do both of you have copyright papers with FSF? I'm planning on adding assess to core!

@DamienCassou
Copy link
Collaborator Author

@phillord I do.

@Fuco1
Copy link

Fuco1 commented Nov 21, 2016

@phillord I have as well.

@phillord
Copy link
Owner

On master now! Thank you very much, and apologies for slow processing. Busy time of year.

@phillord phillord closed this Nov 24, 2016
@DamienCassou DamienCassou deleted the filesystem branch April 13, 2017 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants