all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: 13841@debbugs.gnu.org
Subject: bug#13841: 24.3.50; Regression - unreadable `C-h k' help
Date: Sun, 09 Feb 2014 23:31:46 -0800	[thread overview]
Message-ID: <87sirr1l0d.fsf@building.gnus.org> (raw)
In-Reply-To: <98E304F5436E487A91B33E89A04A5851@us.oracle.com> (Drew Adams's message of "Thu, 28 Feb 2013 09:01:09 -0800")

"Drew Adams" <drew.adams@oracle.com> 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:
>
> <menu-bar> <options> <line-wrapping> <truncate> 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 <menu-bar> <options> <line-wrapping> <truncate>.
>
> (anonymous)
>
> Not documented.
>
> For reference wrt this regression, this is what Emacs 23.4 shows
> instead - much more readable and helpful:
>
> <menu-bar> <options> <line-wrapping> <truncate> 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 <menu-bar> <options> <line-wrapping> <truncate>.

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/





  reply	other threads:[~2014-02-10  7:31 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-28 17:01 bug#13841: 24.3.50; Regression - unreadable `C-h k' help Drew Adams
2014-02-10  7:31 ` Lars Ingebrigtsen [this message]
2016-04-28 22:37   ` Lars Ingebrigtsen
2016-04-29 16:22     ` Drew Adams
2016-04-30 11:46       ` Michael Heerdegen
2016-04-30 15:37         ` Drew Adams
2016-04-30 15:52           ` Eli Zaretskii
2016-05-01 13:50             ` Michael Heerdegen
2016-05-01 15:09               ` Eli Zaretskii
2016-05-01 15:13                 ` Lars Ingebrigtsen
2016-05-01 15:43                   ` Eli Zaretskii
2019-10-09  3:28                     ` bug#20157: " Lars Ingebrigtsen
2019-10-09 10:57                       ` Michael Heerdegen
2019-10-09 18:57                         ` Lars Ingebrigtsen
     [not found]       ` <<87inyze2tq.fsf@web.de>
     [not found]         ` <<4e02c2a0-6e68-4091-a64d-131bcfc2fc49@default>
     [not found]           ` <<83wpnfnlf1.fsf@gnu.org>
2016-04-30 17:20             ` Drew Adams
2016-04-30 17:29               ` Eli Zaretskii
     [not found]       ` <<<87inyze2tq.fsf@web.de>
     [not found]         ` <<<4e02c2a0-6e68-4091-a64d-131bcfc2fc49@default>
     [not found]           ` <<<83wpnfnlf1.fsf@gnu.org>
     [not found]             ` <<f6490f90-dac1-4e7f-bb98-34877820dcb6@default>
     [not found]               ` <<83inyzngx7.fsf@gnu.org>
2016-04-30 18:14                 ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sirr1l0d.fsf@building.gnus.org \
    --to=larsi@gnus.org \
    --cc=13841@debbugs.gnu.org \
    --cc=drew.adams@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.