From f4b74b8288a973f52a9a15719fd6f636f2011d71 Mon Sep 17 00:00:00 2001 From: Vonfry Date: Sat, 12 Apr 2025 14:17:10 +0800 Subject: [PATCH] Check Man-header-file-path is a list. In emacs 31.1, its type is changed as following: :type '(choice (repeat string) (const :tag "Use 'ffap-c-path'" t))) --- nix-shell.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nix-shell.el b/nix-shell.el index a3c4081..4546d81 100644 --- a/nix-shell.el +++ b/nix-shell.el @@ -193,8 +193,9 @@ The DRV file to use." (format "%s:%s" bin eshell-path-env)) (when (boundp 'woman-manpath) (add-to-list 'woman-manpath man)) - (add-to-list 'ffap-c-path include) - (add-to-list 'Man-header-file-path include) + (add-to-list 'ffap-c-path include) + (when (listp Man-header-file-path) + (add-to-list 'Man-header-file-path include)) (when (boundp 'irony-additional-clang-options) (add-to-list 'irony-additional-clang-options (format "-I%s" include)))))