On Tue, Feb 9, 2021 at 10:45 AM martin rudalics wrote: > > > + "Determine the value of tab-bar-lines for FRAME. > > +The returned value will either be 1 or 0, meaning whether to show > > +the tab-bar or not. If tab-bar-mode is off, the returned value is > > +0. Otherwise the result depends on the value of the customizable > > +variable `tab-bar-show'." > > Please use active voice and always make sure to leave two spaces in > front of a new sentence. I would write it as > > (defun tab-bar--tab-bar-lines-for-frame (frame) > "Return new value of `tab-bar-lines' parameter for specified FRAME. > Return 0 if `tab-bar-mode' is not enabled on FRAME or .... > Return 1 if `tab-bar-mode' is enabled on FRAME and the variable > `tab-bar-show' ... > > Call this function when ..." > > where the last sentence would describe when and why this function should > be called, justifying the "new" in the doc-string. Instead of "new" you > can also use "adjusted" if the value gets just adjusted or your earlier > "correct" provided an earlier calculation was "incorrect". Thanks for your comments. I went with (defun tab-bar--tab-bar-lines-for-frame (frame) "Determine and return the value of `tab-bar-lines' for FRAME. Return 0 if `tab-bar-mode' is not enabled. Otherwise return either 1 or 0 depending on the value of the customizable variable `tab-bar-show', which see." Please see the attached v5 of the complete patch. I don't think tab-bar-mode can vary from frame to frame? I also did not add the "Call this function" part, because this is an internal helper function that is only used from "tab-bar--update-tab-bar-lines", just below. It just returns 0 or 1 and does not modify anything, the actual frame parameter modification happens in the other function. Hope this is satisfactory, if not please feel free to adjust as you wish. Do I need to do the contribution paperworks for this patch? So far I haven't done that. Best Bastian