unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Behavior of editable-field widget
@ 2019-10-27 23:22 Yuan Fu
  2019-10-28  2:19 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Yuan Fu @ 2019-10-27 23:22 UTC (permalink / raw)
  To: Emacs developers

AFAIK The editable widget let you insert anywhere in the field. In a
GUI, cursor (point) sticks to the beginning of the field or the end of
the existing text like

      +---------------------------------------------+
      ||                                            |
      +---------------------------------------------+

and

      +---------------------------------------------+
      |SOME TEXT|                                   |
      +---------------------------------------------+

Where the “|” represents the cursor.

I think this behavior is not hard to implement with some text
properties. Is there any reason behind the current behavior?


P.S. In GUI’s one normally click on the editable field to
activate/select it before he/she can edit anything. Could we
mimic that behavior in widgets? I.e., click/hit enter before
one can edit the field.

Yuan



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-10-29 18:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-27 23:22 Behavior of editable-field widget Yuan Fu
2019-10-28  2:19 ` Stefan Monnier
2019-10-29 18:45   ` Yuan Fu

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).