ema2159 / centaur-tabs

Emacs plugin aiming to become an aesthetic, modern looking tabs plugin
GNU General Public License v3.0
743 stars 51 forks source link

Error when attempting to switch tab groups via interactive menu: Symbol’s function definition is void: first #215

Open tomasfarias opened 1 year ago

tomasfarias commented 1 year ago

Running:

Expected behavior

With a mouse, right clicking on a tab, navigating to the tab groups menu, and selecting a different menu should switch to the selected group

Observed behavior

An error is shown:

Symbol’s function definition is void: first

And no switch occurs.

Potential cause

The function centaur-tabs--tab-menu is calling the first function here. From my (short) research, the first from the cl package appears to be deprecated in favor of cl-first provided by cl-lib (see this issue).

Potential resolution

Switching first for cl-first solves the issue (at least in my configuration). I'll open a PR to include this change, but if I'm misguided feel free to close it.

Thank you for making centaur-tabs!