+2001-08-07 Karl Eichwalder <ke@suse.de>
+
+ * po-mode.el (po-subedit-mode-menu-layout): New definition.
+ (po-edit-string): Use it to provide a menu for po-subedit-mode.
+
2001-08-01 François Pinard <pinard@iro.umontreal.ca>
* po-mode.el (po-find-awk-string, po-mark-awk-string,
["Soft quit" po-confirm-and-quit t])
"Menu layout for PO mode.")
-;; FIXME: subedit mode should also have its own layout.
+(defconst po-subedit-mode-menu-layout
+ '("PO-Edit"
+ ["Cycle through auxiliary files" po-subedit-cycle-auxiliary t]
+ "---"
+ ["Abort edit" po-subedit-abort t]
+ ["Exit edit" po-subedit-exit t])
+ "Menu layout for PO subedit mode.")
(defconst po-subedit-message
(_"Type `C-c C-c' once done, or `C-c C-k' to abort edit")
(goto-char (point-min))
(and expand-tabs (setq indent-tabs-mode nil))
(use-local-map po-subedit-mode-map)
+ (if (fboundp 'easy-menu-define)
+ (progn
+ (easy-menu-define po-subedit-mode-menu po-subedit-mode-map ""
+ po-subedit-mode-menu-layout)
+ (and po-XEMACS (easy-menu-add po-subedit-mode-menu))))
+ (set-syntax-table po-subedit-mode-syntax-table)
(run-hooks 'po-subedit-mode-hook)
(message po-subedit-message)))))