From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jack Kamm Subject: Re: A few changes to test in master Date: Fri, 07 Feb 2020 07:41:37 -0800 Message-ID: <87y2tequa6.fsf@gmail.com> References: <87wo9750jl.fsf@gnu.org> <87a75yrdye.fsf@gmail.com> <87sgjpd059.fsf@bzg.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:44638) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j05mG-0004V1-1L for emacs-orgmode@gnu.org; Fri, 07 Feb 2020 10:42:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j05mE-0003Fg-V6 for emacs-orgmode@gnu.org; Fri, 07 Feb 2020 10:42:43 -0500 In-Reply-To: <87sgjpd059.fsf@bzg.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: Bastien Cc: emacs-orgmode@gnu.org Hi Bastien, Bastien writes: >> The variable `org-table-header-line-p' doesn't seem to have any effect >> for me, I find that I need to call "M-x org-table-header-line-mode" even >> when it's set. > > Should be fixed now. Confirmed, it works correctly for me now. >> Also, "M-x org-table-header-line-mode" seems to activate the minor mode >> globally > > Well, I tried various things and I didn't fix this one. Perhaps this > is due to the special display of the header line. I will continue to > look for a solution. FWIW, I wouldn't mind if this were a global minor mode, I intend to activate it globally with `org-table-header-line-p'. >> If I am in a table, and scroll-up-command brings me out of the table, >> then the header of the table still sits on top of the window immediately >> after scrolling. This gets fixed as soon as any action is taken >> (e.g. moving the cursor or hitting C-g). > > Yes, this happened to me sometimes. I think I enhanced the situation > a bit here, but I can't tell for 100% sure. Please test and report. Since updating and testing for a few minutes, I haven't noticed this issue anymore. However, I have noticed a new bug, where the header line randomly gets "stuck" on some row of the table, so even when I scroll and that row is no longer on top of the buffer, that row is still replaced by the header line. This bug happens infrequently, and I haven't figured out how to consistently reproduce yet. I noticed this happening when I was scrolling up and down many times past the same table, and also switching themes. >> It would be nice if the header row was a little more visually >> distinguishable from the other table rows (maybe by adding an underline >> to that row?) > > Good idea, done - you can now customize the face: > > M-x customize-face RET org-table-header RET Thanks. The default face looks great on light-themed backgrounds like leuven, but is hard to read on some dark-themed backgrounds like tsdh-dark or zenburn, due to their light text. While this could be left to the user or individual themes to fix, it'd be nice if it worked out of the box for the common dark themes. Maybe the simplest solution would be to set both the background and foreground colors in the default face?