unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Yuan Fu <casouri@gmail.com>
To: Emacs developers <emacs-devel@gnu.org>
Subject: Behavior of editable-field widget
Date: Sun, 27 Oct 2019 19:22:36 -0400	[thread overview]
Message-ID: <m2tv7t22pv.fsf@gmail.com> (raw)

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



             reply	other threads:[~2019-10-27 23:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-27 23:22 Yuan Fu [this message]
2019-10-28  2:19 ` Behavior of editable-field widget Stefan Monnier
2019-10-29 18:45   ` Yuan Fu

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=m2tv7t22pv.fsf@gmail.com \
    --to=casouri@gmail.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 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).