From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#13841: 24.3.50; Regression - unreadable `C-h k' help Date: Sun, 09 Feb 2014 23:31:46 -0800 Message-ID: <87sirr1l0d.fsf@building.gnus.org> References: <98E304F5436E487A91B33E89A04A5851@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1392017651 4363 80.91.229.3 (10 Feb 2014 07:34:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Feb 2014 07:34:11 +0000 (UTC) Cc: 13841@debbugs.gnu.org To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 10 08:34:18 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 1WClNi-0002wW-1W for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Feb 2014 08:34:18 +0100 Original-Received: from localhost ([::1]:53900 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WClNh-0002kY-FQ for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Feb 2014 02:34:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WClNY-0002kP-2q for bug-gnu-emacs@gnu.org; Mon, 10 Feb 2014 02:34:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WClNT-0000GA-2E for bug-gnu-emacs@gnu.org; Mon, 10 Feb 2014 02:34:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48089) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WClNS-0000G6-VP for bug-gnu-emacs@gnu.org; Mon, 10 Feb 2014 02:34:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WClNS-0003Pj-5q for bug-gnu-emacs@gnu.org; Mon, 10 Feb 2014 02:34:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Feb 2014 07:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13841 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13841-submit@debbugs.gnu.org id=B13841.139201760113066 (code B ref 13841); Mon, 10 Feb 2014 07:34:02 +0000 Original-Received: (at 13841) by debbugs.gnu.org; 10 Feb 2014 07:33:21 +0000 Original-Received: from localhost ([127.0.0.1]:33875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WClMm-0003Oc-AE for submit@debbugs.gnu.org; Mon, 10 Feb 2014 02:33:21 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:37926) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WClMj-0003OS-AQ for 13841@debbugs.gnu.org; Mon, 10 Feb 2014 02:33:18 -0500 Original-Received: from [204.14.154.233] (helo=building.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1WClMS-0000fj-4H; Mon, 10 Feb 2014 08:33:00 +0100 In-Reply-To: <98E304F5436E487A91B33E89A04A5851@us.oracle.com> (Drew Adams's message of "Thu, 28 Feb 2013 09:01:09 -0800") User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3.50 (gnu/linux) X-MailScanner-ID: 1WClMS-0000fj-4H MailScanner-NULL-Check: 1392622383.37546@S60pOjDauIjhU73NNkO6SQ 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:85241 Archived-At: "Drew Adams" writes: > C-h k > > Then choose menu item Options > Line Wrapping in This Buffer > Truncate > Long Lines. > > You see binary output instead of useful help: > > runs the command #[nil > "ILLEGIBLE, INCOMPREHENSIBLE BINARY INCANTATIONS" [visual-line-mode > word-wrap 0 nil toggle-truncate-lines 1] 2 nil nil], which is an > interactive compiled Lisp function. > > It is bound to . > > (anonymous) > > Not documented. > > For reference wrt this regression, this is what Emacs 23.4 shows > instead - much more readable and helpful: > > runs the command > (lambda nil (interactive) (if visual-line-mode (visual-line-mode 0)) > (setq word-wrap nil) (toggle-truncate-lines 1)), which is an > interactive Lisp function. > > It is bound to . Perhaps that's just because it didn't byte-compile the function? So we're making progress. Anyway, if we put lambdas into menus, `C-h k' isn't very helpful: (bindings--define-key menu [truncate] `(menu-item "Truncate Long Lines" ,(lambda () (interactive) (if visual-line-mode (visual-line-mode 0)) (setq word-wrap nil) (toggle-truncate-lines 1)) :help "Truncate long lines at window edge" :button (:radio . (or truncate-lines (truncated-partial-width-window-p))) :visible (menu-bar-menu-frame-live-and-visible-p) :enable (not (truncated-partial-width-window-p)))) I think the right solution here would be for `C-h k' just to say that it's an anonymous function and leave it at that. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/