emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Adobe Brackets like" editing in emacs


From: David Engster
Subject: Re: "Adobe Brackets like" editing in emacs
Date: Thu, 20 Mar 2014 17:59:50 +0100
User-agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3 (gnu/linux)

Eli Zaretskii writes:
> I suggested to have this feature first based on the existing
> infrastructure, i.e. in another window.  This should be easy to
> implement, and will allow collecting user experience which we
> currently lack.  Then decision of whether we need a new UI, and which
> one, will be based on something, rather than on thin air.

OK, I've hacked up a little demonstrator. Load the attached file and
eval-buffer it (preferably with 'emacs -Q', that's how I tested it).
Then move point over an Emacs function; hitting 'C-c e' will open the
quick-edit window with the function's definition, and 'C-c c' will close
it.

Problems I've noticed so far:

- mode-line-format is buffer-local, so you cannot deactivate it only for
  the upper window. That means, while in quick-edit, you will have no
  mode-line at all.

- You cannot set a different background color for a complete window. You
  can only do that with an overlay, but that will only cover the parts
  with text.

- Of course, you can easily mess things up be leaving/closing the window
  otherwise.

In a nutshell, it'd be nice to have something like 'window-local'
variables for this.

-David

Attachment: quick-edit-demo.el
Description: application/emacs-lisp


reply via email to

[Prev in Thread] Current Thread [Next in Thread]