From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Karan Ahlawat Newsgroups: gmane.emacs.help Subject: Re: Fixing cursor height when setting line-spacing Date: Sat, 5 Aug 2023 17:22:24 +0530 Message-ID: <23d7d36a-5a98-43eb-9eee-2d4181dc25aa@gmail.com> References: <6fdf668f-4c00-4732-94e8-eefc84efbb60@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12419"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: help-gnu-emacs@gnu.org To: Yuri Khan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 05 13:53:06 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 1qSFqE-00037u-6x for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 05 Aug 2023 13:53:06 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSFpj-0001CQ-8m; Sat, 05 Aug 2023 07:52:35 -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 1qSFph-0001C8-M7 for help-gnu-emacs@gnu.org; Sat, 05 Aug 2023 07:52:33 -0400 Original-Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qSFpf-0007Pq-Un for help-gnu-emacs@gnu.org; Sat, 05 Aug 2023 07:52:33 -0400 Original-Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-686f8614ce5so2919718b3a.3 for ; Sat, 05 Aug 2023 04:52:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691236350; x=1691841150; h=in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=AIvA//2rIB5/cHJjzn7ABeR2+QgqRHs0Uw+BT3gySpQ=; b=nZDFLZdRzzBjroa48ybLjJBibLeYor9QxdBl+SCR49O4mhGGQ1/VGTpgIMVt+mAmdD C4OvAUhf5Sl4r2dFRosbXiHUYVjHuMEZM07MM+kj7hqPRsK3Z1yyiwyI4DwKaR9iLWh3 ttw4cGachHRLi+Vn0t8oudmr7bFWP6fKQIEbst6ogzj1s7fsRlrgqoKWHgltGKEzhF24 KrDMaRFeANVc5BXAmfJijTk34IvVbnQb45ybfzFcss9+KvOg7Fv7ENRnl3+D+DEaFlY9 tkhsoGIBKAusfw5Hz3qdFxLG/h5SH6J2/qLhxR7CgIg+zzM9vOwkvv3QmPKSAixyticf r4Aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691236350; x=1691841150; h=in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=AIvA//2rIB5/cHJjzn7ABeR2+QgqRHs0Uw+BT3gySpQ=; b=bXROtANhTRbmPlf33JyI86QayKAqEbPVyjhChKFSHcC0AZvEFKJEzvIQBpG/9BO18L Czq99V6WlO53a51GTKmCWC0KNiwF7/OWGQtksPsxGWXGcb0xDB/jYwFmki7QC8LeswN8 Ufe2ZR1bniaru0ysgrZfdCbGRNxqpQP8NwkWmb9dRaFRd2mzr/hV+lIW8t6bI2EuO8ey XSVQSXz8nGhwmRfeSKJVseExRfnc44tDSiqF3PhbAQUrjg4aOjZbgACpkIDnBwgOQuRK D4qCLG+iDXF9mGYlu98+ofqPs0KkaUvLcMrbytuxnAH9dBpC6xLOgQG34gZm5GlK0bjd /dBQ== X-Gm-Message-State: AOJu0YzFja4PaHuT3SyBeiF6N95TaJZYrFD/7qnheve0fU2bfMPyNl9E BOdPfh5VDVXn3zwVSQ3CAdU= X-Google-Smtp-Source: AGHT+IEfhSyD5MG1T2+QracOLzO8iTfrvvJfL6QJsxBkTKTtYlmsKiZ5OCCw3fDFq5y70FTevIgkug== X-Received: by 2002:a05:6a21:271e:b0:13c:dee4:ceaa with SMTP id rm30-20020a056a21271e00b0013cdee4ceaamr4617031pzb.16.1691236350194; Sat, 05 Aug 2023 04:52:30 -0700 (PDT) Original-Received: from [192.168.1.9] ([103.62.92.74]) by smtp.gmail.com with ESMTPSA id w9-20020a63af09000000b00564670fea62sm2266343pge.21.2023.08.05.04.52.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 05 Aug 2023 04:52:29 -0700 (PDT) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::42d; envelope-from=ahlawatkaran12@gmail.com; helo=mail-pf1-x42d.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=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-Content-Filtered-By: Mailman/MimeDel 2.1.29 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:144619 Archived-At: On 05/08/23 16:11, Yuri Khan wrote: > 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’t observe a > difference in the block cursor size in my normal usage. This is likely > because my normal usage includes ‘global-whitespace-mode’ for most > editing modes, with a display mapping for the newline character. I > have customized the ‘whitespace-space’ face to be very unobtrusive. > > ‘whitespace-mode’ modifies the display of spaces, tab characters, and > newlines, so you can see the difference where it would not otherwise > be visible. With it enabled, from redisplay’s point of view, the > cursor is never at the end of line — instead, it’s on the glyph > substituted for the newline, so the cursor at the logical end of line > has the same height as within the line. Hello, thank you for your advice as well. Right now I've decided to try and get used to BAR cursor. If I can't though, I will most likely use whitespace mode as well, to keep it consistent overall. Cheers, Karan