all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Akib Azmain Turja <akib@disroot.org>
To: Davin Pearson <davin.pearson@gmail.com>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Where has a cool feature gone?
Date: Sat, 23 Jul 2022 16:56:01 +0600	[thread overview]
Message-ID: <87sfmsumgu.fsf@disroot.org> (raw)
In-Reply-To: <CAG9ihEvezhVt54-WqwfHqO7JeY9GzRX01NbgXSMHX3wNLhFKbQ@mail.gmail.com> (Davin Pearson's message of "Sat, 23 Jul 2022 17:00:13 +1200")

[-- Attachment #1: Type: text/plain, Size: 1757 bytes --]

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
> 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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

  parent reply	other threads:[~2022-07-23 10:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-23  5:00 Where has a cool feature gone? Davin Pearson
2022-07-23  6:35 ` Phil Sainty
2022-07-23  7:01 ` Eli Zaretskii
2022-07-23 10:56 ` Akib Azmain Turja [this message]
2022-07-23 23:10   ` Davin Pearson
2022-07-23 23:49     ` Eduardo Ochs
2022-07-24  1:21       ` Davin Pearson
2022-07-24  4:22         ` Davin Pearson
2022-07-24  5:28           ` tomas
2022-07-24  5:23     ` tomas
2022-07-24  6:32     ` Akib Azmain Turja

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sfmsumgu.fsf@disroot.org \
    --to=akib@disroot.org \
    --cc=davin.pearson@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.