Variable: mode-line-coding-system-map

mode-line-coding-system-map is a variable defined in bindings.el.gz.

Value

<mode-line> <mouse-1>  #<anonymous-function>
<mode-line> <mouse-3>  #<anonymous-function>

Documentation

Local keymap for the coding-system part of the mode line.

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/bindings.el.gz
(defvar mode-line-coding-system-map
  (let ((map (make-sparse-keymap)))
    (define-key map [mode-line mouse-1]
      (lambda (e)
	(interactive "e")
	(with-selected-window (posn-window (event-start e))
	  (when (and enable-multibyte-characters
		     buffer-file-coding-system)
	    (describe-coding-system buffer-file-coding-system)))))
    (define-key map [mode-line mouse-3]
      (lambda (e)
	(interactive "e")
	(with-selected-window (posn-window (event-start e))
	  (call-interactively 'set-buffer-file-coding-system))))
    (purecopy map))
  "Local keymap for the coding-system part of the mode line.")