From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Boruch Baum Newsgroups: gmane.emacs.bugs Subject: bug#31094: Code for second solution Date: Sun, 8 Apr 2018 10:13:30 -0400 Message-ID: <20180408141330.qzrustisiaea7ozg@E15-2016.optimum.net> References: <20180408073916.d5lsceul3gpj34l3@E15-2016.optimum.net> <20180408110901.4dukaueroieovrkp@E15-2016.optimum.net> <83muydzw32.fsf@gnu.org> <20180408131700.uwh3bozuqu76xf7m@E15-2016.optimum.net> <83fu45ztuc.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1523196730 25825 195.159.176.226 (8 Apr 2018 14:12:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 8 Apr 2018 14:12:10 +0000 (UTC) User-Agent: NeoMutt/20180223 Cc: 31094@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 08 16:12:06 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f5B36-0006bJ-Tf for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Apr 2018 16:12:05 +0200 Original-Received: from localhost ([::1]:57646 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5B5C-0000CA-MG for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Apr 2018 10:14:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5B53-0000Bi-9h for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2018 10:14:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f5B50-0001rH-2X for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2018 10:14:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34720) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f5B4z-0001qr-Uq for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2018 10:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f5B4z-0002yA-Q2 for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2018 10:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Boruch Baum Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Apr 2018 14:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31094 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31094-submit@debbugs.gnu.org id=B31094.152319682511386 (code B ref 31094); Sun, 08 Apr 2018 14:14:01 +0000 Original-Received: (at 31094) by debbugs.gnu.org; 8 Apr 2018 14:13:45 +0000 Original-Received: from localhost ([127.0.0.1]:42617 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f5B4f-0002xV-GM for submit@debbugs.gnu.org; Sun, 08 Apr 2018 10:13:45 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:34647) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f5B4d-0002xJ-Hn for 31094@debbugs.gnu.org; Sun, 08 Apr 2018 10:13:40 -0400 Original-Received: from E15-2016.optimum.net ([108.6.168.221]) by mail.gmx.com (mrgmx101 [212.227.17.174]) with ESMTPSA (Nemesis) id 0LbA4j-1ecxro0JDt-00kfXP; Sun, 08 Apr 2018 16:13:33 +0200 Content-Disposition: inline In-Reply-To: <83fu45ztuc.fsf@gnu.org> X-Prov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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:145010 Archived-At: On 2018-04-08 16:54, Eli Zaretskii wrote: > > Date: Sun, 8 Apr 2018 09:17:01 -0400 > > From: Boruch Baum > > Cc: 31094@debbugs.gnu.org > > > > The first code snippet already only changes behavior when the function > > is called with either two or three universal prefix args. > > I was under the impression that the first variant was not what you were > promoting. Different strokes for different folks. Personally, I would end up using the second variant, but I wouldn't begrudge anyone the first option and they can co-exist peacefully in the code. Both are minor tweaks. > > The second snippet is controlled by a boolean defcustom variable, > > defaulting to the current long print-out behavior. > > That sounds sub-optimal to me: completely changing the behavior of a > command given an option is not the best UI, IMO. Two different > commands are better. You're over stating the behavior change of the second snippet; it changes the detail level of the output. True, as written, it 'breaks' the response to keybinding, but I consider that trivial, because the same functionality is available with `C-h v` or `C-h f', and to the benefit that the snippet is much leaner on memory. If you insist that you absolutely need that key to display the symbol's complete documentation, that can be done without rejecting the idea of the snippet, but it's a minor coding hassle for no real reason; Everyone knows `C-h v' and `C-h f' describe the symbol at point. -- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0