Emacs 限制从系统剪贴板粘贴的字符数?

发布于 2024-10-09 08:09:58 字数 282 浏览 0 评论 0原文

我在 Mac OS X 10.5.8 上运行 GNU Emacs 23.1.1。

如果我将一长串文本复制到系统剪贴板(使用 cmd+c)并将其粘贴到 emacs(使用 cmd+v)中,则仅粘贴前 4095 (2^12) 个字符。

这不是终端怪癖,因为我在 iTerm 和标准 mac term 上尝试过,结果相同。如果我在 vim 中尝试,粘贴会按预期工作。所以肯定是emacs的问题。

是否有像 max-sys-clipboard-size 这样的变量可以增加,以便 emacs 完整粘贴复制的文本?

I'm running GNU Emacs 23.1.1 on Mac OS X 10.5.8.

If I copy a long string of text into system clipboard (with cmd+c) and paste it into emacs (with cmd+v) only the first 4095 (2^12) characters are pasted.

It's not a terminal quirk, as I tried it on both iTerm and standard mac term with identical results. And if I try this in vim paste works as expected. So it must be an emacs issue.

Is there a variable like max-sys-clipboard-size that I can increase so emacs will paste the the copied text in its entirety?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

旧瑾黎汐 2024-10-16 08:09:58

我在使用 tmux 粘贴缓冲区中的粘贴时遇到了类似的问题。我在 Linux 上使用 emacs 23.2(最新稳定版)。

为了解决这个问题,我使用bazaar存储库的主干升级到最新的开发版本。在 emacs 24.0.50.1 下,这似乎不再是一个问题。

根据记录,我不相信 emacs 中存在最大剪贴板粘贴限制,我认为这一定是某种错误。

I had a similar issue using paste from a tmux paste-buffer. I was using emacs 23.2 (latest stable) on linux.

To resolve it, I upgraded to the latest development version using trunk of the bazaar repository. Under emacs 24.0.50.1, this appears to longer be a problem.

For the record, I don't believe there is a max clipboard paste limit within emacs and I think it must have been a bug of some sort.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文