From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#21440: 25.0.50; Manual: FEATURE-unload-hook in (info "(elisp) Coding Conventions") Date: Mon, 12 Jul 2021 14:05:13 +0200 Message-ID: <87czrnu492.fsf@gnus.org> References: <87k2rzakd3.fsf@web.de> <871rk5le0t.fsf@gmx.de> <87r1g8syfe.fsf@gnus.org> <87bl78w5fh.fsf@web.de> <83y2abagjy.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23006"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Michael Heerdegen , michael.albinus@gmx.de, 21440@debbugs.gnu.org, stefan@marxist.se To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 12 14:06:12 2021 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 1m2uhO-0005mb-Ui for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 12 Jul 2021 14:06:10 +0200 Original-Received: from localhost ([::1]:39100 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m2uhO-0003kH-02 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 12 Jul 2021 08:06:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35748) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2uhG-0003jN-TU for bug-gnu-emacs@gnu.org; Mon, 12 Jul 2021 08:06:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53366) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m2uhG-0006lr-LP for bug-gnu-emacs@gnu.org; Mon, 12 Jul 2021 08:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m2uhG-0006xp-87 for bug-gnu-emacs@gnu.org; Mon, 12 Jul 2021 08:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Jul 2021 12:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21440 X-GNU-PR-Package: emacs Original-Received: via spool by 21440-submit@debbugs.gnu.org id=B21440.162609152526723 (code B ref 21440); Mon, 12 Jul 2021 12:06:02 +0000 Original-Received: (at 21440) by debbugs.gnu.org; 12 Jul 2021 12:05:25 +0000 Original-Received: from localhost ([127.0.0.1]:36679 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m2ugf-0006ww-8l for submit@debbugs.gnu.org; Mon, 12 Jul 2021 08:05:25 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:47888) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m2ugd-0006wh-Et for 21440@debbugs.gnu.org; Mon, 12 Jul 2021 08:05:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=0L0hQgsTS/MKKhMp2bpFtg59T9fdLtBn5yMuNwOvuT0=; b=I/Hr7ox9FVz2SCEgmmMpKNszvG fP2XLoWYIni5fpgqUkuA6lAQNLigZd7lui98FmhLPbQdtbK0ZdIjm8dCJ541ZaAYcSyt8KsmwZC6t aRQEgpC9cHs0CunLJ+cUx5I8kT6OZJ742nUEIFfBvT+Me3NBiYO2cEwfct/LmsRbwkEc=; Original-Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m2ugU-0005rW-Cq; Mon, 12 Jul 2021 14:05:16 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEUWDSYoGDNPJEyh PoD////aMRICAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+UHDAwAF/hiP5oAAAGpSURBVDjLbVSBkcMw CANPAHQBQzZI9t/tBdhJen33rpdYSAiwQ6SqrEqsRIwHzQ1VIda9WCOX17/Qz+LFGNpovaRiEi0B j5nAgIhrqBtC3N5S0jLJSfaBSHO7ap3h2rFMBkWLBVzwo9IQUonRzcCrK4IDspk8ogleXs3jSkpK xtEE6BhQO7GXklGU08uOMH+8nQ7kASdcqkoIaHvLHTuu3K3QMRswp1CO05zNU/mT1SI+oAWgLFXn 0LOMD8EmG6z7AqgAKGcnwskOsaclgp8TqiUZJ+rdAFqZWqhfuUqSFskVTWB9DbHMYirW03qAHA5G lo67Nw1YemO0cajhYcoymr3vjigBoLkpNY+1BnL4Pk1vIHVwat7Aygkfn1U2RwOzjcx1xAaoZ0nZ 0kKLLzCG7xxjnzdMJCNugO+KtcgP8ExgNPVtt1u47Oq6H1w0WN11cHekRSb+Nz/z30qygJ6K3kDx vO9ZH5wvv5kWB4PkiBr7w8JxvE5txhdQt8GFX3WsYjww7/ocjH0K/P4S5NWd1RD9Wdbh35t5023r fEO4yPM/HRAyx7+Azj+RezxNuL9l/wAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMS0wNy0xMlQxMjow MDoyMiswMDowMHllJTAAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMDctMTJUMTI6MDA6MjIrMDA6 MDAIOJ2MAAAAAElFTkSuQmCC X-Now-Playing: Boris with Merzbow's _Gensho (4)_: "Angel" In-Reply-To: <83y2abagjy.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 12 Jul 2021 14:59:45 +0300") 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" Xref: news.gmane.io gmane.emacs.bugs:209816 Archived-At: Eli Zaretskii writes: >> At least now (docstring of `unload-feature'): >>=20 >> | If a function `FEATURE-unload-function' is defined, this function >> | calls it with no arguments, before doing anything else. That function >> | can do whatever is appropriate to undo the loading of the library. If >> | `FEATURE-unload-function' returns non-nil, that suppresses the >> | standard unloading of the library. Otherwise the standard unloading >> | proceeds. >>=20 >> So it can now be controlled whether standard unloading stuff will still >> be performed (last problem mentioned in my report -> solved). Ah, right. >> This questionable paragraph is sill in the manual however: >>=20 >> =E2=80=A2 If loading the file adds functions to hooks, define a funct= ion >> =E2=80=98FEATURE-unload-function=E2=80=99, where FEATURE is the nam= e of the feature >> the package provides, and make it undo any such changes. Using >> =E2=80=98unload-feature=E2=80=99 to unload the file will run this f= unction. *Note >> Unloading::. >>=20 >> I guess it is a bit outdated and this had been automated long ago, >> although partially heuristically. > > I don't understand why you say this is outdated. What did I miss? > >> Instead it could say what typical non-standard changes need to be >> handled in an unload-function. > > Isn't that what it says? Well, it recommends writing an unload function, although this is rarely necessary. So it should say something about when it's necessary. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no