See also command `unify-8859-on-decoding-mode'."
:group 'mule
:global t
- :init-value nil
+ :init-value t
(if unify-8859-on-encoding-mode
(ucs-unify-8859 t)
(ucs-fragment-8859 t)))
;; the above to work in it.
(defun ucs-minibuffer-setup ()
"Set up an appropriate `buffer-file-coding-system' for current buffer.
-Does so by inheriting it from the cadr of the current buffer list.
Intended to be added to `minibuffer-setup-hook'."
(set (make-local-variable 'buffer-file-coding-system)
- (with-current-buffer (cadr (buffer-list))
+ (with-current-buffer (let ((win (minibuffer-selected-window)))
+ (if (window-live-p win) (window-buffer win)
+ (cadr (buffer-list))))
buffer-file-coding-system)))
;; Modified to allow display of arbitrary characters with an