Coder Social home page Coder Social logo

Comments (8)

dustinlacewell avatar dustinlacewell commented on August 19, 2024 1

Hmm, this issue is starting to drive me a little loopy.

from poly-org.

srnnkls avatar srnnkls commented on August 19, 2024

Okay, further testing revealed:

Everything works fine even with org-indent-mode enabled, when I disable evil-mode. In fact fontification still works if I reenable evil-mode after loading the buffer with evil-mode disabled.

from poly-org.

vspinu avatar vspinu commented on August 19, 2024

@srnnkls Did you continue using poly-org? I am not an evil user, so it's hard for me to test/devlop on it. I see no reason why evil-mode should interfere with font-lock though.

from poly-org.

dvzubarev avatar dvzubarev commented on August 19, 2024

Hi, I have this issue while editing a large buffer (159KiB). But I cant reliably reproduce this behavior, often it occurs when I move outside of src block to the header of this block. I was trying to catch errors with toggle-debug-on-errors with no luck. If I kill the buffer after the fontification has gone with the point inside src block, and reopen it fontification won't work (point is inside src block). But if I leave the point outside of the src block, then fontification works as usual on reopening of the file.
I use org-indent-mode and evil-mode too.

from poly-org.

dvzubarev avatar dvzubarev commented on August 19, 2024

Actually, I was able to reproduce it with this config and emacs 26.3.

(setq load-path
      (append '("path/to/polymode-20200411.915/"
 "path/to/poly-org-20200316.1315/")
              load-path))
(require 'poly-org)
(setq org-src-fontify-natively nil)
;;uncomment to reproduce
;;(setq org-startup-indented t)

and this org file:

* TEMP

#+BEGIN_SRC python
import math

#+END_SRC

When org-indent-mode is enabled (org-startup-indented is t), then fontification won't work (e.g. try to comment import math).

from poly-org.

lsiksous avatar lsiksous commented on August 19, 2024

Same problem. I tried everything but can't figure what causes this behaviour. Does the same trick whatever language : I have an org file mixing emacs-lisp, python and R.

from poly-org.

ugurbolat avatar ugurbolat commented on August 19, 2024

fyi: the issue is not caused by org-indent but org-src-fontify-natively being disabled.

the fix is: pr42

from poly-org.

kchanqvq avatar kchanqvq commented on August 19, 2024

fyi: the issue is not caused by org-indent but org-src-fontify-natively being disabled.

the fix is: pr42

org-indent still breaks font-lock after applying this patch 😭

from poly-org.

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.