Skip to content
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

circe-color-nicks, circe-highlight-all-nicks: Combine and generalize? #20

Open
jorgenschaefer opened this issue Oct 12, 2012 · 8 comments
Milestone

Comments

@jorgenschaefer
Copy link
Collaborator

retroj mentioned that the modules circe-color-nicksand circe-highlight-all-nicks have very similar functionality and likely should be merged into a single module.

As a bug, in circe-color-nicks the functions to enable/disable the module are written as if lui-pre-output-hook was buffer-local. It isn't.

@jorgenschaefer
Copy link
Collaborator Author

lui-highlight-keywords could support the format (function1 function2) so that function1 is called once to generate a regular expression (e.g. "all nicks in this channel"), and function2 is called for every match (so it can highlight that match in whatever way it pleases). Would this be generalized enough an implementation in lui?

(function1 should actually also be able to be a list of strings which are combined using regexp-opt, or a hash table in which case its keys are combined using regexp-opt; this allows to just use circe-channel-users as the first element of the list.)

@jorgenschaefer
Copy link
Collaborator Author

Any volunteer to work on this?

@twopir
Copy link

twopir commented Mar 3, 2013

I could give it a try.

@jorgenschaefer
Copy link
Collaborator Author

Go ahead :-) And thank you!

@jorgenschaefer
Copy link
Collaborator Author

When working on this, looking at #54 would be good, too.

@jorgenschaefer jorgenschaefer modified the milestones: Release v1.4, Release 1.5 Aug 26, 2014
@jorgenschaefer jorgenschaefer modified the milestones: Release v1.5, v1.6 Dec 12, 2014
@jorgenschaefer
Copy link
Collaborator Author

Out of curiosity, does anyone actually use highlight-all-nicks.el?

@wasamasa
Copy link
Collaborator

wasamasa commented Feb 4, 2015

Yes. Most results come from people chucking in their packages into their emacs configurations, however I've found four persons using it.

@jorgenschaefer
Copy link
Collaborator Author

Scary. :-D

@jorgenschaefer jorgenschaefer modified the milestones: v1.7, v1.6 Feb 21, 2015
@jorgenschaefer jorgenschaefer modified the milestones: Backlog, v1.7 Apr 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants