GithubHelp home page GithubHelp logo

erl-find-source's Introduction

erl-find-source for Emacs

Simple implementation of "find source at point", with no dependencies except to erlang-mode, and optionally to grep for erlfs-find-callers.

Most of the code is copied from distel by Luke Gorrie, except this version doesn't use an erlang node.

Typical usage of this module is to bind M-. to erlfs-find-source-at-point, and M-* or M-, to erlfs-find-source-unwind, and M-? to erlfs-find-callers.

The function erlfs-find-source-at-point jumps to the definition of the erlang function at point. If the function at the point is a local function, it jump to its defintion in the local module. If the function at the point is a remote call, it performs the following algorithm:

  • If a buffer exists with the name <module>.erl, goto that buffer.

  • Otherwise, if a file <module>.erl exists in the current directory, visit that file.

  • Otherwise, for each directory pattern in erlfs-search-patterns, if <module>.erl exists in a directory matching that pattern, visit that file.

  • Otherwise, report that the file can't be found.

The function erlfs-find-callers uses grep to find callers of the function under point.

erl-find-source's People

Contributors

mbj4668 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.