From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Subject: Re: org-yank improvement? Date: Thu, 12 Apr 2012 18:59:13 +0200 Message-ID: <87ty0okhsu.fsf@googlemail.com> References: <87ipikr0r0.fsf@iro.umontreal.ca> <8762ekiehm.fsf@mean.albasani.net> <87fwdo4bf1.fsf@googlemail.com> <87aa2iai44.fsf@gnu.org> <87mx6iqyg2.fsf@norang.ca> <87r4vuv2zc.fsf@altern.org> <87lim1kpzl.fsf@googlemail.com> <87iph5nhwf.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53355) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SINKw-00007C-J5 for emacs-orgmode@gnu.org; Thu, 12 Apr 2012 12:57:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SINKr-0002NB-HG for emacs-orgmode@gnu.org; Thu, 12 Apr 2012 12:57:34 -0400 Received: from plane.gmane.org ([80.91.229.3]:55727) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SINKr-0002Mx-A6 for emacs-orgmode@gnu.org; Thu, 12 Apr 2012 12:57:29 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SINKp-0000MA-Fh for emacs-orgmode@gnu.org; Thu, 12 Apr 2012 18:57:27 +0200 Received: from e178116133.adsl.alicedsl.de ([85.178.116.133]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 Apr 2012 18:57:27 +0200 Received: from quintfall by e178116133.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 Apr 2012 18:57:27 +0200 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Nicolas Goaziou writes: Hello, > Thorsten writes: > >> I just posted a proposal how to activate org-indent conditional on the >> sessions display-type, since the irritating behaviour I had only happens >> in a console session, so I guess some overlays involved are only visible >> in X11. > > There are no overlays involved in Org Indent mode. > > You may want to customize `org-indent-mode-turns-on-hiding-stars' (or > use #+STARTUP: showstars) instead of completely disabling org-indent for > console sessions. Actually, the stars are hidden with this function from org-faces.el, it seems: ,-------------------------------------------------------------------- | (defface org-hide | '((((background light)) (:foreground "white")) | (((background dark)) (:foreground "black"))) | "Face used to hide leading stars in headlines. | The foreground color of this face should be equal to the background | color of the frame." | :group 'org-faces) `-------------------------------------------------------------------- so the whole issue might be the following: when using Emacs on the console (at least in my case), the default colors (-fg black -bg white) are reverted on the display, i.e. the background is shown black and the (foreground-)text white. Thats exactly what I want. To achieve the same in an X11 session, I added a function to the server-visit-hook that changes -bg to black and -fg to wheat when emacsclient visits a server file. Now what is happening when I open a org-mode buffer in a console session? I see a blinking white underscore as cursor/point on a black background. When I move it over a hidden star, point becomes invisible. (background-color-at-point) gives nil. (foreground-color-at-point) gives 'black' instead of nil like in the other parts of the buffer, and the black cursor on a black background becomes invisible. In an X11 session, with point on hidden stars, the hidden star becomes visible again instead, together with the cursor. What is the mechanism responsable for that? -- cheers, Thorsten