From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Supporting newer Emacs features in older Emacs versions without warnings? Date: Tue, 28 Sep 2021 08:51:19 -0400 Message-ID: References: <87ee9gjc4p.fsf@alphapapa.net> <87zgs3hdm6.fsf@tcd.ie> <8735pucxou.fsf@alphapapa.net> <87ilynxowy.fsf@tcd.ie> <87wnn19et6.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19371"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Adam Porter , emacs-devel@gnu.org To: "Basil L. Contovounesios" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 28 14:55:20 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mVCdk-0004mA-0E for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Sep 2021 14:55:20 +0200 Original-Received: from localhost ([::1]:38320 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVCdi-0000xi-QX for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Sep 2021 08:55:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38516) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVCa1-0006NC-Ro for emacs-devel@gnu.org; Tue, 28 Sep 2021 08:51:29 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:56364) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVCZw-0001KU-1B for emacs-devel@gnu.org; Tue, 28 Sep 2021 08:51:25 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id D11461002CE; Tue, 28 Sep 2021 08:51:21 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 9C3D910017A; Tue, 28 Sep 2021 08:51:20 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1632833480; bh=zovXkOJv2OmuYDcfIl/0SH0KkAmlGi9GwNPDwpu42PU=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=lEJA8GC8eKIR0EghpyFquwK96zLCrLl0Cg4jlW5X4u37//60+Bwt/xZMx0NKfDky8 /EnFkoIVG2F4Q+eksDGIEDj+zKE1PoNHh7+CVDD+anmx+9Hb8e+ujYznDFsaX+xr2d NBTM4lUhSWSFN64LfkpvvlE6prJSMZVBCs4Rl9Pq6HAjL9CLKRvIxXV2KTbW+uwMA0 LerPCcprnuNOztBKHq7+/BUllqLcs/mcb/esSTTqK4fBLi3xUVxLzenc1vQxHmwyLd ehNUq7jSJC+nZNgp194l5kRUxycMrNmkzHT8eVjHy82kO124rw4nMHgJMHqFUpBC4M EBsJZdd+XbdNg== Original-Received: from milanesa (unknown [45.72.241.23]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 3E7C112037A; Tue, 28 Sep 2021 08:51:20 -0400 (EDT) In-Reply-To: <87wnn19et6.fsf@tcd.ie> (Basil L. Contovounesios's message of "Tue, 28 Sep 2021 11:26:13 +0100") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:275688 Archived-At: >> Here I think we want something that's not buffer-local, so we'd need >> something else. Not sure what's the best option. Maybe >> >> (add-hook 'shortdoc-foo-functions #'...) >> >> ? > > It faces the same problem: shortdoc somehow needs to know about 'foo' > a priori, for interactive group name completion. No, I meant for `foo` to be something like "extra" (i.e. a fixed name that I just didn't feel like choosing at the time I wrote the example). I.e. there'd be one shortdoc hook onto which packages would hang their functions that return extra entries. So instead of iterating through the obarray you'd only iterate through the list of functions on that hook. Stefan