From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#18992: 24.4; describe-mode Date: Sat, 8 Nov 2014 08:42:12 -0800 (PST) Message-ID: <351f43ff-d3cc-4c04-bd8a-49723c316782@default> References: <545DDF6C.9000901@easy-emacs.de> <871tpdvk10.fsf@thinkpad-t440p.tsdh.org> <62c84c79-4884-4b65-b419-0e37f96102e1@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1415465015 26149 80.91.229.3 (8 Nov 2014 16:43:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Nov 2014 16:43:35 +0000 (UTC) Cc: 18992@debbugs.gnu.org To: Tassilo Horn , Andreas =?UTF-8?Q?R=C3=B6hler?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 08 17:43:23 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xn96g-0006kQ-MZ for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Nov 2014 17:43:22 +0100 Original-Received: from localhost ([::1]:36254 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xn96g-0006Do-9R for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Nov 2014 11:43:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58289) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xn96V-0006BI-02 for bug-gnu-emacs@gnu.org; Sat, 08 Nov 2014 11:43:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xn96M-0005jd-9J for bug-gnu-emacs@gnu.org; Sat, 08 Nov 2014 11:43:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56645) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xn96M-0005jX-61 for bug-gnu-emacs@gnu.org; Sat, 08 Nov 2014 11:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xn96L-0005Dq-PT for bug-gnu-emacs@gnu.org; Sat, 08 Nov 2014 11:43:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Nov 2014 16:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18992 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18992-submit@debbugs.gnu.org id=B18992.141546493820023 (code B ref 18992); Sat, 08 Nov 2014 16:43:01 +0000 Original-Received: (at 18992) by debbugs.gnu.org; 8 Nov 2014 16:42:18 +0000 Original-Received: from localhost ([127.0.0.1]:53858 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xn95e-0005Cs-29 for submit@debbugs.gnu.org; Sat, 08 Nov 2014 11:42:18 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:27306) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xn95c-0005Cl-De for 18992@debbugs.gnu.org; Sat, 08 Nov 2014 11:42:16 -0500 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id sA8GgFUr023744 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 8 Nov 2014 16:42:15 GMT Original-Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by ucsinet22.oracle.com (8.14.5+Sun/8.14.5) with ESMTP id sA8GgE3l010883 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 8 Nov 2014 16:42:14 GMT Original-Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by userz7022.oracle.com (8.14.5+Sun/8.14.4) with ESMTP id sA8GgDBi010876; Sat, 8 Nov 2014 16:42:13 GMT In-Reply-To: <62c84c79-4884-4b65-b419-0e37f96102e1@default> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:95727 > > However, in contrast to major-modes, minor mode names tend to be > > much longer, so we can get some long lines like: > > > > Global-Edit-Server-Edit minor mode (`global-edit-server-edit- > > mode'; no indicator): >=20 > Yes, that violates *Help* conventions. It is better to use this > (or similar): ... Actually, we should do similarly for the major mode, even if major mode names (including `mode-name') *tend* to be shorter. It is good behavior for functions printing unknown stuff to *Help* to ensure that lines are not too long, when possible. Something like this: (princ " mode") (let* ((mode major-mode) (file-name (find-lisp-object-file-name mode nil))) (when file-name (princ (concat " defined in `" (file-name-nondirectory file-name) "'")) (with-current-buffer standard-output ; Hyperlink to library. (save-excursion (re-search-backward "`\\([^`']+\\)'" nil t) (help-xref-button 1 'help-function-def mode file-name)))) (with-current-buffer standard-output (insert (format " (`%s'):\n" mode)) (save-excursion (fill-region-as-paragraph (line-beginning-position 0) (line-end-position 0) nil t t))))