Comments (3)
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.
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.
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)
- No REPL session available HOT 3
- When starting REPL, it tries to connect to random host from ~/.ssh/config HOT 5
- Unicode affects Check Syntax HOT 37
- racket-xp-mode reports "defined locally" and imported, both? HOT 3
- Ability to configure the context for racket-racket to operate? HOT 7
- racket-hash-lang-mode not highlighting buffer with font-lock HOT 31
- Typo in documentation HOT 2
- print-as-expression in buffer has no effect HOT 2
- Invalid read causes REPL to fail HOT 9
- Test failures with very recent paredit commits HOT 1
- racket-xp-unused-face not applied to identifiers beginning with an underscore. HOT 3
- Issue viewing r5rs documents using `racket-xp-describe` HOT 1
- XREF can not find references inside Scribblings HOT 3
- collection not found HOT 2
- install and racket-run permission denied HOT 11
- `racket-repl` starts a new REPL even if one exists HOT 1
- Buffer-specific back end? HOT 5
- run main module HOT 10
- "result arity mismatch" when using a contract with or/c and values HOT 3
- Test coverage doesn't work for match
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from racket-mode.