all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <incal@dataswamp.org>
To: emacs-devel@gnu.org
Subject: Re: Elisp problem 9 of 10: NOT `interactive', but INTERACTIVE!
Date: Sat, 10 Aug 2024 19:22:37 +0200	[thread overview]
Message-ID: <87ikw8z40y.fsf@dataswamp.org> (raw)
In-Reply-To: 865xs8jpf6.fsf@gnu.org

Eli Zaretskii wrote:

>> Yet do TAB complete in the minibuffer and there are so many
>> functions anyway it is impossible to find anything.
>> Do `apropos-function' for "end-of" you get 212 lines of
>> output, everything from w3m, to slime, to rmail.
>
> You forgot about "C-h a" (apropos-command).

Indeed, this 'meaningful' distinction is everywhere, it is all
over Emacs, massive.

But actually there are 399 lines for C-h a `end-of'.

I have forgotten what it was we were doing with 'end-of', but
my own software is useful here. Well, here is what it says,
anyway (I should make that scrollable, but it is nowhere near
399 lines, forget about it.

---------------------------------------  
POS          SYMBOL          WRDS  H  P
---------------------------------------  
 1. end-of-line              0.80  2  3
 2. end-of-buffer            0.80  2  3
 3. end-of-defun             0.80  2  3
 4. end-of-sexp              0.80  2  3
 5. end-of-thing             0.80  2  3
 6. end-of-paragraph-text    0.67  2  3
 7. end-of-visual-line       0.67  2  3
 8. end-of-visible-line      0.67  2  3
 9. markdown-end-of-subtree  0.67
10. outline-end-of-subtree   0.67
11. org-end-of-item          0.67
12. mark-end-of-buffer       0.67
13. c-end-of-macro           0.67
14. bibtex-end-of-field      0.67
15. sh-end-of-command        0.67
16. sldb-end-of-backtrace    0.67
17. diff-end-of-file         0.67
18. c-end-of-statement       0.67
19. bibtex-end-of-string     0.67
20. bibtex-end-of-entry      0.67
21. calendar-end-of-month    0.67
22. markdown-end-of-defun    0.67
23. eshell-end-of-output     0.67
---------------------------------------

As for forgetting about `apropos-command', oh, no, I'm aware
of it, but there are tons of stuff. Yeah, let's use
`fun-names' for just "command", then!

Indeed, a lot of stuff no one ever heard of. But you can guess
what most does. `command-apropos' is on position 15.

--------------------------------------
POS         SYMBOL          WRDS  H  P
--------------------------------------
 1. command-query           0.67  1  1
 2. command-line            0.67  1  1
 3. command-execute         0.67  1  1
 4. command-modes           0.67  1  1
 5. command-remapping       0.67  1  1
 6. command-history         0.67  1  1
 7. command-apropos         0.67  1  1
 8. read-command            0.67
 9. describe-command        0.67
10. enable-command          0.67
11. eshell-command          0.67
12. process-command         0.67
13. nnimap-command          0.67
14. disable-command         0.67
15. apropos-command         0.67
16. shell-command           0.67
17. command-execute--query  0.50  1  1
18. command-line-1          0.50  1  1
19. vc-git-command          0.50
20. eshell-command-started  0.50
21. tex-summarize-command   0.50
22. set-mark-command        0.50
23. shell-command-sentinel  0.50
--------------------------------------

Just for sport, let's do it with `apropos-command' as well.
Ha! 197 lines, with `apropos-command' on line 14.

In this case, I'm not gonna bother with false modesty, my tool
is much more pleasant, better. Anyone wants to colorize, make
those links interactive buttons, speak to me (by mail).
Not because you like me, but if you like the tool, I mean.
I checks out for every linter but our man at ELPA, I don't
think he as much time with everyone sending him packages.
So it hasn't appeared, but I hope it will, soon! But no
stress, everything - always - in time.

Version @ 6.13.4:
  https://dataswamp.org/~incal/elpa/fun-names.el
  git clone https://dataswamp.org/~incal/fun-names.git

Meanwhile, `apropos-command' reports on line 68:

  erc-command-indicator-toggle-hidden

Yeah, probably that is the one when we search for 'command' :)

Or maybe

  Electric-command-history-redo-expression

the third line suggested :)

But to bring this thread back on topic, here is what
`fun-names' report for 'interactive'. Yeah, just crazy.

`whitespace-interactive-char' anyone?

--------------------------------------------
POS            SYMBOL             WRDS  H  P
--------------------------------------------
 1. interactive-p                 0.67  1  1
 2. interactive-form              0.67  1  1
 3. checkdoc-interactive          0.67
 4. gnus-interactive              0.67
 5. slime-interactive-eval        0.50
 6. sql-product-interactive       0.50
 7. checkdoc-message-interactive  0.50
 8. checkdoc-ispell-interactive   0.50
 9. cconv--interactive-helper     0.50
10. eshell-interactive-filter     0.50
11. url-interactive-p             0.50
12. find-tag-interactive          0.50
13. eshell-interactive-print      0.50
14. whitespace-interactive-char   0.50
15. oclosure-interactive-form     0.50
16. ad-interactive-form           0.50
17. advice--interactive-form      0.50
18. eshell-interactive-process    0.50
19. mh-interactive-range          0.50
20. checkdoc-interactive-loop     0.50
--------------------------------------------

But enough trash talking `apropos' which will, I can say even
now, not appear on the top 10 list.

-- 
underground experts united
https://dataswamp.org/~incal




  reply	other threads:[~2024-08-10 17:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-10 16:19 Elisp problem 9 of 10: NOT `interactive', but INTERACTIVE! Emanuel Berg
2024-08-10 16:47 ` Eli Zaretskii
2024-08-10 17:22   ` Emanuel Berg [this message]
2024-08-10 17:50     ` Eli Zaretskii

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=87ikw8z40y.fsf@dataswamp.org \
    --to=incal@dataswamp.org \
    --cc=emacs-devel@gnu.org \
    /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.