From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: John Shahid Newsgroups: gmane.emacs.devel Subject: Re: History info in C-h f Date: Sat, 29 Sep 2018 11:18:26 -0400 Message-ID: <87h8i849j1.fsf@gmail.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1538234198 9902 195.159.176.226 (29 Sep 2018 15:16:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 29 Sep 2018 15:16:38 +0000 (UTC) User-Agent: mu4e 1.1.0; emacs 27.0.50 Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 29 17:16:33 2018 Return-path: Envelope-to: ged-emacs-devel@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 1g6Gyv-0002Um-Jz for ged-emacs-devel@m.gmane.org; Sat, 29 Sep 2018 17:16:33 +0200 Original-Received: from localhost ([::1]:51296 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6H12-0008Dz-1P for ged-emacs-devel@m.gmane.org; Sat, 29 Sep 2018 11:18:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6H0v-0008Ds-Qs for emacs-devel@gnu.org; Sat, 29 Sep 2018 11:18:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g6H0r-00032r-93 for emacs-devel@gnu.org; Sat, 29 Sep 2018 11:18:37 -0400 Original-Received: from mail-qt1-x82c.google.com ([2607:f8b0:4864:20::82c]:41991) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g6H0q-00032N-OV for emacs-devel@gnu.org; Sat, 29 Sep 2018 11:18:32 -0400 Original-Received: by mail-qt1-x82c.google.com with SMTP id z8-v6so9763198qto.9 for ; Sat, 29 Sep 2018 08:18:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=8379ccp/iT885CIyisKBv8s9gxr+UdXe387Gmf7VhyU=; b=VKHUUs3jBdSsQ4jMsAGWs87EUonma8krhFaVE6wOVuCMZXhDQzsgnnX/nEEnGxjzr9 T0wcJJY4nt/APUcxYHCZxbsGPLzVhP9a2BQOxldLx3jswb2kyvsQ6GmQ22SrUtabntCX ylwDgTSg0uy4IvwKftd+5RcsP3ObamYk0KgBQfV3VweQz2CQ+CVPlIgsZkNDJ5rEVVkd GHjDqtuAuLjzimAihGvoQGlXcNV4F6U+7rh9hdS6ldL4JKZsoFk6kruJYzWX7QXJNKdR 7Wb3B1FoAdrb0b1npu1CAfyOqbwAuHB641Bbw9f7IOEEnnWDF4EPSOxe/GnwPZLDKAq2 5IgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=8379ccp/iT885CIyisKBv8s9gxr+UdXe387Gmf7VhyU=; b=eIWj168Y3W9sZ979JaaZUNS2/4DzoI+/NGjuXeotbl0+U7zrb3YzefZaTG8HC0R6im uP6Bdn5+p+eSmZwznTLvJYZqr+JCHa7ZyJG0IQDLQGVE91ahiN9hjB3x5X8syCZKDCGN xfBTXBVr33veGkekoQNtCYrb5diRwX1M9fGI3UFWyqBEsXUokk69+ba4VlIix6fSyGj6 75HX6d3GsAan78kEevZWLprYRwgFT0si/99TPDmMMDVzMsQrOYvHGTkTeL8cKZU++NEX bS2cSXuFBsEq0nub9WljMh6elL75XlJkNYBDQJftCLfcSlpf+y8WhoLGUbE7gu5/st+X 3woQ== X-Gm-Message-State: ABuFfoiigAWzcjeAsKtMYQE/p9g6GayjMXn4IYsVYqK9/b/1bt61NoKL kzlQvH1U53QqWFNf3QYDbkdxakAF X-Google-Smtp-Source: ACcGV62yE7PvqvWSKejE+szY2AfGvAIJ1WZCVA+tKKSZAHBPCeARiNMD4LMQVnIi+BUSGBoIo2PXWw== X-Received: by 2002:a0c:95a3:: with SMTP id s32-v6mr2590661qvs.199.1538234311532; Sat, 29 Sep 2018 08:18:31 -0700 (PDT) Original-Received: from amun (cpe-104-162-86-217.nyc.res.rr.com. [104.162.86.217]) by smtp.gmail.com with ESMTPSA id x34-v6sm715452qth.86.2018.09.29.08.18.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Sep 2018 08:18:30 -0700 (PDT) In-reply-to: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::82c X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:230142 Archived-At: Stefan Monnier writes: > Not sure if we should install this, especially since it's far from > reliable, but I've just whipped up the code below and figured some of > you might like it. That is very useful thanks. I wanted to know the minimum version of Emacs that introduced `string-join' recently and had to grep for it in the NEWS file. Although grepping isn't that hard, having that information available on the help page is useful imho. > With this hack (which can go into your ~/.emacs), `C-h f defmacro` > dutifully informs you that `defmacro` was added to Emacs-1.2 (at least, > if you're on `master` and have upgraded very recently), whereas `C-h > f advice-add` informs you that it was only introduced in Emacs-24.4. Does it make sense to add a feature to `defun'. I'm thinking another optional min version arg that would set a property on the symbol. That can be used by "C-h f" to display the minimum version. I can see that being useful to package/library maintainers and not just Emacs. [...] > + (error "Ref found in non-versioned section in %S" > + (file-name-nondirectory f)) I had to get rid of this error, otherwise "C-h f" won't work on primitves (e.g. `defun' that is used to document other features) or symbols that are found in NEWS.1-17