From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: Filling the docstring generated by define-minor-mode Date: Tue, 11 Jun 2019 12:37:17 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="255356"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Emacs developers To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 11 12:54:55 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1haeQZ-0014L6-2V for ged-emacs-devel@m.gmane.org; Tue, 11 Jun 2019 12:54:55 +0200 Original-Received: from localhost ([::1]:56166 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1haeQX-0006hW-2f for ged-emacs-devel@m.gmane.org; Tue, 11 Jun 2019 06:54:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38148) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1haePB-0006MH-7W for emacs-devel@gnu.org; Tue, 11 Jun 2019 06:53:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1haeA8-00023i-Sh for emacs-devel@gnu.org; Tue, 11 Jun 2019 06:38:00 -0400 Original-Received: from mail-qt1-x836.google.com ([2607:f8b0:4864:20::836]:45004) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1haeA6-00021J-VL for emacs-devel@gnu.org; Tue, 11 Jun 2019 06:37:55 -0400 Original-Received: by mail-qt1-x836.google.com with SMTP id x47so13822786qtk.11 for ; Tue, 11 Jun 2019 03:37:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3hlJ1f+lsnJhqvyRovbYL/I9u2O7Xg3omlUnQ+qhlRo=; b=cQPYXT1UaFreIjfE5GSL5u70hEUwdwXX35/Mx0pYygHVVwYlPD7S2AHlDqjVwjqm+G jWfSbkv8sdnqxPJoUF7dGvnU3BYCsBk8RKDGR2zJJ79Ve6hzZjPyOAtQbttz9Eo5to1E 3unB/RtGUTDLbiHpneszLNHAVRFNdv0ovjb7wYaWdoXNgrSrzZmJdfPa123dkKACNNlR F0HyoZhNYk8dyw2Po9fEwvSmMdSF24Ck6wJV6/Gavn6TknXRvs7rv2POnZN5GT4TxD6W mkBv1cI43M0zHBMvh3e3aAQ10HnlSQQ32uckINNab7Cul+mzMDoJVP1eVFdHHGVKDbc5 UvPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3hlJ1f+lsnJhqvyRovbYL/I9u2O7Xg3omlUnQ+qhlRo=; b=tJmYhqeO1FJPcs7bBB/Eh7ySFW75YEdEcLlpXGcqrkgeDXQmCswiAcWLVkQ/fVhCmg EaE+U77MvxdW7yacY5sgLulj1wmjwiuw7Z9qOlHwxBwthvtG55DlxxG4gOyar5fJRxZl vlI5fhGY0go7SZ2bh2KdzSYHouevS+/erkw3U5CA8uNE4VYvmzzQHuF1vdsbYgtQ4TeV h29jmNhbAqfZeUwFt24ZDWEJiW2KQMTqYv+zZF0ngCUkfef6qVGqw59BJao5NbHIAyKI w3FsvX9AU2wiDOVKduz4kXicOQmP73t707wu1D7Gpix+KLtJq2xWU3JSqAByedBD+WwE 0IIw== X-Gm-Message-State: APjAAAX6TILthERqMdsogiI4Eg/D83hQG5p94cehwMh/7bKfIGfvMqwn nRheAqyatxOAv9kuALqECA9EgCg1W2hU0gCEzCEJmz5b X-Google-Smtp-Source: APXvYqw5UOhB7lGa/OgXttWZlMbCIEypgOb6LSFhCn5/zvf3F475pdsh49yByGzVp/uP4kkyBDcKRTR79eDPeyx+Mtc= X-Received: by 2002:a0c:ad1c:: with SMTP id u28mr61158052qvc.87.1560249473385; Tue, 11 Jun 2019 03:37:53 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::836 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:237431 Archived-At: On Tue, Jun 11, 2019 at 9:14 AM Stefan Monnier wrote: > [ Actually, I think we should aim for automatic refilling in the > longer run. That means using a format that unambiguously distinguishes > prose from preformatted contents. But that's another discussion. ] FWIW, I agree. Back when the argument highlighting for function docstrings was implemented, there was a bit of talk about adding some kind of markup to docstrings, but no consensus emerged. I'm all for adding markup to docstrings so we can use a variable-pitch font for normal descriptions and fixed-pitch for code, have the ability to add tables and images to docstrings, use bold and italic and faces etc if/when it would help (I'm not advocating for angry fruit salad, at least by default). With these facilities, auto-filling of normal paragraphs would make sense. But certainly, that's another discussion. BTW, do we have a way to do "visual" filling, I mean, fill variable-pitch text up to a given (visual) width? Juanma