From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rasmus Newsgroups: gmane.emacs.bugs Subject: bug#20915: 25.0.50; [js-mode] electric annoyances Date: Sun, 28 Jun 2015 16:50:23 +0200 Message-ID: <877fqnopjk.fsf@gmx.us> References: <87oak0njid.fsf@gmx.us> <83y4j36gk2.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1435503143 23320 80.91.229.3 (28 Jun 2015 14:52:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Jun 2015 14:52:23 +0000 (UTC) To: 20915@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 28 16:52:12 2015 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 1Z9DwJ-0003Fd-01 for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Jun 2015 16:52:11 +0200 Original-Received: from localhost ([::1]:39157 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9DwI-0001OI-Dv for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Jun 2015 10:52:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40838) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9DwF-0001Ni-7T for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2015 10:52:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9DwA-0005OD-7p for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2015 10:52:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59060) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9DwA-0005O7-4r for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2015 10:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z9Dw9-00011S-SK for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2015 10:52:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87oak0njid.fsf@gmx.us> Resent-From: Rasmus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Jun 2015 14:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20915 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.14355030633844 (code B ref -1); Sun, 28 Jun 2015 14:52:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Jun 2015 14:51:03 +0000 Original-Received: from localhost ([127.0.0.1]:60506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z9DvB-0000zo-8h for submit@debbugs.gnu.org; Sun, 28 Jun 2015 10:51:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54961) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z9Dv8-0000zb-FS for submit@debbugs.gnu.org; Sun, 28 Jun 2015 10:50:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9Dv1-0004o3-VX for submit@debbugs.gnu.org; Sun, 28 Jun 2015 10:50:52 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:58273) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9Dv1-0004nr-PV for submit@debbugs.gnu.org; Sun, 28 Jun 2015 10:50:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40222) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9Dv0-0000oh-HF for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2015 10:50:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9Duv-0004iz-E7 for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2015 10:50:50 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:39607) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9Duv-0004i3-7n for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2015 10:50:45 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Z9Duq-0002R2-QA for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2015 16:50:40 +0200 Original-Received: from 90.163.164.75 ([90.163.164.75]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 28 Jun 2015 16:50:40 +0200 Original-Received: from rasmus by 90.163.164.75 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 28 Jun 2015 16:50:40 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 90.163.164.75 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:/iuiBEB+Fy+JWhV0McALcjqytPA= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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:104435 Archived-At: Hi, Eli Zaretskii writes: >> Electric layout doesn't always quite work to my liking in js-mode. > > The "Emacsy" solution to that is to allow users to define the style > she likes. That way, what you like and what I like doesn't have to be > put into the same procrustean framework. > > Since js-mode already supports styles, why wouldn't it be possible to > solve this problem in the framework of the styles? > > (Apologies if what I say makes no sense: I don't use js-mode.) It is possible, I think, you can e.g. remove the active electricity chars. I'm talking about the default here... Something like js-default-style (like in cc) would perhaps be nice. I don't know what it would take to adapt such a scheme or how involved it is to add styles. Rasmus -- If you can mix business and politics wonderful things can happen!