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#44858: [PATCH] Make byte-compiler warn about wide docstrings Date: Fri, 11 Dec 2020 10:16:15 +0200 Message-ID: <83eejw3ghc.fsf@gnu.org> References: <87zh34wfxo.fsf@gnus.org> <87v9dss2ic.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37654"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 44858@debbugs.gnu.org, larsi@gnus.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 11 09:17:13 2020 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 1kndc1-0009fL-Hf for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 11 Dec 2020 09:17:13 +0100 Original-Received: from localhost ([::1]:49720 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kndbz-0003PE-MG for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 11 Dec 2020 03:17:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kndbq-0003Om-07 for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2020 03:17:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56554) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kndbp-0003LR-PA for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2020 03:17:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kndbp-0004qr-Ks for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2020 03:17:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Dec 2020 08:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44858 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 44858-submit@debbugs.gnu.org id=B44858.160767460118614 (code B ref 44858); Fri, 11 Dec 2020 08:17:01 +0000 Original-Received: (at 44858) by debbugs.gnu.org; 11 Dec 2020 08:16:41 +0000 Original-Received: from localhost ([127.0.0.1]:39867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kndbU-0004qA-Jf for submit@debbugs.gnu.org; Fri, 11 Dec 2020 03:16:40 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kndbT-0004pr-7R for 44858@debbugs.gnu.org; Fri, 11 Dec 2020 03:16:39 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58149) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kndbO-000393-0D; Fri, 11 Dec 2020 03:16:34 -0500 Original-Received: from [176.228.60.248] (port=1314 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kndbN-0000AO-83; Fri, 11 Dec 2020 03:16:33 -0500 In-Reply-To: (message from Stefan Kangas on Thu, 10 Dec 2020 15:53:13 -0600) 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:195727 Archived-At: > From: Stefan Kangas > Date: Thu, 10 Dec 2020 15:53:13 -0600 > Cc: 44858@debbugs.gnu.org > > +(defun internal--fill-string (str) > + "Fill string STR to `fill-column'. > +This is intended for very simple filling while bootstrapping > +Emacs itself, and does not support all the customization options > +of fill.el (for example `fill-region')." > + (if (< (length str) fill-column) <<<<<<<<<<<<<<<<<<<<<<<<< Can we use string-width here instead of length? If this will work during bootstrap, it is preferable, I think.