From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#56808: 29.0.50; Elusive display problem on macOS Date: Thu, 28 Jul 2022 18:12:53 +0300 Message-ID: <83r1258e4q.fsf@gnu.org> References: <83r125ai2n.fsf@gnu.org> <83czdpacoi.fsf@gnu.org> <83v8rh8ikg.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35057"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56808@debbugs.gnu.org To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 28 17:13:44 2022 Return-path: Envelope-to: geb-bug-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 1oH5Cq-0008xt-CK for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Jul 2022 17:13:44 +0200 Original-Received: from localhost ([::1]:44318 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oH5Cp-00049v-9N for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Jul 2022 11:13:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oH5CA-00047l-Bd for bug-gnu-emacs@gnu.org; Thu, 28 Jul 2022 11:13:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41299) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oH5CA-0005bB-1y for bug-gnu-emacs@gnu.org; Thu, 28 Jul 2022 11:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oH5C9-0000nh-Rj for bug-gnu-emacs@gnu.org; Thu, 28 Jul 2022 11:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Jul 2022 15:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56808 X-GNU-PR-Package: emacs Original-Received: via spool by 56808-submit@debbugs.gnu.org id=B56808.16590211753062 (code B ref 56808); Thu, 28 Jul 2022 15:13:01 +0000 Original-Received: (at 56808) by debbugs.gnu.org; 28 Jul 2022 15:12:55 +0000 Original-Received: from localhost ([127.0.0.1]:59281 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oH5C3-0000nK-16 for submit@debbugs.gnu.org; Thu, 28 Jul 2022 11:12:55 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51118) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oH5Bz-0000n4-DI for 56808@debbugs.gnu.org; Thu, 28 Jul 2022 11:12:53 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51040) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oH5Bu-0005TL-4O; Thu, 28 Jul 2022 11:12:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=FPvZLVybk3n3v3nxTldyryp6esh/g0c0GKDFrABcJFU=; b=CZluFJp+dyWL/5cv4eUl x2bXMZp4EsGnyhAO7hOF24R7LGLywYfG69M6F3HYxnXcK4Kf0DyzNlOv2htKym+qT2cPZYQO+IJp6 pHNmT/kejN548ZjKBcVmp6R+CrUM8lErObTdrs87cspDNXNfuvdP4MG6dQedHm0dmDMZK1GkzbsXb fZohqGPuSi24G5GlrrwpyzJRZKyhqVyVeOC/4wblv48v5f7TFE0nEa2HQoYWcHmSxUx9sIM7kNIB4 2yxRLThnjI9ir6W0OsIgH2S/P9bmwPGSSuPOcppS4EVINg5a6d3CjX6AcKV1sObVOfQHNzf3G8Cuu l6bR31Aq+ozKpQ==; Original-Received: from [87.69.77.57] (port=1981 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oH5Bs-0002sq-4D; Thu, 28 Jul 2022 11:12:45 -0400 In-Reply-To: (message from Gerd =?UTF-8?Q?M=C3=B6llmann?= on Thu, 28 Jul 2022 17:04:59 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:238118 Archived-At: > From: Gerd Möllmann > Cc: 56808@debbugs.gnu.org > Date: Thu, 28 Jul 2022 17:04:59 +0200 > > Eli Zaretskii writes: > > > M-? (a.k.a. xref-find-references) cannot find it? > > No it doesn't. Apparently it doesn't use the lsp backend. Don't know > if it should. It shouldn't, but why do you need LSP? xref-find-references has local alternatives for that, e.g. ID-Utils or Grep. > >> glyph = macfont_get_glyph_for_character (font, ' '); > >> if (glyph != kCGFontIndexInvalid) > >> font->space_width = macfont_glyph_extents (font, glyph, NULL, NULL, 0); > >> else > >> /* dirty workaround */ > >> font->space_width = pixel_size; > >> > >> I don't think the else branch has been taken, because that wouldn't lead > >> to a value of 8. > > > > Maybe you should run with a watchpoint on font->space_width. > > I suspect that it's really 8 at some point during startup, and that it > isn't overwritten. The reason for this is that the two places above are > the only ones assigning to space_width, which I trust clangd to know. Then how did you get 7 in the other image you posted?