about summary refs log tree commit diff
path: root/pkgs/build-support/emacs
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2023-08-17 10:38:37 -0400
committerShea Levy <shea@shealevy.com>2023-08-17 10:38:37 -0400
commit994f2560d0931b1714f5ae6e86dbd567dd70f8d8 (patch)
tree04877198880f51fe139e6e99c84cbd6c4c201a80 /pkgs/build-support/emacs
parent65cbebcb81ce2e076e70f599bf5cd8f55cf1f8f0 (diff)
Fix nixBufferBuilders for newer emacs
Diffstat (limited to 'pkgs/build-support/emacs')
-rw-r--r--pkgs/build-support/emacs/buffer.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/build-support/emacs/buffer.nix b/pkgs/build-support/emacs/buffer.nix
index b8bd4584e3227..9ef77a375574b 100644
--- a/pkgs/build-support/emacs/buffer.nix
+++ b/pkgs/build-support/emacs/buffer.nix
@@ -15,16 +15,16 @@ rec {
       (when (eq nixpkgs--buffer-count 0)
         (make-variable-buffer-local 'nixpkgs--is-nixpkgs-buffer)
         ; When generating a new temporary buffer (one whose name starts with a space), do inherit-local inheritance and make it a nixpkgs buffer
-        (defun nixpkgs--around-generate (orig name)
+        (defun nixpkgs--around-generate (orig name &optional ibh)
           (if (and nixpkgs--is-nixpkgs-buffer (eq (aref name 0) ?\s))
-              (let ((buf (funcall orig name)))
+              (let ((buf (funcall orig name ibh)))
                 (progn
                   (inherit-local-inherit-child buf)
                   (with-current-buffer buf
                     (setq nixpkgs--buffer-count (1+ nixpkgs--buffer-count))
                     (add-hook 'kill-buffer-hook 'nixpkgs--decrement-buffer-count nil t)))
                 buf)
-            (funcall orig name)))
+            (funcall orig name ibh)))
         (advice-add 'generate-new-buffer :around #'nixpkgs--around-generate)
         ; When we have no more nixpkgs buffers, tear down the buffer handling
         (defun nixpkgs--decrement-buffer-count ()