%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/ |
Current File : //usr/local/share/emacs/27.2/lisp/woman.elc |
;ELC ;;; Compiled ;;; in Emacs version 27.2 ;;; with all optimizations. ;;; This file contains utf-8 non-ASCII characters, ;;; and so cannot be loaded into Emacs 22 or earlier. (and (boundp 'emacs-version) (< (aref emacs-version (1- (length emacs-version))) ?A) (string-lessp emacs-version "23") (error "`%s' was compiled for Emacs 23 or later" #$)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; #@28 WoMan version information. (defvar woman-version "0.551 (beta)" (#$ . 408)) (byte-code "\300\301!\210\300\302!\210\303\304\305\306\307\310%\207" [require man button define-button-type WoMan-xref-man-page :supertype Man-abstract-xref-man-page func #[(arg) "\302\303 \"\203 \304 \305\306\225#\202 !\207" [Man-reference-regexp arg woman string-match substring 0 1] 5]] 6) #@277 Explode search path string PATHS into a list of directory names. Allow Cygwin colon-separated search paths on Microsoft platforms. Replace null components by calling `woman-parse-man.conf'. As a special case, if PATHS is nil then replace it by calling `woman-parse-man.conf'. (defalias 'woman-parse-colon-path #[(paths) "\304>\203D \204 \305\306\307 \"\207\310 \311\312\313#)\266\203\203' \314\315\316 !\"\207\317 \311\312\313#)\266\203\203: C\207\314\320\321\316 !)\"\207\314\322\316 \206L \323!\"\207" [system-type paths inhibit-changing-match-data path-separator (windows-nt ms-dos) mapcar woman-Cyg-to-Win woman-parse-man\.conf ";" nil t string-match mapcan #[(x) "\203 C\207\301\302\303 \"\207" [x mapcar woman-Cyg-to-Win woman-parse-man\.conf] 3] parse-colon-path "\\`[a-zA-Z]:" #[(x) "\301\302\203 C\202 \303 \"\207" [x mapcar woman-Cyg-to-Win woman-parse-man\.conf] 3] ":" #[(x) "\203 C\207\301 \207" [x woman-parse-man\.conf] 1] ""] 7 (#$ . 788)]) #@64 Convert an absolute filename FILE from Cygwin to Windows form. (defalias 'woman-Cyg-to-Win #[(file) ":\203 \207\302H\303=\203O \3041. \305\306!r q\210\307\216\310\311\312\313\312\314&\210\315\316 {+0\207\210\317\320\"\203M \315\224\203A \321\315\225\"\302\315HI\210\315\322I\210\207\207" [file #1=#:temp-buffer 0 47 (error) generate-new-buffer " *temp*" #[nil "\301!\205 \302!\207" [#1# buffer-name kill-buffer] 2] call-process "cygpath" nil t "-m" 1 buffer-size string-match "\\`\\(/cygdrive\\|/\\)?/./" substring 58] 7 (#$ . 1774)]) (byte-code "\300\301\302\303\304\305\306\307\306\310\311\312&\210\313\314\302\315\316\317\311\301&\210\313\320\302\321\316\322\311\301&\210\313\323\302\324\316\322\311\301&\210\300\325\302\326\304\327\311\301&\210\313\330\331\332\316\333\311\325&\207" [custom-declare-group woman nil "Browse UNIX manual pages `wo (without) man'." :tag "WoMan" :link (custom-manual "(woman) Top") (emacs-commentary-link :tag "Commentary" "woman.el") :group help custom-declare-variable woman-show-log "If non-nil then show the *WoMan-Log* buffer if appropriate.\nI.e. if any warning messages are written to it. Default is nil." :type boolean woman-pre-format-hook "Hook run by WoMan immediately before formatting a buffer.\nChange only via `Customization' or the function `add-hook'." hook woman-post-format-hook "Hook run by WoMan immediately after formatting a buffer.\nChange only via `Customization' or the function `add-hook'." woman-interface "Interface options for browsing UNIX manual pages `wo (without) man'." "WoMan Interface" woman-man\.conf-path (let ((path '("/usr/lib" "/etc"))) (cond ((eq system-type 'windows-nt) (mapcar 'woman-Cyg-to-Win path)) ((eq system-type 'darwin) (cons "/usr/share/misc" path)) (t path))) "List of dirs to search and/or files to try for man config file.\nA trailing separator (`/' for UNIX etc.) on directories is\noptional, and the filename is used if a directory specified is\nthe first to start with \"man\" and has an extension starting\nwith \".conf\". If MANPATH is not set but a config file is found\nthen it is parsed instead to provide a default value for\n`woman-manpath'." (repeat string)] 12) #@369 Parse if possible configuration file for man command. Used only if MANPATH is not set or contains null components. Look in `woman-man.conf-path' and return a value for `woman-manpath'. Concatenate data from all lines in the config file of the form MANPATH /usr/man or MANDATORY_MANPATH /usr/man or OPTIONAL_MANPATH /usr/man or MANPATH_MAP /opt/bin /opt/man (defalias 'woman-parse-man\.conf #[nil "\306\211\211\203t \307@\211!\203m \310\n!\203- \311\n\312\313\312$\211\203m \307\n@\211!\203m \314\315!r\fq\210\316\216\317\n!\210\320\321\306\312#\203h \322\224\203N \323\322!\202U \323\324!\323\325!B\211 \235\203` \202c B)\202; +\204t A\211\204\n \237+\207" [woman-man\.conf-path manpath file path #1=#:temp-buffer #2=#:va nil file-readable-p file-directory-p directory-files t "\\`man.*\\.conf[a-z]*\\'" generate-new-buffer " *temp*" #[nil "\301!\205 \302!\207" [#1# buffer-name kill-buffer] 2] insert-file-contents re-search-forward "^[ ]*\\(?:\\(?:MANDATORY_\\|OPTIONAL_\\)?MANPATH[ ]+\\(\\S-+\\)\\|MANPATH_MAP[ ]+\\(\\S-+\\)[ ]+\\(\\S-+\\)\\)" 1 match-string 2 3] 6 (#$ . 3972)]) #@244 String specifying a manual page locale, or nil. If a manual page is available in the specified locale (e.g. "sv_SE.ISO8859-1"), it will be offered in preference to the default version. Normally, `set-locale-environment' sets this at startup. (custom-declare-variable 'woman-locale nil '(#$ . 5098) :type '(choice string (const nil)) :group 'woman-interface :version "23.1") #@253 Expand a locale into a list suitable for man page lookup. Expands a locale of the form LANGUAGE_TERRITORY.CHARSET into the list: LANGUAGE_TERRITORY.CHARSET LANGUAGE_TERRITORY LANGUAGE.CHARSET LANGUAGE. The TERRITORY and CHARSET portions may be absent. (defalias 'woman-expand-locale #[(locale) "\304\305\"\210\306\307\"\306\310\"\306\311\"\312\313 \205\"