unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Arthur Miller <arthur.miller@live.com>
To: martin rudalics <rudalics@gmx.at>
Cc: emacs-devel@gnu.org, Juri Linkov <juri@linkov.net>
Subject: Re: Patch proposal: display symbol source code in help buffers
Date: Thu, 23 Sep 2021 00:38:28 +0200	[thread overview]
Message-ID: <AM9PR09MB4977E4901740790DE7B74EE396A29@AM9PR09MB4977.eurprd09.prod.outlook.com> (raw)
In-Reply-To: <d74609e8-47f9-b1c1-b0d1-e069acf857bd@gmx.at> (martin rudalics's message of "Wed, 22 Sep 2021 09:49:42 +0200")

martin rudalics <rudalics@gmx.at> writes:

>> That sounds like useful approach. Something like:
>>
>> (defcustom help-buffer-default-height 25
>>    "The default height of a help-buffer window."
>>    :type 'fixnum
>>    :group 'help
>>    :version "28.1") <-- :-)
>
> Help-buffer windows are as a rule displayed via 'display-buffer' and are
> easily recognizable because their buffer is always called *Help*.  So
> you can simply add a 'window-height' action alist entry for them which
> is considerably more versatile than what you propose above.

Yes, I know; but think of new users comming from other editors and applications,
having no experience with Lisp and never heard of conses and alists.

I use display-buffer-alist to achieve something with *Help* buffer (and some
others) myself. I posted that snippet in the other thread I don't know if all
that stuff  existed back in time when original poster posted his bug repport
(2011), but at least nowadays, the bug should be marked as resolved, since it is
possible to tell Emacs to reuse Help buffer and window, instead of opening new
ones.

However, I don't think my solution to that problem, same as you suggest here,
is very convenient to new users. People are used to see some option they can
toggle on/off, some slider they can pull left right, some value they can pull
from a list or enter into some box. I think it is more helpful to see some
variable with clear and descriptive name, I think new users would appreciate
that. But that is just my opinion.

Anyway, I have read both threads you have refered too. One of them, the
Florians, (Bug#9054), is completely unrelated to what this patch does. Well it
is about help buffer, but there you are concerned with wath happens *before* user
enters the help buffer and in which way user will come to that buffer.

>        Where to pop up the location of the source and how to get rid of
> it is a question we currently discuss in Bug#9054

And that is exactly what I say above; this patch is completely not concerned
with where and how you will pop that window and source code file. I am concerned
with what happens in a help buffer, after user requested help, *not* how user come
to that point. I don't even pop a source file; just code for a function or var.

I wish to make help buffer more usable, because I wisth to go away from Helpful
and I see no reason why we should wait for something unrelated you guys had 10
years to get consensus on but didn't :). Sorry, that one was hard not to pick on
:).

I know I sound biased, but the suggested patch works above my personal
expectations. Suddenly the help buffer acts like a code browser. I really
suggest you to try and click a bit around. It wasn't my intention, since I never
do that in Helpful. I even don't know if it is possible there, but due to
back/forward functionality in built-in help buffer, it works really nice.

There is one bug I know off: it can't display code for *some* aliases, for
example 'find' which is alias for cl-find. Some other aliases works
fine. Besides that, I am very happy with it.

>                                                                   If and
> when we reach a consensus there, we can add an option to immediately
> display the source in the *Help* buffer or a window right below it

I would like to cite Eli here from the other thread, and say "life is too
short." :)

I am sure you guys will come up with something wonderful and amazing, but untill
you reach concensus, I'll go and work on some other options, because the
proposed patch is my proposal. It came up completely unrelated and independent
of that discussion, but it is touching the things you are discussing there. If
the code is bad you can improve on it and rework it, but as I understand my
proposal seems not be accepted, since I see you guys discuss options in the other
thread (Bug#36767), which I have already implemented and demoed. Nobody but
Tassilo has commented on, so I guess nobody has neither cared to try it nor see
the demo.

Anyway, thanks for your input in the other comment, it was helpful.




  parent reply	other threads:[~2021-09-22 22:38 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-19 19:50 Patch proposal: display symbol source code in help buffers Arthur Miller
2021-09-20  5:46 ` Lars Ingebrigtsen
2021-09-20  6:09   ` Stefan Kangas
2021-09-20  6:14     ` Lars Ingebrigtsen
2021-09-20  7:17       ` Ihor Radchenko
2021-09-20  7:43         ` Stefan Kangas
2021-09-20  8:29           ` martin rudalics
2021-09-20  9:04           ` Ihor Radchenko
2021-09-20 23:45             ` Arthur Miller
2021-09-21  4:16             ` Lars Ingebrigtsen
2021-09-21  6:59               ` Ihor Radchenko
2021-09-21  7:41                 ` Stefan Kangas
2021-09-21  8:38                   ` Eli Zaretskii
2021-09-21  9:17                     ` Ihor Radchenko
2021-09-21 16:49                       ` Lars Ingebrigtsen
2021-10-01  7:05                         ` Ihor Radchenko
2021-10-01  7:09                           ` Lars Ingebrigtsen
2021-10-01  7:21                             ` Ihor Radchenko
2021-10-01  7:21                               ` Lars Ingebrigtsen
2021-10-01  9:04                                 ` Ihor Radchenko
2021-10-01 12:20                                   ` Lars Ingebrigtsen
2021-10-01  7:24                           ` Eli Zaretskii
2021-10-01  9:08                             ` Ihor Radchenko
2021-10-01 10:24                               ` Eli Zaretskii
2021-10-01 14:14                                 ` Ihor Radchenko
2021-09-21  8:34               ` martin rudalics
2021-09-20 15:01           ` Arthur Miller
2021-09-21  7:41             ` Stefan Kangas
2021-09-20 15:27         ` Arthur Miller
2021-09-20  6:47     ` Eli Zaretskii
2021-09-20 15:27       ` Arthur Miller
2021-09-20 14:55     ` Arthur Miller
2021-09-21  4:18       ` Lars Ingebrigtsen
2021-09-21 10:26         ` Arthur Miller
2021-09-20 15:23   ` Arthur Miller
2021-09-20  5:59 ` Eli Zaretskii
2021-09-20  6:37   ` Gregor Zattler
2021-09-20  7:01     ` Eli Zaretskii
2021-09-20 15:21       ` Arthur Miller
2021-09-20  8:21     ` martin rudalics
2021-09-20 18:13       ` Arthur Miller
2021-09-21  8:34         ` martin rudalics
2021-09-21 10:24           ` Arthur Miller
2021-09-21 16:52             ` martin rudalics
2021-09-21 18:56               ` Arthur Miller
2021-09-21 17:30           ` Juri Linkov
2021-09-21 19:13             ` Arthur Miller
2021-09-22  7:49               ` martin rudalics
2021-09-22 16:04                 ` Juri Linkov
2021-09-22 17:52                   ` martin rudalics
2021-09-23  8:15                     ` martin rudalics
2021-09-23 15:52                       ` Juri Linkov
2021-09-26  9:10                         ` martin rudalics
2021-09-22 22:38                 ` Arthur Miller [this message]
2021-09-23  8:22                   ` martin rudalics
2021-09-20 12:19     ` Dmitry Gutov
2021-09-20 15:13       ` Arthur Miller
2021-09-20 15:11   ` Arthur Miller

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=AM9PR09MB4977E4901740790DE7B74EE396A29@AM9PR09MB4977.eurprd09.prod.outlook.com \
    --to=arthur.miller@live.com \
    --cc=emacs-devel@gnu.org \
    --cc=juri@linkov.net \
    --cc=rudalics@gmx.at \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).