From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Helm Newsgroups: gmane.emacs.bugs Subject: bug#21835: 25.0.50; cursor height wrong when line-spacing is used Date: Mon, 21 Mar 2016 17:03:42 +1300 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1458533125 30684 80.91.229.3 (21 Mar 2016 04:05:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Mar 2016 04:05:25 +0000 (UTC) To: <21835@debbugs.gnu.org> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 21 05:05:14 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ahr5d-0007pM-KB for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Mar 2016 05:05:13 +0100 Original-Received: from localhost ([::1]:55477 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahr5c-0002Sy-P2 for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Mar 2016 00:05:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahr5X-0002ST-Io for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2016 00:05:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ahr5T-0000yJ-HV for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2016 00:05:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58984) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahr5S-0000y5-3S for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2016 00:05:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ahr5R-00031a-TU for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2016 00:05:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Nick Helm Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Mar 2016 04:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21835 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21835-submit@debbugs.gnu.org id=B21835.145853304711559 (code B ref 21835); Mon, 21 Mar 2016 04:05:01 +0000 Original-Received: (at 21835) by debbugs.gnu.org; 21 Mar 2016 04:04:07 +0000 Original-Received: from localhost ([127.0.0.1]:56110 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ahr4Y-00030M-Pn for submit@debbugs.gnu.org; Mon, 21 Mar 2016 00:04:06 -0400 Original-Received: from mail-sg2apc01on0111.outbound.protection.outlook.com ([104.47.125.111]:18752 helo=APC01-SG2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ahr4V-0002zo-Vl for 21835@debbugs.gnu.org; Mon, 21 Mar 2016 00:04:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenpointcomms.onmicrosoft.com; s=selector1-tenpoint-co-nz; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=lLnzKiKiDm6oO4ac7gJ4AjqhjZxLynI0zJBjy8gIU7I=; b=VcrGQN0s/JiSUTvGYVLHWkh/sSVAyMj5KJ+A0hSb1xmUVd+jMOoD/wQgfZJ4kdfdn0KCbk8gZoRAwxRfDT0sP9+pxQgPAPBUdt3xdBOwR8xEDEphbUN0iM1CVEQBHSiuH+bhbKJG7NrKrL2bVTGwRQyJdiIXxxm0z2XL7zoJPlE= Authentication-Results: debbugs.gnu.org; dkim=none (message not signed) header.d=none;debbugs.gnu.org; dmarc=none action=none header.from=tenpoint.co.nz; Original-Received: from jupiter (125.239.121.153) by MEXPR01MB0277.ausprd01.prod.outlook.com (2a01:111:e400:7006::15) with Microsoft SMTP Server (TLS) id 15.1.434.16; Mon, 21 Mar 2016 04:03:48 +0000 X-Originating-IP: [125.239.121.153] X-ClientProxiedBy: ME1PR01CA0041.ausprd01.prod.outlook.com (2a01:111:e400:5150::51) To MEXPR01MB0277.ausprd01.prod.outlook.com (2a01:111:e400:7006::15) X-MS-Office365-Filtering-Correlation-Id: 629fb3e7-d80f-4db2-2224-08d3513dce72 X-Microsoft-Exchange-Diagnostics: 1; MEXPR01MB0277; 2:j+mkFjDzenYS+o6nAIYWCFim/G/iRaqDblcHDDAXHG6OLydUoertS2jXDeaygE8VlGRqeaFZfNQDlV4w47Ee3H42JaERBe/P2pbWudBJ2r1TsGZM3gIdqQnYTFeqKIQzxrAwQ1VDsqtWSNewnacX9urrIP63ty5KR1JNnMLlc6ZsyhoGfPCGXZ4+i8EqYiqf; 3:ih9MpU/fiIA45YOrutJBuH5jb3UxMSaJ37M0AZde1siyRTc9DLo37DinFEBzpWwtiJyFtTmm/+cuMwiovQ1K8XGJE1SpS9/NbTJhmFuWmqE1Evo2QcdyYysud8wOmqVy; 25:QfU5wpGBtODzyDDGTYPv6ajEp1lxo1/A0hz3rA1iEFbk4l7rBUHW9OZQpEKNOmLnqwGGARYgKJxUXu9NNDm29CJvWWdpOFxyypY92cGF0NUg1ak+Oz3qRvrVrIF8USAckgVgWi81JKspqCDUZMXValivhaE1SVhMmmTsnc9kKf+IDbSdibjmAbDq5NaSiG2fSujeqcWGHMeAyM4o8aMuNH8IvSfpS1g9fos9sPXBp2Tjill5ChNAiCqaV1CQk/gzfG1K5oH25gtDnJU+ewcu7v4u6UlFCKCR2C8A0mbfZnX6aGphuQHXRV+f/hkEIcL8JNi4Uk+olHRbavP+XJZiZCX2Cxi+FKzGG+iaOyhOaMxWqSFPllkWhcLIEvWs6SKhiPojDTPV60HxNic5zQjuUEARWb1bLqfkCnGX2DJ8GcFT9+qPS/hQdWHFbYr9Nc/CI0ca8sJJ/3m6+YryoQagEduZ2PF+4vpdMp3w3v1K9yq0Zd3aH/0JP//uKSu1PJmn X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:MEXPR01MB0277; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040046)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6041046)(6043046)(6042046); SRVR:MEXPR01MB0277; BCL:0; PCL:0; RULEID:; SRVR:MEXPR01MB0277; X-Microsoft-Exchange-Diagnostics: 1; MEXPR01MB0277; 4:uYFLIH/PCTcKhoxvkmheU32SF0uORqJ/mJPu/bF2+JSLCNPjXYNWM914cOrsIUwUwsFW3QxtJC+pL1cpeNAqGEc2TwHHSND4vQuouRcHRnmcCt4DwiEAAPJGLrOoNzC3Z8z3DI8EV54mKXXYbgRdU2bqVQDKBH7eAJKVJ4ra//3PefFF4vJB4pNy9JnUl7rbsIzuPabypiKDJoesH+NyiOiL44soHQW75/H+qKm5z0PjR/2cG3nXu5HuNU68SXciXygTha890uEaOiM0wznZKYWQMJG4t9lQjsfxNorFAm0YXkv2YczeGsHO0sVcybYAOjOd8ezOPwW29zZ7b1EeCmJWD+BTt62Yhh/R3SUvZzTomtahZlLqwuJRQsEYWUIJscxj1r1/Vzjzou2HUyNFB0kNHJEASmufzVDNOI+did8= X-Forefront-PRVS: 0888B1D284 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(5423002)(42186005)(2906002)(74482002)(107886002)(110136002)(5003940100001)(189998001)(50466002)(5008740100001)(19580395003)(450100001)(6116002)(1096002)(54356999)(5004730100002)(48376002)(86362001)(81166005)(36756003)(92566002)(50986999)(3846002)(2351001)(47776003)(586003)(66066001)(33646002); DIR:OUT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AiqYlxGdnar+T1gVBdd7lhHTpJ86HIjJUkrf3h6QHOPI2aPOggP88mi8HjvPC22doJ/PTJ1xQ==; 24:XdWAfdhFm2VnauRpNcCjCi5CDV0yF4t59hlqdT9bORqb3rgziWcCVdZV0M3a1gSV44EN0toab7bXGK7uEDQ5uOgrB+ehgpNb46Zc38m83ls= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: tenpoint.co.nz X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2016 04:03:48.5625 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: MEXPR01MB0277 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:115208 Archived-At: I also have set line-spacing in my init.el. I like how the size of the cursor now reflects the size of the glyph under point - it avoids many of the problems of badly designed typefaces. However, I also find the changing EOL cursor-height size between line-body and line-end quite jarring while writing and editing. Could the EOL cursor-height be set to the height of the tallest glyph in the line? In Emacs 24, my understanding is that cursor-height = line-height, where line-height was determined by adding the height of the tallest glyph in the line to the top and bottom vertical spacing. This is the same, just without the spacing. Alternatively, how about setting the EOL cursor-height to the same height as the last *displayable* glyph in the line, but with a lower size boundary? If there are no displayable glyphs in the line or the line is empty, could the height of the closest previous displayable glyph be used, even if it's on an earlier line? If the buffer is empty or contains no displayable glyphs, use (default line-height - line-spacing). If none of that's possible or causes more grief than it's worth, how about also letting the user arbitrarily set the cursor height? There'd need to be some boundaries, perhaps a percentage of line-height, but this might also work well for some people and fonts.