From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: electric mode - is it vapour ware? Date: Sat, 22 Aug 2009 02:56:14 +0200 Message-ID: References: <20090821183208.GB1897@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1250902615 19030 80.91.229.12 (22 Aug 2009 00:56:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Aug 2009 00:56:55 +0000 (UTC) Cc: ihok@hotmail.com, Emacs-Devel devel To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 22 02:56:48 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MeeuW-0007yA-3o for ged-emacs-devel@m.gmane.org; Sat, 22 Aug 2009 02:56:48 +0200 Original-Received: from localhost ([127.0.0.1]:43602 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MeeuV-0002pg-JR for ged-emacs-devel@m.gmane.org; Fri, 21 Aug 2009 20:56:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MeeuP-0002nS-UB for emacs-devel@gnu.org; Fri, 21 Aug 2009 20:56:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MeeuK-0002mY-CV for emacs-devel@gnu.org; Fri, 21 Aug 2009 20:56:40 -0400 Original-Received: from [199.232.76.173] (port=45618 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MeeuK-0002mV-7s for emacs-devel@gnu.org; Fri, 21 Aug 2009 20:56:36 -0400 Original-Received: from mail-yx0-f172.google.com ([209.85.210.172]:34976) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MeeuJ-000369-Qu for emacs-devel@gnu.org; Fri, 21 Aug 2009 20:56:35 -0400 Original-Received: by yxe2 with SMTP id 2so606337yxe.14 for ; Fri, 21 Aug 2009 17:56:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=6DHTSSS7JYcjI+09mUDZRNj52OeM5zQtnIxsqNrVMkU=; b=Y61OFuKrBQHI8kiYs2oQc/SdTh49pnNBOdwXl3ysX6236nnrp/AB3UzPL4BhWR42G6 q523EYMWXcAv8HtTjVDTj3nNAMxr3Mhvo/smydYqXLNRIyqhirKlkr5CIjvVcOwQqVpM C6dC5UkoS3IiQTzXsCvtE78kI37z9XkLsq+lA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=eMjVIMvp1g08yMlcTTuwFFt6rYDdtnb4pPJaZyufz56GtZNfm5zY/xWdMOzHEFHY5i gyGF/l85SY9QCiY9+QeLeT5DBsYFCztyt0pjNgdLsBwVz4KU6sbt2WGCGqlMmDKpj6Nr 8moHdn16ZwRzci8m5V8EGWMvPvhdaGtjSsJkA= Original-Received: by 10.100.18.15 with SMTP id 15mr1923780anr.48.1250902595256; Fri, 21 Aug 2009 17:56:35 -0700 (PDT) In-Reply-To: <20090821183208.GB1897@muc.de> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:114501 Archived-At: On Fri, Aug 21, 2009 at 8:32 PM, Alan Mackenzie wrote: >> In the CC Mode manual there is something called "electric mode". Where >> is this mode? > >> =C2=A0 =C2=A0(info "(ccmode) Minor Modes") > >> I am asking because of a bug that shows up in php-mode, see >> https://bugs.launchpad.net/nxhtml/+bug/409358 > >> How are you supposed to turn off this functionality? > > Interactively, C-c C-l (`c-toggle-electric-state') toggles it. > > Programmatically, (c-toggle-electric-state arg) does the Usual Thing, > i.e. positive arg turns it on, negative arg turns it off, 0 or nil > toggles it. > > Internally, it's represented by the buffer local variable > c-electric-flag. Thanks Alan, Perhaps the name of this minor mode should be mentioned on the page above in the manual?