all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: emacs-devel@gnu.org
Subject: Re: "Adobe Brackets like" editing in emacs
Date: Thu, 20 Mar 2014 02:23:55 -0400	[thread overview]
Message-ID: <87wqfp4cck.fsf@lifelogs.com> (raw)
In-Reply-To: E1WQL4D-0004cQ-PZ@fencepost.gnu.org

On Wed, 19 Mar 2014 14:18:17 -0400 Richard Stallman <rms@gnu.org> wrote: 

RS> [[[ To any NSA and FBI agents reading my email: please consider    ]]]
RS> [[[ whether defending the US Constitution against all enemies,     ]]]
RS> [[[ foreign or domestic, requires you to follow Snowden's example. ]]]

RS> What does it look like, to have multiple files in one buffer?

TZ>     That's a UI design question and could be up to the implementation, not
TZ>     in Emacs.  I personally would like something akin to a folding editor
TZ>     with clear delineation (maybe statically indented N spaces, like your
TZ>     quotations) but would have to experiment to find the best interface.
TZ>     It's definitely not going to look like anything we have today.

RS> Alas, saying "it could be anything" fails to give us any concrete help
RS> in finding something it could be.

OK, but I didn't say that.  I said what it could look like without
mimicking Brackets' look.

See below for an analogy to book formatting, which can provide lots of
ideas for what it could be.

On Wed, 19 Mar 2014 18:36:49 +0200 Eli Zaretskii <eliz@gnu.org> wrote: 

>> From: Ted Zlatanov <tzz@lifelogs.com>

>> 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.

EZ> I don't get it: switching between adjacent windows is a single
EZ> keystroke away (bind it to a key, if you are annoyed by "C-x o").

I have, but looking in *two* places is a kind of context switch and
clutters the display with more windows.  I also use `last-buffer' a lot,
but that's also a context switch.  Maybe not for you, but please allow
me a preference for the luxury of uninterrupted reading and editing.

(A sidebar window that shows included files dynamically would be useful
too, so please don't see this as a discounting of such a feature.  But
today's Emacs doesn't do this dynamically, that's key.)

EZ> So why do we need to invent some fancy new display feature, when we
EZ> already have everything that is needed?

I didn't say it has to be fancy or new, but maybe some C-level code
would help to make it more seamless.

EZ> As for mental context: you need to switch it anyway, since you are
EZ> editing a different chunk of text, right?

It's almost exactly like having extra information inlined or at the
bottom of the page or at the end of the whole text.  All three have a
purpose, and all three are commonly used (in the form of parenthetical
comments or sidebars, regular footnotes, and endnotes/bibliographies).
Here I am discussing inlined information, without making a case against
the other two ways to attach information.  Maybe we can draw inspiration
from these long-standing conventions of text formatting to improve
Emacs.

>> This feature would work well for *short* includes, IMO.  With long
>> includes you lose context and nothing is gained.

EZ> Exactly.  So why use it for short includes, or any includes?

I have tried to explain.

>> 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.

EZ> This is not what was requested, AFAIU, but if that's what you want,
EZ> then make a mode which allows you to edit all the files in a single
EZ> buffer, and then saves each one to its file.  Again, one buffer with
EZ> "normal" display is enough.

That might work.  See the later discussion in this thread.

EZ> Sounds over-engineering to me.  At the very least, I would suggest a
EZ> fully-functional prototype that uses adjacent windows, before we
EZ> decide if some other UI feature is needed.

You're asking for a fully-functional prototype of an alternative UI
because a possible UI sounds like overengineering to you after a brief
discussion?

On Wed, 19 Mar 2014 23:38:07 +0900 "Stephen J. Turnbull" <stephen@xemacs.org> wrote: 

SJT> Ted Zlatanov writes:

>> 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.

SJT> That may be useful but I don't think that's what the OP has in mind
SJT> (it's called "quick edit", after all, not "interleaved edit").  I'm
SJT> pretty sure the snippet is not supposed to stay around.

I don't care for the snippet when it's not in view, so whether it stays
or goes away is not important to me.  When I get near the include point,
I'd like to see it somehow.

Ted




  reply	other threads:[~2014-03-20  6:23 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
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 [this message]
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=87wqfp4cck.fsf@lifelogs.com \
    --to=tzz@lifelogs.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.