Function: mode-line-toggle-modified

mode-line-toggle-modified is an interactive and byte-compiled function defined in bindings.el.gz.

Signature

(mode-line-toggle-modified EVENT)

Documentation

Toggle the buffer-modified flag from the mode-line.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/bindings.el.gz
(defun mode-line-toggle-modified (event)
  "Toggle the buffer-modified flag from the mode-line."
  (interactive "e")
  (with-selected-window (posn-window (event-start event))
    (set-buffer-modified-p (not (buffer-modified-p)))
    (force-mode-line-update)))