From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#50839: 28.0.50; Odd things in comp-ctxt doc string Date: Mon, 27 Sep 2021 02:51:09 -0700 Message-ID: References: <87mtnymrmx.fsf@gnus.org> <87ilymmrje.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17491"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Andrea Corallo To: Lars Ingebrigtsen , 50839@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 27 11:52:33 2021 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 1mUnJI-0004LF-QF for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Sep 2021 11:52:32 +0200 Original-Received: from localhost ([::1]:51342 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUnJH-0003z5-Gk for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Sep 2021 05:52:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57486) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUnIo-0003XV-BH for bug-gnu-emacs@gnu.org; Mon, 27 Sep 2021 05:52:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56351) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUnIo-0003Sa-3A for bug-gnu-emacs@gnu.org; Mon, 27 Sep 2021 05:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mUnIn-0000kN-SD for bug-gnu-emacs@gnu.org; Mon, 27 Sep 2021 05:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Sep 2021 09:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50839 X-GNU-PR-Package: emacs Original-Received: via spool by 50839-submit@debbugs.gnu.org id=B50839.16327362782812 (code B ref 50839); Mon, 27 Sep 2021 09:52:01 +0000 Original-Received: (at 50839) by debbugs.gnu.org; 27 Sep 2021 09:51:18 +0000 Original-Received: from localhost ([127.0.0.1]:39664 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUnI6-0000jD-BX for submit@debbugs.gnu.org; Mon, 27 Sep 2021 05:51:18 -0400 Original-Received: from mail-pj1-f54.google.com ([209.85.216.54]:35530) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUnI4-0000ir-Sm for 50839@debbugs.gnu.org; Mon, 27 Sep 2021 05:51:17 -0400 Original-Received: by mail-pj1-f54.google.com with SMTP id d13-20020a17090ad3cd00b0019e746f7bd4so9710960pjw.0 for <50839@debbugs.gnu.org>; Mon, 27 Sep 2021 02:51:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=pojz6xXUGGDl0FIgk4py7OgVc3eTKFEoHXN7z4HJarU=; b=QavUS8V0N6hpSB9G+xf2Gv964uJZKJXqs4AEDCvt4t2KPVggHwfyYIAnESCqbQ4rt0 SW3OStaq7QKExkHMvdD/SCh8uqiC77oIvjv4oepKMw3Ih+6H+3f7pdYS3c3lSROKJfh0 GpJbaNKMR2ciNXfU9EsEOmSUO2wcI79mNUlvuTRsf93ycRs5HTNj+ZjV0BDQaaTE2RDf OGfAo9xP5r+YeoZJt2BSCrRzcsud3lG2AEGMe2IvSc9ANzX8gDr69YzpliTwn9alVnDo s+hEHUhWyeGD0OS6ZKRiD+zOJgNB6e8wKih/A2RzFvXNlykCPY5nIciScrspanqopJ1h aaoA== X-Gm-Message-State: AOAM530UEnfAivoQKoyWwHENJ2AmRJTMmvPJnF5i/Hn2t+Ob/QF6vnAK KpiSw77v7sb17gLagmRHwGMKyDks3tbmy1aqGC0= X-Google-Smtp-Source: ABdhPJwJlPiIb27QjuaOh0IrAxHkKbJav2b8Hh0+KSUy8l21qS+2PBNuwirT7F8D8Az6QaE3v3vRGbmG9X2dZfuaJhw= X-Received: by 2002:a17:90b:3805:: with SMTP id mq5mr18765568pjb.143.1632736269985; Mon, 27 Sep 2021 02:51:09 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 27 Sep 2021 02:51:09 -0700 In-Reply-To: <87ilymmrje.fsf@gnus.org> 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:215645 Archived-At: tags 50839 fixed close 50839 28.1 thanks Lars Ingebrigtsen writes: > Lars Ingebrigtsen writes: > >> But looking at the actual help buffer, I get the stuff below. >> >> It looks like bits of the doc strings have been replaced with... odd >> things? "lambdas" is now "lamcomp-func.dbdas". And also the >> "byte-funCL-X.ction" thing. I haven't debugged any further; perhaps >> it's obvious to someone what's going on. (I've added Andrea to the CCs.) > > Oh, and this started happening after Stefan K's long-doc-string warning > enablement in lambda, so perhaps it's related to that (or perhaps that > just makes the problem more obvious). (So I've added him to the CCs, too.) Thanks, this is now fixed on master in commit 3d2d7e8ea2. This was caused by trying to fill an entire paragraph as if it were a single line. Here, I really wish we could use `cl-assert' in subr.el, to do something like this in `internal--format-docstring-line': (cl-assert (not (string-match "\n" string))) Do we have anything like that, or do we just do something like this instead? (and (string-match "\n" string) (error "Contains newline: %s" string)) Maybe this is okay as this should pretty much only be called from macros?