Skip to content

Commit 53d6809

Browse files
committed
Fix #84: Use cl-lib instead of deprecated cl
1 parent 4f3cffa commit 53d6809

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drupal-mode.el

Lines changed: 3 additions & 3 deletions
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)
@@ -539,7 +539,7 @@ buffer."
539539
(buffer-string)))))
540540
(when (not config)
541541
(error "No Drupal SQL configuration found."))
542-
(destructuring-bind (&key database driver &allow-other-keys) config
542+
(cl-destructuring-bind (&key database driver &allow-other-keys) config
543543
(let ((sql-interactive-product
544544
(drupal--db-driver-to-sql-product driver))
545545
(start-buffer (current-buffer))
@@ -835,7 +835,7 @@ Used in `drupal-insert-hook' and `drupal-insert-function'."
835835
(insert name)
836836
name)))
837837

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

0 commit comments

Comments
 (0)