From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: arthur miller Newsgroups: gmane.emacs.devel Subject: RE: "Adobe Brackets like" editing in emacs Date: Wed, 19 Mar 2014 16:16:32 +0100 Message-ID: References: , , , <87txaukeia.fsf@uwakimon.sk.tsukuba.ac.jp>, <95BBC5A0-61E9-43CC-8B4D-563A7873EB32@gmail.com>, NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_cfd25839-35b5-4124-a6a9-d31965f8e645_" X-Trace: ger.gmane.org 1395242207 6456 80.91.229.3 (19 Mar 2014 15:16:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Mar 2014 15:16:47 +0000 (UTC) Cc: "emacs-devel@gnu.org" To: Lennart Borgman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 19 16:16:55 2014 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 1WQIEZ-0006k1-FS for ged-emacs-devel@m.gmane.org; Wed, 19 Mar 2014 16:16:47 +0100 Original-Received: from localhost ([::1]:42033 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQIEZ-0001wx-26 for ged-emacs-devel@m.gmane.org; Wed, 19 Mar 2014 11:16:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59817) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQIER-0001pl-EY for emacs-devel@gnu.org; Wed, 19 Mar 2014 11:16:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQIEM-0004iT-K3 for emacs-devel@gnu.org; Wed, 19 Mar 2014 11:16:39 -0400 Original-Received: from dub0-omc1-s20.dub0.hotmail.com ([157.55.0.219]:30481) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQIEM-0004iD-BC for emacs-devel@gnu.org; Wed, 19 Mar 2014 11:16:34 -0400 Original-Received: from DUB111-W18 ([157.55.0.239]) by dub0-omc1-s20.dub0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 19 Mar 2014 08:16:32 -0700 X-TMN: [f3mms3peHXMZFMBJOyTP8Rtgk8mC4Ej3] X-Originating-Email: [arthur.miller@live.com] Importance: Normal In-Reply-To: X-OriginalArrivalTime: 19 Mar 2014 15:16:32.0992 (UTC) FILETIME=[36222600:01CF4386] X-detected-operating-system: by eggs.gnu.org: Windows XP X-Received-From: 157.55.0.219 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:170531 Archived-At: --_cfd25839-35b5-4124-a6a9-d31965f8e645_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hmm=2C njah=2C are u sure? I think it would be enough to look into included files=2C but yes it probab= ly needs integration with programming modes=3B but probably not more than t= o know=20 what mode to load based on edited code. That info is available though for m= oste modes=3B for example in C/C++ included code is usually C/C++. Inline a= ssembly can be deduced by directives in the code. In case of webb languages=2C for example there are usually declarations and= link-types in header=2C or is definition itself in the file btween or
Hmm=2C njah=2C are u sure?
I think it would be enough to look into included files=2C but yes it prob= ably needs integration with programming modes=3B but probably not more than= to know
what mode to load based on edited code. That info is available= though for moste modes=3B for example in C/C++ included code is usually C/= C++. Inline assembly can be deduced by directives in the code.

In ca= se of webb languages=2C for example there are usually declarations and link= -types in header=2C or is definition itself in the file btween <=3Bscrypt= >=3B or <=3Bstyle>=3B

Since compliers are not that clever by t= hemselves there is usually some kind of in the code itself that emacs might= use?


From: lennart.borgman@gmail.comDate: Wed=2C 19 Mar 2014 16:03:34 +0100
Subject: Re: "Adobe Brackets l= ike" editing in emacs
To: darthandrus@gmail.com
CC: stephen@xemacs.or= g=3B rms@gnu.org=3B arthur.miller@live.com=3B emacs-devel@gnu.org

= On Wed=2C Mar 19=2C 2014 at 3:01 PM=2C Ivan Andrus <=3B= darthandrus@gmail.com>=3B wrote:=
=0A= =0A=
On Mar 18=2C 2014=2C at 10:18 PM=2C Stephen J. Tu= rnbull <=3Bstephen@xemacs.org>=3B wrote:
=0A= =0A= =0A=
=0A= >=3B>=3B For example while editing html=2C if one clicks on an element= =2C code
=0A= >=3B>=3B for css-style property for that element is displayed direclty = below
=0A= >=3B>=3B under the lineof the code for that tag and one can edit that=0A= >=3B>=3B particular piece of css.
=0A= >=3B
=0A= >=3B Which CSS property?  =3BThe "C" in CSS stands for "cascading". &= nbsp=3BThat is=2C
=0A= >=3B there may be a style attribute on the current element=2C there may b= e a
=0A= >=3B style element in the document=2C and there may be multiple rel=3Dsty= le
=0A= >=3B links in the document=2C any of which might be what you're editing. =  =3BOr
=0A= >=3B you might actually be creating a style attribute on the element.
= =0A=
=0A=
I haven=92t used it=2C but I think it grabs _all_ relevant styles. &n= bsp=3BGathering them from across several files=2C and putting them in a sin= gle editable place.
=0A=
=0A= -Ivan
=0A=

Is not that a very difficult part? It = requires tight integration with the webbrowser (or a framework within Emacs= for CSS+HTML).
= --_cfd25839-35b5-4124-a6a9-d31965f8e645_--