From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Akib Azmain Turja Newsgroups: gmane.emacs.devel Subject: Re: Where has a cool feature gone? Date: Sat, 23 Jul 2022 16:56:01 +0600 Message-ID: <87sfmsumgu.fsf@disroot.org> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30915"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: Davin Pearson Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jul 23 13:05:08 2022 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 1oFCwW-0007oB-R4 for ged-emacs-devel@m.gmane-mx.org; Sat, 23 Jul 2022 13:05:08 +0200 Original-Received: from localhost ([::1]:57964 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFCwV-0001MI-Do for ged-emacs-devel@m.gmane-mx.org; Sat, 23 Jul 2022 07:05:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37320) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFCvp-0000ea-Lj for emacs-devel@gnu.org; Sat, 23 Jul 2022 07:04:25 -0400 Original-Received: from knopi.disroot.org ([178.21.23.139]:45580) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFCvn-0000oh-M0 for emacs-devel@gnu.org; Sat, 23 Jul 2022 07:04:25 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 0D99E40E33; Sat, 23 Jul 2022 13:04:20 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Original-Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WDwB9n00rBly; Sat, 23 Jul 2022 13:04:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1658574258; bh=gYXfc6rPslugas/CAMP8YAASX4xPWEnp6L1AvXjogrM=; h=From:To:Cc:Subject:References:Date:In-Reply-To; b=WCaAy+tSYB3OjSlnzOKukIFT99nqUs6TKmK/DqsRbfJ0XqF/C0qgnpQJKCkI4goKs SCdefB0LmE9DLUpnM4dxtK5cInLuTTBmrhoOaWSE3aXCYLCHM9+0mor9/HRaLfS/JO DRBsMd2PqVTI2Mo7hAyn5VHKziDTE/a8IU2qWyhEfCX3y4X3aXPqvQ8+Vj7UPrvLSN NWI/eCN1ss/D0RTGkXoWmhzVv6yehuwdW7FHyi9NqziALw9bMChiLOyQcw95fTRlvJ aBHVnfpX3vgoWaPVDbrMfzGXnv3UJwxfsJcPnevJNH9mC0VaIEgBN5WBOykEK7NYh+ HKdU84K4nnGRg== In-Reply-To: (Davin Pearson's message of "Sat, 23 Jul 2022 17:00:13 +1200") Received-SPF: pass client-ip=178.21.23.139; envelope-from=akib@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:292523 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Davin Pearson writes: > In another version of emacs the third argument to add-hook can be a > number between -70 and 70, like so: > > (add-hook 'find-file-hook 'dmp-find-file-hook 70) > > In the version of emacs that I am currently using (26.3) it turns non > nil third arguments to t otherwise leave nil as nil. > > Having numbers for the third argument seems like you have more > flexibility in order of the sequences of hooks to your hook variables. > > Do I need to upgrade the Emacs version? Yes, according to the NEWS file of Emacs 27.1: =2D-8<---------------cut here---------------start------------->8--- ** 'add-hook' does not always add to the front or the end any more. The replacement of 'append' with 'depth' implies that the function is not always added to the very front (when append/depth is nil) or the very end (when append/depth is t) any more because other functions on the hook may have specified higher/lower depths. This makes it possible to control the ordering of functions more precisely, as was already possible in 'add-function' and 'advice-add'. =2D-8<---------------cut here---------------end--------------->8--- > Ubuntu tells me I am using the > most up to date version of Emacs. Ubuntu is lying. The latest version is 28.1. Probably it's not in your version. You can build Emacs yourself or use a PPA, or switch to a rolling release distribution (e.g. GNU Guix, which as stable as Ubuntu (if not more)), or install GNU Guix in your Ubuntu (alongside apt). =2D-=20 Akib Azmain Turja Find me on Mastodon at @akib@hostux.social. This message is signed by me with my GnuPG key. It's fingerprint is: 7001 8CE5 819F 17A3 BBA6 66AF E74F 0EFA 922A E7F5 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEyVTKmrtL6kNBe3FRVTX89U2IYWsFAmLb08IACgkQVTX89U2I YWvtUw//Xz9Wl/baplULs1txFy72QaSLqBMlaVeadqEBeKawMvJzUZf2Ua1GmY2e EIcjqVjco9MMiPeSxPYucNPOdNBaE2VsigTPd4XunBxwhhLfGRJQ4LMnymAVey1U 8l8qZfc1OjfwXGWvADEOICjtQ5JvJqjBnoQnXgNKQztzi5eLgeBQ/UwCtMTEx7ta jDQX3q2J0AFVmsjEnLOvV28RHm5HVQGKcWb+24MHGA1/MzKysbbonMzR5DsUtYGm /tszU/5apuCu6bvtkGaiwRqO08yMxpi07oxs1WcYrcQ27khXaIHqGUX8XKxKbIJf /3P72jMgaBkYzkZDep4LRkjpnvqjmPWTEGrZEI9rp4Mr6/VnFy1FxV/aBA4k7Fdj kPCsaJbqhOnRMNsnz38FVzcUnkgL76MCTpnaamT9//JYPQV1lMNThufrGHUMZ9nV NOk0mHMN6V9nPmIIw/hEa+6QZwSCVwmDkRgcXMFgqMPZeRFXFmOt8SP8u3dR1Cbg ym01JRXnVu5+gTbZe2yAZiS5VvlHyt+pDdtxX5KKm6cZnN9nHZO5x6Dc4vK0w79a haYsrAl8CpCgSmp4cMQ47REwStgeVjRqzD4uaWu1qmmY7tNoRjJruB0l7e0Tx94e pTdt3Axl+AzM4cNPNSAoE/nQSYQun07mKL2v/kdKVjcwomSZmQg= =NraS -----END PGP SIGNATURE----- --=-=-=--