File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -628,12 +628,12 @@ and encoded suitable for use as function name prefixes.
628628
629629Used 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)))
You can’t perform that action at this time.
0 commit comments