]> git.eshelyaron.com Git - emacs.git/commitdiff
(select-safe-coding-system): Cope if default-coding-system gives nil
authorRichard M. Stallman <rms@gnu.org>
Mon, 23 Sep 2002 00:20:26 +0000 (00:20 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 23 Sep 2002 00:20:26 +0000 (00:20 +0000)
which was then used in `min'.

lisp/ChangeLog
lisp/international/mule-cmds.el

index 0f71c5c6d2d985b21eaf15d1667a6b3a8f93a1d7..0b4a17dc047fcef0fa231c5a050238d5eba8d9e8 100644 (file)
@@ -1,3 +1,11 @@
+2002-09-22  Richard M. Stallman  <rms@gnu.org>
+
+       * international/mule-cmds.el (select-safe-coding-system): Cope if
+       default-coding-system gives nil which was then used in `min'.
+
+       * mail/sendmail.el (sendmail-send-it): If user's buffer
+       is unibyte, make tembuf unibyte.
+
 2002-09-22  Kai Gro\e,b_\e(Bjohann  <grossjoh@ls6.informatik.uni-dortmund.de>
 
        * net/tramp.el: Version 2.0.22 released.
index 4eaf6184a91faacd8ecd0a5841cccd37537b6bee..1f657700fc8dcf5cb12011ee7de74544e4ddcaf5 100644 (file)
@@ -723,9 +723,10 @@ and TO is ignored."
       (let ((window-configuration (current-window-configuration)))
        (save-excursion
          ;; Make sure the offending buffer is displayed.
-         (when (and default-coding-system (not (stringp from)))
+         (when (and (consp default-coding-system) (not (stringp from)))
            (pop-to-buffer bufname)
-           (goto-char (apply 'min (mapcar #'(lambda (x) (car (cadr x)))
+           ;; The `or' is because sometimes (car (cadr x)) is nil.
+           (goto-char (apply 'min (mapcar #'(lambda (x) (or (car (cadr x)) (point-max)))
                                           default-coding-system))))
          ;; Then ask users to select one from CODINGS.
          (with-output-to-temp-buffer "*Warning*"