Skip to content

Commit af2b2c5

Browse files
committed
Changed replace-regexp-in-string to subst-char-in-string.
1 parent dcea92f commit af2b2c5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drupal-mode.el

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -628,12 +628,12 @@ and encoded suitable for use as function name prefixes.
628628
629629
Used in `drupal-insert-hook' and `drupal-insert-function'."
630630
(interactive)
631-
(let ((name (replace-regexp-in-string "-" "_"
632-
(if drupal-module
633-
drupal-module
634-
;; Otherwise fall back to a very naive
635-
;; way of guessing the module name.
636-
(file-name-nondirectory (file-name-sans-extension (buffer-file-name)))))))
631+
(let ((name (subst-char-in-string ?- ?_
632+
(if drupal-module
633+
drupal-module
634+
;; Otherwise fall back to a very naive
635+
;; way of guessing the module name.
636+
(file-name-nondirectory (file-name-sans-extension (buffer-file-name)))))))
637637
(if (called-interactively-p 'any)
638638
(insert name)
639639
name)))

0 commit comments

Comments
 (0)