Function: smart-javascript
smart-javascript is an autoloaded, interactive and byte-compiled
function defined in hmouse-tag.el.
Signature
(smart-javascript &optional IDENTIFIER NEXT)
Documentation
Jump to the definition of optional JavaScript IDENTIFIER or the one at point.
Optional second arg NEXT means jump to next matching JavaScript tag.
It assumes that its caller has already checked that the key was pressed in an appropriate buffer and has moved the cursor to the selected buffer.
If on a JavaScript identifier, the identifier definition is displayed,
assuming the identifier is found within an etags generated tag file
in the current directory or any of its ancestor directories.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hmouse-tag.el
;;;###autoload
(defun smart-javascript (&optional identifier next)
"Jump to the definition of optional JavaScript IDENTIFIER or the one at point.
Optional second arg NEXT means jump to next matching JavaScript tag.
It assumes that its caller has already checked that the key was pressed in an
appropriate buffer and has moved the cursor to the selected buffer.
If on a JavaScript identifier, the identifier definition is displayed,
assuming the identifier is found within an `etags' generated tag file
in the current directory or any of its ancestor directories."
(interactive)
(let ((tag (or identifier (smart-javascript-at-tag-p t))))
;; (message "Looking for `%s'..." tag)
(condition-case ()
(progn
(smart-tags-display tag next)
;; (message "Found definition for `%s'" tag)
t)
(error
(message "(smart-javascript): `%s' definition not found in identifier lookup/tag tables" tag)
(beep)))))