From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xue Fuqiao Newsgroups: gmane.emacs.devel Subject: Re: electric-pair-mode Date: Mon, 18 Nov 2013 19:04:40 +0800 Message-ID: References: <20131117193046.55ca54f6@forcix.kollektiv-hamburg.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1384772688 21048 80.91.229.3 (18 Nov 2013 11:04:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Nov 2013 11:04:48 +0000 (UTC) Cc: Stefan Monnier , emacs-devel To: Jorgen Schaefer Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 18 12:04:54 2013 Return-path: Envelope-to: ged-emacs-devel@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 1ViMdP-0000fA-Ad for ged-emacs-devel@m.gmane.org; Mon, 18 Nov 2013 12:04:51 +0100 Original-Received: from localhost ([::1]:42385 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViMdO-0004f9-TC for ged-emacs-devel@m.gmane.org; Mon, 18 Nov 2013 06:04:50 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59689) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViMdL-0004f0-3D for emacs-devel@gnu.org; Mon, 18 Nov 2013 06:04:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ViMdG-00063t-5t for emacs-devel@gnu.org; Mon, 18 Nov 2013 06:04:47 -0500 Original-Received: from mail-wg0-x234.google.com ([2a00:1450:400c:c00::234]:40885) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViMdF-00063h-VS for emacs-devel@gnu.org; Mon, 18 Nov 2013 06:04:42 -0500 Original-Received: by mail-wg0-f52.google.com with SMTP id z12so6070540wgg.7 for ; Mon, 18 Nov 2013 03:04:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=W6Avd5FvF5WCtwDk96KFI73oZPMTflCgyvWRQ4JlIys=; b=VESwPltCA+EJdDxUsRUrCmQCpPsZ1leH785zZuDgFzVQ4EHalYeOYXpyAbuGdwdoKr oEb769Zljr00nlPusun3eSH1GVB2hxyRBwa/jExDJH8Iu937aLZjmUOIN2bHUQajVIkT lahJZeVl27HYVkLaCHi/4MkKZO2fuczKxaDLvMA/5zwjRXrZR443SdQPJNhep6f5e7bB Qw9jbLltzskK4AnN2RVYXvxvfSfsz8qfm5HAclMokj56wy546kKzac57OjsEq5V8k4WN GPyG8ojSa5GqKfxIcj/VJEfTrzK5pLIPWYT7tc7RvZiO9S92zdcfN4bV5np3P0nWY3pV x8SA== X-Received: by 10.180.78.165 with SMTP id c5mr16641929wix.3.1384772680175; Mon, 18 Nov 2013 03:04:40 -0800 (PST) Original-Received: by 10.194.54.10 with HTTP; Mon, 18 Nov 2013 03:04:40 -0800 (PST) In-Reply-To: <20131117193046.55ca54f6@forcix.kollektiv-hamburg.de> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::234 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:165319 Archived-At: On Mon, Nov 18, 2013 at 2:30 AM, Jorgen Schaefer wrote: >> I'm thinking of enabling electric-pair-mode in Emacs-24.4, and I think >> the best way to do that is to actually enable it and then deal with >> the complaints. But that only works if the complaints are >> sufficiently constructive. >> >> So, please try enabling it and report any annoyance you notice. >> If you just plain don't like the feature, then just disable it. > > If this is about electric-PAIR-mode: > > Works nicely, except the default `electric-pair-inhibit-predicate' > makes it so that {{ results in "{{_|_}", even though I'd expect > "{{_|_}}". Another problem: In CPerl Mode (and maybe in other modes as well), for example, I'd like to type: print 'Hello World!'; When I press the first apostrophe character, Emacs only inserts one apostrophe; when I press the second apostrophe, Emacs inserts two apostrophes, which is very annoying. And I also found two other bugs about electric-pair-mode in Debbugs. -- http://www.gnu.org/software/emacs/