Git Product home page Git Product logo

Comments (7)

let-def avatar let-def commented on May 22, 2024

This feature has been added to master, though it may need some fix.

from merlin.

roshanjames avatar roshanjames commented on May 22, 2024

Nice. I have a local build of merlin going now -- I'll update and try it out. Is this enabled by default in the emacs mode?

from merlin.

let-def avatar let-def commented on May 22, 2024

I can't tell anything about emacs support, though it should work out-of-the-box I think. I coded it quickly as a PoC, I will take more time to test it this we.

from merlin.

roshanjames avatar roshanjames commented on May 22, 2024

In this regard, I have a loose suggestion: if you have features that can be enabled via a command line flag to merlin, there should be an obvious mapping between the command line flag to merlin and what one needs to do to enable it via emacs. Maybe this is as simple as having an emacs mode variable called "merlin-command-line-flags". That way there isnt always an this issue of updating the emacs mode to toggle some command line flags to merlin.

from merlin.

asmanur avatar asmanur commented on May 22, 2024

It is already implemented in master since 1.2 I believe.

Use M-x merlin-process-add-flag yourflag, and then restart the
process with C-c r (or merlin-restart-process).

@def-lkb, could you update the variable merlin--flags that holds the
list of possible flags in merlin.el when you add a flag ? (or ping me)

There is no mechanism for default flags though setting
merlin--current-flags might do the job for the moment.

On jeu. 15/aoรปt 2013 (17:13), Roshan James wrote:

In this regard, I have a loose suggestion: if you have features that can be enabled via a command line flag to merlin, there should be an obvious mapping between the command line flag to merlin and what one needs to do to enable it via emacs. Maybe this is as simple as having an emacs mode variable called "merlin-command-line-flags". That way there isnt always an this issue of updating the emacs mode to toggle some command line flags to merlin.


Reply to this email directly or view it on GitHub:
#59 (comment)

from merlin.

roshanjames avatar roshanjames commented on May 22, 2024

I tried to verify if merlin will auto-complete from .ml files in the current directory. It does not seem to work. I am at revision fef38bd.

In the directory I have three files called a.ml, b.ml and f.ml. When editing f.ml I type A.{M-/} and I see nothing. Note that the file a.ml is not compiled yet. b.ml is compiled and has a b.cmi. When I type B.{M-/} it does autocomplete.

In the common case, such as when working on a library, there might be many .ml files in a dir which maynot be compiling as yet. They may not have .cmi files. However it would be nice to generate auto-completion for them.

I tried to force the parsing of source files by creating the following .merlin file in the dir:

SRC .
REC

This seemed to have no effect -- i.e. A.{M-/} still did not auto-complete. I restarted the merlin process.

from merlin.

let-def avatar let-def commented on May 22, 2024

Now that experimental has been merged in master branch, this bug should be fixed.
Can you confirm?

from merlin.

Related Issues (20)

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.