Git Product home page Git Product logo

Comments (8)

dsheets avatar dsheets commented on July 23, 2024

I take that back, it disables proper indenting on empty lines.

from tuareg.

Chris00 avatar Chris00 commented on July 23, 2024

Could you trace the call where the error comes from? tuareg-with-internal-syntax is defined in tuareg.el line 969.

from tuareg.

letoh avatar letoh commented on July 23, 2024

I got the same problem. Because tuareg-with-internal-syntax is a macro, the file tuareg_indent.el doesn't know the macro (and treat it as a function) when it is compiled.
A simple workaround is remove the file from Makefile or find the tuareg_indent.elc out and delete it if it is already installed.

diff --git a/Makefile b/Makefile
index a22014d..3d16568 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ DIST_NAME = tuareg-$(VERSION)
 TARBALL = $(DIST_NAME).tar.gz
 OPAM_DIR = tuareg.$(VERSION)

-SOURCES = tuareg.el tuareg_indent.el ocamldebug.el
+SOURCES = tuareg.el ocamldebug.el
 ELS = $(SOURCES) tuareg-site-file.el
 ELC = $(ELS:.el=.elc)

from tuareg.

monnier avatar monnier commented on July 23, 2024

I pushed a patch which makes tuareg_indent.el load tuareg.el when byte-compiling it (so it gets the tuareg-with-internal-syntax macro).

from tuareg.

Chris00 avatar Chris00 commented on July 23, 2024

Thanks.

from tuareg.

letoh avatar letoh commented on July 23, 2024

Hi, I've tried the latest commit (e33a2cd), but it breaks make process in my environment (emacs 24.3.1):

emacs --batch -L . --no-init-file -f batch-byte-compile tuareg.el

In tuareg--common-mode-setup:
tuareg.el:1874:8:Warning: assignment to free variable `prettify-symbols-alist'
tuareg.el:2294:1:Error: Recursive `require' for feature `tuareg_indent'
make: *** [tuareg.elc] Error 1

from tuareg.

Chris00 avatar Chris00 commented on July 23, 2024

@letoh That should be fixed. Please confirm that it works for you.

from tuareg.

Chris00 avatar Chris00 commented on July 23, 2024

@dsheets Please confirm too.

from tuareg.

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.