From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ivan Shmakov Newsgroups: gmane.emacs.bugs Subject: bug#24197: Removing lisp/play from standard Emacs package Date: Wed, 10 Aug 2016 20:30:53 +0000 Message-ID: <87shuctlhe.fsf@violet.siamics.net> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1470861149 5740 195.159.176.226 (10 Aug 2016 20:32:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 10 Aug 2016 20:32:29 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cc: Otso Rajala To: 24197@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 10 22:32:24 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXaAp-0001MB-0L for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Aug 2016 22:32:23 +0200 Original-Received: from localhost ([::1]:43794 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXaAl-00027j-W1 for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Aug 2016 16:32:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60874) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXaAe-00027T-C3 for bug-gnu-emacs@gnu.org; Wed, 10 Aug 2016 16:32:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXaAY-0001Gs-9x for bug-gnu-emacs@gnu.org; Wed, 10 Aug 2016 16:32:11 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54918) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXaAX-0001GO-Uv for bug-gnu-emacs@gnu.org; Wed, 10 Aug 2016 16:32:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bXaAU-0003H7-Ey for bug-gnu-emacs@gnu.org; Wed, 10 Aug 2016 16:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ivan Shmakov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Aug 2016 20:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24197 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24197-submit@debbugs.gnu.org id=B24197.147086106512527 (code B ref 24197); Wed, 10 Aug 2016 20:32:02 +0000 Original-Received: (at 24197) by debbugs.gnu.org; 10 Aug 2016 20:31:05 +0000 Original-Received: from localhost ([127.0.0.1]:52629 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXa9Y-0003Fz-Vd for submit@debbugs.gnu.org; Wed, 10 Aug 2016 16:31:05 -0400 Original-Received: from fely.am-1.org ([78.47.74.50]:37927) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXa9W-0003Fp-EF for 24197@debbugs.gnu.org; Wed, 10 Aug 2016 16:31:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:Cc:To:From; bh=hUUMn3NvWE6m6TTNuyqq34orUVAMb4TBNHI6mGGAoIo=; b=Y6EuJr7r4RFrHBFWc75ozLsKvYfURgdSTD7rFaIBn2QXMMRH6ClGY8JAn6t4FcevpUDkEf42K0+kbPMYUMuk1MIGgW9jEhLQbuYNzOO9mFCvu3ZEZZcOBcIwKQm0eUVBvmz0dfXSjCNv//uwkbfZgYLb0lImv5cr+qOgbe4MOvw=; Original-Received: from violet.siamics.net ([2001:470:1f13:1eb::1:1d]) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.84_2) (envelope-from ) id 1bXa9V-0005z0-2a; Wed, 10 Aug 2016 20:31:01 +0000 Original-Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1bXa9O-0007Hb-C3; Thu, 11 Aug 2016 03:30:54 +0700 In-Reply-To: (Otso Rajala's message of "Wed, 10 Aug 2016 16:43:13 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:122046 Archived-At: >>>>> Otso Rajala writes: > Emacs is primarily used as a text editor. Toys shipped in lisp/play > directory are fun, no question about that. Do they belong into core > disribution of Emacs is another question. > Problems: 1) They increase package size. For less than 1=C2=A0MiB (uncompressed.) Compare to, say, lisp/org and lisp/cedet (which together take about 10% of lisp/) =E2=80=93 and those aren=E2=80=99t used by every Emacs user out there, either. > 2) Their existence clutters M-x autocomplete lists: example M-x > bu has all things buffer, but also shows bubbles and butterfly, > hardly useful during editing process. Indeed. But there=E2=80=99s a simple workaround: (fset 'butterfly nil) (fset 'bubbles nil) It=E2=80=99s also possible to exclude unwanted lisp/ subdirectories from load-path; for example: (require 'cl) ; Emacs 24.5 (setq load-path (apply 'list "~/elisp" "~/elisp/hacks" ;; Exclude directories holding unwanted packages: (let ((blacklist "/\\(calc\\|cedet\\|erc\\|mh-e\\|org\\)$")) (remove-if (lambda (dir) (string-match-p blacklist dir)) load-path)))) However, while this prevents accidental (auto)loading of the packages of no interest to the specific user, this does /not/ by itself remove the respective autoloads themselves. The latter could be accomplished with the following (though this seems a tad expensive): (mapatoms (lambda (sym) (let* ((fn (symbol-function sym)) (lib (and (autoloadp fn) (cadr fn)))) (when lib (condition-case v (find-library-name lib) (error (fset sym nil))))))) [=E2=80=A6] > Advantage of solution: 1) All problems go away Old ones go. New ones come. [=E2=80=A6] --=20 FSF associate member #7257 np. Across the Stars =E2=80=94 Pra=C5=BEsk=C3= =BD Filmov=C3=BD Orchestr