From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jim Meyering Newsgroups: gmane.emacs.bugs Subject: bug#24672: writing a test for Bug#24672 (viper mode malfunction while inserting a paren in continued cpp directive) Date: Wed, 26 Oct 2016 07:33:23 -0700 Message-ID: References: <83insfuy45.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1477492607 9048 195.159.176.226 (26 Oct 2016 14:36:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 26 Oct 2016 14:36:47 +0000 (UTC) Cc: 24672@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 26 16:36:43 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bzPJb-0000D4-4b for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Oct 2016 16:36:27 +0200 Original-Received: from localhost ([::1]:35099 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzPJd-0000Y0-IJ for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Oct 2016 10:36:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53936) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzPIG-0008Cg-O8 for bug-gnu-emacs@gnu.org; Wed, 26 Oct 2016 10:35:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bzPIE-0008JK-50 for bug-gnu-emacs@gnu.org; Wed, 26 Oct 2016 10:35:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42271) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bzPIE-0008JD-1t for bug-gnu-emacs@gnu.org; Wed, 26 Oct 2016 10:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bzPID-0002Xs-SW for bug-gnu-emacs@gnu.org; Wed, 26 Oct 2016 10:35:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jim Meyering Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Oct 2016 14:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24672 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24672-submit@debbugs.gnu.org id=B24672.14774924889763 (code B ref 24672); Wed, 26 Oct 2016 14:35:01 +0000 Original-Received: (at 24672) by debbugs.gnu.org; 26 Oct 2016 14:34:48 +0000 Original-Received: from localhost ([127.0.0.1]:57670 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bzPHw-0002XL-GL for submit@debbugs.gnu.org; Wed, 26 Oct 2016 10:34:48 -0400 Original-Received: from mail-it0-f45.google.com ([209.85.214.45]:34988) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bzPHr-0002X5-0z for 24672@debbugs.gnu.org; Wed, 26 Oct 2016 10:34:43 -0400 Original-Received: by mail-it0-f45.google.com with SMTP id e187so26758971itc.0 for <24672@debbugs.gnu.org>; Wed, 26 Oct 2016 07:34:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=hyTjFU4dNKTY7rqgnSsdnhla1W7WfQyAjB6nIJKRpeA=; b=0fQffB0HVhQUanMZaKDqxQnFmt4WYwcjESC73JFNoikwc6ew+X7nNAleeAzwHbQnKZ 9wIg6ZQldVOn9gEOX1Iy+NNBTy7E+BaXLe1NbCCWD+JQc2ZMX/JXN5VpsySWCXU05BUs DcUhpUw1oUbUZU1OUjB4gjE1Mz6zOclujOWITVyyOwSKRpPj1eAuaJ45ErlybUXdlhXz 2GTWvu3T5jOBatYkCXl9SGsqEPjzBBYmpMrwJuEQBel8EiDYclYUt2PgkA46RCJDIiO3 UWTLdFkzP3bM8TVd/lrLRJYdP9+jDZg9mDPXOg91lOaI/eFhMIf8Hc+EWpvPggMAv0c/ y4hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=hyTjFU4dNKTY7rqgnSsdnhla1W7WfQyAjB6nIJKRpeA=; b=TKJgXW2hKVNKUn3R97l0rnFuIEzeFe1QMyjK5iWDmieHArsgzMG1Qc4p/GihWE/PwN o0Q0zbs85Lp5cNMZzYMzZTfoTm7uQwKU+zxTdxXQuYJ+eJt7PQOry+hQ0cKIsjdEpInC v5wO3dCoCpD/LtHTj1LshoX30vIc5tqBsw7f2kehqvAEm0adHy1sBkRMRSpeeKI8M8pj /9+LBylwQcqRYHQGKoSaA3tcQD2locYLHmSid3ddT3oqy4mGp0OqlcZWYneiqKX3Sc88 OAHbwrhSoNTtKOaegEnutcov19kQ0NqLnjIUbGUDCiS7Ri3Z3uRB+Fvgc7mK83M8rX31 BuBQ== X-Gm-Message-State: ABUngvdGtjPt/swcZ85kjwFLm+S1+mkFLi0/u5hZTYaLM2Y+xRv+EPIhGTXq/FO1p3j6M0HEmxXLwidv55BvCw== X-Received: by 10.36.92.14 with SMTP id q14mr2730930itb.97.1477492423757; Wed, 26 Oct 2016 07:33:43 -0700 (PDT) Original-Received: by 10.107.174.21 with HTTP; Wed, 26 Oct 2016 07:33:23 -0700 (PDT) In-Reply-To: <83insfuy45.fsf@gnu.org> X-Google-Sender-Auth: WAq_ti8yqVf6TAxL7mhh4ASFoFE 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" Xref: news.gmane.org gmane.emacs.bugs:125032 Archived-At: On Wed, Oct 26, 2016 at 4:51 AM, Eli Zaretskii wrote: >> From: Jim Meyering >> Date: Tue, 25 Oct 2016 22:09:40 -0700 >> >> This is a corner case. >> When I start in viper mode with this file contents: >> >> #define z_b\ >> >> and then change the "z" to a parenthesis (either one), I get this: >> >> #define (z_b^I^I^I^I^I\$ >> >> [I have represented each TAB as "^I", of course] >> Rather surprising to see all of those TAB characters inserted. > > This is standard operation of the Emacs C mode: some characters, > including the left parenthesis, are "electric", in that they invoke > reindentation/reformatting of the current line. Type "C-h k (" to see > the documentation of that, including links to customization options, > which you can tweak if you don't like the default behavior. > > IOW, I don't think this is a bug at all, but intended behavior. Thanks for replying. I can see how the insertion of those TABs may be expected, but the original bug that caught my eye is that the "z" I wanted to replace is *not* removed.