From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +NSECFgMm2EcUAAAgWs5BA (envelope-from ) for ; Mon, 22 Nov 2021 04:19:52 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id OI4wBFgMm2HPeQAA1q6Kng (envelope-from ) for ; Mon, 22 Nov 2021 03:19:52 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AEAB0339E4 for ; Mon, 22 Nov 2021 04:19:51 +0100 (CET) Received: from localhost ([::1]:45574 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mozry-00029K-Sl for larch@yhetil.org; Sun, 21 Nov 2021 22:19:50 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50418) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mozrX-00028v-Uf for emacs-orgmode@gnu.org; Sun, 21 Nov 2021 22:19:23 -0500 Received: from [2607:f8b0:4864:20::433] (port=46958 helo=mail-pf1-x433.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mozrV-00014Z-V3 for emacs-orgmode@gnu.org; Sun, 21 Nov 2021 22:19:23 -0500 Received: by mail-pf1-x433.google.com with SMTP id o4so14802929pfp.13 for ; Sun, 21 Nov 2021 19:19:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:references:user-agent:in-reply-to :message-id:mime-version; bh=k9FrajOKFXfAwp7CIR8tHVkRf2HfBNfSQUEl9rFln8A=; b=jDXkItBnDr6cxF2l3Hdy7X2ILkauBvoPnqGlSZ08VK2WKODgiK5B/AwSxFeHAj1P1K uBuq9uqJ0DCgs2Ik7AqHClrAvlUkGPenn10WhqG4+QZ/IdKQMSzUx805hVfIsc+rop8Z v8mCRwtwPxCcMNibLbxwAm7gwVCj0I77mzpFMh2dVRbW81VfA2H8Sq7ii13rH1tof18z lRd0p9gp4oejMnWdmCsbqSsnqa/NEyb7qBpPwO5ds6fA1tiIp46C6DZcOO3EYtY/p5KB X0Tu8+HjyhAWQUb/JUutKsUQetp3hCwtEM6OiGX6OEtKb1a8kKFOuAv8DB0B+9nlqyEb Wvzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:references:user-agent :in-reply-to:message-id:mime-version; bh=k9FrajOKFXfAwp7CIR8tHVkRf2HfBNfSQUEl9rFln8A=; b=omhwmDzDbvSlMpWaTa7nwTyLlVuVJCV9sMJGZqHZ4+eM5QdeBzPEAMe+ppNo3KTEqD zQcw5wIpFbUSvWvpJaAbZ8zy7lOuWHtRVAVs84mxCvTvZGX315z2zDWDzt/0EnfkwWFv JmlxeBNJV0N4VO/MeHKUswWBNy/aKCeDKNHXWFynuSKNyOh7CH8qZSAXFmxWjhjLZHFL 7tdAbRTpCjd4SkDq9nUOa/rXQpGVyuvarsTM6Dij31gNnZzzo2Ihni1g1GOA7mAEwnzG knEsTO/Ls3SQcY4SHkjy8r09ThSeBP/wdvcbs7XkXFZS1l8FCOpND20HSDODVPVdoTvJ urIQ== X-Gm-Message-State: AOAM533BVfJwjAEKJo849ceYCxndFxIKhNyk0UZICwt8TGYOK4ZzVld/ lbtPqVEw5SwyhIfOO6cLsPE= X-Google-Smtp-Source: ABdhPJyd/1UHygm+fHjJti+7RYSiVjtNEvdj1yjPlv28lxIud58eYLCnrOy2zumpFZcflIyku59GQQ== X-Received: by 2002:a05:6a00:99b:b0:49f:eab4:4e7e with SMTP id u27-20020a056a00099b00b0049feab44e7emr41315732pfg.63.1637551160409; Sun, 21 Nov 2021 19:19:20 -0800 (PST) Received: from localhost (61-245-128-160.3df580.per.nbn.aussiebb.net. [61.245.128.160]) by smtp.gmail.com with ESMTPSA id g128sm6280573pfb.115.2021.11.21.19.19.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Nov 2021 19:19:19 -0800 (PST) From: Timothy To: Nicolas Goaziou Subject: Re: [PATCH] Fix window width when line numbers present Date: Mon, 22 Nov 2021 11:16:52 +0800 References: <87fsrpuzal.fsf@gmail.com> <87lf1h71vn.fsf@gmail.com> <87zgpxtdx2.fsf@nicolasgoaziou.fr> User-agent: mu4e 1.6.9; emacs 28.0.50 In-reply-to: <87zgpxtdx2.fsf@nicolasgoaziou.fr> Message-ID: <87h7c47u8b.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::433 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::433; envelope-from=tecosaur@gmail.com; helo=mail-pf1-x433.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Matt Huszagh , emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1637551191; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=k9FrajOKFXfAwp7CIR8tHVkRf2HfBNfSQUEl9rFln8A=; b=SKWmrgtuIjUuHqTsWjoy5mersOpy92e+Oys42KB36cmnv9ubPlOUMp/tfVo+c4bxZhDSy8 MN9rcvOwqq9s1Evw9gjrGqP8mR0AY+AUqBoMDFkP6Njn5HjaJlm43xSH3fAj3wHwY1MnX/ 02PLMxTZXj5cLuUhpxjaLDSzBKgDdBn0fEvu8MlKLdeOAiTpYpKwuTXwjADVFScAlBBD7Y wws230eaux2ZDQZMRCSi0Fb/Drp9l0bd5/oZwyYXPQh4YbumuoLlkgu7FZwdrfaOFbIoh5 lq91G/uAWNYf9prCTrVU+UMhmMuuHofxSTMCVzm5BvYbnE+qn3Q+KUMvTjsAXA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637551191; a=rsa-sha256; cv=none; b=t4pJS0/8kMR1BQ4wtYbxs+bBxPAr9CqNcJqm6HAzwASoUO5V0/8xXzqym2fdbESRllBFvK p14UWLZuYOTyd7CpbEYypmMMW9dilkOX30GFqPaikiynYmMbf7nsvUthYM3oKRQU5MmMg3 VZXoXyBRK1OD1I5Bohz6J1A1UkrHFe6TV7ypqFbSe2yXgPbefMeYjzSpvqf4gwb/o/ONJt iKpiPJa9QGz/IFm4/UXut/w/FaRYqrT39CsSY05oas+Rb68EndvcRlNi+VEg5U3MQkqYK4 ZT+Dvpc68uImLdblGvmQFINS7UgS/5+ykw365RNmOaBlhtd51NBYEqeKmVHylg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=jDXkItBn; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.08 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=jDXkItBn; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: AEAB0339E4 X-Spam-Score: -3.08 X-Migadu-Scanner: scn0.migadu.com X-TUID: mIqMz9Vxsvgh --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Nicolas Goaziou writes: > `line-number-display-width=E2=80=99 is Emacs 26+. So I guess it is unfort= unately > not acceptable on main branch. Ooops, thanks for picking that up Nicolas. I see we actually have =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 (if (fboundp 'line-number-display-width) =E2=94=82 (defalias 'org-line-number-display-width 'line-number-display= -width) =E2=94=82 (defun org-line-number-display-width (&rest _) 0)) =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 in org-compat.el, but I think that fallback definition could be improved = =E2=80=94 even just `(or display-line-numbers-width 0)' would be better. All the best, Timothy --=-=-=--