emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tab-rename broken/changed?


From: Juri Linkov
Subject: Re: tab-rename broken/changed?
Date: Tue, 23 Mar 2021 20:37:52 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)

> :-) And rather than waiting for the grand internal API arrives,
> perhaps clone the simple solution I have into a
> tab-bar-current-tab-name function --- botom-up APIs usually point the
> way to the final top-down API

A tab can have more attributes than a 'name',
for example, there is a new attribute 'group'.
So it would be easier to continue accessing
tab data using 'assoc'.  BTW, there is a simpler function
than 'assoc' and 'cdr', just use (alist-get 'name tab).

Also there is an existing function 'tab-bar--current-tab'
to get the current tab.  The only problem is that it's
an internal function whose behavior is not guaranteed not to change.
Than maybe it would be easier just to create an alias to the
internal function, but without -- in its name.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]