%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/ |
Current File : //usr/local/share/emacs/27.2/lisp/ehelp.elc |
;ELC ;;; Compiled ;;; in Emacs version 27.2 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (require 'electric) (defvar electric-help-form-to-execute nil) (byte-code "\300\301\302\303\304\305\306\307&\210\310\311\312\313\314DD\315\316\317\306\301&\210\310\320\312\313\321DD\322\316\323\306\301&\210\324\325\326\327#\207" [custom-declare-group electric-help nil "Electric help facility." :version "21.1" :group help custom-declare-variable electric-help-shrink-window funcall function #[0 "\300\207" [t] 1] "If set, adjust help window sizes to buffer sizes when displaying help." :type boolean electric-help-mode-hook #[0 "\300\207" [nil] 1] "Hook run by `with-electric-help' after initializing the buffer." hook put electric-help-undefined suppress-keymap t] 8) #@61 Keymap defining commands available in `electric-help-mode'. (defvar electric-help-map (byte-code "\302 \303\"\210\304!\210\305\306\307#\210\305\310\307#\210\305\311\307#\210\305\312\307#\210\305\313\307#\210\305\314\307#\210\305\315\307#\210\305\316\307#\210\305\317\307#\210\305\320\307#\210\305\321\307#\210\305\322 !\323#\210\305\324\323#\210\305\325\326#\210\305\327\330#\210\305\331\330#\210\305\332\333#\210\305\334\333#\210\305\335\336#\210\305\337\340#\210\305\341\340#\210\305\342\343#\210\305\344\343#\210\305\345\346#\210\305\347\350#\210\211\207" [button-buffer-map help-char make-keymap set-keymap-parent suppress-keymap define-key "" electric-help-undefined [67108912] [67108913] [67108914] [67108915] [67108916] [67108917] [67108918] [67108919] [67108920] [67108921] char-to-string electric-help-help "?" " " scroll-up [33554464] scroll-down "" "." beginning-of-buffer "<" ">" end-of-buffer "Q" electric-help-exit "q" "R" electric-help-retain "r" "x" electric-help-execute-extended "" electric-help-ctrl-x-prefix] 5) (#$ . 1081)) (defvar electric-help-orig-major-mode nil) (make-variable-buffer-local 'electric-help-orig-major-mode) #@142 `with-electric-help' temporarily places its buffer in this mode. (On exit from `with-electric-help', the original `major-mode' is restored.) (defalias 'electric-help-mode #[0 "\306 \307\310\311\312 !\210\313\314\315\"\210\316\317!\207" [buffer-read-only major-mode electric-help-orig-major-mode mode-name mode-line-buffer-identification electric-help-map t "Help" help-mode (" Help: %b") use-local-map add-hook mouse-leave-buffer-hook electric-help-retain view-mode -1] 3 (#$ . 2268)]) #@1169 Pop up an "electric" help buffer. THUNK is a function of no arguments which is called to initialize the contents of BUFFER. BUFFER defaults to `*Help*'. BUFFER will be erased before THUNK is called unless NOERASE is non-nil. THUNK will be called while BUFFER is current and with `standard-output' bound to the buffer specified by BUFFER. If THUNK returns nil, we display BUFFER starting at the top, and shrink the window to fit. If THUNK returns non-nil, we don't do those things. After THUNK has been called, this function "electrically" pops up a window in which BUFFER is displayed and allows the user to scroll through that buffer in `electric-help-mode'. The window's height will be at least MINHEIGHT if this value is non-nil. If THUNK returns nil, we display BUFFER starting at the top, and shrink the window to fit if `electric-help-shrink-window' is non-nil. If THUNK returns non-nil, we don't do those things. When the user exits (with `electric-help-exit', or otherwise), the help buffer's window disappears (i.e., we use `save-window-excursion'), and BUFFER is put back into its original major mode. (fn THUNK &optional BUFFER NOERASE MINHEIGHT) (defalias 'with-electric-help #[1025 "C\211\306\242\206\n \307!\240\210\310\311!\312 C\313C\313\314\315\316\317\320#\321\"\322$\216\212\2031 \323 b\210\311\324\242!\210)r\242q\210\203P \325 W\203P \326\325 Z!\210\327 \210\313\204\\ \330 \210)\242 \204| \242q\210\331\313!\210eb\210\203| \f\203| \332 \210)\242q\210\333\334!\210\311\335 \242\336=\203\227 \312 \240\210\202\233 \211\311\240\210\337 >\205\245 \340\305\337\"+\266\203\207" [electric-help-form-to-execute pop-up-windows buffer-read-only standard-output electric-help-shrink-window mouse-leave-buffer-hook get-buffer-create "*Help*" one-window-p t current-window-configuration nil make-byte-code 0 "\306\307!\210\300\242q\210\310\3111 \f\206 \312 0\202 \210\202 \210\313\301\242!\210\302\242\2031 \314\300\242!\210\315\300\242!\210\316 !\203: \207\317 !\207" vconcat vector [buffer-read-only electric-help-orig-major-mode electric-help-form-to-execute message "" nil (error) fundamental-mode set-window-configuration replace-buffer-in-windows bury-buffer functionp eval] 2 window-start pop-to-buffer window-height enlarge-window electric-help-mode erase-buffer set-buffer-modified-p shrink-window-if-larger-than-buffer run-hooks electric-help-mode-hook electric-help-command-loop retain electric-help-retain remove-hook] 16 (#$ . 2768)]) (defalias 'electric-help-command-loop #[0 "\3012n \302d!\203&