Skip to content

Commit 5b90a05

Browse files
authored
Merge pull request #86 from skangas/cl-lib
Fix #84: Use cl-lib instead of deprecated cl
2 parents e153305 + 53d6809 commit 5b90a05

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drupal-mode.el

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
;;; Code:
3535

36-
(require 'cl)
36+
(require 'cl-lib)
3737
(require 'php-mode)
3838
(require 'format-spec)
3939
(require 'json)
@@ -543,7 +543,7 @@ buffer."
543543
(buffer-string)))))
544544
(when (not config)
545545
(error "No Drupal SQL configuration found."))
546-
(destructuring-bind (&key database driver &allow-other-keys) config
546+
(cl-destructuring-bind (&key database driver &allow-other-keys) config
547547
(let ((sql-interactive-product
548548
(drupal--db-driver-to-sql-product driver))
549549
(start-buffer (current-buffer))
@@ -839,7 +839,7 @@ Used in `drupal-insert-hook' and `drupal-insert-function'."
839839
(insert name)
840840
name)))
841841

842-
(defun* drupal-module-major-version (&key version default)
842+
(cl-defun drupal-module-major-version (&key version default)
843843
"Return a modules major version number.
844844
If VERSION is not set derive it from the buffer local variable
845845
`drupal-major-version'.

0 commit comments

Comments
 (0)