Hello Juri, I added code to make the frame setting of tab-bar-lines as well as the default-frame-alist value dependent on tab-bar-show to the tab-bar-mode function. I think with this the part to which sets frame parameters in tab-bar-show :set is not needed because (tab-bar-mode 1) is called anyway, which already does everything. What do you think about the attached patch? Cheers Bastian On Fri, Feb 5, 2021 at 3:11 PM Bastian Beranek wrote: > > Hello Juri, > > I now installed your patch and I don't think it is complete yet. > > 1) Is the :set function actually used the next time emacs starts after > customizations have been written to .emacs and variables are > initialized to customized values using (custom-set-variables ...)? I > don't think it is, right? > > 2) Switching tab-bar-mode on and off seems to overwrite the > tab-bar-lines information in default-frame-alist: > > ;; If the user has given `default-frame-alist' a `tab-bar-lines' > ;; parameter, replace it. > (if (assq 'tab-bar-lines default-frame-alist) > (setq default-frame-alist > (cons (cons 'tab-bar-lines val) > (assq-delete-all 'tab-bar-lines > default-frame-alist))))) > > This code should depend on the value of tab-bar-show, right? > > Cheers > Bastian