From: Yuan Fu <casouri@gmail.com>
To: Stefan Kangas <stefankangas@gmail.com>
Cc: "Óscar Fuentes" <ofv@wanadoo.es>,
"Drew Adams" <drew.adams@oracle.com>,
"emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: [External] : Re: command mode-specificity [was: scratch/command 064f146 1/2: Change...]
Date: Wed, 17 Feb 2021 15:09:27 -0500 [thread overview]
Message-ID: <092024A8-2CAA-46DD-8EBC-251821F0D01A@gmail.com> (raw)
In-Reply-To: <CADwFkmkHgAP-7XRBhS-c=9Ve70gFnfVtrM7nvyn-R0RfZY3RkA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1453 bytes --]
> On Feb 17, 2021, at 1:40 PM, Stefan Kangas <stefankangas@gmail.com> wrote:
>
> Drew Adams <drew.adams@oracle.com> writes:
>
>>>> How about just "most commands are not mode-specific"?
>>>
>>> That's not my experience.
>>
>> Stats, please.
>
> 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.
>
> We will get more such stats soon, I hope.
>
> 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.)
>
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’t fail me, we have 95% confidence that the proportion of mode-specific commands is between 54.6% and 73.4%. (p = 0.64, n=100, 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)))
[-- Attachment #2: tagged-commands.txt --]
[-- Type: text/plain, Size: 2434 bytes --]
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
[-- Attachment #3: loaded-features.txt --]
[-- Type: text/plain, Size: 3403 bytes --]
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
[-- Attachment #4: Type: text/plain, Size: 8 bytes --]
Yuan
next prev parent reply other threads:[~2021-02-17 20:09 UTC|newest]
Thread overview: 80+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-16 19:50 command mode-specificity [was: scratch/command 064f146 1/2: Change...] Drew Adams
2021-02-16 19:54 ` Stefan Monnier
2021-02-16 20:23 ` [External] : " Drew Adams
2021-02-16 20:53 ` Lars Ingebrigtsen
2021-02-16 22:05 ` Drew Adams
2021-02-16 22:15 ` Lars Ingebrigtsen
2021-02-16 22:31 ` Drew Adams
2021-02-16 22:38 ` Lars Ingebrigtsen
2021-02-16 23:22 ` Drew Adams
2021-02-17 0:35 ` Óscar Fuentes
2021-02-17 15:47 ` Eli Zaretskii
2021-02-17 15:59 ` Dmitry Gutov
2021-02-17 16:15 ` Stefan Monnier
2021-02-17 16:17 ` Eli Zaretskii
2021-02-17 19:52 ` Dmitry Gutov
2021-02-17 20:21 ` Eli Zaretskii
2021-02-17 22:05 ` Dmitry Gutov
2021-02-17 17:36 ` Óscar Fuentes
2021-02-17 18:44 ` Drew Adams
2021-02-17 17:57 ` Drew Adams
2021-02-17 2:39 ` Yuan Fu
2021-02-17 3:22 ` Eli Zaretskii
2021-02-17 0:13 ` Óscar Fuentes
2021-02-17 0:17 ` Drew Adams
2021-02-17 0:54 ` Óscar Fuentes
2021-02-17 18:11 ` Drew Adams
2021-02-17 18:40 ` Stefan Kangas
2021-02-17 19:01 ` Drew Adams
2021-02-17 20:09 ` Yuan Fu [this message]
2021-02-17 22:31 ` Lars Ingebrigtsen
2021-02-17 0:40 ` Stefan Monnier
2021-02-17 0:59 ` Óscar Fuentes
2021-02-17 11:20 ` Lars Ingebrigtsen
2021-02-17 14:01 ` Stefan Monnier
2021-02-17 14:19 ` Lars Ingebrigtsen
2021-02-17 15:20 ` Stefan Monnier
2021-02-17 15:42 ` Lars Ingebrigtsen
2021-02-17 16:12 ` Stefan Monnier
2021-02-17 18:26 ` Lars Ingebrigtsen
2021-02-17 18:47 ` Drew Adams
2021-02-17 18:41 ` Drew Adams
2021-02-17 18:28 ` Drew Adams
2021-02-17 16:07 ` Eli Zaretskii
2021-02-17 19:30 ` Lars Ingebrigtsen
2021-02-17 20:07 ` Eli Zaretskii
2021-02-17 21:00 ` Óscar Fuentes
2021-02-18 11:33 ` Lars Ingebrigtsen
2021-02-18 14:37 ` Eli Zaretskii
2021-02-18 15:53 ` Lars Ingebrigtsen
2021-02-20 13:30 ` Lars Ingebrigtsen
2021-02-20 14:43 ` Stefan Monnier
2021-02-20 14:52 ` Lars Ingebrigtsen
2021-02-20 18:00 ` Dmitry Gutov
2021-02-21 13:10 ` Lars Ingebrigtsen
2021-02-21 19:57 ` Dmitry Gutov
2021-02-19 12:09 ` [External] : " Lars Ingebrigtsen
2021-02-19 12:27 ` Eli Zaretskii
2021-02-18 16:30 ` Alan Mackenzie
2021-02-18 16:55 ` Óscar Fuentes
2021-02-18 17:08 ` Alan Mackenzie
2021-02-18 17:20 ` Óscar Fuentes
2021-02-18 17:35 ` Alan Mackenzie
2021-02-18 17:55 ` Robert Pluim
2021-02-18 18:15 ` Yuan Fu
2021-02-19 8:47 ` Robert Pluim
2021-02-19 8:55 ` Eli Zaretskii
2021-02-19 11:21 ` Robert Pluim
2021-02-19 12:25 ` Eli Zaretskii
2021-02-18 18:15 ` Alan Mackenzie
2021-02-18 19:32 ` Óscar Fuentes
2021-02-18 20:14 ` Alan Mackenzie
2021-02-18 20:24 ` Eli Zaretskii
2021-02-18 19:42 ` Eli Zaretskii
2021-02-18 19:57 ` Alan Mackenzie
2021-02-18 20:04 ` Eli Zaretskii
2021-02-19 12:10 ` Lars Ingebrigtsen
2021-02-19 12:41 ` Dmitry Gutov
2021-02-19 12:57 ` Lars Ingebrigtsen
2021-02-19 13:12 ` Dmitry Gutov
2021-02-17 19:02 ` Yuan Fu
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=092024A8-2CAA-46DD-8EBC-251821F0D01A@gmail.com \
--to=casouri@gmail.com \
--cc=drew.adams@oracle.com \
--cc=emacs-devel@gnu.org \
--cc=ofv@wanadoo.es \
--cc=stefankangas@gmail.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 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).