all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: arthur miller <arthur.miller@live.com>
To: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: RE: "Adobe Brackets like" editing in emacs
Date: Wed, 19 Mar 2014 13:53:37 +0100	[thread overview]
Message-ID: <DUB111-W95FFB37E5A5EB87E34F3E9967F0@phx.gbl> (raw)
In-Reply-To: <87d2hi5p6n.fsf@lifelogs.com>

[-- Attachment #1: Type: text/plain, Size: 2111 bytes --]

I think it sounds reasonable. We could have a limit on how big snippets are "inlined" in the buffer, for example 20 lines of code, or 50 or something like that. What about combining with feature like folding, so that longer function, classes etc are brought in as folded?

Below is a picture how they have implemented in Bracktes, but nothing says that Emacs has to implement same way. I would be fine with just different color on background for inlined code, but even if it was not such features, just brining in the code would be nice.

http://dev.brackets.io/preso/intro/assets/features/brackets-quick-edit-js.PNG

> To: emacs-devel@gnu.org
> From: tzz@lifelogs.com
> Subject: Re: "Adobe Brackets like" editing in emacs
> Date: Wed, 19 Mar 2014 08:49:04 -0400
> 
> On Wed, 19 Mar 2014 00:00:56 -0400 Richard Stallman <rms@gnu.org> wrote: 
> 
> TZ>     A quick peek+edit in a #include in C, or "use My::Module" in Perl (where
> TZ>     you can say `perldoc -l My::Module' to find the module file), etc. would
> TZ>     be handy.
> 
> RS> We already have such features, but they display the other file in
> RS> another buffer.	  Why is it useful to put them in one buffer?
> 
> So you don't have to switch buffers (and mental context).  Most of the
> time in C I'm flipping between a .h and a .c file.  This feature would
> work well for *short* includes, IMO.  With long includes you lose
> context and nothing is gained.
> 
> I would make an analogy here to Literate Programming, where you
> interweave documentation within the code.  We're talking about
> interweaving included snippets to build a dynamic whole.
> 
> RS> What does it look like, to have multiple files in one buffer?
> 
> That's a UI design question and could be up to the implementation, not
> in Emacs.  I personally would like something akin to a folding editor
> with clear delineation (maybe statically indented N spaces, like your
> quotations) but would have to experiment to find the best interface.
> It's definitely not going to look like anything we have today.
> 
> Ted
> 
> 
 		 	   		  

[-- Attachment #2: Type: text/html, Size: 2746 bytes --]

  reply	other threads:[~2014-03-19 12:53 UTC|newest]

Thread overview: 66+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-18 13:29 "Adobe Brackets like" editing in emacs arthur miller
2014-03-18 19:01 ` Richard Stallman
2014-03-18 19:24   ` arthur miller
2014-03-19  4:18     ` Stephen J. Turnbull
2014-03-19 14:01       ` Ivan Andrus
2014-03-19 15:03         ` Lennart Borgman
2014-03-19 15:16           ` arthur miller
2014-03-19 15:24             ` Lennart Borgman
2014-03-19 15:31           ` Ivan Andrus
2014-03-19 15:40             ` Lennart Borgman
2014-03-19 16:20               ` Stephen J. Turnbull
2014-03-19 16:37                 ` Lennart Borgman
2014-03-19 16:42                   ` Lennart Borgman
2014-03-19 18:18               ` Richard Stallman
2014-03-18 19:37   ` arthur miller
2014-03-18 21:29     ` Alan Schmitt
     [not found]       ` <DUB111-W4468B0D4051AE6F0B217B2967C0@phx.gbl>
2014-03-18 21:42         ` arthur miller
2014-03-19 16:01           ` Tom
2014-03-19 18:18             ` Richard Stallman
2014-03-20 11:04               ` Phillip Lord
2014-03-20 11:58                 ` arthur miller
2014-03-20 18:57                   ` Richard Stallman
2014-03-21 11:36                     ` Phillip Lord
2014-03-21 16:58                       ` chad
2014-03-21 18:58                         ` Richard Stallman
2014-03-20 12:50                 ` Stefan
2014-03-20 14:40                   ` Phillip Lord
2014-03-20 13:17                 ` Ted Zlatanov
2014-03-20 16:00                   ` Phillip Lord
2014-03-18 20:36   ` Ted Zlatanov
2014-03-19  4:00     ` Richard Stallman
2014-03-19  4:09       ` Vibhav Pant
2014-03-19  8:06         ` Tom
2014-03-19  9:15         ` Stephen J. Turnbull
2014-03-19 16:17           ` Eli Zaretskii
2014-03-19 16:01         ` Eli Zaretskii
2014-03-19  9:01       ` arthur miller
2014-03-19 10:18         ` Phillip Lord
2014-03-19 18:17         ` Richard Stallman
2014-03-19 20:41           ` arthur miller
2014-03-19 22:26             ` Richard Stallman
2014-03-19 12:49       ` Ted Zlatanov
2014-03-19 12:53         ` arthur miller [this message]
2014-03-19 14:38         ` Stephen J. Turnbull
2014-03-19 16:36         ` Eli Zaretskii
2014-03-19 18:18         ` Richard Stallman
2014-03-20  6:23           ` Ted Zlatanov
2014-03-20 16:28             ` Eli Zaretskii
2014-03-20 16:42               ` David Kastrup
2014-03-20 16:43               ` arthur miller
2014-03-20 16:59               ` David Engster
2014-03-20 17:25                 ` arthur miller
2014-03-20 17:41                   ` David Engster
2014-03-20 17:52                     ` arthur miller
2014-03-20 20:05                 ` Johan Bockgård
2014-03-20 20:08                   ` David Engster
2014-03-20 20:07               ` Ted Zlatanov
2014-03-20 17:04             ` Matthew Leach
2014-03-19 16:20       ` Josh
2014-03-26 21:21 ` Mathias Dahl
2014-03-26 21:35   ` Lennart Borgman
2014-03-28  4:37     ` Lennart Borgman
2014-03-28 15:26       ` Richard Stallman
2014-03-28 16:10         ` Lennart Borgman
2014-03-30  0:24           ` Richard Stallman
2014-03-30  1:01             ` Lennart Borgman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DUB111-W95FFB37E5A5EB87E34F3E9967F0@phx.gbl \
    --to=arthur.miller@live.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.