From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.devel Subject: Re: Elisp problem 9 of 10: NOT `interactive', but INTERACTIVE! Date: Sat, 10 Aug 2024 19:22:37 +0200 Message-ID: <87ikw8z40y.fsf@dataswamp.org> References: <87le14z6xu.fsf@dataswamp.org> <865xs8jpf6.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26744"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: emacs-devel@gnu.org Cancel-Lock: sha1:wcgdHKAK1ZniNX6sDsoC8zXvVzE= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Aug 10 19:44:18 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1scq8Y-0006ox-4i for ged-emacs-devel@m.gmane-mx.org; Sat, 10 Aug 2024 19:44:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1scq7h-0007Wu-Fl; Sat, 10 Aug 2024 13:43:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1scpns-0004ir-0A for emacs-devel@gnu.org; Sat, 10 Aug 2024 13:22:56 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1scpnq-0008WL-0s for emacs-devel@gnu.org; Sat, 10 Aug 2024 13:22:55 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1scpnl-00082F-Ba for emacs-devel@gnu.org; Sat, 10 Aug 2024 19:22:49 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Mail-Copies-To: never Received-SPF: pass client-ip=116.202.254.214; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 10 Aug 2024 13:43:23 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:322622 Archived-At: 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