Skip to content

Commit 3e43a0c

Browse files
committed
Backwards comaptibility
Before Emacs 26 `caddr` and `cdddr` where defined in `cl-lib`. We expand the functions inline and thereby avoid figuring out if we need to require `cl-lib` or not. Fixes #1.
1 parent 7f687bf commit 3e43a0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git-attr.el

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@
5656
) "\000" t))
5757
result)
5858
(while attr-list
59-
(push `(,(cadr attr-list) . ,(caddr attr-list)) result)
60-
(setq attr-list (cdddr attr-list)))
59+
(push `(,(car (cdr attr-list)) . ,(car (cdr (cdr attr-list)))) result)
60+
(setq attr-list (cdr (cdr (cdr attr-list)))))
6161
result))))
6262

6363
;;;###autoload

0 commit comments

Comments
 (0)