From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Filling the docstring generated by define-minor-mode Date: Mon, 10 Jun 2019 14:33:05 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="173718"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Emacs developers To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 10 20:44:54 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 1haPHp-000j4g-G4 for ged-emacs-devel@m.gmane.org; Mon, 10 Jun 2019 20:44:54 +0200 Original-Received: from localhost ([::1]:48898 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1haPHo-0006ln-Gj for ged-emacs-devel@m.gmane.org; Mon, 10 Jun 2019 14:44:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43762) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1haPGa-00060m-P8 for emacs-devel@gnu.org; Mon, 10 Jun 2019 14:43:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1haP6U-0002In-UW for emacs-devel@gnu.org; Mon, 10 Jun 2019 14:33:11 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:62099) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1haP6U-0002Hl-LV for emacs-devel@gnu.org; Mon, 10 Jun 2019 14:33:10 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id EFF99443566; Mon, 10 Jun 2019 14:33:08 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id DDD87443551; Mon, 10 Jun 2019 14:33:07 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1560191587; bh=lTtXzYzjaNfrOk0O8FWR/syi7et1YOIh9bDs2Lr5NgA=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=i/+OqLHoTN1KtSQ69crpgHm8/0OZ5+gYSMDUnYDz23s6qZfBjlaKjLVE1vsfhiYEn ysESy7zR04HXK0jAwInF9SUzTxs+WU8TVJykW52AthvONQ+78OOZGAxvYCfz3B7tm8 V5t6/0BcJp6ohcRh0tnsAUpZmEUDpbO0D0XdagQfR5v2Qsn6XphALtrJAdOyqYgwwt UDMMf+5dmOZ5UnRCGEc5JmMgrDBbUM/HF5CKFuN40NXA2wS/9+8AxAXqkNa/gvaEO6 wZbGv/vyKNmlUz6BTIMi/oNPh2y/w2UqCkvr+rYgeoPWtKq7cGZUuoOHY4H5hDVtHO ijwQIVTMHpbUQ== Original-Received: from alfajor (unknown [216.154.16.220]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 3225512082E; Mon, 10 Jun 2019 14:33:07 -0400 (EDT) In-Reply-To: (Juanma Barranquero's message of "Mon, 10 Jun 2019 20:08:44 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 132.204.25.50 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:237418 Archived-At: > Fair enough, but the whole docstring, not just the part in > easymode--arg-docstring, undergoes variable substitution. Yes, doing it manually sometimes result in awkward results. Also, it's easy to forget one aspect. Filling is probably a better solution in that it's more general (of course, that presumes there's no embedded code examples which could be mis-filled, but in this particular case it seems like a non-issue). Stefan