all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Fixing cursor height when setting line-spacing
Date: Sat, 05 Aug 2023 10:51:37 +0300	[thread overview]
Message-ID: <83il9usz92.fsf@gnu.org> (raw)
In-Reply-To: <77dc7b13-d4a7-4d63-8f03-226cb06449e8@gmail.com> (message from Karan Ahlawat on Sat, 5 Aug 2023 12:52:14 +0530)

> Date: Sat, 5 Aug 2023 12:52:14 +0530
> From: Karan Ahlawat <ahlawatkaran12@gmail.com>
> 
> I miswrote, my apologies.
> 
> I meant to say, I set the line-spacing variable (not the line-height). 
> 
> I was looking into the C source code and debugging Emacs to try and figure out how the height of a
> cursor at the EOL is decided (with no luck).
> 
> Anyways, the effect I want to accomplish is, after setting line-spacing to a value, I'd want the cursor to
> always be the full line of the height, and not the character underneath. I'd attach an image showing
> exactly what I want to reproduce, but I'm not sure if image attachments are okay or even usable in a
> mailing list.

First, please reply to the list, not just to me in personal email
(please use Reply All or a similar function of your email program).

And second, I asked what do you want to achieve by setting
line-spacing, not how you would like to see the cursor displayed.  I
understand how you want to see the cursor, there's no need for posting
images.

Anyway, the only suggestion to have the cursor of the same height even
when you set line-spacing non-nil is to set cursor-type to 'bar.  Then
you will have the cursor displayed as a vertical bar whose height is
the height of the line.  We currently don't have a way of doing this
with the default box cursor.



  parent reply	other threads:[~2023-08-05  7:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-05  5:44 Fixing cursor height when setting line-spacing Karan Ahlawat
2023-08-05  7:01 ` Eli Zaretskii
2023-08-05  7:41   ` Karan Ahlawat
     [not found]   ` <77dc7b13-d4a7-4d63-8f03-226cb06449e8@gmail.com>
2023-08-05  7:51     ` Eli Zaretskii [this message]
2023-08-05  8:08       ` Karan Ahlawat
2023-08-05  8:19         ` Eli Zaretskii
2023-08-05  8:43           ` Karan Ahlawat
2023-08-05  9:30             ` Eli Zaretskii
2023-08-05 10:41 ` Yuri Khan
2023-08-05 11:52   ` Karan Ahlawat

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83il9usz92.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.