Function: 2C-dissociate

2C-dissociate is an interactive and byte-compiled function defined in two-column.el.gz.

Signature

(2C-dissociate)

Documentation

Turn off two-column minor mode in current and associated buffer.

If the associated buffer is unmodified and empty, it is killed.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/two-column.el.gz
(defun 2C-dissociate ()
  "Turn off two-column minor mode in current and associated buffer.
If the associated buffer is unmodified and empty, it is killed."
  (interactive)
  (let ((buffer (current-buffer))
	(other (2C-other)))
    (if other
	(with-current-buffer other
	  (when (or (not (2C-other)) (eq buffer (2C-other)))
	    (if (and (not (buffer-modified-p)) (zerop (buffer-size)))
		(kill-buffer)
	      (kill-local-variable '2C-mode)
	      (kill-local-variable '2C-window-width)
	      (kill-local-variable '2C-separator)
	      (kill-local-variable 'mode-line-format)
	      (kill-local-variable 'fill-column))))))
  (kill-local-variable '2C-mode)
  (kill-local-variable '2C-window-width)
  (kill-local-variable '2C-separator)
  (kill-local-variable 'mode-line-format)
  (kill-local-variable 'fill-column)
  (force-mode-line-update))