From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#22564: Fundamental mode isn't fundamental enough. Date: Fri, 5 Feb 2016 12:55:59 +0000 Message-ID: <20160205125559.GC7727@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1454676864 12332 80.91.229.3 (5 Feb 2016 12:54:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Feb 2016 12:54:24 +0000 (UTC) To: 22564@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 05 13:54:12 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 1aRftr-0005ts-Qa for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Feb 2016 13:54:12 +0100 Original-Received: from localhost ([::1]:47930 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRftr-0005ja-90 for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Feb 2016 07:54:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38880) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRftm-0005g9-Nx for bug-gnu-emacs@gnu.org; Fri, 05 Feb 2016 07:54:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aRfti-0004NV-Jg for bug-gnu-emacs@gnu.org; Fri, 05 Feb 2016 07:54:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52514) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRfti-0004NR-Fd for bug-gnu-emacs@gnu.org; Fri, 05 Feb 2016 07:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aRfti-0004S5-Ai for bug-gnu-emacs@gnu.org; Fri, 05 Feb 2016 07:54:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 Feb 2016 12:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 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.145467683217096 (code B ref -1); Fri, 05 Feb 2016 12:54:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Feb 2016 12:53:52 +0000 Original-Received: from localhost ([127.0.0.1]:32870 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aRftY-0004Rg-Kk for submit@debbugs.gnu.org; Fri, 05 Feb 2016 07:53:52 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:47819) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aRftW-0004RU-UV for submit@debbugs.gnu.org; Fri, 05 Feb 2016 07:53:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aRftQ-0004LF-TH for submit@debbugs.gnu.org; Fri, 05 Feb 2016 07:53:45 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:54556) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRftQ-0004LB-QY for submit@debbugs.gnu.org; Fri, 05 Feb 2016 07:53:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38786) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRftP-0005Ek-Ra for bug-gnu-emacs@gnu.org; Fri, 05 Feb 2016 07:53:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aRftM-0004Kp-Dt for bug-gnu-emacs@gnu.org; Fri, 05 Feb 2016 07:53:43 -0500 Original-Received: from mail.muc.de ([193.149.48.3]:45924) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRftM-0004Ja-5G for bug-gnu-emacs@gnu.org; Fri, 05 Feb 2016 07:53:40 -0500 Original-Received: (qmail 77265 invoked by uid 3782); 5 Feb 2016 12:53:38 -0000 Original-Received: from acm.muc.de (p548A4CF8.dip0.t-ipconnect.de [84.138.76.248]) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 05 Feb 2016 13:53:37 +0100 Original-Received: (qmail 8704 invoked by uid 1000); 5 Feb 2016 12:55:59 -0000 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x 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:112487 Archived-At: Hello, Emacs. I've just tried to paste some text into a fundamental mode buffer, using GNU/Linux's GPM mouse utility. It gets fouled up by some facility that decides I want some automatic indentation, despite being in fundamental mode. As far as I understand, GPM does pasting by effectively typing a character at a time. The original text (from an email by Michael Duggan) is this: ######################################################################### In the following C++ snippet: template struct ArgListMatcher : ArgListMatcher::value>, MakeIndices::value, CountRef::value>, Arg, Args...> { using Parent = ArgListMatcher< MakeIndices::value>, MakeIndices::value, CountRef::value>, Arg, Args...>; using Parent::ArgListMatcher; }; ######################################################################### The corrupted text, looks like this: ######################################################################### In the following C++ snippet: template struct ArgListMatcher : ArgListMatcher::value>, MakeIndices::value, CountRef::value>, Arg, Args...> { using Parent = ArgListMatcher< MakeIndices::value>, MakeIndices::value, CountRef::value>, Arg, Args...>; using Parent::ArgListMatcher; }; ######################################################################### Now there will be some sort of option I can set so that this won't happen. But I shouldn't have to. More to the point, a new user who is unfamiliar with Emacs's documentation shouldn't have to. Surely the whole point of fundamental mode is that "clever" things like this should all be disabled. This is surely a bug. -- Alan Mackenzie (Nuremberg, Germany).