Giter Club home page Giter Club logo

Comments (12)

alphapapa avatar alphapapa commented on July 28, 2024

Hi,

I'm glad you discovered that experimental branch and are finding it useful. As you can see, I haven't touched it in about a year.

Looking at the code, when a search result is selected, the buffer should be reverted, which should reload the file from disk and activate org-mode. There shouldn't be any artifacts of fundamental-mode left over.

If this is not in fact happening, then it would seem to be a bug. I'm not sure how much support I can offer for this branch at this time, but if you want to help debug it, please provide some more info, like:

  • Emacs version
  • Org version
  • Exact, command-by-command, keypress-by-keypress reproduction steps

Thanks.

from org-rifle.

adam52 avatar adam52 commented on July 28, 2024

from org-rifle.

alphapapa avatar alphapapa commented on July 28, 2024

What happens if you eval (revert-buffer nil t) in the Org buffer that has the artifacts (using M-:) ?

from org-rifle.

adam52 avatar adam52 commented on July 28, 2024

from org-rifle.

alphapapa avatar alphapapa commented on July 28, 2024

I don't think the pictures came through the email.

from org-rifle.

adam52 avatar adam52 commented on July 28, 2024

Ah, sorry. Let's try that again. Here it is if I navigate to the file through Emacs:

with-utf8

and here it is if I navigate using helm-org-rifle (raw version).

without-utf8

from org-rifle.

alphapapa avatar alphapapa commented on July 28, 2024

Okay, so if you are looking at the second screenshot and run revert-buffer, what does it look like after that?

from org-rifle.

adam52 avatar adam52 commented on July 28, 2024

revert-buffer had no effect. But I found that running toggle-enable-multibyte-characters worked...

from org-rifle.

alphapapa avatar alphapapa commented on July 28, 2024

Ok, please try this: in one of the raw buffers, eval (revert-buffer-with-coding-system nil t). It looks like that might correctly reset the coding system.

from org-rifle.

adam52 avatar adam52 commented on July 28, 2024

Nope. No effect.

from org-rifle.

adam52 avatar adam52 commented on July 28, 2024

Running M-: (set-buffer-multibyte t) works for me...

from org-rifle.

alphapapa avatar alphapapa commented on July 28, 2024

Hmm, I'm not sure what's going on here. According to the manual, revert-buffer-with-coding-system should work. And I'm not sure that set-buffer-multibyte is the correct or safe thing to do in all cases. I'll have to look into it when I have more time. Thanks.

from org-rifle.

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.