Function: ibuffer-mouse-toggle-mark

ibuffer-mouse-toggle-mark is an interactive and byte-compiled function defined in ibuffer.el.gz.

Signature

(ibuffer-mouse-toggle-mark EVENT)

Documentation

Toggle the marked status of the buffer chosen with the mouse.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/ibuffer.el.gz
(defun ibuffer-mouse-toggle-mark (event)
  "Toggle the marked status of the buffer chosen with the mouse."
  (interactive "e")
  (unwind-protect
      (let ((pt (save-excursion
		  (mouse-set-point event)
		  (point))))
        (if-let* ((it (get-text-property (point) 'ibuffer-filter-group-name)))
	    (ibuffer-toggle-marks it)
	  (goto-char pt)
	  (let ((mark (ibuffer-current-mark)))
	    (setq buffer-read-only nil)
	    (if (eq mark ibuffer-marked-char)
		(ibuffer-set-mark ?\s)
	      (ibuffer-set-mark ibuffer-marked-char)))))
    (setq buffer-read-only t)))