From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.help Subject: Re: How to get decent java-script support Date: Thu, 25 Jun 2015 12:25:05 +0300 Message-ID: <558BC8F1.9010107@yandex.ru> References: <87h9pw37jv.fsf@gmx.us> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1435224339 29183 80.91.229.3 (25 Jun 2015 09:25:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Jun 2015 09:25:39 +0000 (UTC) To: Rasmus , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 25 11:25:38 2015 Return-path: Envelope-to: geh-help-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 1Z83Pe-0003QG-Ak for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Jun 2015 11:25:38 +0200 Original-Received: from localhost ([::1]:54574 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z83PY-0004KN-3F for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Jun 2015 05:25:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50924) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z83PL-0004KF-Pl for help-gnu-emacs@gnu.org; Thu, 25 Jun 2015 05:25:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z83PI-0006hG-Dv for help-gnu-emacs@gnu.org; Thu, 25 Jun 2015 05:25:19 -0400 Original-Received: from mail-wi0-x232.google.com ([2a00:1450:400c:c05::232]:34496) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z83PI-0006Y8-7T for help-gnu-emacs@gnu.org; Thu, 25 Jun 2015 05:25:16 -0400 Original-Received: by wicnd19 with SMTP id nd19so11943225wic.1 for ; Thu, 25 Jun 2015 02:25:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=SjH/O1MckopHcaLn0FL5Z++G1IOQ/TIvRLT8JAf589o=; b=jwDDaWamJDwn2QG8SIbmUO7hN5G/ERfPxJnWTILiqJ5IXSMtvZVO8ZWNQYuzWr6Okt 14zGxuluNOqiNNszOJRL4ypmPtHDoO+LeLYJC2j4IS7AE1G1+HRnNdYxSYp6pK8BA7+N QAtPi0/K9UokYy87zhs+qeCKOxWZSy24rRBNL0dB/+dqcP4IAynqK9x3JuWgR/hjunf9 NMnZCAtK3s7nEXHRVwKEUyQlwbptJJCaWzuHwRlk+I2yt/vZjUCBQUkPV3+RcVE1cRMn YIUjRrtWmJ5rqO0gfR1wQpPC3nDsP54vnnzaUA/YSpkv+ORRMHbV+ViAd/gL6eno+T0N MhKQ== X-Received: by 10.194.176.165 with SMTP id cj5mr79281543wjc.72.1435224306995; Thu, 25 Jun 2015 02:25:06 -0700 (PDT) Original-Received: from [192.168.1.2] ([82.102.93.54]) by mx.google.com with ESMTPSA id pd7sm44795878wjb.27.2015.06.25.02.25.06 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Jun 2015 02:25:06 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0 In-Reply-To: <87h9pw37jv.fsf@gmx.us> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::232 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:105149 Archived-At: On 06/25/2015 04:23 AM, Rasmus wrote: > Also, it inserts lots of newlines e.g. for "{}" pairs, which is > annoying for inline functions (e.g. in .map arguments). I tried to turn > off electricity, but that didn't make it stop with the excessive newlines. This sounds like you're turned on electric-layout-mode, somewhere in your config. > Some question on JS in Emacs: > > First, is it possible to get js(2) mode to allow chain-style indentation > and be less, or more, clever about braces and semicolons? There are some vars you can customize, but probably not enough. > Second, can one somehow connect hook into some sort of documentation > system with java-script? At least for standard ECMAScript? Like > "help(fun)" in Python and C-h for Emacs Lisp etc etc. At this point, I > could even live with it "just" opening Mozilla dev. pages in eww or > Firefox. Tern supports completion and documentation lookup. > Third, related to two, can eldoc somehow be taught to work with JS? That may be a good feature request for tern-mode. > I tried something called tern since it supposedly offer completion for > company. I don't remember why I dropped it... Try it again, maybe.