From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mathias Dahl Newsgroups: gmane.emacs.devel Subject: Re: "Adobe Brackets like" editing in emacs Date: Wed, 26 Mar 2014 22:21:10 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c3f51a5ce8b204f5890d43 X-Trace: ger.gmane.org 1395868895 29197 80.91.229.3 (26 Mar 2014 21:21:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Mar 2014 21:21:35 +0000 (UTC) Cc: "emacs-devel@gnu.org" To: arthur miller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 26 22:21:43 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 1WSvGZ-0005pN-Kl for ged-emacs-devel@m.gmane.org; Wed, 26 Mar 2014 22:21:43 +0100 Original-Received: from localhost ([::1]:50393 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSvGZ-0003JJ-0A for ged-emacs-devel@m.gmane.org; Wed, 26 Mar 2014 17:21:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSvGS-0003F0-8U for emacs-devel@gnu.org; Wed, 26 Mar 2014 17:21:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSvGQ-0000eG-Oi for emacs-devel@gnu.org; Wed, 26 Mar 2014 17:21:36 -0400 Original-Received: from mail-wg0-x230.google.com ([2a00:1450:400c:c00::230]:47251) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSvGQ-0000cl-E7 for emacs-devel@gnu.org; Wed, 26 Mar 2014 17:21:34 -0400 Original-Received: by mail-wg0-f48.google.com with SMTP id l18so1712529wgh.31 for ; Wed, 26 Mar 2014 14:21:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=qa0nXPxpFTRKI2dw9qNTDq1STYQrfXEc8TcN6Yp+Rbk=; b=g4IyFSXfgFtY4ToYcdVs5Rf72wP9WMCAuFPVXgkNf/jvPmVMFZTm7MOqPKI33H1mby G9dqfWa82OZ49l8l+Dbjui3d3KH1XXsBXNk3PZdXe3Pe6QB/uY0yuoeIjr+ccI4f+cAd T+egZS3+K1uAsIjUJZZIKi4PhJs/nVmgIZjeM/LCRvG5zFZRbJl9+D3w5mGi4BPZvm/+ yabE2Bg4mwa2LkH4y+TxzVE0t4PearH7cfC+KsCuh8p5pOcHD4erdvGgb29LAdct71Qj z51SJHi1C5UxXqYzZMxI6W+IsQtb6vsjb2a5ErTfED02IjEt7xc3WXpw2mFdcFEbLyvw wAGg== X-Received: by 10.180.207.10 with SMTP id ls10mr34832865wic.22.1395868890357; Wed, 26 Mar 2014 14:21:30 -0700 (PDT) Original-Received: by 10.217.44.131 with HTTP; Wed, 26 Mar 2014 14:21:10 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::230 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:171015 Archived-At: --001a11c3f51a5ce8b204f5890d43 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Arthur, This is a very interesting feature! Not only would it be useful for the scenario described by you and others in this thread, but I also think it would be useful for temporarily showing definitions from another place in the same file that you are editing. Sure, there are tooltips, overlays and whatnot that can do the same thing ("intellisense") but sometimes actually seeing the full definition right where you are might be useful. No need to jump back and forth, with a key you could show the definition of a function where you are, and with another key it would be hidden. You would be able to copy pieces of text from it and whatever. That being said, I have never ever seen a feature like this before, and that could be an indication that it is not actually useful, or no-one has thought of a crazy idea before the Adobe people did it... /Mathias On Tue, Mar 18, 2014 at 2:29 PM, arthur miller wrot= e: > Hi, > > my name is Arthur, and I just subscribed to this list. Though I am new to > this list, I am not so new to Emacs.I have just a question/thought about = a > feature I would like see in Emacs, hope you don't mind. > > Lately Adobes Brackets editor has got some popularity (It seems to be > pretty much Emacs on javascript). I am not really into using it full time= , > since I am good with Emacs, but I do like the idea of mulitple file editi= ng > in one buffer. It is like context-aware multi-file editing or what it > should be called. They use it to edit css or javascript while editing htm= l > file, s=E5 that one does not have to switch between buffers/files. It see= ms > pretty handy, and I would kind-a like to see implementation for C/C++ > (macros, templates) and so on. > > I think it shouldn't be impossible to do now, since Emacs already can > split window and show multiple buffers. How difficult would it be to add = a > mode/feature to "expand" a buffer (split window) under the current line a= nd > load exact part of a file with of course correct langauge mode and so on.= I > guess semantic package would be needed since it seems to be similar conte= xt > awareness as it is needed for code completition. > > I am not knowledgable about Emacs internals, so I don't really know where > to hack, but wonder if something similar is already implemented or "on th= e > way". > > > --001a11c3f51a5ce8b204f5890d43 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Arthur,

This is a very in= teresting feature! Not only would it be useful for the scenario described b= y you and others in this thread, but I also think it would be useful for te= mporarily showing definitions from another place in the same file that you = are editing. Sure, there are tooltips, overlays and whatnot that can do the= same thing ("intellisense") but sometimes actually seeing the fu= ll definition right where you are might be useful. No need to jump back and= forth, with a key you could show the definition of a function where you ar= e, and with another key it would be hidden. You would be able to copy piece= s of text from it and whatever. That being said, I have never ever seen a f= eature like this before, and that could be an indication that it is not act= ually useful, or no-one has thought of a crazy idea before the Adobe people= did it...

/Mathias


On Tue, Mar 18, 2014 at 2:29 PM, arthur miller <ar= thur.miller@live.com> wrote:
Hi,

my name is Arthur, and I just subscribed = to this list. Though I am new to this list, I am not so new to Emacs.I have= just a question/thought about a feature I would like see in Emacs, hope yo= u don't mind.

Lately Adobes Brackets editor has got some popularity (It seems to be p= retty much Emacs on javascript). I am not really into using it full time, s= ince I am good with Emacs, but I do like the idea of mulitple file editing = in one buffer. It is like context-aware multi-file editing or what it shoul= d be called. They use it to edit css or javascript while editing html file,= s=E5 that one does not have to switch between buffers/files. It seems pret= ty handy, and I would kind-a like to see implementation for C/C++ (macros, = templates) and so on.

I think it shouldn't be impossible to do now, since Emacs already c= an split window and show multiple buffers. How difficult would it be to add= a mode/feature to "expand" a buffer (split window) under the cur= rent line and load exact part of a file with of course correct langauge mod= e and so on. I guess semantic package would be needed since it seems to be = similar context awareness as it is needed for code completition.

I am not knowledgable about Emacs internals, so I don't really know= where to hack, but wonder if something similar is already implemented or &= quot;on the way".



--001a11c3f51a5ce8b204f5890d43--