Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #2 from purcell/patch-2

Prefix all symbols with the library namespace
  • Loading branch information...
commit 8cdf5546b5594d7dd6f3c3973d72c1532c748ebd 2 parents 6ca0e0b + 669c64d
@dotemacs authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 omniref.el
View
12 omniref.el
@@ -27,16 +27,16 @@
(defconst omniref-url "http://www.omniref.com/?q="
"Omniref query URL")
-(defun formatted-search-term (terms)
+(defun omniref-formatted-search-term (terms)
"Format the term for searching"
(replace-regexp-in-string "[[:space:]]+" "+" terms))
-(defun search-for (term)
+(defun omniref-search-for (term)
"Browse to Omniref with the search term"
(browse-url
- (concat omniref-url (formatted-search-term term))))
+ (concat omniref-url (omniref-formatted-search-term term))))
-(defun region-or-word ()
+(defun omniref-region-or-word ()
"Determine what should be searched, a highlighted region of
text or a word the cursor is on"
(list
@@ -47,8 +47,8 @@
;;;###autoload
(defun omniref (keywords)
"Search Omniref, Ruby documentation search engine"
- (interactive (region-or-word))
- (search-for keywords))
+ (interactive (omniref-region-or-word))
+ (omniref-search-for keywords))
(provide 'omniref)
Please sign in to comment.
Something went wrong with that request. Please try again.