From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#53981: 28.0.91; shortdoc: Add support for outline-minor-mode Date: Wed, 09 Nov 2022 14:47:56 -0500 Message-ID: References: <86k045b70e.fsf@mail.linkov.net> <83a651xmx8.fsf@gnu.org> <86leokujlb.fsf@mail.linkov.net> <83a650t4jt.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37060"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: mail@daniel-mendler.de, 53981@debbugs.gnu.org, Juri Linkov To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 09 20:49:35 2022 Return-path: Envelope-to: geb-bug-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 1osr4o-0009Sa-QP for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Nov 2022 20:49:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1osr4L-0005XY-FQ; Wed, 09 Nov 2022 14:49:05 -0500 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 1osr4J-0005Wi-BO for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2022 14:49:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1osr4J-0006f4-2y for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2022 14:49:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1osr4I-0000Rw-Uq for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2022 14:49:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Nov 2022 19:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53981 X-GNU-PR-Package: emacs Original-Received: via spool by 53981-submit@debbugs.gnu.org id=B53981.16680232861618 (code B ref 53981); Wed, 09 Nov 2022 19:49:02 +0000 Original-Received: (at 53981) by debbugs.gnu.org; 9 Nov 2022 19:48:06 +0000 Original-Received: from localhost ([127.0.0.1]:40945 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osr3O-0000Q1-6R for submit@debbugs.gnu.org; Wed, 09 Nov 2022 14:48:06 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:42124) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osr3M-0000P4-EK for 53981@debbugs.gnu.org; Wed, 09 Nov 2022 14:48:04 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id D1BD68088B; Wed, 9 Nov 2022 14:47:58 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 42F9580258; Wed, 9 Nov 2022 14:47:57 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1668023277; bh=VhPK59Az7dEKgl2BdNmE6cfDWU/hR1fPb2bVic20cco=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=ZFpjOlP6kCb/LmUHQ9jiirh5RAX7c4ViMDerSE3uRwIXwMZxt/Zhq2GuiuwXyiEnP JSXkBQCcQSVXU1qeOO1hIygSw4YeH/2duAUkswfjth8ybaV1D0chu8bUfyV0VBFIFJ VVwBOu7t2bpZAE2H4S2AXltbf6AakNDKQmQNahElT7rZ9eEgQLJtr0X3O06kdeTiv4 yMuoIPWjuOdwOIiKWSaE1svN/2SKCZBWeAWrFOfxRPVJa0AVoyFF1e49ka96Wnw9Dq yQRnQooAwrnVpCD2Lrs7zTdPK5J1ZIgvcjInSS2pe+m+aQRK9YPEiJl7Rd9GQTD3uz Qw/kJ6hQLT2YA== Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 31E60120689; Wed, 9 Nov 2022 14:47:57 -0500 (EST) In-Reply-To: <83a650t4jt.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 09 Nov 2022 19:34:46 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:247462 Archived-At: >> BTW, the patch uses functions from text-property-search.el. >> But these useful functions are still not autoloaded. >> Here is the patch to autoload them: > > I don't necessarily disagree, but do we have any policies or > guidelines regarding when to autoload a function? It saves us a > 'require', but what we "gain" instead is a (small) inflation of the > base memory footprint of the Emacs process. So it isn't free. > > Lars, Stefan, any comments? For interactive functions, it's usually decided by whether the command can be useful before the package is loaded (i,e,. usually an entry point to the package). For functions (i.e. exported from what is basically a library), the same kind of tradeoff applies: - is it likely that this one autoload will let other packages use this library without a `require` at all (e.g. `define-inline`), or will we end up needing N autoloads anyway? - how commonly is this library used (i.e. is it worth carrying the N autoloads in every Emacs session, compared to having to write `require` in a handful of files). Stefan