bug#43646: 27.1; Feature request: Set the cursor foreground color in no-window Emacs

classic Classic list List threaded Threaded
5 messages Options
O V
Reply | Threaded
Open this post in threaded view
|

bug#43646: 27.1; Feature request: Set the cursor foreground color in no-window Emacs

O V
Dear Developers,

I am writing regarding a feature that I would like to be implemented, and not a bug.

When using 'org-indent-mode' in Emacs without a GUI (started by 'emacs -nw'), the cursor is hidden when located on hidden headline stars.

I believe this happens because, as per 'M-x customize-option cursor',
the "cursor foreground color is taken from the background color of the underlying text". As per the same doc, the cursor foreground cannot be changed to a fixed face.

In my opinio, allowing this would be an enormous improvement, as the hidden cursor is a real obstacle to correct viewing and editing of org files.

Could you please make implementations that would solve this problem?

Kind regards,
Olivier Vasseur
Reply | Threaded
Open this post in threaded view
|

bug#43646: 27.1; Feature request: Set the cursor foreground color in no-window Emacs

Eli Zaretskii
> From: O V <[hidden email]>
> Date: Sun, 27 Sep 2020 10:49:51 +0200
>
> I am writing regarding a feature that I would like to be implemented, and not a bug.
>
> When using 'org-indent-mode' in Emacs without a GUI (started by 'emacs -nw'), the cursor is hidden when
> located on hidden headline stars.
>
> I believe this happens because, as per 'M-x customize-option cursor',
> the "cursor foreground color is taken from the background color of the underlying text". As per the same
> doc, the cursor foreground cannot be changed to a fixed face.
>
> In my opinio, allowing this would be an enormous improvement, as the hidden cursor is a real obstacle to
> correct viewing and editing of org files.
>
> Could you please make implementations that would solve this problem?

Thank you for your report.

Could you please provide a recipe for reproducing the problem,
starting from "emacs -Q"?  Please include in your recipe the minimal
Org file needed for reproducing.  TIA.



O V
Reply | Threaded
Open this post in threaded view
|

bug#43646: 27.1; Feature request: Set the cursor foreground color in no-window Emacs

O V
Dear Eli,

Thank you for your reply.
It is very easy to reproduce this behavior:
1. Open an org file (e.g. the example "test.org" in attachment) with "emacs -nw -Q test.org".
2. Run "M-x org-indent-mode".
3. Move the cursor to the beginning of an indented heading, where the heading stars are hidden.
Behaviour: The cursor is not visible.

Kind regards,
Olivier Vasseur

Le dim. 27 sept. 2020 à 12:00, Eli Zaretskii <[hidden email]> a écrit :
> From: O V <[hidden email]>
> Date: Sun, 27 Sep 2020 10:49:51 +0200
>
> I am writing regarding a feature that I would like to be implemented, and not a bug.
>
> When using 'org-indent-mode' in Emacs without a GUI (started by 'emacs -nw'), the cursor is hidden when
> located on hidden headline stars.
>
> I believe this happens because, as per 'M-x customize-option cursor',
> the "cursor foreground color is taken from the background color of the underlying text". As per the same
> doc, the cursor foreground cannot be changed to a fixed face.
>
> In my opinio, allowing this would be an enormous improvement, as the hidden cursor is a real obstacle to
> correct viewing and editing of org files.
>
> Could you please make implementations that would solve this problem?

Thank you for your report.

Could you please provide a recipe for reproducing the problem,
starting from "emacs -Q"?  Please include in your recipe the minimal
Org file needed for reproducing.  TIA.

test.org (76 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

bug#43646: 27.1; Feature request: Set the cursor foreground color in no-window Emacs

Eli Zaretskii
> From: O V <[hidden email]>
> Date: Sun, 27 Sep 2020 12:12:16 +0200
> Cc: [hidden email]
>
> 1. Open an org file (e.g. the example "test.org" in attachment) with "emacs -nw -Q test.org".
> 2. Run "M-x org-indent-mode".
> 3. Move the cursor to the beginning of an indented heading, where the heading stars are hidden.
> Behaviour: The cursor is not visible.

Thanks.  However, I cannot reproduce the behavior you describe with
this recipe: I do see the cursor in those places.

Btw, AFAIK the colors of the cursor in the -nw session are determined
by the terminal emulator, not by Emacs.



Reply | Threaded
Open this post in threaded view
|

bug#43646: 27.1; Feature request: Set the cursor foreground color in no-window Emacs

Eli Zaretskii
> From: O V <[hidden email]>
> Date: Sun, 27 Sep 2020 17:26:23 +0200
>
> Dear Eli,
>
> Thank you for your feedback.
> You actually solved my problem: by changing the cursor colors in my terminal emulator settings, I have now
> a visible cursor.
> I suppose you had different terminal emulator settings, so you did not have the same problem.

Great, so I'm closing this bug report.