Comments (4)
I think this only affects terminal users, where pasting a newline character causes the line to be sent. In gui emacs, pasting a newline at the prompt does not cause the text to be sent, so if paste protection is desired for the gui, it would take a different form, such as testing the length of the input and prompting for confirmation.
from circe.
Fascinating. I didn't know the GUI version fixes that.
That means this is only useful for (not (window-system)) frames. Possibly as an external mode so it doesn't clutter up circe.el, depending on how big the change would be.
from circe.
I've been playing with test implementations of this a bit. This is a tricky beast.
To do "perfect" paste protection, Circe has to delay sending any PRIVMSG to the server, just in case it is followed up with another few. This delay is noticeable, even at lengths of 0.2s. Below that, it does not work because Emacs needs longer than that to actually process the input for long lines.
Not-so-perfect paste protection could send the first few lines and then kick in. The best place for this I found would be in lui-send-input
.
from circe.
I do not see a sensible way to do paste protection for terminals here. Annoying. Begone, ticket.
from circe.
Related Issues (20)
- [Question] how do I disable tracking from using the modeline? HOT 3
- Support /mode setting
- tracking mode & lui HOT 1
- Run the test suite on pullrequests and commits to master HOT 2
- Support Emacs 28's emojis HOT 3
- Problems with non-ANSI characters in channel names HOT 1
- Encrypting and decrypting key and cert files HOT 3
- Confusing logic for `circe-server-killed-confirmation` settings HOT 2
- debugging connection to irc twich server HOT 1
- circe-user definition HOT 1
- No warning when SSL certificate expired HOT 5
- bitlbee thru circe: Warning (emacs): Unknown option :lagmon-disabled, ignored HOT 2
- Kindly add /list command HOT 3
- Please tag a new release HOT 2
- Using circe-display-images can lookup Emacs when retrieving images HOT 1
- Upload to nonGNU ELPA
- How to view channel list? HOT 3
- Command abbreviation support HOT 1
- Please tag a new version HOT 1
- Circe-Lagmon sends CTCP requests which are confusing for other clients/cause notifications HOT 1
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 circe.