From 86221ef007f228f2fd1082f7f68807740a8fdaf8 Mon Sep 17 00:00:00 2001 From: Teodor Zlatanov Date: Mon, 22 Mar 2010 04:47:54 +0000 Subject: [PATCH] (assistant-render-text): Run `widget-setup' and don't delete the extra newline. Otherwise editing of :string and :number types don't work. --- lisp/ChangeLog | 6 ++++++ lisp/assistant.el | 12 +++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 38e04aad5..be01202bd 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2010-03-22 Teodor Zlatanov + + * assistant.el (assistant-render-text): Run `widget-setup' and don't + delete the extra newline. Otherwise editing of :string and :number + types don't work. + 2010-03-20 Teodor Zlatanov * auth-source.el: Set up autoloads. Bump to 23.2 because of the diff --git a/lisp/assistant.el b/lisp/assistant.el index 25ff1732f..a93338408 100644 --- a/lisp/assistant.el +++ b/lisp/assistant.el @@ -279,14 +279,12 @@ :assistant-variable variable (assistant-get-variable node variable)) assistant-widgets) - ;; The editable-field widget apparently inserts a newline; - ;; remove it. - (delete-char -1) (add-text-properties start (point) - (list - 'bold t - 'face 'assistant-field - 'not-read-only t)))))))) + (list + 'bold t + 'face 'assistant-field + 'not-read-only t))))))) + (widget-setup)) (defun assistant-render-node (node-name) (let ((node (assistant-find-node node-name)) -- 2.34.1