;ELC ;;; compiled by jwz@thalidomide on Wed May 25 02:39:58 1994 ;;; from file /u/jwz/emacs19/lisp/prim/menubar.el ;;; emacs version 19.10 Lucid (beta25). ;;; bytecomp version 2.24; 26-Apr-94. ;;; optimization is on. ;;; this file uses opcodes which do not exist in Emacs 18. (if (and (boundp 'emacs-version) (or (and (boundp 'epoch::version) epoch::version) (string-lessp emacs-version "19"))) (error "This file was compiled for Emacs 19.")) (byte-code "M =ŪB!" [losing menubar-religion winning purecopy-menubar #[(x) " ! GV \nS \nSH!I\nSk) :  @! As) !" [vectorp x i 0 purecopy rest purecopy-menubar] 6] ("File" ["Open..." find-file t] ["Open in New Screen..." find-file-other-screen t] ["Insert File..." insert-file t] "------" ["Save" save-buffer t nil] ["Save As..." write-file t] "-----" ["Print Buffer" lpr-buffer t nil] "-----" ["New Screen" make-screen t] ["Delete Screen" delete-screen t] ["Split Screen" split-window-vertically t] ["Un-Split (Keep This)" delete-other-windows (not (one-window-p t))] ["Un-Split (Keep Others)" delete-window (not (one-window-p t))] "-----" ["Revert Buffer" revert-buffer t nil] ["Kill Buffer" kill-this-buffer t nil] "-----" ["Exit Emacs" save-buffers-kill-emacs t]) ("File" ["New Screen" make-screen t] ["Open..." find-file t] ["Save" save-buffer t nil] ["Save As..." write-file t] "------" ["Insert File..." insert-file t] "-----" ["Print Buffer" lpr-buffer t nil] "-----" ["Delete Screen" delete-screen t] ["Delete Buffer" kill-this-buffer t nil] ["Revert Buffer" revert-buffer t nil] "-----" ["Exit Emacs" save-buffers-kill-emacs t]) (("Edit" ["Undo" advertised-undo t] ["Cut" x-kill-primary-selection t] ["Copy" x-copy-primary-selection t] ["Paste" x-yank-clipboard-selection t] ["Clear" x-delete-primary-selection t] "----" ["Start Macro Recording" start-kbd-macro (not defining-kbd-macro)] ["End Macro Recording" end-kbd-macro defining-kbd-macro] ["Execute Last Macro" call-last-kbd-macro last-kbd-macro]) ("Options" ["Read Only" toggle-read-only :style toggle :selected buffer-read-only] ["Case Sensitive Search" (setq case-fold-search (not case-fold-search)) :style toggle :selected (not case-fold-search)] ["Overstrike" overwrite-mode :style toggle :selected overwrite-mode] ["Auto Delete Selection" (if (memq 'pending-delete-pre-hook pre-command-hook) (pending-delete-off nil) (pending-delete-on nil)) :style toggle :selected (memq 'pending-delete-pre-hook pre-command-hook)] ["Teach Extended Commands" (setq teach-extended-commands-p (not teach-extended-commands-p)) :style toggle :selected teach-extended-commands-p] ("Syntax Highlighting" ["None" (font-lock-mode 0) :style radio :selected (null font-lock-mode)] ["Fonts" (progn (require 'font-lock) (font-lock-use-default-fonts) (font-lock-mode 1)) :style radio :selected (and font-lock-mode (equal (find-face 'italic) (find-face 'font-lock-comment-face)))] ["Colors" (progn (require 'font-lock) (font-lock-use-default-colors) (font-lock-mode 1)) :style radio :selected (and font-lock-mode (not (equal (find-face 'italic) (find-face 'font-lock-comment-face))))] "-----" ["Less" (progn (require 'font-lock) (font-lock-use-default-minimal-decoration) (font-lock-mode 0) (font-lock-mode 1)) :style radio :selected (and font-lock-mode (eq c++-font-lock-keywords c-font-lock-keywords-1))] ["More" (progn (require 'font-lock) (font-lock-use-default-maximal-decoration) (font-lock-mode 0) (font-lock-mode 1)) :style radio :selected (and font-lock-mode (eq c++-font-lock-keywords c-font-lock-keywords-2))]) ("Paren Highlighting" ["None" (blink-paren 0) :style radio :selected (not (memq 'blink-paren-pre-command pre-command-hook))] ["Blink" (progn (setq highlight-paren-expression nil) (blink-paren 1)) :style radio :selected (and (not highlight-paren-expression) (memq 'blink-paren-pre-command pre-command-hook))] ["Highlight" (progn (setq highlight-paren-expression t) (blink-paren 1)) :style radio :selected (and highlight-paren-expression (memq 'blink-paren-pre-command pre-command-hook))]) "------" ("Font" "initialized later") ("Size" "initialized later") ("Weight" "initialized later") "-----" ["Buffers Menu Length..." (progn (setq buffers-menu-max-size (read-number "Enter number of buffers to display (or 0 for unlimited): ")) (if (eq buffers-menu-max-size 0) (setq buffers-menu-max-size nil))) t] ["Buffers Sub-Menus" (setq complex-buffers-menu-p (not complex-buffers-menu-p)) :style toggle :selected complex-buffers-menu-p] "-----" ["Save Options" save-options-menu-settings t]) ("Buffers" "") nil ("Help" ["About Lucid Emacs..." about-lucid-emacs t] "-----" ["Info" info t] ["Describe Mode" describe-mode t] ["Command Apropos..." command-apropos t] ["Full Apropos..." apropos t] ["List Keybindings" describe-bindings t] ["Describe Key..." describe-key t] ["Describe Function..." describe-function t] ["Describe Variable..." describe-variable t] "-----" ["Unix Manual..." manual-entry t] ["Emacs Tutorial" help-with-tutorial t] ["Emacs News" view-emacs-news t])) default-menubar] 3) (fset 'kill-this-buffer #[nil "p!" [kill-buffer] 2 "\ Kill the current buffer." nil]) (fset 'set-menubar #[(menubar) " \" !\" " [check-menu-syntax menubar t set-default current-menubar copy-sequence set-menubar-dirty-flag] 4 "\ Set the default menubar to be MENUBAR. See `current-menubar' for a description of the syntax of a menubar."]) (fset 'set-buffer-menubar #[(menubar) " \"! ! " [check-menu-syntax menubar t make-local-variable current-menubar copy-sequence set-menubar-dirty-flag] 3 "\ Set the buffer-local menubar to be MENUBAR. See `current-menubar' for a description of the syntax of a menubar."]) (fset 'check-menu-syntax #[(menu &optional menubar-p) " @; D\" A 0 @;( @( @: @!( @!  @G W @D\" U U @H9 @H!HU @H; @D\" W @H @H; @D\"lj W @H>9٪ @E\"= @TH> @E\"=\\*> @D\",* @D\" ALJ" [menubar-p menu signal error "menu name (first element) must be a string" check-menu-syntax vectorp nil plistp L 3 "button descriptors must be at least 3 long" 4 2 symbol-name 0 58 t "first element of a button must be a string (the label)" "fourth element of a button must be a string (the label suffix)" item style selp i (:active :suffix :keys :style :selected) "unknown menu item keyword" "not a keyword" :style (nil toggle radio text) "unknown style" :selected (toggle radio) ":selected only makes sense with :style toggle or radio" "unrecognised menu descriptor"] 6]) (fset 'find-menu-item #[(menubar item-path-list &optional parent) "<D\" \":?? \n\n@@\n@!\n@H\n@;\n@\n@@\n@ ȉ\nK\nA\nEA : AA # ! D\"!@D\" B*" [item-path-list signal wrong-type-argument listp parent mapcar downcase menubar nil result rest vectorp 0 find-menu-item error gettext "not a submenu" "no such submenu"] 5 "\ Search MENUBAR for item given by ITEM-PATH-LIST starting from PARENT. Returns (ITEM . PARENT), where PARENT is the immediate parent of the item found. If the item does not exist, the car of the returned value is nil. If some menu in the ITEM-PATH-LIST does not exist, an error is signalled."]) (fset 'enable-menu-item-1 #[(path toggle-p on-p) " ! GV  \" @ A \n̪ D\" : \"* GV H9 H!HUԪ GW H= TI\\^ D\" \n> D\"\n \" #*+ D\" I *" [nil item menu vectorp path 2 current-menubar menubar find-menu-item pair signal error "No such menu item" "No such menu" "%S is a menu, not a menu item" 4 symbol-name 0 58 toggle-p :selected :active ok keyword i on-p t "not a toggle menu item" vconcat new-item cons "couldn't find %S on its parent?" "no %S slot to set: %S" set-menubar-dirty-flag] 6]) (fset 'enable-menu-item #[(path) " #" [enable-menu-item-1 path nil t] 4 "\ Make the named menu item be selectable. PATH is a list of strings which identify the position of the menu item in the menu hierarchy. (\"File\" \"Save\") means the menu item called \"Save\" under the toplevel \"File\" menu. (\"Menu\" \"Foo\" \"Item\") means the menu item called \"Item\" under the \"Foo\" submenu of \"Menu\"."]) (fset 'disable-menu-item #[(path) " ‰#" [enable-menu-item-1 path nil] 4 "\ Make the named menu item be unselectable. PATH is a list of strings which identify the position of the menu item in the menu hierarchy. (\"File\" \"Save\") means the menu item called \"Save\" under the toplevel \"File\" menu. (\"Menu\" \"Foo\" \"Item\") means the menu item called \"Item\" under the \"Foo\" submenu of \"Menu\"."]) (fset 'select-toggle-menu-item #[(path) " ‰#" [enable-menu-item-1 path t] 4 "\ Make the named toggle- or radio-style menu item be in the `selected' state. PATH is a list of strings which identify the position of the menu item in the menu hierarchy. (\"File\" \"Save\") means the menu item called \"Save\" under the toplevel \"File\" menu. (\"Menu\" \"Foo\" \"Item\") means the menu item called \"Item\" under the \"Foo\" submenu of \"Menu\"."]) (fset 'deselect-toggle-menu-item #[(path) " #" [enable-menu-item-1 path t nil] 4 "\ Make the named toggle- or radio-style menu item be in the `unselected' state. PATH is a list of strings which identify the position of the menu item in the menu hierarchy. (\"File\" \"Save\") means the menu item called \"Save\" under the toplevel \"File\" menu. (\"Menu\" \"Foo\" \"Item\") means the menu item called \"Item\" under the \"Foo\" submenu of \"Menu\"."]) (fset 'add-menu-item-1 #[(item-p menu-path item-name item-data enabled-p before) " : A @ Ǐ\"#" [buffer-menu-save-buffer #[(buffer) "q )" [buffer save-buffer] 1] buffer-menu-write-file #[(buffer) "q!p!\"!!)" [buffer write-file read-file-name format gettext "Write %s to file: " buffer-name] 6] build-buffers-menu-internal #[(buffers) " Ū\"*" [nil line name mapcar complex-buffers-menu-p #[(buffer) " !\n ! D#= ! D# ! !=Ҫ D#=ժ=ת D# D#\"" [format-buffers-menu-line buffer line delq nil vector "Switch to Buffer" buffers-menu-switch-to-buffer-function buffer-name name t switch-to-buffer "Switch to Buffer, Other Screen" switch-to-buffer-other-screen buffer-modified-p buffer-file-name menubar-religion winning "Save" "Save Buffer" buffer-menu-save-buffer ["Save" nil nil] ["Save Buffer" nil nil] "Save As..." "Save Buffer As..." buffer-menu-write-file "Kill Buffer" kill-buffer] 11] #[(buffer) " !\n !D#" [format-buffers-menu-line buffer line vector buffers-menu-switch-to-buffer-function buffer-name t] 5] buffers] 3] byte-optimizer (nil byte-compile-inline-expand) error "%s already has a byte-optimizer, can't make it inline" put byte-compile-inline-expand] 4) (fset 'build-buffers-menu-hook #[nil " \"@?? V GV á É \n ͪ \"+ \"\" AҪ *" [find-menu-item current-menubar ("Buffers") nil buffers buffer-menu buffer-list buffers-menu-max-size 1 line name mapcar complex-buffers-menu-p #[(buffer) " !\n ! D#= ! D# ! !=Ҫ D#=ժ=ת D# D#\"" [format-buffers-menu-line buffer line delq nil vector "Switch to Buffer" buffers-menu-switch-to-buffer-function buffer-name name t switch-to-buffer "Switch to Buffer, Other Screen" switch-to-buffer-other-screen buffer-modified-p buffer-file-name menubar-religion winning "Save" "Save Buffer" buffer-menu-save-buffer ["Save" nil nil] ["Save Buffer" nil nil] "Save As..." "Save Buffer As..." buffer-menu-write-file "Kill Buffer" kill-buffer] 11] #[(buffer) " !\n !D#" [format-buffers-menu-line buffer line vector buffers-menu-switch-to-buffer-function buffer-name t] 5] append delq ("----" ["List All Buffers" list-buffers t]) t] 5 "\ For use as a value of activate-menubar-hook. This function changes the contents of the \"Buffers\" menu to correspond to the current set of buffers. Only the most-recently-used few buffers will be listed on the menu, for efficiency reasons. You can control how many buffers will be shown by setting `buffers-menu-max-size'. You can control the text of the menu items by redefining the function `format-buffers-menu-line'."]) (byte-code "\"!!!Ň" [add-hook activate-menubar-hook build-buffers-menu-hook boundp c++-mode-hook nil lisp-mode-hook emacs-lisp-mode-hook] 3) (defconst options-menu-saved-forms (purecopy '(highlight-paren-expression overwrite-mode teach-extended-commands-p complex-buffers-menu-p buffers-menu-max-size case-fold-search (if (memq 'blink-paren-pre-command pre-command-hook) '(blink-paren 1) '(if (featurep 'blink-paren) (blink-paren 0))) (if (memq 'pending-delete-pre-hook pre-command-hook) '(pending-delete 1) '(if (featurep 'pending-del) (pending-delete 0))) (list 'set-face-font ''default (face-font-name 'default)) (list 'set-face-font ''modeline (face-font-name 'modeline)) (if (memq 'turn-on-font-lock c-mode-hook) '(add-hook 'c-mode-hook 'turn-on-font-lock) '(remove-hook 'c-mode-hook 'turn-on-font-lock)) (if (memq 'turn-on-font-lock c++-mode-hook) '(add-hook 'c++-mode-hook 'turn-on-font-lock) '(remove-hook 'c++-mode-hook 'turn-on-font-lock)) (if (memq 'turn-on-font-lock lisp-mode-hook) '(add-hook 'lisp-mode-hook 'turn-on-font-lock) '(remove-hook 'lisp-mode-hook 'turn-on-font-lock)) (if (memq 'turn-on-font-lock emacs-lisp-mode-hook) '(add-hook 'emacs-lisp-mode-hook 'turn-on-font-lock) '(remove-hook 'emacs-lisp-mode-hook 'turn-on-font-lock)) (if (featurep 'font-lock) '(require 'font-lock)) (cond ((eq c-font-lock-keywords c-font-lock-keywords-1) '(setq c-font-lock-keywords c-font-lock-keywords-1)) ((eq c-font-lock-keywords c-font-lock-keywords-2) '(setq c-font-lock-keywords c-font-lock-keywords-2))) (cond ((eq c++-font-lock-keywords c-font-lock-keywords-1) '(setq c++-font-lock-keywords c-font-lock-keywords-1)) ((eq c++-font-lock-keywords c-font-lock-keywords-2) '(setq c++-font-lock-keywords c-font-lock-keywords-2))) (cond ((eq lisp-font-lock-keywords lisp-font-lock-keywords-1) '(setq lisp-font-lock-keywords lisp-font-lock-keywords-1)) ((eq lisp-font-lock-keywords lisp-font-lock-keywords-2) '(setq lisp-font-lock-keywords lisp-font-lock-keywords-2))) (cons 'progn (apply 'nconc (mapcar (function (lambda (face) (delq nil (list (if (face-foreground face) (list 'set-face-foreground (list 'quote face) (pixel-name (face-foreground face)))) (if (face-background face) (list 'set-face-background (list 'quote face) (pixel-name (face-background face)))) (if (face-font face) (list 'set-face-font (list 'quote face) (face-font-name face))))))) '(font-lock-comment-face font-lock-string-face font-lock-doc-string-face font-lock-function-name-face font-lock-keyword-face font-lock-type-face)))))) "\ The variables to save; or forms to evaluate to get forms to write out.") (fset 'save-options-menu-settings #[nil "\nQ!qeb#ʔʕ|eb#ʔ b#! ʕ|)dbc )ɉ !!!!!!! \"!!!+ ĉq +" [find-file-noselect "~" init-file-user "/.emacs" nil output-marker output-buffer re-search-forward "^(and (fboundp 'energize-menu-restore-saved-options)\n (energize-menu-restore-saved-options '.*))[ ]*\n?" t 0 "^;; Options Menu Settings *\n" move p "^;; End of Options Menu Settings *\\(\n\\|\\'\\)" error "can't find END of saved state in .emacs" "\n" point-marker standard-output print-escape-newlines print-readably princ ";; Options Menu Settings\n" ";; =====================\n" "(cond\n" " ((and (string-match \"Lucid\" emacs-version)\n" " (boundp 'emacs-major-version)\n" " (= emacs-major-version 19)\n" " (>= emacs-minor-version 10))\n" mapcar #[(var) "!\n9\nJ> 9 D)E!\n!=\nA\n@!!\nAm!g\n\n!\n!" [princ " " var prin1 setq-default val (t nil) quote eval progn "\n"] 6] options-menu-saved-forms " ))\n" ";; ============================\n" ";; End of Options Menu Settings\n" save-buffer] 5 "\ Saves the current settings of the `Options' menu to your `.emacs' file." nil]) (byte-code " !" [set-menubar default-menubar ("Emacs Commands" ["Undo" advertised-undo t] ["Cut" x-kill-primary-selection t] ["Copy" x-copy-primary-selection t] ["Paste" x-yank-clipboard-selection t] "-----" ["Select Block" mark-paragraph t] ["Split Window" (split-window) t] ["Unsplit Window" delete-other-windows t]) default-popup-menu] 2) (defvar global-popup-menu default-popup-menu "\ The global popup menu. This is present in all modes. See the function `popup-menu' for a description of menu syntax.") (defvar mode-popup-menu nil "\ The mode-specific popup menu. Automatically buffer local. This is appended to the default items in `global-popup-menu'. See the function `popup-menu' for a description of menu syntax.") (make-variable-buffer-local 'mode-popup-menu) (defvar activate-popup-menu-hook nil "\ Function or functions run before a mode-specific popup menu is made visible. These functions are called with no arguments, and should interrogate and modify the value of `global-popup-menu' or `mode-popup-menu' as desired. Note: this hook is only run if you use `popup-mode-menu' for activating the global and mode-specific commands; if you have your own binding for button3, this hook won't be run.") (fset 'popup-mode-menu #[nil "! ! @ A \nC\n%* !!" [run-hooks activate-popup-menu-hook popup-menu global-popup-menu mode-popup-menu check-menu-syntax items title append ("---" "---") popup-menu-titles ("---" "---") error "No menu here."] 7 "\ Pop up a menu of global and mode-specific commands. The menu is computed by combining `global-popup-menu' and `mode-popup-menu'." "@"]) (byte-code "\"!" [global-set-key button3 popup-mode-menu provide menubar] 3)