Function: woman-imenu

woman-imenu is an interactive and byte-compiled function defined in woman.el.gz.

Signature

(woman-imenu &optional REDRAW)

Documentation

Add a "Contents" menu to the menubar.

Optional argument REDRAW, if non-nil, forces mode line to be updated.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/woman.el.gz
(defun woman-imenu (&optional redraw)
  "Add a \"Contents\" menu to the menubar.
Optional argument REDRAW, if non-nil, forces mode line to be updated."
  (interactive)
  (if woman-imenu-done
      ;; This is PRIMARILY to avoid a bug in imenu-add-to-menubar that
      ;; causes it to corrupt the menu bar if it is run more than once
      ;; in the same buffer.
      ()
    (setq woman-imenu-done t)
    (imenu-add-to-menubar woman-imenu-title)
    (if redraw (force-mode-line-update))))