Giter VIP home page Giter VIP logo

Comments (4)

djcb avatar djcb commented on July 24, 2024

That's indeed broken, I fixed it a some point.. but apparently it broke again :-|

Also thank you for the PR... I'm pushing a change that is slightly different, running the hook a bit earlier so that (as the docstring suggests) one could influence the later draft-creation steps.

from mu.

milouse avatar milouse commented on July 24, 2024

Good to know. If you need I’m willing to test it :)

from mu.

milouse avatar milouse commented on July 24, 2024

I just checked your implementation and it’s far more simple and better than mine.

It leverages just a little thing: maybe you should also run the cl-assert from the mu4e--prepare-draft-buffer before even running the hooks? The idea being to fail sooner if the message-type or parent variables are not valid?

I’m speaking about these lines:

  (cl-assert (member compose-type '(reply forward edit new)))
  (cl-assert (eq (if parent t nil)
                 (if (member compose-type '(reply forward)) t nil)))

from mu.

djcb avatar djcb commented on July 24, 2024

Maybe we could copy them to the being of mu4e--draft, but tbh, these assert are more-or-less leftovers from development, so don't care too much about them.

Anyway, thanks for the heads up! Closing this ticket.

from mu.

Related Issues (20)

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.