emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [External] : Re: command mode-specificity [was: scratch/command 064f


From: Yuan Fu
Subject: Re: [External] : Re: command mode-specificity [was: scratch/command 064f146 1/2: Change...]
Date: Wed, 17 Feb 2021 15:09:27 -0500


> 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: tagged-commands.txt
Description: Text document

Attachment: loaded-features.txt
Description: Text document


Yuan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]