changeset 59187:b38b4451693d

(decode-coding-inserted-region): Don't barf if `buffer-undo-list' is already set to `t'.
author David Kastrup <dak@gnu.org>
date Wed, 29 Dec 2004 10:06:44 +0000
parents c891ea823157
children 6b0648eec44c
files lisp/ChangeLog lisp/international/mule.el
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Wed Dec 29 05:32:08 2004 +0000
+++ b/lisp/ChangeLog	Wed Dec 29 10:06:44 2004 +0000
@@ -1,3 +1,8 @@
+2004-12-29  David Kastrup  <dak@gnu.org>
+
+	* international/mule.el (decode-coding-inserted-region): Don't
+	barf if `buffer-undo-list' is already set to `t'.
+
 2004-12-29  Jay Belanger  <belanger@truman.edu>
 
 	* calc/calc-prog.el (calc-user-define-formula): Put default values
--- a/lisp/international/mule.el	Wed Dec 29 05:32:08 2004 +0000
+++ b/lisp/international/mule.el	Wed Dec 29 10:06:44 2004 +0000
@@ -1893,7 +1893,7 @@
 	  ;; Otherwise, if we can recognize the undo elt for the insertion,
 	  ;; remove it and get ready to replace it later.
 	  ;; In the mean time, turn off undo recording.
-	  (let ((last (car buffer-undo-list))) 
+	  (let ((last (car-safe buffer-undo-list))) 
 	    (if (and (consp last) (eql (car last) from) (eql (cdr last) to))
 		(setq undo-list-saved (cdr buffer-undo-list)
 		      buffer-undo-list t))))