Function: pr-update-menus
pr-update-menus is an interactive and byte-compiled function defined
in printing.el.gz.
Signature
(pr-update-menus &optional FORCE)
Documentation
Update utility, PostScript and text printer menus.
If FORCE is non-nil, update menus doesn't matter if pr-ps-printer-alist,
pr-txt-printer-alist or pr-ps-utility-alist were modified or not;
otherwise, update PostScript printer menu if pr-ps-printer-menu-modified is
non-nil, update text printer menu if pr-txt-printer-menu-modified is
non-nil, and update PostScript File menus if pr-ps-utility-menu-modified is
non-nil.
If menu binding was not done, calls pr-menu-bind.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/printing.el.gz
(defun pr-update-menus (&optional force)
"Update utility, PostScript and text printer menus.
If FORCE is non-nil, update menus doesn't matter if `pr-ps-printer-alist',
`pr-txt-printer-alist' or `pr-ps-utility-alist' were modified or not;
otherwise, update PostScript printer menu if `pr-ps-printer-menu-modified' is
non-nil, update text printer menu if `pr-txt-printer-menu-modified' is
non-nil, and update PostScript File menus if `pr-ps-utility-menu-modified' is
non-nil.
If menu binding was not done, calls `pr-menu-bind'."
(interactive "P")
(if pr-menu-print-item ; since v6.8.4
;; There was no menu binding yet, so do it now!
;; This is a hack to be compatible with old versions of printing.
;; So, user does not need to change printing calling in init files.
(pr-menu-bind)
;; Here menu binding is ok.
(pr-update-var 'pr-ps-name pr-ps-printer-alist)
(pr-update-var 'pr-txt-name pr-txt-printer-alist)
(pr-update-var 'pr-ps-utility pr-ps-utility-alist)
(pr-do-update-menus force)))