From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Davin Pearson Newsgroups: gmane.emacs.devel Subject: Re: Where has a cool feature gone? Date: Sun, 24 Jul 2022 11:10:52 +1200 Message-ID: References: <87sfmsumgu.fsf@disroot.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000008d685505e48112a8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40447"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: Akib Azmain Turja Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jul 24 01:12:30 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 1oFOIQ-000ALx-Az for ged-emacs-devel@m.gmane-mx.org; Sun, 24 Jul 2022 01:12:30 +0200 Original-Received: from localhost ([::1]:38736 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFOIO-0003Rf-OY for ged-emacs-devel@m.gmane-mx.org; Sat, 23 Jul 2022 19:12:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57848) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFOHb-0002fx-Im for emacs-devel@gnu.org; Sat, 23 Jul 2022 19:11:39 -0400 Original-Received: from mail-yb1-xb2c.google.com ([2607:f8b0:4864:20::b2c]:46783) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oFOHZ-0007i0-Rd for emacs-devel@gnu.org; Sat, 23 Jul 2022 19:11:39 -0400 Original-Received: by mail-yb1-xb2c.google.com with SMTP id l11so13819288ybu.13 for ; Sat, 23 Jul 2022 16:11:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KTKA+b1xhyp8oy+pdzyCkjZue/6jZ6pTPUGFsr9tANA=; b=lUdv8axEdtbj04uibYmr4kLIPE71kuTHY/FwfII0x7DiQu83Ke7N8HI1KMMsJfTdl9 5iJBsY2zA8nuAyipI8n+nflp2IkOpJn3ctUd/ymYLMCRkPBoGb08mBMUQKKT2xwRbqok WweYPRkK2CS56aveumGyXW2m2mQSqEqhVAWj9C9Hcpz/gEZehMeyr9CI9wCkJnrsfm7Z ONqx+73gIcXbJHZDYgd3BcU0/aVqTpU9AYAn0xtIJZUrNqQlPZ9tVy1zHviHJ9eioEVT 926+YiQ6jMkD+L0uPHwTUtdAK73NGT24n1fpHj7I7/0LS4PelchaI7EfEzQnjCccM0MY q8ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KTKA+b1xhyp8oy+pdzyCkjZue/6jZ6pTPUGFsr9tANA=; b=y3DMCEQBu4dOkA73c8LR0Y/qAzP2Ik8W8dK75qfcQH6bxSvH+vLelms5aET3pt+Pr0 3ChMI1pFTvbZy8kNz9qCYQ1Z/LSd8hIym6tLyFzAwthslBselmjG59kKxbRr8guLySRM l6/6mvISKZSj/mZ6MNGzpPmdIFKHQNvfkWFAlQE0JzIY7esAq7f3kFhxmP1xKSzXyZbo wjlmA6YNNEQ1YdtW4rThFmFn38i7rKq11SYf/o7dIeQwA+E6Npe7VBkEhkylOFythT+Q H6xrfGEpUbTbueySD9swnHhyISggGGfBAkKxvSA5PgZntS0AdgDi2GKbqnf0Y+hYW3Bq hMvQ== X-Gm-Message-State: AJIora8jh1deFSulPRXhQmQbFTHE/POLOIE8xfz5+wUhtUr//uDZjTXn CiIz+PlmIHQOd/HOCZfoGS9YMaF0667fHEHzm6kLCgxFNzQ= X-Google-Smtp-Source: AGRyM1u4nxB08ln6cj0fFJWeprf7qaMO+hhOYQone/T8e9SG/Y/RxFih8hFL9Q4eEBH9JcAysXvT+W//22feedPlfII= X-Received: by 2002:a05:6902:154f:b0:670:d8f0:7 with SMTP id r15-20020a056902154f00b00670d8f00007mr4753071ybu.186.1658617896723; Sat, 23 Jul 2022 16:11:36 -0700 (PDT) In-Reply-To: <87sfmsumgu.fsf@disroot.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::b2c; envelope-from=davin.pearson@gmail.com; helo=mail-yb1-xb2c.google.com 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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:292554 Archived-At: --0000000000008d685505e48112a8 Content-Type: text/plain; charset="UTF-8" Here are my attempts to install Gnu Guix: None of them work! www@www-HP-EliteBook-840-G2:~$ sudo apt-get Guix [sudo] password for www: E: Invalid operation Guix www@www-HP-EliteBook-840-G2:~$ sudo apt-get GNU Guix E: Invalid operation GNU www@www-HP-EliteBook-840-G2:~$ sudo apt-get "GNU Guix" E: Invalid operation GNU Guix www@www-HP-EliteBook-840-G2:~$ sudo apt-get install "GNU Guix" Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package GNU Guix www@www-HP-EliteBook-840-G2:~$ sudo apt-get install Guix Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package Guix On Sat, 23 Jul 2022 at 23:04, Akib Azmain Turja wrote: > 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: > > --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'. > --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). > > -- > 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 > --0000000000008d685505e48112a8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Here are my attempts to install Gnu = Guix:
None of them work!

www@www-HP-= EliteBook-840-G2:~$ sudo apt-get Guix
[sudo] password for www:
E: = Invalid operation Guix
www@www-HP-EliteBook-840-G2:~$ sudo apt-get GNU G= uix
E: Invalid operation GNU
www@www-HP-EliteBook-840-G2:~$ sudo apt-= get "GNU Guix"
E: Invalid operation GNU Guix
www@www-HP-Eli= teBook-840-G2:~$ sudo apt-get install "GNU Guix"
Reading packa= ge lists... Done
Building dependency tree =C2=A0 =C2=A0 =C2=A0
Readi= ng state information... Done
E: Unable to locate package GNU Guix
www= @www-HP-EliteBook-840-G2:~$ sudo apt-get install Guix
Reading package li= sts... Done
Building dependency tree =C2=A0 =C2=A0 =C2=A0
Reading st= ate information... Done
E: Unable to locate package Guix

On Sat, 23 Jul 2= 022 at 23:04, Akib Azmain Turja <aki= b@disroot.org> wrote:
Davin Pearson <davin.pearson@gmail.com> 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<= br> > 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:

--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 f= unction 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.=C2=A0 This makes it
possible to control the ordering of functions more precisely, as was
already possible in 'add-function' and 'advice-add'.
--8<---------------cut here---------------end--------------->8---

> Ubuntu tells me I am using the
> most up to date version of Emacs.

Ubuntu is lying.=C2=A0 The latest version is 28.1.=C2=A0 Probably it's = not in your
version.=C2=A0 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).

--
Akib Azmain Turja

Find me on Mastodon at @akib@hostux.social.

This message is signed by me with my GnuPG key.=C2=A0 It's fingerprint = is:

=C2=A0 =C2=A0 7001 8CE5 819F 17A3 BBA6=C2=A0 66AF E74F 0EFA 922A E7F5
--0000000000008d685505e48112a8--