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: Thu, 26 Nov 2020 16:19:53 +0200 Message-ID: <83h7pcqjxy.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32450"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 44858@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 26 15:21:22 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 1kiI9B-0008Kv-59 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Nov 2020 15:21:21 +0100 Original-Received: from localhost ([::1]:58908 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiI98-0003mv-KO for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Nov 2020 09:21:18 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58854) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiI8s-0003kP-58 for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2020 09:21:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57092) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kiI8r-0005Ms-Ty for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2020 09:21:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kiI8r-0008DK-Q9 for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2020 09:21: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: Thu, 26 Nov 2020 14:21: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.160640042131500 (code B ref 44858); Thu, 26 Nov 2020 14:21:01 +0000 Original-Received: (at 44858) by debbugs.gnu.org; 26 Nov 2020 14:20:21 +0000 Original-Received: from localhost ([127.0.0.1]:40405 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiI8C-0008C0-QT for submit@debbugs.gnu.org; Thu, 26 Nov 2020 09:20:21 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40360) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiI8A-0008Bl-38 for 44858@debbugs.gnu.org; Thu, 26 Nov 2020 09:20:19 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42886) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiI84-0004xE-Q5; Thu, 26 Nov 2020 09:20:12 -0500 Original-Received: from [176.228.60.248] (port=3549 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kiI84-0007iU-4H; Thu, 26 Nov 2020 09:20:12 -0500 In-Reply-To: (message from Stefan Kangas on Tue, 24 Nov 2020 17:36:34 -0800) 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:194332 Archived-At: > From: Stefan Kangas > Date: Tue, 24 Nov 2020 17:36:34 -0800 > > For `substitute-command-keys', it would be nice to get it to work, but I > don't think we can know the values of keymaps at compile-time. Possibly > there is a good solution for this, but I couldn't find it. How about some simplified heuristics, like assume that the expansion takes no more than N characters (where N could be something like 5)? This should work in, like, 80% of cases, I think.