From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Behavior of editable-field widget Date: Sun, 27 Oct 2019 19:22:36 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="243992"; mail-complaints-to="usenet@blaine.gmane.org" To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 28 00:23:20 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iOrsV-0011NG-SP for ged-emacs-devel@m.gmane.org; Mon, 28 Oct 2019 00:23:20 +0100 Original-Received: from localhost ([::1]:49922 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iOrsU-0002m2-L3 for ged-emacs-devel@m.gmane.org; Sun, 27 Oct 2019 19:23:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36936) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iOrrv-0002hC-VB for emacs-devel@gnu.org; Sun, 27 Oct 2019 19:22:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iOrrt-0004Bj-RW for emacs-devel@gnu.org; Sun, 27 Oct 2019 19:22:43 -0400 Original-Received: from mail-qk1-x72c.google.com ([2607:f8b0:4864:20::72c]:40364) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iOrrt-0004Ar-LU for emacs-devel@gnu.org; Sun, 27 Oct 2019 19:22:41 -0400 Original-Received: by mail-qk1-x72c.google.com with SMTP id y81so6858069qkb.7 for ; Sun, 27 Oct 2019 16:22:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=KnCe4POGErVO4paG2Idz7ctoVODmvnHC7EokKCpqefE=; b=pJFZDHl8BkcjODhwpysP5RfJgb23n8If3B7bC6DUPVOpq/7OD0cHQRSgJiyiQ5fbZO P/Z1QAIOFxXGCn9YWPYb9ARkAGDO1FHemcPIY+5QCRkKyO3dWjHH+iIlU2rxDK1Ym9Wn i2BuHWDUFqL53FL94ViLizqagny+/aGSJ57Xyg/WXvIzTSvdTCIs31XeMMmD7BZgwGRz P1fgi7WzW0pbQ1fAeQy89KNARszAobGDsgfzetZqtHP4Q03/goX30zqgBjDQk0ZL1BDY prqgxCmZB2hNEyrsripkXM5Bv5HxTRwftiHwWA4X9x2d2w1B0p9AeHFYQYRncOjmCyVu xQRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=KnCe4POGErVO4paG2Idz7ctoVODmvnHC7EokKCpqefE=; b=pc21VtwTv+R/A2pCz7+3H9kptZ1ya9smY9sqlb4/wZo93gFlhjQf5MUgdrd9qnVV7w vi62oi0a0GQ0esbh1tNtR5pe+npii29BE/4LEVuOBfnBoXaBJLklbqv7oV1NOhfzBaCm BT7Q/FetKr1ihqHVJl42oOc5tO/jbipyPwWft40w13YnR9SD3SeZb+/vhJoLKp4hxi0+ hkPd/wDGxQPrnHJ3SFrRayq/W1disVm8lF/zkMPYMpoYIH6pEzHGzZsR40pIo44XlvhE jpg7HY3NukxmdZM2/ZeATdMrSYebRm0dTNhSj/5yAsbUAsUeEcO+qAbBbwBaOD5czsDV wioA== X-Gm-Message-State: APjAAAVliK5um67wOjX1yj13WSH61IGELz4GFZDxddMTJ11EQlyolLob B+okL4icOtlqjYqNatJluxnvFqbfmuI= X-Google-Smtp-Source: APXvYqwVMRIdm0AyynPk0tcWcBuYEuwmlRz/s6q8ddVj2ZyaOh78UtYOVwqHq/eivl1oc4D6cE4UKw== X-Received: by 2002:a37:4f82:: with SMTP id d124mr12883671qkb.460.1572218560426; Sun, 27 Oct 2019 16:22:40 -0700 (PDT) Original-Received: from missSilver.localdomain (c-71-207-8-160.hsd1.pa.comcast.net. [71.207.8.160]) by smtp.gmail.com with ESMTPSA id h23sm5239350qkk.128.2019.10.27.16.22.39 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 27 Oct 2019 16:22:40 -0700 (PDT) Original-Received: by missSilver.localdomain (Postfix, from userid 501) id 6A9FE2029A5FC8; Sun, 27 Oct 2019 19:22:36 -0400 (EDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::72c X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:241536 Archived-At: 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 =E2=80=9C|=E2=80=9D 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=E2=80=99s 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