all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* electric mode - is it vapour ware?
@ 2009-08-06 23:31 Lennart Borgman
  2009-08-21 18:32 ` Alan Mackenzie
  0 siblings, 1 reply; 3+ messages in thread
From: Lennart Borgman @ 2009-08-06 23:31 UTC (permalink / raw)
  To: Emacs-Devel devel; +Cc: ihok, Alan Mackenzie

In the CC Mode manual there is something called "electric mode". Where
is this mode?

   (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?




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: electric mode - is it vapour ware?
  2009-08-06 23:31 electric mode - is it vapour ware? Lennart Borgman
@ 2009-08-21 18:32 ` Alan Mackenzie
  2009-08-22  0:56   ` Lennart Borgman
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Mackenzie @ 2009-08-21 18:32 UTC (permalink / raw)
  To: Lennart Borgman; +Cc: ihok, Emacs-Devel devel

Hi, Lennart.

On Fri, Aug 07, 2009 at 01:31:53AM +0200, Lennart Borgman wrote:
> In the CC Mode manual there is something called "electric mode". Where
> is this mode?

>    (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.

-- 
Alan Mackenzie (Nuremberg, Germany).




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: electric mode - is it vapour ware?
  2009-08-21 18:32 ` Alan Mackenzie
@ 2009-08-22  0:56   ` Lennart Borgman
  0 siblings, 0 replies; 3+ messages in thread
From: Lennart Borgman @ 2009-08-22  0:56 UTC (permalink / raw)
  To: Alan Mackenzie; +Cc: ihok, Emacs-Devel devel

On Fri, Aug 21, 2009 at 8:32 PM, Alan Mackenzie<acm@muc.de> wrote:

>> In the CC Mode manual there is something called "electric mode". Where
>> is this mode?
>
>>    (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?




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-08-22  0:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-06 23:31 electric mode - is it vapour ware? Lennart Borgman
2009-08-21 18:32 ` Alan Mackenzie
2009-08-22  0:56   ` Lennart Borgman

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.