ascii-boxes / boxes

Command line ASCII boxes unlimited!
https://boxes.thomasjensen.com/
GNU General Public License v3.0
613 stars 75 forks source link

Boxes.el: Fixes for incorrect Customize, compiler warnings & obsolete code. #109

Closed Mike-Woolley closed 1 year ago

Mike-Woolley commented 2 years ago

● Customisation option 'boxes-known-modes' was being incorrectly added to the internal Emacs 'Customize' meta-group.

● Fixed by creating a new 'Boxes' group for use by this package. Note that backwards compatibility is preserved for those who have already customised this option.

● Added type declaration for 'boxes-known-modes', which as well as fixing a compiler warning, enables completion and type-checking on user-entered values.

● Put the other user-settable variables as customisation options in the new 'Boxes' group.

● Fixed a bunch of compiler warnings.

● Removed / modified obsolete or unnecessary code (like requiring the deprecated package 'cl' etc).

tsjensen commented 2 years ago

That looks great - thank you!

@zerotao Do you also want to take a look before we merge?

Mike-Woolley commented 1 year ago

Thanks @tsjensen, I commented the commit diff to explain my changes 😊

tsjensen commented 1 year ago

Thanks @tsjensen, I commented the commit diff to explain my changes 😊

Sure, don't worry, we'll just give @zerotao a few days, in case he wants to take a look.
I'm sure he'll ask back if anything is unclear to him.

tsjensen commented 1 year ago

Ok, I'll merge, then. Thanks a lot, @Mike-Woolley!

Mike-Woolley commented 1 year ago

Thanks @tsjensen!

I was thinking it would be good to put boxes.el into one of the Emacs package repositories, which would make it easier for Emacs users to find.

It also means Emacs users could automatically install the boxes binary and lisp support with a simple elisp declaration like this 😊

(use-package boxes
  :ensure t
  :ensure-system-package boxes)

The code for boxes.el would stay in this repository and when changes are made a package update would automatically be generated and published.

I could do this if you agree it's a good idea?

Thanks, Mike

tsjensen commented 1 year ago

That would be fantastic! ⭐

Mike-Woolley commented 1 year ago

Ok, I will make it so 😊

zerotao commented 1 year ago

Sorry I was down with a stomach bug. Looks great to me!