From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: Filling the docstring generated by define-minor-mode Date: Mon, 10 Jun 2019 11:24:21 -0700 (PDT) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="92086"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Emacs developers To: Juanma Barranquero , Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 10 20:26:03 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 1haOza-000Nq3-U5 for ged-emacs-devel@m.gmane.org; Mon, 10 Jun 2019 20:26:03 +0200 Original-Received: from localhost ([::1]:48838 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1haOzZ-0002HP-GB for ged-emacs-devel@m.gmane.org; Mon, 10 Jun 2019 14:26:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39606) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1haOyH-0002HJ-Dd for emacs-devel@gnu.org; Mon, 10 Jun 2019 14:24:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1haOyD-0004p8-UW for emacs-devel@gnu.org; Mon, 10 Jun 2019 14:24:39 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:38936) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1haOyA-0004kp-Ow for emacs-devel@gnu.org; Mon, 10 Jun 2019 14:24:35 -0400 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x5AIOSku105273; Mon, 10 Jun 2019 18:24:28 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=HRBzMuhrKtj/if26IXbllwnir4YLUyiZLIqda3O5l50=; b=gNc5vUDS0QVoWIwNUHP77xVtTqAoIA1N2pLA1fmclaQVdIKQeZfkOWV57y7mqMY1vb/g TC05i8ty49E/tnHaO/fscFNK789Itg2kvy5nLRnTNnAr/r70pNAPrDDq43725naPivqq 1MXDrJqVFB1Yu4byt1ZyBS14OKRR7TUjcT/RKmhhPdW+h4cfkounqM57ZF3n7SzbC0fZ t9jHOPVLw6FawrxY+Iluk21fQpL3p8c2AcVY+CxeyeHpRc/a/hj6/rKWyGH4XIGnRjWf 64Q5ugUNUTkNTt7otVc1mt32oR3zhcaxMCQflG1KxpiTGdqYRxNhloSfiunBFG4HXGaO +Q== Original-Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2130.oracle.com with ESMTP id 2t04etgk1t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 10 Jun 2019 18:24:28 +0000 Original-Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x5AINMeA087550; Mon, 10 Jun 2019 18:24:27 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userp3030.oracle.com with ESMTP id 2t024tynx0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 10 Jun 2019 18:24:27 +0000 Original-Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x5AION0X020983; Mon, 10 Jun 2019 18:24:26 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4861.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9284 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906100124 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9284 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906100124 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 156.151.31.86 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:237417 Archived-At: (Caveat: Haven't been following this thread.) > > FWIW, I've usually fixed those problems by rewriting the string > > so as to make sure the %s is on a "short line". >=20 > Fair enough, but the whole docstring, not just the part in > easymode--arg-docstring, undergoes variable substitution. >=20 > For example, in this fragment >=20 > "Non-nil if %s is enabled. > See the `%s' command > for a description of this minor mode." >=20 > it's difficult to reformat it so it looks good with either very short > or very long mode names. Non-nil if you have enabled %s. For a description of this minor mode see command `%s'. Maybe more than such a change is needed. I don't know what gets substituted for %s here. Anyway, put me in the camp that thinks that the solution is manually rewriting the doc string. Blindly filling such stuff automatically asks for trouble, IMO.