GithubHelp home page GithubHelp logo

compile-multi's Introduction

compile-multi's People

Contributors

mohkale avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

emacsmirror

compile-multi's Issues

`compile-multi-forms` does not work properly

Problem

It looks like values from compile-multi-forms are not substituted into compile-multi-config.

Example

Can be reproduced in emacs -Q

  1. (optional, default value already contains this) (setq compile-multi-forms '((file-name . (buffer-file-name))))
  2. (setq compile-multi-config '((t ("say file name" "echo" file-name))))
  3. Run compile-multi in some file, it will complain: Invalid function: "say file name"
  4. (setq compile-multi-config '((t ("say file name" "echo" (buffer-file-name)))))
  5. Run compile-multi in some file, it will work correctly

Possible source of the problem

These lines are somewhat suspicious:

(let* ((val (or (alist-get task compile-multi-forms)
task))
(evaluated-value (eval val)))
(unless (stringp val)
(error "Failed to stringify task argument %s" val))
evaluated-value))

If I change let* to this, everything works fine:

(let* ((val (or (alist-get it compile-multi-forms)
                it))
       (evaluated-value (eval val)))
  (unless (stringp evaluated-value)
    (error "Failed to stringify task argument %s" val))
  evaluated-value)

Q: How to approach dealing with build directories?

Hi,

I saw this pop up on the MELPA feed today so I'm intrigued if this is a route to enabling similar consult powered compile features that I currently achieve with counsel's compile (https://github.com/abo-abo/swiper/blob/master/counsel.el#L6371). I was involved in writing that and one feature that was important was dealing with build directories. This meant counsel-compile goes through multiple selection stages allowing you to either select a previous build command from history, or select a build dir at which point it could then extract targets from the Makefile.

Is this something you could approach with compile-multi directly or should I look at doing this within the projection-multi-compile extensions?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.