From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Achim Gratz Newsgroups: gmane.emacs.bugs Subject: bug#22564: Fundamental mode isn't fundamental enough. Date: Sat, 06 Feb 2016 17:59:04 +0100 Organization: Linux Private Site Message-ID: <878u2xrd0n.fsf@Rainer.invalid> References: <20160206112110.9815.qmail@mail.muc.de> <20160206143657.GA1246@holos> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1454778026 7257 80.91.229.3 (6 Feb 2016 17:00:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Feb 2016 17:00:26 +0000 (UTC) To: 22564@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 06 18:00:13 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aS6DU-000134-K9 for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Feb 2016 18:00:12 +0100 Original-Received: from localhost ([::1]:55118 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aS6DT-0007al-Oz for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Feb 2016 12:00:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53077) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aS6DO-0007Uz-Ij for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2016 12:00:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aS6DL-0003Kq-Bl for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2016 12:00:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55676) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aS6DL-0003Km-8y for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2016 12:00:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aS6DK-0006Gs-UT for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2016 12:00:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <20160205125559.GC7727@acm.fritz.box> Resent-From: Achim Gratz Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Feb 2016 17:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22564 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.145477796824036 (code B ref -1); Sat, 06 Feb 2016 17:00:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Feb 2016 16:59:28 +0000 Original-Received: from localhost ([127.0.0.1]:36032 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aS6Cm-0006FZ-H3 for submit@debbugs.gnu.org; Sat, 06 Feb 2016 11:59:28 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33775) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aS6Ck-0006FN-Ui for submit@debbugs.gnu.org; Sat, 06 Feb 2016 11:59:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aS6Ce-0003Bw-Hx for submit@debbugs.gnu.org; Sat, 06 Feb 2016 11:59:21 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:57156) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aS6Ce-0003Bs-Eq for submit@debbugs.gnu.org; Sat, 06 Feb 2016 11:59:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52972) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aS6Cd-0007JM-95 for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2016 11:59:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aS6Ca-0003As-35 for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2016 11:59:19 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:40347) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aS6CZ-00038x-Ro for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2016 11:59:16 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aS6CU-00081A-Fv for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2016 17:59:10 +0100 Original-Received: from p54b463fb.dip0.t-ipconnect.de ([84.180.99.251]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 06 Feb 2016 17:59:10 +0100 Original-Received: from Stromeko by p54b463fb.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 06 Feb 2016 17:59:10 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 44 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p54b463fb.dip0.t-ipconnect.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.90 (gnu/linux) Cancel-Lock: sha1:yJcNxmMuOnIFbVzQaXdWWWUaVA8= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:112568 Archived-At: Mark Oteiza writes: >> What is "bracketed paste"? The term appears only in xterm.el, but that >> file doesn't say what it is. > > It's in NEWS as well. Paraphrasing: it means Emacs understands a chunk of > text that is "bracketed" (surrounded) by escape characters as a string > to be inserted, instead of interpreting each character in the pasted > text as actual user input. That entry does absolutely nothing to explain what "bracketed paste mode" actually is or how it can be used in Emacs. A cursory search leads me to believe that this is something that some terminal emulators optionally can do and is switched off by default even then. In other words, it is completely useless if you're not using one of those terminal emulators that do support it or on those that do and have it switched off. The list of instances where bracketed paste mode isn't available includes the GUI Emacs frame apparently, so it really shouldn't be peddled as a solution for the mess that electric indent produces in many modes when you're pasting stuff in (in my case most often via the middle mouse button). It works by pre- and post-fixing anything pasted into the terminal by an escape sequence, so maybe there is a way to emulate it somehow for GUIĀ frames, but if there is, I can't find an explanation of how to turn that feature on and off. Another prominent example where electric indent shouldn't be active by default is diff-mode, btw. Even if I would agree to the general default of having it on -- I don't, because the cleanup it requires when going wrong is more tedious than what it saves me otherwise -- that should be reason enough to provide some way of temporarily switching it off for operations where you already know it won't work. Since you often realize too late that it will interfere, it would be even more helpful if you could have some function that removes any indent that was electrically added. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Factory and User Sound Singles for Waldorf Q+, Q and microQ: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds