mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-24 14:30:43 -08:00
(ruby-find-library-file): Also recognize 'gem' statements
* lisp/progmodes/ruby-mode.el (ruby-find-library-file): Also recognize 'gem' statements.
This commit is contained in:
parent
2b069c67d7
commit
6dee194535
1 changed files with 2 additions and 2 deletions
|
|
@ -1802,12 +1802,12 @@ FEATURE-NAME is a relative file name, file extension is optional.
|
|||
This commands delegates to `gem which', which searches both
|
||||
installed gems and the standard library. When called
|
||||
interactively, defaults to the feature name in the `require'
|
||||
statement around point."
|
||||
or `gem' statement around point."
|
||||
(interactive)
|
||||
(unless feature-name
|
||||
(let ((init (save-excursion
|
||||
(forward-line 0)
|
||||
(when (looking-at "require [\"']\\(.*\\)[\"']")
|
||||
(when (looking-at "\\(?:require\\| *gem\\) [\"']\\(.*?\\)[\"']")
|
||||
(match-string 1)))))
|
||||
(setq feature-name (read-string "Feature name: " init))))
|
||||
(let ((out
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue