Git Product home page Git Product logo

Comments (8)

syohex avatar syohex commented on June 23, 2024

Which emacs version do you use ?

from markdown-mode.

chairraver avatar chairraver commented on June 23, 2024

On Windows:
GNU Emacs 24.5.1 (x86_64-w64-mingw32) of 2015-09-02 on WARLOCK
On Linux:
GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.6) of 2016-01-11 on utensil

from markdown-mode.

syohex avatar syohex commented on June 23, 2024

I cannot reproduce this issue as below on Ubuntu 15.10 with Emacs 24.5.

markdown-104

Can you reproduce this issue by emacs -Q -l markdown-mode.el ?

from markdown-mode.

chairraver avatar chairraver commented on June 23, 2024

Funny thing. It's there, then it isn't.

Since I'm currently @work I'm under Windows. Setup is:

working directory: ~\AppData\Roaming.emacs.d\elpa\markdown-mode-20160223.537

$ md5sum.exe markdown-mode.el markdown-mode-2_1.el
483fb4f4f18b4856247d823068bb8c70 *markdown-mode.el
9a5b233ff6cc83cc9ab68c059c534620 *markdown-mode-2_1.el

emacs -Q -l ./markdown-mode.el test.md

query-replace /salsa/ with /sals/ -> error args out of range

emacs -Q -l ./markdown-mode-2_1.el test.md

query-replay /salsa/ with /sals/ -> no problem.

I've attached a ZIP with the test.md file. I'm really curious, if you're now going to see the same problem.

test.zip

from markdown-mode.

jrblevin avatar jrblevin commented on June 23, 2024

Thanks for this report. Indeed, markdown-mode can cause problems with query-replace and it has happened before, back in 2011. The fix (eacccad) required placing save-match-data around a function used in after-change-functions. Therefore, if it is due to markdown-mode in this case it is probably related to my changes yesterday in da1cf8d, which removed save-match-data in two places to speed up fontification. I will look into it.

from markdown-mode.

chairraver avatar chairraver commented on June 23, 2024

Thanks a lot. That I see the "args out of range" error is basically fresh. I believe I'm seeing this with my update of markdown-mode to 20160223.537. Before that, I only saw the effect, that only the first item was replaced during a query-replace. I would say, that I noticed it about a week ago, that query-replace behaved not quite kosher in markdown buffers.

from markdown-mode.

chairraver avatar chairraver commented on June 23, 2024

Hi, I just noticed the commit to #105, download markdown-mode.el from a2a1b5f, byte-compiled it and restarted Emacs.

I'm more than happy to confirm, that my query-replace problem really is gone now.

Great work, Thank you so much.

from markdown-mode.

jrblevin avatar jrblevin commented on June 23, 2024

Great, thanks for reporting this and for confirming that it is fixed!

from markdown-mode.

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.