Code Monkey home page Code Monkey logo

Comments (6)

seblemaguer avatar seblemaguer commented on July 19, 2024 1

:), it is just that I missed the fact you defined first the condition feeding the whole group and then describe the subgroups. It is my mistake as it was actually clear from the example :)

from bufler.el.

alphapapa avatar alphapapa commented on July 19, 2024

Hi Sébastien,

Your question isn't stupid at all, but I think the default groups already show how that would be done. As well, your customized grouping rules already seem to do something like that. So I think there's already a direction to look at. :) If you can ask a more specific question, maybe I can give a more direct answer.

In case another example helps, here's how I added some Bufler support to matrix-client: https://github.com/alphapapa/matrix-client.el/blob/59c792423fd0503f1375f356bec56130e65d3b51/matrix-bufler.el#L101 It shows a list like this:

mb

from bufler.el.

seblemaguer avatar seblemaguer commented on July 19, 2024

I think my logic is flawed as I don't understand why this

(group (group-or "Chatty"
                           (group (mode-match "ERC" (rx bos "erc-")))
                           (group (name-match "*Slack*" (rx bos "*Slack"))))
                          )

leads to this error

Debugger entered--Lisp error: (invalid-function (#f(compiled-function (&rest args2) #<bytecode 0x13d450dd0ab03682>)))

from bufler.el.

alphapapa avatar alphapapa commented on July 19, 2024

group-or can't create subgroups like that. It creates one subgroup. Remove the (group ...) wrapping around those mode-match and name-match rules.

from bufler.el.

seblemaguer avatar seblemaguer commented on July 19, 2024

Ok thanks a lot. Thanks to your answer I clicked and got the part of the logic I was missing :)

from bufler.el.

alphapapa avatar alphapapa commented on July 19, 2024

You're welcome. I don't feel like I've fully grokked it either, and I hope to make improvements to the grouping rules in the future. As it stands, a little experimentation is sometimes needed.

from bufler.el.

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.