From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: Fixing cursor height when setting line-spacing Date: Sat, 5 Aug 2023 17:41:46 +0700 Message-ID: References: <6fdf668f-4c00-4732-94e8-eefc84efbb60@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1024"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Karan Ahlawat Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 05 12:42:41 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qSEk5-00009r-Ba for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 05 Aug 2023 12:42:41 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSEjR-0005xi-Tl; Sat, 05 Aug 2023 06:42:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSEjQ-0005xK-Et for help-gnu-emacs@gnu.org; Sat, 05 Aug 2023 06:42:00 -0400 Original-Received: from mail-vs1-xe32.google.com ([2607:f8b0:4864:20::e32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qSEjO-0001WC-Pa for help-gnu-emacs@gnu.org; Sat, 05 Aug 2023 06:42:00 -0400 Original-Received: by mail-vs1-xe32.google.com with SMTP id ada2fe7eead31-447b64b0555so997568137.3 for ; Sat, 05 Aug 2023 03:41:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691232117; x=1691836917; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=clNsMvfUV+CIlcWV+9FQWyu4uFbj5QJzuZrv2IWvgh4=; b=byc4eV2hR0EUw2KjuJZ7gxDuS2EDrNX/wt8n4HW/4InaqrKc0HhiST0x4P0Rw0YnyG jGjlapRnt0U4ffUwSXiXGudQdLF4IOg5C9h4MNB8Hv9K5BA3m2FIZuevOutR6fh0xEYm ohgrUb/rvL4+SSjvytC7M6M7Hr2TZWdMLFa+7Jy53otMfiDmJrU2UEeR4JZyjvM4TJdf QQrPWVwkdSG4KSSf5YsbDp7XfUnzX7q96/LdpnlpEx+4ZLxqEnDKptGWkn7xiFhFPpQC XqpGv/yOGcOE0FeUbzvRx1b2zmHrCZwRTWzqz+mC2vfl0ZQmRvNPCiUrCO9AC1eYuzhG fBqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691232117; x=1691836917; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=clNsMvfUV+CIlcWV+9FQWyu4uFbj5QJzuZrv2IWvgh4=; b=YVBVBNyqtv0tbBoG8bpkHHkdJWck7t3LIi0dU6vxKeEG0iw5osK2F0PvmYc1I6zSeA miNHMf3WWo1WVISzc0doOjJuWUf221D1lqidFba6rW7XjSu1GMxphAqsyGktL+FrP6qf bYQ0uJY1NvclRUH3HR0TY5xOWoFOCWxT1/f3gfauqs/yV0jBOGEXKjAl+EugiPfGOn8e /deSE6M+fPnh88ZZAk/lvfgSx815qQEJ2Lgx1FklP6/ECD7OyBOMowQVgJ++zwCubCMS DS4ssICSxLBOwUrhXq674I4ckTC4cLs6OOQDYsqghxIZuKfaoTwqaUWUMPAxjDKQoaqd zApQ== X-Gm-Message-State: AOJu0Yx9uaNYPN33KXkekf/hFQSZXo+sEp+SJyR4PJqtUztTTbJZELgd c7huWEHjwsOAKcffFwwQ9dFvc4jYntvUmNiwbzQ= X-Google-Smtp-Source: AGHT+IFzzvfo21GKNEHRyfk2Kl2xVU4/rNUyQlYVleI0eTYOWs+dmS7be2j1bkkpTb7XFbOgFMFlN7CPT9T4GanMdao= X-Received: by 2002:a67:e90d:0:b0:443:7572:598b with SMTP id c13-20020a67e90d000000b004437572598bmr1556031vso.13.1691232117221; Sat, 05 Aug 2023 03:41:57 -0700 (PDT) In-Reply-To: <6fdf668f-4c00-4732-94e8-eefc84efbb60@gmail.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::e32; envelope-from=yurivkhan@gmail.com; helo=mail-vs1-xe32.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:144618 Archived-At: On Sat, 5 Aug 2023 at 12:45, Karan Ahlawat wrote= : > I set the line-height variable to be a positive integer (16). My > cursor-type is set to t. Now, whenever I move the cursor to the end of a > line, the height of the cursor is equal to the entire line height. But > anywhere else on the line, it's equal to the height of the character > under the cursor. I am using a non-zero line-spacing value and I don=E2=80=99t observe a difference in the block cursor size in my normal usage. This is likely because my normal usage includes =E2=80=98global-whitespace-mode=E2=80=99 f= or most editing modes, with a display mapping for the newline character. I have customized the =E2=80=98whitespace-space=E2=80=99 face to be very unob= trusive. =E2=80=98whitespace-mode=E2=80=99 modifies the display of spaces, tab chara= cters, and newlines, so you can see the difference where it would not otherwise be visible. With it enabled, from redisplay=E2=80=99s point of view, the cursor is never at the end of line =E2=80=94 instead, it=E2=80=99s on the g= lyph substituted for the newline, so the cursor at the logical end of line has the same height as within the line.