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: master 49192e9: Strip "(fn...)" from output of `describe-mode' (bug#38222) Date: Fri, 22 Nov 2019 16:45:29 -0500 Message-ID: References: <20191119101930.28082.63466@vcs0.savannah.gnu.org> <20191119101931.EA4E2209BF@vcs0.savannah.gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="179154"; 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 Fri Nov 22 22:46:56 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 1iYGlT-000kTI-Fk for ged-emacs-devel@m.gmane.org; Fri, 22 Nov 2019 22:46:55 +0100 Original-Received: from localhost ([::1]:55100 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iYGlR-0000mk-Pg for ged-emacs-devel@m.gmane.org; Fri, 22 Nov 2019 16:46:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36996) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iYGkM-0000lO-Gm for emacs-devel@gnu.org; Fri, 22 Nov 2019 16:45:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iYGkI-0001BR-Ot for emacs-devel@gnu.org; Fri, 22 Nov 2019 16:45:45 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:32803) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iYGkG-0001Am-FQ for emacs-devel@gnu.org; Fri, 22 Nov 2019 16:45:41 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 2FB9F44A117; Fri, 22 Nov 2019 16:45:38 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id B127044A108; Fri, 22 Nov 2019 16:45:36 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1574459136; bh=RPP2cPu0gTiYnIJbQr+JT9uMkIW/PUEhAOK+AgCnIxo=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=j3GnKAW+Eq2oJjO2VJV1GxdgngzEOh95odcR48UEXTnv6npLgOKhlvxfEDYrIsold GCOtrjZ4piiA9Yhq0WO/mAfwAh0w09AYh2ClO2WhY8h1Ov+62vzyERfbERhLzv8IfJ 14ri4GP6JfcEyHUSKdj/lyQ2knRj0MxDtAJLG5pY+RTHFA5+iRCXybZrSEmUYIkVG/ OB/1JK8YixOR852QMLRsfvM4R0lMDL7ldUodlXrx3st5R002LwU4YatIKJHU/OR96T 5k08hCpoDqzPJRGpTcQ9yFCHot4fG411QuVYvTMkq/ePY1fAQQG8AJttF0qBokf1km tOvHsNSXCesew== Original-Received: from pastel (unknown [45.72.130.4]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 2D6D71211AF; Fri, 22 Nov 2019 16:45:36 -0500 (EST) In-Reply-To: (Juanma Barranquero's message of "Fri, 22 Nov 2019 21:00:01 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] 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:242628 Archived-At: > For example, take a look at this code from > semantic-grammar-eldoc-get-macro-docstring: > > (let* ((doc (help-split-fundoc (documentation expander t) expander))) > (cond > (doc > (setq doc (car doc)) > (string-match "\\`[^ )]* ?" doc) > (setq doc (concat "(" (substring doc (match-end 0))))) So it's just not an option, thanks for looking at it. > A far less intrusive option IMHO would be to add an optional argument > SECTION, with SECTION = nil as it is now, and SECTION 'usage or 'doc > returning only that part. And if it's just t it could always return a pair. Sounds good. Stefan