From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Andrus Newsgroups: gmane.emacs.devel Subject: Re: "Adobe Brackets like" editing in emacs Date: Wed, 19 Mar 2014 09:31:51 -0600 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=047d7b86e2100ad38604f4f75a5c X-Trace: ger.gmane.org 1395243118 19372 80.91.229.3 (19 Mar 2014 15:31:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Mar 2014 15:31:58 +0000 (UTC) Cc: "Stephen J. Turnbull" , "rms@gnu.org" , arthur miller , "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:32:04 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 1WQITL-0004jW-MM for ged-emacs-devel@m.gmane.org; Wed, 19 Mar 2014 16:32:03 +0100 Original-Received: from localhost ([::1]:42082 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQITK-00037M-Va for ged-emacs-devel@m.gmane.org; Wed, 19 Mar 2014 11:32:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36968) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQITF-000370-Uj for emacs-devel@gnu.org; Wed, 19 Mar 2014 11:32:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQITD-0002YZ-Mx for emacs-devel@gnu.org; Wed, 19 Mar 2014 11:31:57 -0400 Original-Received: from mail-pb0-x22d.google.com ([2607:f8b0:400e:c01::22d]:41191) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQITA-0002Xn-Jp; Wed, 19 Mar 2014 11:31:52 -0400 Original-Received: by mail-pb0-f45.google.com with SMTP id uo5so9049957pbc.4 for ; Wed, 19 Mar 2014 08:31:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=lsVA63zTl4nWC0h5nN5juk/gCP0pSNIilR+5hQoFghs=; b=wFP96M7IYGdNv1nP+gEo3Nsl5CwzVEA0Ha5guUtENeQ7qztvUXPkTpEu1a87Ol+WW6 TEy2Xns6NcjISkwnithGeQ8ou9PdJk7xTFWc8LgF/CsVeISONu1xtfOb/UDoaIj9ACur IGCd/MqSez9QssraskXtQn00Xt9oYIXqhuoqGxfCJexFycXWqInOhb5kkmSSvzqWG+3x tUuwDrqWFBb3F4iw+oRo/y/lmSdNQlhqkpP0wRxz55oYetX6it5SZoCVoDKqvx0bcioX lbz0TDLFAHxm+Rp9sOuOzAflWNy3SrquqTEIjPDb8lbCGi276MxVt97DVMwuoeJcDTd6 swAA== X-Received: by 10.66.153.80 with SMTP id ve16mr18166080pab.143.1395243111599; Wed, 19 Mar 2014 08:31:51 -0700 (PDT) Original-Received: by 10.70.17.101 with HTTP; Wed, 19 Mar 2014 08:31:51 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c01::22d 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:170535 Archived-At: --047d7b86e2100ad38604f4f75a5c Content-Type: text/plain; charset=ISO-8859-1 On Mar 19, 2014, at 9:03 AM, Lennart Borgman wrote: On Wed, Mar 19, 2014 at 3:01 PM, Ivan Andrus wrote: > On Mar 18, 2014, at 10:18 PM, Stephen J. Turnbull > wrote: > > >> For example while editing html, if one clicks on an element, code > >> for css-style property for that element is displayed direclty below > >> under the lineof the code for that tag and one can edit that > >> particular piece of css. > > > > Which CSS property? The "C" in CSS stands for "cascading". That is, > > there may be a style attribute on the current element, there may be a > > style element in the document, and there may be multiple rel=style > > links in the document, any of which might be what you're editing. Or > > you might actually be creating a style attribute on the element. > > I haven't used it, but I think it grabs _all_ relevant styles. Gathering > them from across several files, and putting them in a single editable place. > > -Ivan > Is not that a very difficult part? It requires tight integration with the webbrowser (or a framework within Emacs for CSS+HTML). I definitely think that is hard, but also the _useful_ part. Having it in the same buffer is eye candy, but doesn't seem that much better than a separate buffer IMHO (not to discourage anyone). Something along the lines of wgrep.el, but bringing in the correct portions of buffers intelligently would be awesome. Brackets does it for html/css, but I would like it for C++, elisp, and other modes as well. e.g. I think it would be really nice to have a buffer with every occurrence of some function/object to be able to edit them all in a single place. But finding everything is non-trivial, see for example the recent clang vs gcc vs CEDET thread. :-) -Ivan --047d7b86e2100ad38604f4f75a5c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Mar 19= , 2014, at 9:03 AM, Lennart Borgman <lennart.borgman@gmail.com> wrote:

On W= ed, Mar 19, 2014 at 3:01 PM, Ivan Andrus <darthandrus@gmail.com>= ; wrote:
On Mar 18, 2014, at 10:18 PM, Stephen J. Turnbull <= ;stephen@xemacs.org= > wrote:

>> For example while editing html, if one clicks on an element, code<= br> >> for css-style property for that element is displayed direclty belo= w
>> under the lineof the code for that tag and one can edit that
>> particular piece of css.
>
> Which CSS property?  The "C" in CSS stands for "ca= scading".  That is,
> there may be a style attribute on the current element, there may be a<= br> > style element in the document, and there may be multiple rel=3Dstyle > links in the document, any of which might be what you're editing. =  Or
> you might actually be creating a style attribute on the element.

I haven’t used it, but I think it grabs _all_ relevant styles. =  Gathering them from across several files, and putting them in a singl= e editable place.

-Ivan

Is not that a very difficult part? It = requires tight integration with the webbrowser (or a framework within Emacs= for CSS+HTML).

I definitely think that is hard, but also the _= useful_ part.  Having it in the same buffer is eye candy, but doesn&rs= quo;t seem that much better than a separate buffer IMHO (not to discourage = anyone).  Something along the lines of wgrep.el, but bringing in the c= orrect portions of buffers intelligently would be awesome.  Brackets d= oes it for html/css, but I would like it for C++, elisp, and other modes as= well.  e.g. I think it would be really nice to have a buffer with eve= ry occurrence of some function/object to be able to edit them all in a sing= le place.  But finding everything is non-trivial, see for example the = recent clang vs gcc vs CEDET thread. :-)

-Ivan
--047d7b86e2100ad38604f4f75a5c--