From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: ;;;###autoload declarations Date: Sun, 25 Jun 2023 03:55:12 +0200 Message-ID: <87o7l45mrj.fsf@web.de> References: <91a7W5OWdKtKD4A-ZeZZUeCLNTxNm82hYVDTZ-_uC1JiI1KzGZZVYF4HuUMdxyursZQ-CgIXKRziOKd2FRj9rL_7ADQ7Rjn7gu2CaCgSNA4=@proton.me> <87v8few484.fsf@web.de> <87pm5lr52f.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36980"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: help-gnu-emacs@gnu.org Cancel-Lock: sha1:DODGT/hlYf2Cxu+L/F9FG2og7v4= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 25 03:56:12 2023 Return-path: Envelope-to: geh-help-gnu-emacs@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 1qDEz5-0009S8-Ne for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 25 Jun 2023 03:56:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qDEyP-0000mo-5z; Sat, 24 Jun 2023 21:55:29 -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 1qDEyN-0000mc-MF for help-gnu-emacs@gnu.org; Sat, 24 Jun 2023 21:55:27 -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 1qDEyL-0001ry-OC for help-gnu-emacs@gnu.org; Sat, 24 Jun 2023 21:55:27 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1qDEyI-0008NQ-5X for help-gnu-emacs@gnu.org; Sun, 25 Jun 2023 03:55:22 +0200 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geh-help-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:144036 Archived-At: uzibalqa writes: > Would you see benefits in using a loaddefs file for those writing their own > minor modes and customisation files ? Autoloading could be useful if things > could be made easier to set up. Not really, unless you have tons of such stuff and want to avoid to load all of it. Even then, explicit `require' calls or manually added `autoload' calls may be better/simpler. Keep in mind that the only thing you get is that you avoid that some files are loaded into memory in sessions that don't need them. If you are the only user of this stuff this is not such a big win. And the disadvantage is that you have to remember to rebuild the loaddefs-file after changing any of the affected files. If you want to experiment in that direction, a better idea is probably to build you own packages and install them with the package manager using a local source (I never tried that myself, though). Still, I doubt it's worth the time until your goal is to share that stuff sooner or later or learn something new. Michael.