From unknown Tue Jun 24 05:14:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17357: 24.4.50; garbage characters when pasting in an OS X terminal Resent-From: Glyph Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Apr 2014 08:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17357 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 17357@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.139858726023717 (code B ref -1); Sun, 27 Apr 2014 08:28:01 +0000 Received: (at submit) by debbugs.gnu.org; 27 Apr 2014 08:27:40 +0000 Received: from localhost ([127.0.0.1]:59518 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WeKR1-0006AS-EQ for submit@debbugs.gnu.org; Sun, 27 Apr 2014 04:27:40 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41503) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WeJoh-0004x6-0o for submit@debbugs.gnu.org; Sun, 27 Apr 2014 03:48:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WeJoc-0004ZS-3l for submit@debbugs.gnu.org; Sun, 27 Apr 2014 03:48:02 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:55264) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WeJoc-0004ZO-09 for submit@debbugs.gnu.org; Sun, 27 Apr 2014 03:47:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43209) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WeJoX-0001HN-Ho for bug-gnu-emacs@gnu.org; Sun, 27 Apr 2014 03:47:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WeJoT-0004Wz-3H for bug-gnu-emacs@gnu.org; Sun, 27 Apr 2014 03:47:53 -0400 Received: from mail-ie0-f172.google.com ([209.85.223.172]:60249) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WeJoS-0004Wd-Tm for bug-gnu-emacs@gnu.org; Sun, 27 Apr 2014 03:47:49 -0400 Received: by mail-ie0-f172.google.com with SMTP id at1so2018636iec.3 for ; Sun, 27 Apr 2014 00:47:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:content-type:content-transfer-encoding:subject:message-id:date :to:mime-version; bh=RsuNoYTxCLz/b4I+PSqAjfx8FbqZIcDzp8Zj2vR1BIg=; b=aRgBVGe44ss5OPJCFKLVy/wXx3kAA57spgwaIRAevLoGDHW7mUShW/nq1ATD1HBpp0 kqwlzRjO0NXsMwh8X4h7GefQ8hdCCo92E5lB2YPcLvLGU2UTbkd6XZWHyMjXDSJSlXBl RenCWxQ/rLgzK4TDHReg8slASbJetaRWbz6M7r8mNjO+OtvWdRINXZYl91y1V55rzsUF C85FX+aE9fhEQ2rkBnYQEv7wJ8e96TBPDtrx9YFUGSj0JLFWb/9nIYPHl4OCC0n+4c9b raj/hxr4T2qq7+/dOF0eXBtjf4wQKhgD3uBiCx0MDNPGiuL9imyrlcxTT8UDbkJy+8n8 XbDw== X-Received: by 10.50.79.200 with SMTP id l8mr16207162igx.32.1398584867724; Sun, 27 Apr 2014 00:47:47 -0700 (PDT) Received: from ?IPv6:::1? ([2001:4801:7817:72:c5e7:31e:ff10:6e96]) by mx.google.com with ESMTPSA id m8sm13733411igx.9.2014.04.27.00.47.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 27 Apr 2014 00:47:44 -0700 (PDT) From: Glyph Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: <10EFA706-8A14-4F49-81B2-403D770E1CCE@twistedmatrix.com> Date: Sun, 27 Apr 2014 00:47:37 -0700 Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) X-Mailer: Apple Mail (2.1874) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Mailman-Approved-At: Sun, 27 Apr 2014 04:27:36 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) I'm using snapshot builds from http://emacsformacosx.com/. Somewhere between the 4/13 snapshot and the 4/24 snapshot, "paste" in an OS X terminal (running with -nw) results in garbage characters on either side of the paste. For example, if I paste the URL, it looks like 200~http://emacsformacosx.com/201~, or causes jumping around within the buffer (for example, when filing this bug, it jumped to the beginning of the buffer and pasted the URL and the "201~" before the From:). In GNU Emacs 24.4.50.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2014-04-26 on bob.porkrind.org Repository revision: = monnier@iro.umontreal.ca-20140425192226-frpjpmgs0r8ad9wc Configured using: `configure --host=3Dx86_64-apple-darwin --build=3Di686-apple-darwin --with-ns' Configured features: ACL LIBXML2 ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: quick-hack-emacs-lisp-mode: t shell-dirtrack-mode: t helm-match-plugin-mode: t helm-occur-match-plugin-mode: t global-auto-complete-mode: t auto-complete-mode: t global-rainbow-delimiters-mode: t rainbow-delimiters-mode: t obb-mode: t which-function-mode: t show-paren-mode: t server-mode: t icomplete-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: ESC [ ? 1 ; 2 c ESC [ 2 0 0 ~ h t t p : / / e m a c=20 s f o r m a c o s x . c o m / ESC [ 2 0 1 ~ C-_ C-_=20 C-_ C-_ ESC x e m a c s b DEL - b u g C-n RET Recent messages: Loading paren...done Loading which-func...done Loading /Users/glyph/Settings/Emacs/bootstrap/customizations.el = (source)...done Loading /Users/glyph/Settings/Emacs/firstparty/quickhack-autoload.el = (source)...done Loading /Users/glyph/Settings/Emacs/firstparty/flyflakes-autoload.el = (source)...done ad-handle-definition: `tramp-read-passwd' got redefined Pymacs loading ropemacs...done For information about GNU Emacs and the GNU system, type C-h C-a. Nowhere to go back to. [2 times] Undo! [4 times] Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils help-at-pt xterm ropemacs pymacs rx python-patches python quickhack glyph-setup adaptive-wrap helm-C-x-b helm-imenu helm-command helm-elisp helm-eval eldoc helm-mode helm-cmd-t helm-files image-dired tramp tramp-compat tramp-loaddefs trampver shell pcomplete format-spec dired-x dired-aux ffap thingatpt helm-buffers helm-elscreen helm-tags helm-bookmark helm-adaptative helm-info helm-net browse-url xml url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse auth-source eieio byte-opt bytecomp byte-compile cconv eieio-core gnus-util mm-util mail-prsvr password-cache url-vars mailcap helm-plugin bookmark pp helm-help helm-match-plugin helm-grep helm-regexp grep helm-external helm-utils dired helm-locate helm helm-config helm-aliases auto-complete-config auto-complete edmacro kmacro popup pelican-mode backandforth advice help-fns rainbow-delimiters column-marker easy-mmode obb-mode cl-macs combinator cl cl-loaddefs cl-lib epytext goto-definition gv info easymenu package time-date jka-compr tango-dark-theme which-func imenu paren server avoid icomplete linum cus-start cus-load flymake compile comint ansi-color ring tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process cocoa ns multi-tty emacs) Memory information: ((conses 16 215726 5957) (symbols 48 31136 0) (miscs 40 58 122) (strings 32 54984 6179) (string-bytes 1 1481420) (vectors 16 21509) (vector-slots 8 504251 2686) (floats 8 157 651) (intervals 56 364 18) (buffers 960 14)) From unknown Tue Jun 24 05:14:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17357: 24.4.50; garbage characters when pasting in an OS X terminal Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Apr 2014 17:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17357 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Glyph Cc: 17357@debbugs.gnu.org Received: via spool by 17357-submit@debbugs.gnu.org id=B17357.139861968725460 (code B ref 17357); Sun, 27 Apr 2014 17:29:01 +0000 Received: (at 17357) by debbugs.gnu.org; 27 Apr 2014 17:28:07 +0000 Received: from localhost ([127.0.0.1]:60063 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WeSs2-0006cZ-1p for submit@debbugs.gnu.org; Sun, 27 Apr 2014 13:28:06 -0400 Received: from mailfe01.swip.net ([212.247.154.1]:60702 helo=swip.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WeSry-0006cD-Fn for 17357@debbugs.gnu.org; Sun, 27 Apr 2014 13:28:04 -0400 X-T2-Spam-Status: No, hits=0.8 required=5.0 tests=BAYES_50 Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe01.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 499282549; Sun, 27 Apr 2014 19:28:00 +0200 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) From: Jan =?UTF-8?Q?Dj=C3=A4rv?= In-Reply-To: <10EFA706-8A14-4F49-81B2-403D770E1CCE@twistedmatrix.com> Date: Sun, 27 Apr 2014 19:27:59 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <10EFA706-8A14-4F49-81B2-403D770E1CCE@twistedmatrix.com> X-Mailer: Apple Mail (2.1874) X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hello. 27 apr 2014 kl. 09:47 skrev Glyph : >=20 > I'm using snapshot builds from http://emacsformacosx.com/. Somewhere > between the 4/13 snapshot and the 4/24 snapshot, "paste" in an OS X > terminal (running with -nw) results in garbage characters on either = side > of the paste. >=20 > For example, if I paste the URL, it looks like > 200~http://emacsformacosx.com/201~, or causes jumping around within = the > buffer (for example, when filing this bug, it jumped to the beginning = of > the buffer and pasted the URL and the "201~" before the From:). >=20 >=20 I can't reproduce this. Did you start emacs with -Q? What application did you copy from? What key combination did you use to paste? Jan D. >=20 > In GNU Emacs 24.4.50.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) > of 2014-04-26 on bob.porkrind.org > Repository revision: = monnier@iro.umontreal.ca-20140425192226-frpjpmgs0r8ad9wc > Configured using: > `configure --host=3Dx86_64-apple-darwin --build=3Di686-apple-darwin > --with-ns' >=20 > Configured features: > ACL LIBXML2 ZLIB >=20 > Important settings: > value of $LANG: en_US.UTF-8 > locale-coding-system: utf-8-unix >=20 > Major mode: Lisp Interaction >=20 > Minor modes in effect: > quick-hack-emacs-lisp-mode: t > shell-dirtrack-mode: t > helm-match-plugin-mode: t > helm-occur-match-plugin-mode: t > global-auto-complete-mode: t > auto-complete-mode: t > global-rainbow-delimiters-mode: t > rainbow-delimiters-mode: t > obb-mode: t > which-function-mode: t > show-paren-mode: t > server-mode: t > icomplete-mode: t > tooltip-mode: t > mouse-wheel-mode: t > menu-bar-mode: t > file-name-shadow-mode: t > global-font-lock-mode: t > font-lock-mode: t > blink-cursor-mode: t > auto-composition-mode: t > auto-encryption-mode: t > auto-compression-mode: t > column-number-mode: t > line-number-mode: t > transient-mark-mode: t >=20 > Recent input: > ESC [ ? 1 ; 2 c ESC [ 2 0 0 ~ h t t p : / / e m a c=20 > s f o r m a c o s x . c o m / ESC [ 2 0 1 ~ C-_ C-_=20 > C-_ C-_ ESC x e m a c s b DEL - b u g C-n RET >=20 > Recent messages: > Loading paren...done > Loading which-func...done > Loading /Users/glyph/Settings/Emacs/bootstrap/customizations.el = (source)...done > Loading /Users/glyph/Settings/Emacs/firstparty/quickhack-autoload.el = (source)...done > Loading /Users/glyph/Settings/Emacs/firstparty/flyflakes-autoload.el = (source)...done > ad-handle-definition: `tramp-read-passwd' got redefined > Pymacs loading ropemacs...done > For information about GNU Emacs and the GNU system, type C-h C-a. > Nowhere to go back to. [2 times] > Undo! [4 times] >=20 > Load-path shadows: > None found. >=20 > Features: > (shadow sort mail-extr emacsbug message rfc822 mml mml-sec mm-decode > mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader > sendmail rfc2047 rfc2045 ietf-drums mail-utils help-at-pt xterm = ropemacs > pymacs rx python-patches python quickhack glyph-setup adaptive-wrap > helm-C-x-b helm-imenu helm-command helm-elisp helm-eval eldoc = helm-mode > helm-cmd-t helm-files image-dired tramp tramp-compat tramp-loaddefs > trampver shell pcomplete format-spec dired-x dired-aux ffap thingatpt > helm-buffers helm-elscreen helm-tags helm-bookmark helm-adaptative > helm-info helm-net browse-url xml url url-proxy url-privacy url-expand > url-methods url-history url-cookie url-domsuf url-util url-parse > auth-source eieio byte-opt bytecomp byte-compile cconv eieio-core > gnus-util mm-util mail-prsvr password-cache url-vars mailcap = helm-plugin > bookmark pp helm-help helm-match-plugin helm-grep helm-regexp grep > helm-external helm-utils dired helm-locate helm helm-config = helm-aliases > auto-complete-config auto-complete edmacro kmacro popup pelican-mode > backandforth advice help-fns rainbow-delimiters column-marker = easy-mmode > obb-mode cl-macs combinator cl cl-loaddefs cl-lib epytext > goto-definition gv info easymenu package time-date jka-compr > tango-dark-theme which-func imenu paren server avoid icomplete linum > cus-start cus-load flymake compile comint ansi-color ring tooltip > electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win > tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment > lisp-mode prog-mode register page menu-bar rfn-eshadow timer select > scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame = cham > georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao > korean japanese hebrew greek romanian slovak czech european ethiopic > indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple > abbrev minibuffer nadvice loaddefs button faces cus-face macroexp = files > text-properties overlay sha1 md5 base64 format env code-pages mule > custom widget hashtable-print-readable backquote make-network-process > cocoa ns multi-tty emacs) >=20 > Memory information: > ((conses 16 215726 5957) > (symbols 48 31136 0) > (miscs 40 58 122) > (strings 32 54984 6179) > (string-bytes 1 1481420) > (vectors 16 21509) > (vector-slots 8 504251 2686) > (floats 8 157 651) > (intervals 56 364 18) > (buffers 960 14)) >=20 >=20 From unknown Tue Jun 24 05:14:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17357: 24.4.50; garbage characters when pasting in an OS X terminal Resent-From: Daniel Colascione Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Apr 2014 17:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17357 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jan =?UTF-8?Q?Dj=C3=A4rv?= , Glyph Cc: 17357@debbugs.gnu.org Received: via spool by 17357-submit@debbugs.gnu.org id=B17357.139862070027368 (code B ref 17357); Sun, 27 Apr 2014 17:45:01 +0000 Received: (at 17357) by debbugs.gnu.org; 27 Apr 2014 17:45:00 +0000 Received: from localhost ([127.0.0.1]:60068 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WeT8N-00077L-KV for submit@debbugs.gnu.org; Sun, 27 Apr 2014 13:44:59 -0400 Received: from dancol.org ([96.126.100.184]:40457) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WeT8J-000773-VV for 17357@debbugs.gnu.org; Sun, 27 Apr 2014 13:44:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Type:In-Reply-To:References:Subject:CC:To:MIME-Version:From:Date:Message-ID; bh=WSCHXxw2e75AASUniE2kQ5QzlL3PFl/GHkMp+VA1lLw=; b=dF8Knrx2oPFWlRBMTDs1T010TcfTR2qhKrE1idMafLMRnYkzriC8fjyqDHv1ITzG6XN1dxOddZS/uWRziQxPpjQZzPMoo68iRVdeXAo94YSR1INptyMzgm4TGu/xTmvEFVgENH/yRj8867jkNM92PYBGob8RZKoDoTFEdTkTlMsV8urltpJhBuRrpI+hH8VYYSZ0jEArmyupSuNW57Mm7SQxdYXto6UP43+drfSzS8Irs3P/4PIzG4lC6QXJpq90M2VnOynvK4ymNhPpm+d/WQBveLPLQxCvmfhSyxH5mLXdqcECGgEDQiJ644fcfQFZbvXzoSKeFd+o6/H4x2QZaA==; Received: from [2601:8:b200:2b6::2b1] by dancol.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1WeT8F-0007CS-Sv; Sun, 27 Apr 2014 10:44:51 -0700 Message-ID: <535D4211.6030706@dancol.org> Date: Sun, 27 Apr 2014 10:44:49 -0700 From: Daniel Colascione User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 References: <10EFA706-8A14-4F49-81B2-403D770E1CCE@twistedmatrix.com> In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="efLXPbleXIMEksL2jrNGE0Q6T8h1jRTMK" X-Spam-Score: -0.6 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --efLXPbleXIMEksL2jrNGE0Q6T8h1jRTMK Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 04/27/2014 10:27 AM, Jan Dj=E4rv wrote: > 27 apr 2014 kl. 09:47 skrev Glyph : >=20 >> >> I'm using snapshot builds from http://emacsformacosx.com/. Somewhere >> between the 4/13 snapshot and the 4/24 snapshot, "paste" in an OS X >> terminal (running with -nw) results in garbage characters on either si= de >> of the paste. >> >> For example, if I paste the URL, it looks like >> 200~http://emacsformacosx.com/201~, or causes jumping around within th= e >> buffer (for example, when filing this bug, it jumped to the beginning = of >> the buffer and pasted the URL and the "201~" before the From:). >> >> >=20 > I can't reproduce this. Did you start emacs with -Q? > What application did you copy from? > What key combination did you use to paste? That's the new bracketed paste system supoport. Emacs is correctly sending the terminal the sequence to enable bracketed paste mode, but isn't correctly the start sequence. I hope we don't have to make this feature conditional. OP, what's in *Messages*? If you M-x trace-function-background xterm-paste, do you see messages in *trace-output*? What happens if you manually type ESC [ 2 0 0 ~ ? --efLXPbleXIMEksL2jrNGE0Q6T8h1jRTMK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJTXUIRAAoJEMAaIROpHW7I7Q4QAI6q1EclmQAlz42Z9rmNAeJS LOmzTIfFBne7Ok0+S7PNKp4lSifUBD5U6URdXuszDAmhecZz+b3XMMm36I3cNmYZ dFMdFGMaeGCMitSFv9z0W7RicnmlRa1mDE1Lgu4d+5Je3BwwyiIx3zNUUql8Bkqk bSdN0lfpFQfZ26NXQ5SJTPaR12d8FtQqcZ/et5479mI8uoMEiSednQx40Nlc3CgB g17EW95himWy2z4oo2kKiIstShPy/mq6yfxahJdiA3dbUJ8AUdKLDRlde9WzwO3S qSys0t3vD/OY4H6M5xl6xYCTiaagAGsS1RKDYHrEFKpdJThH1Kcb9YrC/vDV4JIm mB1lv4tKELPJMBasuBeF3t4tHJrM5JBQq7E18HBljs5plNTZt/WHD+Y/9MTGDG0h 8QepNpT0USuwffE09v8+Sq05LERHGtK1pvGdh8LBPH4vEaRWQGGM7HtupbtWYJer wDMQuaongUHTpt+6BvmDdwlXSFTMVH9hqxt45qdrBpCFC8C7CCkwolzmY39kMo+I HdGT2Kte3fwbOlAUzTicqF8sy2k0WGl5/SO2P4U1TIXdRUnalYDrk29qDu3OQNI1 BW+jzDdrwKZGC9tS5MsJtOfOl0Svo8CSUAY1y74c2y631anxQWNmINSlpB91YtiE URQ+yKtnfmS/cZmxbMFv =rhqx -----END PGP SIGNATURE----- --efLXPbleXIMEksL2jrNGE0Q6T8h1jRTMK-- From unknown Tue Jun 24 05:14:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17357: 24.4.50; garbage characters when pasting in an OS X terminal Resent-From: Daniel Colascione Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Apr 2014 23:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17357 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jan =?UTF-8?Q?Dj=C3=A4rv?= , Glyph Cc: 17357@debbugs.gnu.org Received: via spool by 17357-submit@debbugs.gnu.org id=B17357.139864148422246 (code B ref 17357); Sun, 27 Apr 2014 23:32:02 +0000 Received: (at 17357) by debbugs.gnu.org; 27 Apr 2014 23:31:24 +0000 Received: from localhost ([127.0.0.1]:43329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WeYXa-0005mj-OG for submit@debbugs.gnu.org; Sun, 27 Apr 2014 19:31:23 -0400 Received: from dancol.org ([96.126.100.184]:42002) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WeYXU-0005mX-SS for 17357@debbugs.gnu.org; Sun, 27 Apr 2014 19:31:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Type:In-Reply-To:References:Subject:CC:To:MIME-Version:From:Date:Message-ID; bh=dHD0cWPnngEoY0ZkZ4sp1o43ekWm4ALufZY8Vy+NC0s=; b=ALN0J3ABhf62jUVm2dBTf2Rd5hEbgEHaca5yjjIeLFmxRslSqaoyomuq//2PrmGESCvD1QryDZvJ9XYsupfFA+4tZWR0q1owaAjl28A9NqIGnpYRCr8EKTIyx67DWykkNTkQVZnizGZmsSv7MVO/FXa6GL/sThiOhnhwxzOG3uI60HxWO5f0KO7Hf6wNcTQ7qsQhQc8s31SyrhcX7cJFMtZcMjJkvx5oI38c4CEHcpvWDT2oSHWUxXF5G2//wdhHKY/TkU3EU/bhchWsE8tb4XOJRYwQcobAKTT9E0aS1ktDhp4CCPAvQKca5YtiKoz/y36RxmhYI+hpZw8K06uuzQ==; Received: from [2601:8:b200:2b6::2b1] by dancol.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1WeYXR-0000Xo-KJ; Sun, 27 Apr 2014 16:31:13 -0700 Message-ID: <535D933F.6070605@dancol.org> Date: Sun, 27 Apr 2014 16:31:11 -0700 From: Daniel Colascione User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 References: <10EFA706-8A14-4F49-81B2-403D770E1CCE@twistedmatrix.com> <535D4211.6030706@dancol.org> In-Reply-To: <535D4211.6030706@dancol.org> X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9WtBvQwMGFhmGtCbq5Mv71gUTB9IBgWkK" X-Spam-Score: -0.6 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --9WtBvQwMGFhmGtCbq5Mv71gUTB9IBgWkK Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 04/27/2014 10:44 AM, Daniel Colascione wrote: > On 04/27/2014 10:27 AM, Jan Dj=E4rv wrote: >> 27 apr 2014 kl. 09:47 skrev Glyph : >> >>> >>> I'm using snapshot builds from http://emacsformacosx.com/. Somewhere= >>> between the 4/13 snapshot and the 4/24 snapshot, "paste" in an OS X >>> terminal (running with -nw) results in garbage characters on either s= ide >>> of the paste. >>> >>> For example, if I paste the URL, it looks like >>> 200~http://emacsformacosx.com/201~, or causes jumping around within t= he >>> buffer (for example, when filing this bug, it jumped to the beginning= of >>> the buffer and pasted the URL and the "201~" before the From:). >>> >>> >> >> I can't reproduce this. Did you start emacs with -Q? >> What application did you copy from? >> What key combination did you use to paste? >=20 > That's the new bracketed paste system supoport. Emacs is correctly > sending the terminal the sequence to enable bracketed paste mode, but > isn't correctly the start sequence. I hope we don't have to make this > feature conditional. >=20 > OP, what's in *Messages*? If you M-x trace-function-background > xterm-paste, do you see messages in *trace-output*? What happens if you= > manually type ESC [ 2 0 0 ~ ? >=20 I have an idea, actually. What if Terminal.app, in its infinite glory, is sending ESC twice, once because bracketed paste support is enabled, and once because Command is held down? Does the following patch help or change the behavior in any way? =3D=3D=3D modified file 'lisp/term/xterm.el' --- lisp/term/xterm.el 2014-04-27 23:26:42 +0000 +++ lisp/term/xterm.el 2014-04-27 23:30:39 +0000 @@ -428,6 +428,8 @@ ;; Recognize the start of a bracketed paste sequence. The handler ;; internally recognizes the end. (define-key map "\e[200~" [xterm-paste]) + ;; Work around Terminal.app bug? + (define-key map "\e\e[200~" [xterm-paste]) map) "Function key map overrides for xterm.") --9WtBvQwMGFhmGtCbq5Mv71gUTB9IBgWkK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJTXZM/AAoJEMAaIROpHW7Ik0EP/jeSSsdoe9Xm+MvQTV/AVoSb wK/vvUcpLIdOcnGRhtz6MFOscHr2vTvGXjWwMcFZQ8k8B7X5GVOKoTyfFrGJdFY8 gFwvZVujyraG9lIaQeW4i7Ah7/HJvImk7P2rdI0P+SRcnKDtzCIQ+teq+bNyLtDF VuFwfSuVU/VjWRvLz6Z48MyYCElGyPTPYO9AqKrcy8uF/bU+A7OPrQZVPPG//xvf dwniJf9hDizcz+zupES4tmcHrCgYU2BuaDTDbWJnzWRa52xM47T0VTbXJtNMn55w 8nCEZI+Ei4EfdMpKIqN5nnKyi28I9hO4gSUDPxQH3TiMkhLVADknvH91RJ+DCCBl mUugZGTbUXtDEb3cgYXjgmX3cSFJNxY4FqCxmHmx1tAFdkTeIfYeqQgfX5NVs0gc ZitTX31hMHbkzSbBrB/Ke0kbdcWJVJjpHYI/E5l2MKJg+ERSB2CrQGrIcwYnIFek 1E1QdsNRNumJTGUmXxPDIDV3XLUNGyRMqTFnL9L0Y7FdrY4114Ak5to93Ld0q5Q0 GxtUhKfFmNDMshBM9AMBj9zucCsC6z6bmEapoZylcyQmgQGsj2Jv8FTc3z5NUXz/ Jywulvi/WqxarxkOOOvtcisiuYK4FAD1cFoFEyDu+L7xzWXTb9S4XuKMxsFHJev/ 6qW7tLXk6MML2M7L1eMF =UQaX -----END PGP SIGNATURE----- --9WtBvQwMGFhmGtCbq5Mv71gUTB9IBgWkK-- From unknown Tue Jun 24 05:14:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17357: 24.4.50; garbage characters when pasting in an OS X terminal Resent-From: Glyph Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Apr 2014 00:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17357 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Daniel Colascione Cc: 17357@debbugs.gnu.org, Jan =?UTF-8?Q?Dj=C3=A4rv?= Received: via spool by 17357-submit@debbugs.gnu.org id=B17357.139864345125612 (code B ref 17357); Mon, 28 Apr 2014 00:05:02 +0000 Received: (at 17357) by debbugs.gnu.org; 28 Apr 2014 00:04:11 +0000 Received: from localhost ([127.0.0.1]:43345 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WeZ3K-0006f1-Mz for submit@debbugs.gnu.org; Sun, 27 Apr 2014 20:04:11 -0400 Received: from mail-pb0-f43.google.com ([209.85.160.43]:54548) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WeZ3H-0006eO-G9 for 17357@debbugs.gnu.org; Sun, 27 Apr 2014 20:04:08 -0400 Received: by mail-pb0-f43.google.com with SMTP id um1so5146060pbc.2 for <17357@debbugs.gnu.org>; Sun, 27 Apr 2014 17:04:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=CVe9zs/OjfH06ycdaAAMEAlEFAEE6SFO6dk+XH6YW+M=; b=Jn/5pT6nj+2nMIi3bhe6TaZ2Clz6zXqIEqBCVl96ED9OxEoHr0FdwmDrCTJrJ8D/Mg 9T+ZzdgYyPWwmqEuKL6+pQQn5LRjxGlVGgrOBnqOvsxBHkO+yl6Tgql7nPOQBOo8zllf 9XvSwGR+X7uJepeVGNo7xviHsY6U4k9XhZ6eExEi+7pqlgra1oyDV0nzPsEpZWDAiZ5W gbRvPor2EEgLzuKQ2fiefeMB0KFECkr2AY4vmVRziwQ5mOYH0VzBnXyfKL+PE2CcZJWR SMMHH5Lh7fpEAiuRMbm5DnQAUClBuMJeyHnC1ViYCqA2FV639/AR1d0OzR64OTmzwB6D qBJQ== X-Received: by 10.66.216.137 with SMTP id oq9mr21758642pac.97.1398643440835; Sun, 27 Apr 2014 17:04:00 -0700 (PDT) Received: from milly.lan (c-24-5-85-50.hsd1.ca.comcast.net. [24.5.85.50]) by mx.google.com with ESMTPSA id bs17sm81007877pac.28.2014.04.27.17.03.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 27 Apr 2014 17:03:57 -0700 (PDT) Content-Type: multipart/signed; boundary="Apple-Mail=_9D62B0A1-BA1C-494B-B4FD-CFCB572115D2"; protocol="application/pkcs7-signature"; micalg=sha1 Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) From: Glyph In-Reply-To: <535D4211.6030706@dancol.org> Date: Sun, 27 Apr 2014 17:03:23 -0700 Message-Id: <716D74DC-50C1-4E79-B43B-5D595A051516@twistedmatrix.com> References: <10EFA706-8A14-4F49-81B2-403D770E1CCE@twistedmatrix.com> <535D4211.6030706@dancol.org> X-Mailer: Apple Mail (2.1874) X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --Apple-Mail=_9D62B0A1-BA1C-494B-B4FD-CFCB572115D2 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 On Apr 27, 2014, at 10:44 AM, Daniel Colascione = wrote: > On 04/27/2014 10:27 AM, Jan Dj=E4rv wrote: >> 27 apr 2014 kl. 09:47 skrev Glyph : >>=20 >>>=20 >>> I'm using snapshot builds from http://emacsformacosx.com/. = Somewhere >>> between the 4/13 snapshot and the 4/24 snapshot, "paste" in an OS X >>> terminal (running with -nw) results in garbage characters on either = side >>> of the paste. >>>=20 >>> For example, if I paste the URL, it looks like >>> 200~http://emacsformacosx.com/201~, or causes jumping around within = the >>> buffer (for example, when filing this bug, it jumped to the = beginning of >>> the buffer and pasted the URL and the "201~" before the From:). >>>=20 >>>=20 >>=20 >> I can't reproduce this. Did you start emacs with -Q? >> What application did you copy from? >> What key combination did you use to paste? >=20 > That's the new bracketed paste system supoport. Emacs is correctly > sending the terminal the sequence to enable bracketed paste mode, but > isn't correctly the start sequence. I hope we don't have to make this > feature conditional. I did figure this out a couple of hours after I discovered the weird = behavior. > OP, what's in *Messages*? If you M-x trace-function-background > xterm-paste, do you see messages in *trace-output*? What happens if = you > manually type ESC [ 2 0 0 ~ ? I can save you some trouble - bracketed paste support works fine, the = terminal sends the right control codes :-). The problem is that I had this key-binding in some emacs-lisp code I = wrote a while ago: (global-set-key [(meta \])] 'something) (global-set-key [(meta \[)] 'something-else) After removing those global key bindings, it works great. It might be worth putting some nicer error-reporting around those = though, since M-] and M-[ are perfectly cromulent keys to want to bind = (and I still bind them, I just have an (if (not (eq window-system nil))) = around it now. Thanks, -g= --Apple-Mail=_9D62B0A1-BA1C-494B-B4FD-CFCB572115D2 Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIMbzCCBjMw ggUboAMCAQICAwaBhzANBgkqhkiG9w0BAQsFADCBjDELMAkGA1UEBhMCSUwxFjAUBgNVBAoTDVN0 YXJ0Q29tIEx0ZC4xKzApBgNVBAsTIlNlY3VyZSBEaWdpdGFsIENlcnRpZmljYXRlIFNpZ25pbmcx ODA2BgNVBAMTL1N0YXJ0Q29tIENsYXNzIDEgUHJpbWFyeSBJbnRlcm1lZGlhdGUgQ2xpZW50IENB MB4XDTEzMDQyOTE4MTUwNloXDTE0MDUwMTAzMjMzM1owSjEgMB4GA1UEAwwXZ2x5cGhAdHdpc3Rl ZG1hdHJpeC5jb20xJjAkBgkqhkiG9w0BCQEWF2dseXBoQHR3aXN0ZWRtYXRyaXguY29tMIIBIjAN BgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvbURzFGZtHn5WuAwzjp/LFqFQvkbdE1O1twrj8ue sq+CYS0aMp+toAtoqbYqeVqbRGD+4qQkgmi4BjnI1vrykoStdpuWgqoWiDa0l7jYyKvIAgYvJbYs B9+EQAMr59Jdmj7/Obz3skMi9FrjYxFFxgFugIrEm+s3qgFU8jUzUEkEgNqLKxWHqQTuVPz1wicU GbjvKven85hAdaVJNCmz2HFpjopy2xfQwIDlanRbKcSLMIkudVPskBHk8mLIPb6qdXUvi6OzXq1y tofE4kg9lY3V2BhRz/o0/0yAqfRINxUYwSX2AewhYhaX4UQ5WzAY9b7WN7hk/74562qyF7mxXwID AQABo4IC3TCCAtkwCQ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FzcyAxIFByaW1hcnkgSW50 ZXJtZWRpYXRlIENsaWVudCBDQQIDBoGHMA0GCSqGSIb3DQEBAQUABIIBAF4bPRLpVacOAHQTpWw0 L7PiaNRa3y5DLyxEGIipDDHKjsZEuAL1Y1QCjEiTKky1JkcMaD3H3Aszx5th7wlbSJ2PUmFVoBgg htIMMioT8tQkrwhOO/KZqxT09n3ohScwHO20SCwG3FoisLtNaUD2ZyJ1OdHooGh+JAQDp0nL6Zkj Lw/ZEJQH8M0O92SnuzqNNtcvHq9TfmdpEobKkB/lN7wRGceSNvvNHEQNvTVo7ML7KS+Gj2fL+skV 4eZdjyXUGPsvLnvMvFjOXOBV9YfFMp9UnJC0+nUv2I+O7T7ERV6K/w49uA7LLMxG13oHEPL4X7Vl 7SBfDlnYlGYN2MXoXSEAAAAAAAA= --Apple-Mail=_9D62B0A1-BA1C-494B-B4FD-CFCB572115D2-- From unknown Tue Jun 24 05:14:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17357: 24.4.50; garbage characters when pasting in an OS X terminal Resent-From: Daniel Colascione Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Apr 2014 00:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17357 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Glyph Cc: 17357@debbugs.gnu.org, Jan =?UTF-8?Q?Dj=C3=A4rv?= Received: via spool by 17357-submit@debbugs.gnu.org id=B17357.139864390326346 (code B ref 17357); Mon, 28 Apr 2014 00:12:02 +0000 Received: (at 17357) by debbugs.gnu.org; 28 Apr 2014 00:11:43 +0000 Received: from localhost ([127.0.0.1]:43349 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WeZAc-0006qq-St for submit@debbugs.gnu.org; Sun, 27 Apr 2014 20:11:43 -0400 Received: from dancol.org ([96.126.100.184]:42162) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WeZAZ-0006qf-6M for 17357@debbugs.gnu.org; Sun, 27 Apr 2014 20:11:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Type:In-Reply-To:References:Subject:CC:To:MIME-Version:From:Date:Message-ID; bh=K5LRI09D0pXN98hhYT0Eyqcw5STyqzjJLIpZvTBqsds=; b=h0xZtmWv/o03mTZOdOnyPb8KstxQez3QH31EUCqkULUuOluiAQZWN01rEp6cs73B4xd5feXQ43SVj9R5vs48cSdPTky7biaIHy9/cowc2vsvJ+udnTHPZIhwRmThWXW4K+G5/caAmAyNRsAzWzd2mutAuv4R+2IBiqctV3wNJkwC0VcacpTRdqAi06a0xq28pEhZ+xZQGRXL1pQ16UkNHCiPvlFW6SwID0RN+LhlkI38vjsyuInZRyJi6f2r0hXwlBVQPAfHObfWAx1lWuAHA9mpYya4HjWliBxwwo7Qm6NvOm230kvrP9FgACBsZpLV9c6XKF2pjoF5wqh4MpeTUQ==; Received: from [2601:8:b200:2b6::2b1] by dancol.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1WeZAW-0000hh-Bn; Sun, 27 Apr 2014 17:11:36 -0700 Message-ID: <535D9CB7.6070601@dancol.org> Date: Sun, 27 Apr 2014 17:11:35 -0700 From: Daniel Colascione User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 References: <10EFA706-8A14-4F49-81B2-403D770E1CCE@twistedmatrix.com> <535D4211.6030706@dancol.org> <716D74DC-50C1-4E79-B43B-5D595A051516@twistedmatrix.com> In-Reply-To: <716D74DC-50C1-4E79-B43B-5D595A051516@twistedmatrix.com> X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BW5nXlBX20tbGeSOAbI7H0Xxub9RUve9D" X-Spam-Score: -0.6 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --BW5nXlBX20tbGeSOAbI7H0Xxub9RUve9D Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 04/27/2014 05:03 PM, Glyph wrote: >=20 > On Apr 27, 2014, at 10:44 AM, Daniel Colascione wro= te: >=20 >> On 04/27/2014 10:27 AM, Jan Dj=E4rv wrote: >>> 27 apr 2014 kl. 09:47 skrev Glyph : >>> >>>> >>>> I'm using snapshot builds from http://emacsformacosx.com/. Somewher= e >>>> between the 4/13 snapshot and the 4/24 snapshot, "paste" in an OS X >>>> terminal (running with -nw) results in garbage characters on either = side >>>> of the paste. >>>> >>>> For example, if I paste the URL, it looks like >>>> 200~http://emacsformacosx.com/201~, or causes jumping around within = the >>>> buffer (for example, when filing this bug, it jumped to the beginnin= g of >>>> the buffer and pasted the URL and the "201~" before the From:). >>>> >>>> >>> >>> I can't reproduce this. Did you start emacs with -Q? >>> What application did you copy from? >>> What key combination did you use to paste? >> >> That's the new bracketed paste system supoport. Dammit. Why do I only notice typos in my emails after I send them? > Emacs is correctly >> sending the terminal the sequence to enable bracketed paste mode, but >> isn't correctly the start sequence. I hope we don't have to make this >> feature conditional. >=20 > I did figure this out a couple of hours after I discovered the weird be= havior. Eh, at least I found an unrelated bug in the bracketed paste support as a result of your message. >> OP, what's in *Messages*? If you M-x trace-function-background >> xterm-paste, do you see messages in *trace-output*? What happens if yo= u >> manually type ESC [ 2 0 0 ~ ? >=20 > I can save you some trouble - bracketed paste support works fine, the t= erminal sends the right control codes :-). >=20 > The problem is that I had this key-binding in some emacs-lisp code I wr= ote a while ago: >=20 > (global-set-key [(meta \])] 'something) > (global-set-key [(meta \[)] 'something-else) Your numeric keypad bindings should have broken too. Also, we bind these keys in xterm-function-map. Shouldn't that map override global-map? > After removing those global key bindings, it works great. >=20 > It might be worth putting some nicer error-reporting around those > though, since M-] and M-[ are perfectly cromulent keys to want to bind > (and I still bind them, I just have an (if (not (eq window-system nil))= ) > around it now. I'd advise something a bit more subtle, in case you want to use emacs server with tty frames. --BW5nXlBX20tbGeSOAbI7H0Xxub9RUve9D Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJTXZy3AAoJEMAaIROpHW7If24P/3aXg58EIy3fG5UPU95nI+sM dzA7rm/pBRQPSOsDu5bbwSRIIBYHJK4dCEGkXqBV6GXz6A0d7uqKuzJRzJZKspEx A/IrjrEsaWSbSJZm7GVAGonb9lHJiTo5wYTYI/oxzu5mffqFoITxq1iq41LGuiev eU7MHW7TPhr5tU8OyxEI3NSXdj8/xiQSly6fo/fI8cGwGOTArZhVisCmVylc0I66 eRQwmb/hUOkkLWwURxZYlLGRDECxt+iZ2fsJONzaT2z4dTARksLVbYgIOrVwYhp3 /7Cbr7xOEWG1AnXGh0ItcJhkHCD49MFqUjZ+c75zc4QEZvyRTOXWffHk0tM6orpZ s+Vz7WfDrxIQSzvCYwYBKoki0O9cmHjQ8HogLeAS61UtybHxJPZHON2tsczUE4ZG QNUjkDDd0AFhUOKYitpj8m74FINyWcb0QeVrcxiL001fSqGFash27nNyQQs9sowa sZHKTOqdRlXgg02N1z19tPzuTJoVSE0fpxD2cP9dE8dhY8EOPl8zRxVgmcozn2Gp md13o8x8Y5dJO6nJr4p+pMJ/MU3IUiI4YK/91vDFDdFFYSzRRZrcmX5Xouh/ekV0 nayoV2fcbK/aRdzhxWPLdg023SA+PZz+OI9iN3HKm2VBk1NoYMhIRfs8hx8lvaeX 0GGyKjCM9QBS9bKroAg2 =AAea -----END PGP SIGNATURE----- --BW5nXlBX20tbGeSOAbI7H0Xxub9RUve9D-- From unknown Tue Jun 24 05:14:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17357: 24.4.50; garbage characters when pasting in an OS X terminal Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Apr 2014 03:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17357 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Daniel Colascione Cc: 17357@debbugs.gnu.org, Glyph Received: via spool by 17357-submit@debbugs.gnu.org id=B17357.139865733226637 (code B ref 17357); Mon, 28 Apr 2014 03:56:02 +0000 Received: (at 17357) by debbugs.gnu.org; 28 Apr 2014 03:55:32 +0000 Received: from localhost ([127.0.0.1]:43423 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WecfE-0006vY-5E for submit@debbugs.gnu.org; Sun, 27 Apr 2014 23:55:32 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:31414) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WecfA-0006vJ-BN for 17357@debbugs.gnu.org; Sun, 27 Apr 2014 23:55:29 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArYGAIDvNVNMCqOU/2dsb2JhbABZgwaDSr0vgw6BFxd0giYBAQRWIxALDiYSFBgNJIgM0hkXjnoHhDgEqRmBaoNMIQ X-IPAS-Result: ArYGAIDvNVNMCqOU/2dsb2JhbABZgwaDSr0vgw6BFxd0giYBAQRWIxALDiYSFBgNJIgM0hkXjnoHhDgEqRmBaoNMIQ X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="59242042" Received: from 76-10-163-148.dsl.teksavvy.com (HELO pastel.home) ([76.10.163.148]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 27 Apr 2014 23:55:22 -0400 Received: by pastel.home (Postfix, from userid 20848) id 105716024D; Sun, 27 Apr 2014 23:55:22 -0400 (EDT) From: Stefan Monnier Message-ID: References: <10EFA706-8A14-4F49-81B2-403D770E1CCE@twistedmatrix.com> <535D4211.6030706@dancol.org> <716D74DC-50C1-4E79-B43B-5D595A051516@twistedmatrix.com> <535D9CB7.6070601@dancol.org> Date: Sun, 27 Apr 2014 23:55:22 -0400 In-Reply-To: <535D9CB7.6070601@dancol.org> (Daniel Colascione's message of "Sun, 27 Apr 2014 17:11:35 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) >> (global-set-key [(meta \])] 'something) >> (global-set-key [(meta \[)] 'something-else) > Your numeric keypad bindings should have broken too. > Also, we bind these keys in xterm-function-map. Shouldn't that map > override global-map? No. The way input decoding takes place is very delicate and what "takes priority" when is quite delicate. Yes, a ?\M-\] binding in input-decode-map takes precedence over such a binding in global-map. But after reading ?\M-\] we don't have enough input (yet) to translate that to something else, so Emacs has a choice to make: - either wait for more input, in the hope that it will match one of the bindings under the ?\M-\] prefix in input-decode-map. - or stop right here since we do have a valid binding already (in the global map). And Emacs chooses option 2 because option 1 is too risky. E.g. Option 1 would prevent ESC ESC ESC from working, since there's pretty much always an ESC prefix in input-decode-map, so we'd always "wait for more" after an ESC. Maybe it would make sense to try and improve the input-decode-map support with a way to say: if we've seen "ESC [", we have enough evidence that there is a real escape sequence coming, so keep waiting for input as long as it matches something in input-decode-map. Stefan From unknown Tue Jun 24 05:14:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17357: 24.4.50; garbage characters when pasting in an OS X terminal Resent-From: Glyph Lefkowitz Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Apr 2014 19:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17357 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Daniel Colascione Cc: 17357@debbugs.gnu.org, Jan =?UTF-8?Q?Dj=C3=A4rv?= Received: via spool by 17357-submit@debbugs.gnu.org id=B17357.139871241921589 (code B ref 17357); Mon, 28 Apr 2014 19:14:01 +0000 Received: (at 17357) by debbugs.gnu.org; 28 Apr 2014 19:13:39 +0000 Received: from localhost ([127.0.0.1]:44137 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Weqzh-0005c8-Jc for submit@debbugs.gnu.org; Mon, 28 Apr 2014 15:13:38 -0400 Received: from mail-ie0-f174.google.com ([209.85.223.174]:49702) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Weqzf-0005bs-3P for 17357@debbugs.gnu.org; Mon, 28 Apr 2014 15:13:35 -0400 Received: by mail-ie0-f174.google.com with SMTP id ar20so2006311iec.19 for <17357@debbugs.gnu.org>; Mon, 28 Apr 2014 12:13:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=s+JSw+L2cxivSGz66XjCA+acTxnhpNJZczBipknqOL4=; b=iM+wxYW2j0N6JsZiTct8tWlXTs0G61V1+RUlFem1y2V8BnY4mb+TXxNPmy1Xtc1tky b7Bx89N/EU6eNq9eZqAo8u+ZzXpx9l0yGj/bRxFWQ7h2JZ9iOn0V75xTvvSJ9LASpj6E qh02u/tD7QNvBM3t9wPCLWNSHJxpFx66pLTbgK9HCuoKR3VPc+vPc+Y/o7aHUao5XWRD g17xmx60j+O8Nlqhv6GkB2YyIppjPX2LOSwZ6jNpLrlNR+1Wu49xA0oJRyMfifPsHEOT Xq2KcEC4CLcqHlqKXEyJkvwgg01OL4SGx0v3ROaDF4T8aQNAGcQykvUw0XQVRv9Q0Awf tfhQ== X-Received: by 10.50.73.135 with SMTP id l7mr25960644igv.23.1398712409386; Mon, 28 Apr 2014 12:13:29 -0700 (PDT) Received: from ?IPv6:2001:4807:2:104:1542:bb94:cb18:891b? ([2001:4807:2:104:1542:bb94:cb18:891b]) by mx.google.com with ESMTPSA id p7sm28189369igg.15.2014.04.28.12.13.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Apr 2014 12:13:24 -0700 (PDT) Content-Type: multipart/signed; boundary="Apple-Mail=_CD700C85-7E78-481E-A58B-36DF3FF4F386"; protocol="application/pkcs7-signature"; micalg=sha1 Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) From: Glyph Lefkowitz In-Reply-To: <535D9CB7.6070601@dancol.org> Date: Mon, 28 Apr 2014 12:12:04 -0700 Message-Id: References: <10EFA706-8A14-4F49-81B2-403D770E1CCE@twistedmatrix.com> <535D4211.6030706@dancol.org> <716D74DC-50C1-4E79-B43B-5D595A051516@twistedmatrix.com> <535D9CB7.6070601@dancol.org> X-Mailer: Apple Mail (2.1874) X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --Apple-Mail=_CD700C85-7E78-481E-A58B-36DF3FF4F386 Content-Type: multipart/alternative; boundary="Apple-Mail=_64096F16-98F8-4C0E-973A-E45DB08957C3" --Apple-Mail=_64096F16-98F8-4C0E-973A-E45DB08957C3 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 On Apr 27, 2014, at 5:11 PM, Daniel Colascione = wrote: > I'd advise something a bit more subtle, in case you want to use emacs > server with tty frames. Good point. In fact, I frequently do exactly that, so finding a better = solution would be good. Is there a frame-local map that I can use / that Emacs can recommend = other people use for similar types of bindings? -glyph --Apple-Mail=_64096F16-98F8-4C0E-973A-E45DB08957C3 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1 On Apr = 27, 2014, at 5:11 PM, Daniel Colascione <dancol@dancol.org> = wrote:

I'd advise something a bit more = subtle, in case you want to use emacs
server with tty = frames.

Good point.  In fact, I = frequently do exactly that, so finding a better solution would be = good.

Is there a frame-local map that I can use = / that Emacs can recommend other people use for similar types of = bindings?

-glyph

= --Apple-Mail=_64096F16-98F8-4C0E-973A-E45DB08957C3-- --Apple-Mail=_CD700C85-7E78-481E-A58B-36DF3FF4F386 Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIMbzCCBjMw ggUboAMCAQICAwaBhzANBgkqhkiG9w0BAQsFADCBjDELMAkGA1UEBhMCSUwxFjAUBgNVBAoTDVN0 YXJ0Q29tIEx0ZC4xKzApBgNVBAsTIlNlY3VyZSBEaWdpdGFsIENlcnRpZmljYXRlIFNpZ25pbmcx ODA2BgNVBAMTL1N0YXJ0Q29tIENsYXNzIDEgUHJpbWFyeSBJbnRlcm1lZGlhdGUgQ2xpZW50IENB MB4XDTEzMDQyOTE4MTUwNloXDTE0MDUwMTAzMjMzM1owSjEgMB4GA1UEAwwXZ2x5cGhAdHdpc3Rl ZG1hdHJpeC5jb20xJjAkBgkqhkiG9w0BCQEWF2dseXBoQHR3aXN0ZWRtYXRyaXguY29tMIIBIjAN BgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvbURzFGZtHn5WuAwzjp/LFqFQvkbdE1O1twrj8ue sq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ECxMiU2VjdXJlIERpZ2l0YWwg Q2VydGlmaWNhdGUgU2lnbmluZzE4MDYGA1UEAxMvU3RhcnRDb20gQ2xhc3MgMSBQcmltYXJ5IElu dGVybWVkaWF0ZSBDbGllbnQgQ0ECAwaBhzCBpwYLKoZIhvcNAQkQAgsxgZeggZQwgYwxCzAJBgNV BAYTAklMMRYwFAYDVQQKEw1TdGFydENvbSBMdGQuMSswKQYDVQQLEyJTZWN1cmUgRGlnaXRhbCBD ZXJ0aWZpY2F0ZSBTaWduaW5nMTgwNgYDVQQDEy9TdGFydENvbSBDbGFzcyAxIFByaW1hcnkgSW50 ZXJtZWRpYXRlIENsaWVudCBDQQIDBoGHMA0GCSqGSIb3DQEBAQUABIIBALssr8/xE3UjXTOtqyaU Kv6hKBFPGTHhATlkfclFKPAKPDaPdRXgncYoMkteJb0VDKcDC3WvmGgVOcLEgd5UW7o8U8STw8nZ EPcvh7u7rb8nvqFE+lFIC7b4uEjOAm/WdtAxLuwJaXNRr8tMk2vpRGShjUiNB+zQ98WUsO+0ZFJI El06qzydm/NObxRRRj4m47luz0umStzhGgazIddyeKp424PRUQ5zETD6C4gHAiSE6C41D34cGCj2 W40Pfs/yrvdLz1UG3pHXjTU+chyHoOwfujBu7ap3+emMI1vMwXLtYSpy0tC5YDxidFAzUBtPUbD8 YALDyRrrdgl4r41fucUAAAAAAAA= --Apple-Mail=_CD700C85-7E78-481E-A58B-36DF3FF4F386-- From unknown Tue Jun 24 05:14:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17357: 24.4.50; garbage characters when pasting in an OS X terminal Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Sep 2020 12:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17357 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Glyph Cc: 17357@debbugs.gnu.org, Daniel Colascione , Jan =?UTF-8?Q?Dj=C3=A4rv?= Received: via spool by 17357-submit@debbugs.gnu.org id=B17357.159965366828746 (code B ref 17357); Wed, 09 Sep 2020 12:15:01 +0000 Received: (at 17357) by debbugs.gnu.org; 9 Sep 2020 12:14:28 +0000 Received: from localhost ([127.0.0.1]:57640 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kFyzc-0007Ta-2K for submit@debbugs.gnu.org; Wed, 09 Sep 2020 08:14:28 -0400 Received: from quimby.gnus.org ([95.216.78.240]:53352) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kFyzZ-0007TH-SB for 17357@debbugs.gnu.org; Wed, 09 Sep 2020 08:14:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=fBRvUoP8hJx5AH305aQtsvpL5aplmKjX582BzN/oRdU=; b=c9IcSsbbIRAGr8jOSPpdxvSwwJ AT/3sZeQlDMPU5s7n4uSbK38HKrtoKfWPaakEhLtKQkH84ISj9C7xk69RMwdFhT6g3IK6iXWbOa4U EJfLzX2laZhTaevchg3VfxRytsydR/n5HXBHIa4RdhDMyt1mk016zPOmz2Lfzo//8YhM=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kFyzN-0002NT-FB; Wed, 09 Sep 2020 14:14:18 +0200 From: Lars Ingebrigtsen References: <10EFA706-8A14-4F49-81B2-403D770E1CCE@twistedmatrix.com> <535D4211.6030706@dancol.org> <716D74DC-50C1-4E79-B43B-5D595A051516@twistedmatrix.com> X-Now-Playing: Jay Glass Dubs's _Epitaph_: "Seikilos & To Console Him" Date: Wed, 09 Sep 2020 14:14:12 +0200 In-Reply-To: <716D74DC-50C1-4E79-B43B-5D595A051516@twistedmatrix.com> (glyph@twistedmatrix.com's message of "Sun, 27 Apr 2014 17:03:23 -0700") Message-ID: <87wo13b10r.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Glyph writes: > The problem is that I had this key-binding in some emacs-lisp code I > wrote a while ago: > > (global-set-key [(meta \])] 'something) > (global-set-key [(meta \[)] 'something-else) > > After removin [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Glyph writes: > The problem is that I had this key-binding in some emacs-lisp code I > wrote a while ago: > > (global-set-key [(meta \])] 'something) > (global-set-key [(meta \[)] 'something-else) > > After removing those global key bindings, it works great. > > It might be worth putting some nicer error-reporting around those > though, since M-] and M-[ are perfectly cromulent keys to want to bind > (and I still bind them, I just have an (if (not (eq window-system > nil))) around it now. This was apparently not an Emacs bug, but then the discussion turned to possibly adding a new feature that would warn the user if binding these keys in a terminal. I'm not sure that's really warranted -- there's a bunch of key bindings that work under a window system that don't work in a terminal. It would be nice to have key bindings that work under different terminal types (and is that what overriding-terminal-local-map kinda sorta does?), but this would in any case be a new feature request, so I'm closing this bug report. (If this is something that should be worked upon, please open a new wishlist bug report.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 09 08:14:34 2020 Received: (at control) by debbugs.gnu.org; 9 Sep 2020 12:14:34 +0000 Received: from localhost ([127.0.0.1]:57643 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kFyzh-0007Tx-9a for submit@debbugs.gnu.org; Wed, 09 Sep 2020 08:14:34 -0400 Received: from quimby.gnus.org ([95.216.78.240]:53368) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kFyzf-0007TS-7r for control@debbugs.gnu.org; Wed, 09 Sep 2020 08:14:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=fVzl+Wmuls0BxYu0rSkT2a2RhuGrZTzWFgUYNM9axNY=; b=G0617FoMeZnhKlNcOfj/umccR8 bG/nCWKWNhTXntp0OM2i8VJUsV8nv9vrTqJXCz6jldAUcx1BG9sdF5Egxmtz7o2q8bKFiCM5haJl2 rGoVsHb49MYiQURX4bACtHa94E4elsarehtJphEh4dYyGW5DlLEUE2PoGCfB+WPfnppg=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kFyzX-0002Nb-D8 for control@debbugs.gnu.org; Wed, 09 Sep 2020 14:14:25 +0200 Date: Wed, 09 Sep 2020 14:14:22 +0200 Message-Id: <87v9gnb10h.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #17357 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 17357 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 17357 quit