;ELC ;;; compiled by kwzh@hal.gnu.ai.mit.edu on Tue May 2 20:16:53 1995 ;;; from file /gd/gnu/emacs/19.0/lisp/chistory.el ;;; emacs version 19.28.90.69. ;;; bytecomp version FSF 2.10 ;;; 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 "`/gd/gnu/emacs/19.0/lisp/chistory.el' was compiled for Emacs 19")) #@317 Edit and re-evaluate complex command with name matching PATTERN. Matching occurrences are displayed, most recent first, until you select a form for evaluation. If PATTERN is empty (or nil), every form in the command history is offered. The form is placed in the minibuffer for editing and the result is evaluated. (defalias 'repeat-matching-complex-command #[(&optional pattern) "\"ÔO ĉXX@=@!\"O\"!O@A$c!s @@=n A\"+" [pattern string-match "[^ ]" 0 nil command-history what temp history symbol-name y-or-n-p format "Redo %S? " error "Command history exhausted" repeat-matching-complex-command edit-and-eval-command "Redo: "] 5 (#$ . 486) "sRedo Command (regexp): "]) #@300 *A list of symbols to be ignored by `default-command-history-filter'. It that function is given a list whose car is an element of this list, then it will return non-nil (indicating the list should be discarded from the history). Initially, all commands related to the command history are discarded. (defvar default-command-history-filter-garbage (quote (command-history-mode list-command-history electric-command-history)) (#$ . -1248)) #@404 Predicate to test which commands should be excluded from the history listing. If non-nil, should be the name of a function of one argument. It is passed each element of the command history when \[list-command-history] is called. If the filter returns non-nil for some element, that element is excluded from the history listing. The default filter removes commands associated with the command-history. (defvar list-command-history-filter (quote default-command-history-filter) (#$ . 1692)) #@98 Filter commands matching `default-command-history-filter-garbage' list from the command history. (defalias 'default-command-history-filter #[(frob) ":?\n@ >" [frob default-command-history-filter-garbage] 2 (#$ . 2189)]) #@80 *If non-nil, maximum length of the listing produced by `list-command-history'. (defvar list-command-history-max 32 (#$ . -2420)) #@308 List history of commands typed to minibuffer. The number of commands listed is controlled by `list-command-history-max'. Calls value of `list-command-history-filter' (if non-nil) on each history element to judge if that element should be excluded from the list. The buffer is left in Command History mode. (defalias 'list-command-history #[nil "  UAA!-\n-\n@!9 S@! A+qebmS!U )" ["*Command History*" command-history nil list-command-history-max -1 count buffer-read-only history 0 boundp list-command-history-filter prin1 terpri error "No command history" Command-history-setup] 4 (#$ . 2556) nil]) (defalias 'Command-history-setup #[(&optional majormode modename keymap) "q\n !!! \n !\n%\f -Ή" ["*Command History*" use-local-map keymap command-history-map lisp-mode-variables nil set-syntax-table emacs-lisp-mode-syntax-table t buffer-read-only majormode command-history-mode major-mode modename "Command History" mode-name] 2]) #@69 If non-nil, its value is called on entry to `command-history-mode'. (defvar command-history-hook nil (#$ . 3584)) (byte-code "! B 1  ! # # # #‡" [boundp command-history-map nil current-load-list make-sparse-keymap shared-lisp-mode-map suppress-keymap define-key "x" command-history-repeat "\n" next-line " " "" previous-line] 4) #@107 Repeat the command shown on the current line. The buffer for that command is the previous current buffer. (defalias 'command-history-repeat #[nil "yp!) A@q!)" [eval 0 read buffer-list] 3 (#$ . 3955) nil]) #@600 Major mode for examining commands from `command-history'. The number of commands listed is controlled by `list-command-history-max'. The command history is filtered by `list-command-history-filter' if non-nil. Use \\[command-history-repeat] to repeat the command on the current line. Otherwise much like Emacs-Lisp Mode except that there is no self-insertion and digits provide prefix arguments. Tab does not indent. \{command-history-map} Calls the value of `command-history-hook' if that is non-nil. The Command History listing is recomputed each time this mode is invoked. (defalias 'command-history-mode #[nil " !!" [list-command-history pop-to-buffer "*Command History*" run-hooks command-history-hook] 2 (#$ . 4176) nil]) (provide (quote chistory))