File 9513-Remove-caddr-compat-shim-from-erlang.el.patch of Package erlang
From 747938e41537366408f849ec83c109c86cad789b Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov <bozhidar@batsov.dev> Date: Fri, 20 Mar 2026 13:33:18 +0200 Subject: [PATCH 03/17] Remove caddr compat shim from erlang.el caddr has been built-in since Emacs 26, so the polyfill is no longer needed with the minimum version set to 27.1. --- lib/tools/emacs/erlang.el | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/tools/emacs/erlang.el b/lib/tools/emacs/erlang.el index bd99c5ac5c..3a14cc5570 100644 --- a/lib/tools/emacs/erlang.el +++ b/lib/tools/emacs/erlang.el @@ -82,11 +82,6 @@ (require 'tempo) (require 'cl-lib) -;;; `caddr' is builtin since Emacs 26. -(eval-and-compile - (or (fboundp 'caddr) - (defun caddr (x) (car (cdr (cdr x)))))) - ;; Variables: (defgroup erlang nil -- 2.51.0