GithubHelp home page GithubHelp logo

Comments (3)

greghendershott avatar greghendershott commented on June 11, 2024

Good point. I inherited this automatic matching closing-paren feature from Quack. In theory it ought to check for string literals, and comments, and so on.

Meanwhile, although you probably already know, a general-purpose work-around in Emacs for this sort of thing is to use C-q, e.g. C-q ].

from racket-mode.

greghendershott avatar greghendershott commented on June 11, 2024

Sorry this has been open so long. I have a change (it simply involves using in-string-p) such that your example behaves as you requested.

However after trying it for awhile today, I'm not sure it's a good idea for this to behave differently in strings. Using racket-mode you get accustomed to the idea you can simply hit ] to get the whichever of ], ), or } is correct. I'm accustomed to it happening inside strings, too, and more often than not it's desirable. To have it not happen only inside strings, was more confusing for me, not less.

Maybe your half-open interval example is relatively rare case? When it comes up, one can insert a literal ] using either C-q ] or C-u ].

TL;DR I'm thinking of closing this as "won't fix". Do you have any strong opinions about it, at this stage?

from racket-mode.

greghendershott avatar greghendershott commented on June 11, 2024

I'm weeding issues and noticed this is still open. I'm going to close it. However if you disagree please feel free to reopen it.

from racket-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.