From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: [External] : Re: command mode-specificity [was: scratch/command 064f146 1/2: Change...] Date: Wed, 17 Feb 2021 15:09:27 -0500 Message-ID: <092024A8-2CAA-46DD-8EBC-251821F0D01A@gmail.com> References: <87tuqbft57.fsf@telefonica.net> <87lfbnfr8x.fsf@telefonica.net> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_60A4C8D6-0AB8-4A53-8B48-8F7DE7AD860C" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12641"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?utf-8?Q?=C3=93scar_Fuentes?= , Drew Adams , "emacs-devel@gnu.org" To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Feb 17 21:11:02 2021 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 1lCTA5-0003BG-St for ged-emacs-devel@m.gmane-mx.org; Wed, 17 Feb 2021 21:11:01 +0100 Original-Received: from localhost ([::1]:55642 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCTA4-0006kR-TY for ged-emacs-devel@m.gmane-mx.org; Wed, 17 Feb 2021 15:11:00 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCT8e-0005fE-Sd for emacs-devel@gnu.org; Wed, 17 Feb 2021 15:09:32 -0500 Original-Received: from mail-qk1-x72a.google.com ([2607:f8b0:4864:20::72a]:42375) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lCT8c-0003ZK-C6 for emacs-devel@gnu.org; Wed, 17 Feb 2021 15:09:32 -0500 Original-Received: by mail-qk1-x72a.google.com with SMTP id z190so8165493qka.9 for ; Wed, 17 Feb 2021 12:09:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=s8PisiIRW3ePfumkJbPdrBprZp3I4VN7yXtZ0q/FhE0=; b=jpYcvrun7+3k5GfwEporLmqn2dTRKlbKCAA0zhYCPd5aNiidXwUospjbnn2wVqzj8D AgiMfWyndjfQ94PlBMs8+1bMQ8es3OUvjoaSKfkeIio345uQwuxIK/n1KkarLs8MUxj7 HZvE/hByGa0k2jEg0KuXRL9LHoEbHFwlGqkYIo2mqw+v8O+0tApOLO78WVB07yPeGSdY JoYoMNT9MDAk7PKaie9NUUBO8xa5a9vFQKA3J+oaGPCFYL7BELRZjko0GxdMnZipIklR 5lUz26RRmKN5lJQ8ZOWBVAYkGlidxOd6XK4q33zWwnyR2yGITeYcYtMRoeqa1avAqoHA DROQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=s8PisiIRW3ePfumkJbPdrBprZp3I4VN7yXtZ0q/FhE0=; b=cbHgtLdyVz+t7uZQ/B5Ee9gWgyC9ebXUYevOD25knKz024+F+SrUR6wNaR8PglTsx/ FMYv7sfNr1xCGNtzLYU05DQ4b4WgLIG4jVTgj8XIW3pRC+zKTdTcIqz0z5D3fXFaDgq3 c+cFMPF8Avip8RWA2z5NQPAEmWhwJxCN76df7uJTW2DAfd8HzAvxmXTDc4Xp1hx0dkNJ PEOXrYLAjwwwOiNN3+FJvASMOwEaDH+MqKGk9byyY2ruoXOOOr6YyVYhuu1XZ0EvYK7y /JIgM9jCbAOrrxkueb707fTX+AVZ/qbWLZYIS/h7sLkc/rq9tNN+HNM9mAtUX5FGurj+ NU2w== X-Gm-Message-State: AOAM532OKZ93Yj7PPzK5EbLmBcsFoZpekrsIBMsAb4CahOvmk24AeMyB brbKJgZTZelDZFozWiEkcvM= X-Google-Smtp-Source: ABdhPJzWSwKMqGWVCMsOFm+GCUXsv6zz6RD4i1tSZ1hTvJIImVT7nsZpI5QsoDgzVEuFydZh+zCwTQ== X-Received: by 2002:a37:a8cc:: with SMTP id r195mr902863qke.151.1613592569358; Wed, 17 Feb 2021 12:09:29 -0800 (PST) Original-Received: from ?IPv6:2601:98a:4102:3d80:5420:7923:759f:d94c? ([2601:98a:4102:3d80:5420:7923:759f:d94c]) by smtp.gmail.com with ESMTPSA id d14sm1988971qtc.25.2021.02.17.12.09.28 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Feb 2021 12:09:28 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3654.60.0.2.21) Received-SPF: pass client-ip=2607:f8b0:4864:20::72a; envelope-from=casouri@gmail.com; helo=mail-qk1-x72a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:265073 Archived-At: --Apple-Mail=_60A4C8D6-0AB8-4A53-8B48-8F7DE7AD860C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Feb 17, 2021, at 1:40 PM, Stefan Kangas = wrote: >=20 > Drew Adams writes: >=20 >>>> How about just "most commands are not mode-specific"? >>>=20 >>> That's not my experience. >>=20 >> Stats, please. >=20 > I don't think such stats exist until we get more experience tagging > things up. See Lars' and Stefan M's recent posts where we have the > figures 50-75 % and 90 %, respectively. >=20 > We will get more such stats soon, I hope. >=20 > PS. Lars' stats department is still sayin' 97 %, though. Not sure > what's up with those guys, but they also produced some interesting > stats here: https://lars.ingebrigtsen.no/2019/10/11/2x10/ > (Search for "I'm from finance" and you will find it.) >=20 FWIW, I randomly selected 100 commands among all 1285 (from gnus, org, = and other packages I have loaded at the time) and tagged them. Among = them 64 are mode-specific commands. If my stat classes and wikipedia = didn=E2=80=99t fail me, we have 95% confidence that the proportion of = mode-specific commands is between 54.6% and 73.4%. (p =3D 0.64, n=3D100, = using confidence interval of binomial distribution) Command selection code: (let ((command-list (seq-filter #'commandp obarray)) elt sample) (dotimes (_ 100) (setq elt (seq-random-elt command-list)) (setq command-list (remove elt command-list)) (push elt sample)) (dolist (x sample) (print x))) --Apple-Mail=_60A4C8D6-0AB8-4A53-8B48-8F7DE7AD860C Content-Disposition: attachment; filename=tagged-commands.txt Content-Type: text/plain; x-unix-mode=0644; name="tagged-commands.txt" Content-Transfer-Encoding: 7bit n gnus-article-edit-mode s gnus-uu-digest-mail-forward n vc-git-grep s edebug-visit-eval-list n global-sidebar-mode s shell-dynamic-complete-filename s org-agenda-filter-by-regexp s org-columns-content s dired-do-copy-regexp s 2C-associate-buffer s gnus-summary-insert-cached-articles n vc-dir-search s gnus-start-date-timer n yas-global-mode s org-remove-inline-images n ghelp-describe-1 s vc-dir-mark-registered-files s rmail-forward s org-update-checkbox-count s zeft-previous s gnus-uu-decode-unshar-and-save-view s calendar-beginning-of-week s comint-kill-region n highlight-changes-mode n magit-commit-squash s company-other-backend n make-face-italic s rmail-summary s org-todo n iscroll-forward-line n counsel-unicode-char s package-menu-mark-upgrades n finder-by-keyword n ert-delete-all-tests s counsel-down-directory n magit-commit-create s org-agenda-bulk-unmark-all n pdf-virtual-view-mode n org-backward-paragraph s org-indent-drawer s org-agenda-refile s bibtex-empty-field s sage-shell-sagetex:compile-current-file n hs-toggle-hiding n org-table-cut-region s magit-next-line s yas-prev-field s bookmark-bmenu-backup-unmark s ghelp-switch-to-page s pr-customize s org-babel-examplify-region n org-bibtex-search s Info-mouse-follow-link n ns-popup-font-panel s bookmark-bmenu-other-window s org-agenda-date-earlier-minutes s org-metaleft s diff-hunk-next s diary-chinese-insert-entry s org-agenda-date-later-hours s calendar-forward-month n winner-undo n calendar s org-texinfo-export-to-texinfo n isolate-long-change s org-agenda-clockreport-mode n custom-theme-visit-theme s bibtex-pop-next n common-lisp-mode s Buffer-menu-unmark-all-buffers n project-eshell s gnus-article-fill-cited-article s org-agenda-set-property s gnus-article-highlight-citation s org-agenda-filter-remove-all n turn-on-rxt-mode n edebug-toggle-disable-breakpoint s gnus-group-news s gnus-summary-followup-to-mail s counsel-org-agenda-headlines s yas--minor-mode-menu s ert-results-toggle-printer-limits-for-test-at-point s org-update-dblock n epa-list-secret-keys s org-agenda-limit-interactively n yas-tryout-snippet s org-columns-move-right n counsel-compile-edit-command n flymake-disabled-backends s tab-bar-handle-mouse n org-table-insert-hline s package-menu-describe-package s shell-forward-command s org-babel-result-hide-all n ns-paste-secondary s iimg-export s org-paste-subtree s widget-end-of-line n lm-synopsis n epa-insert-keys --Apple-Mail=_60A4C8D6-0AB8-4A53-8B48-8F7DE7AD860C Content-Disposition: attachment; filename=loaded-features.txt Content-Type: text/plain; x-unix-mode=0644; name="loaded-features.txt" Content-Transfer-Encoding: 7bit gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mail-utils mm-util mail-prsvr ffap tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell parse-time ls-lisp etags fileloop generator ob-ditaa ob-plantuml ol-bibtex bibtex iso8601 org-crypt org-habit org-agenda org-clock org-colview org-refile bklink quanjiao iscroll iimg zeft pulse cl-print face-remap cus-edit misearch multi-isearch server bug-reference bookmark executable vc-mtn vc-hg vc-git vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs add-log form-feed checkdoc lisp-mnt diff-hl vc-dir vc vc-dispatcher diff-mode hideshow company-dabbrev-code company-dabbrev company-files company-capf keyfreq minibuf-eldef so-long cus-load kinsoku jka-compr cyberpunk-theme light-theme theme-util no-littering svg dom xml ghelp ghelp-eglot ghelp-helpful ghelp-builtin derived outline+ color-outline pause utility transform which-func ivy-xref yasnippet eglot array filenotify jsonrpc ert pp ewoc debug flymake-proc flymake warnings flycheck flyspell ispell expand-region text-mode-expansions the-org-mode-expansions er-basic-expansions thingatpt expand-region-core expand-region-custom ws-butler minions savehist buffer-move windmove hl-todo highlight-parentheses rainbow-delimiters elec-pair winner aggressive-indent recentf-ext recentf tree-widget wid-edit which-key company helpful imenu trace edebug backtrace info-look f dash-functional help-fns radix-tree elisp-refs s dash org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete pcomplete org-list org-faces org-entities time-date noutline outline org-version ob-emacs-lisp ob-core ob-eval org-table ol org-keys org-compat org-macs org-loaddefs format-spec find-func cal-menu calendar cal-loaddefs counsel xdg advice xref project dired dired-loaddefs compile text-property-search comint ansi-color swiper cl-extra help-mode ivy delsel ring ivy-faces ivy-overlay colir color finder-inf edmacro kmacro proof-site proof-autoloads rx info tex-site lunary luna-key luna-load-package pcase cowboy package easymenu browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core eieio-loaddefs password-cache json map url-vars lunary-ui easy-mmode cl-macs subr-x cl-loaddefs cl-lib luna-local luna-f seq byte-opt gv bytecomp byte-compile cconv iso-transl tooltip cus-start eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns lcms2 multi-tty make-network-process emacs --Apple-Mail=_60A4C8D6-0AB8-4A53-8B48-8F7DE7AD860C Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Yuan --Apple-Mail=_60A4C8D6-0AB8-4A53-8B48-8F7DE7AD860C--