help-gnu-emacs
[Top][All Lists]
Advanced

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

Emacs widgets: buffer is not read-only in place where it should


From: meblacky13
Subject: Emacs widgets: buffer is not read-only in place where it should
Date: Thu, 13 Feb 2020 23:17:42 +0000
User-agent: Horde Application Framework 5

Consider the following snippet:

    (progn
      (widget-create 'editable-field :size 8 :format "Birth date %v (dd/mm/yy)")
      (widget-setup))

This inserts in the current buffer the editable field widget:

    Birth date ________ (dd/mm/yy)

where the underscores denote the field's gray edit area.
Also, the whole buffer should be read-only, apart the edit area.

However putting the the cursor immediately before the parentheses, but still, out of the edit area, one can write and, most of all, can type "Enter" and break the widget in a very unpleasant way. This does not happen for the blank space on the left of the edit area.


-------------------------------------------------
This free account was provided by VFEmail.net - report spam to abuse@vfemail.net

ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the 
NSA's hands!
$24.95 ONETIME Lifetime accounts with Privacy Features! 15GB disk! No bandwidth quotas! Commercial and Bulk Mail Options!
reply via email to

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