Changes committed gnus/lisp (ChangeLog assistant.el)

"Ted Zlatanov" <[email protected]> Mon, 22 Mar 2010 05:47:54 +0100
Newsgroups gmane.emacs.gnus.commits
Message-ID <[email protected]>
Modified: ChangeLog 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.


Index: ChangeLog
diff -u gnus/lisp/ChangeLog:7.2069 gnus/lisp/ChangeLog:7.2070
--- ChangeLog:7.2069	Sat Mar 20 21:35:24 2010
+++ ChangeLog	Mon Mar 22 05:47:54 2010
@@ -1,3 +1,9 @@
+2010-03-22  Teodor Zlatanov  <[email protected]>
+
+	* 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  <[email protected]>
 
 	* auth-source.el: Set up autoloads.  Bump to 23.2 because of the
Index: assistant.el
diff -u gnus/lisp/assistant.el:1.23 gnus/lisp/assistant.el:1.24
--- assistant.el:1.23	Thu Oct  4 20:51:27 2007
+++ assistant.el	Mon Mar 22 05:47:54 2010
@@ -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))