From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Subject: org-hide in terminal Date: Sat, 11 Feb 2017 15:12:42 +0100 Message-ID: <4e037c49-8204-ce99-9791-7ec0233658a7@schauderbasis.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50582) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ccYQG-000269-1e for emacs-orgmode@gnu.org; Sat, 11 Feb 2017 09:13:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ccYQC-0003ta-Sm for emacs-orgmode@gnu.org; Sat, 11 Feb 2017 09:13:08 -0500 Received: from we60b.netcup.net ([46.38.230.11]:60997) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ccYQC-0003qu-MA for emacs-orgmode@gnu.org; Sat, 11 Feb 2017 09:13:04 -0500 Received: from [192.168.178.23] (aftr-185-17-206-167.dynamic.mnet-online.de [185.17.206.167]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by we60b.netcup.net (Postfix) with ESMTPSA id 1B6D220722 for ; Sat, 11 Feb 2017 15:12:47 +0100 (CET) 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.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hello, With "org-hide-leading-stars" set to t orgmode tries to hide stars by using the "org-hide" face. This is documented with: "The foreground color of this face should be equal to the background color of the frame." and in the org manual in section Clean-view we find "Because Org makes the font color same as the background color to hide to stars, sometimes org-hide face may need tweaking to get the effect right. For some black and white combinations, grey90 on a white background might mask the stars better". As far as I can tell (which might be wront) it just assumes default colors "white" or "black", which might not be accurate. I think this is a bad solution for the following reasons. - It doesn't work well if emacs runs in a terminal (often the stars just get a grey background) - It shows the stars when we mark them (this might or might not be a good thing) - People who use the same config in multiple environments (other terminals and colors) will have to write some if-else code to get this right. - People who change their terminal colors get problems. Possible solutions I can think of are: a) Somhow make the existion solution work for terminals. I thought I could simply set org-hides forground to the backgrounf-value of the face "default", but somehow it didn't work out and I ended up with some sort of grey (which is not my background). b) emacs could have a text property, similar to "invisible", which hides text but still lets it occupy the space. I don't know how it work internaly, though. This is probably the best solution if the problem of hiding text occurs more often. I was told this was already discussed on emcas-devel, but I couldn't find it there. c) hide the leading stars behind spaces. I have a working prototype which works quite well. It uses "org-bullets" and "compose-region". It is not 100% clean though, since there still is a character which might be visible when using some minor mode. I am very new to emacs-lsip (and mailing lists) so I hope this is how it is done. Johannes Lippmann