?
Current Path : /usr/share/emacs/24.3/lisp/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : //usr/share/emacs/24.3/lisp/woman.elc |
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:06:34 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/woman.el ;;; in Emacs version 24.3.1 ;;; 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)" (#$ . 548)) (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\225O\202 !\207" [Man-reference-regexp arg woman string-match 0 1] 4]] 6) #@145 Return concatenated list of FN applied to successive `car' elements of X. FN must return a list, cons or nil. Useful for splicing into a list. (defalias 'woman-mapcan #[(fn x) "\302\303\304 \"\"\207" [fn x apply nconc mapcar] 5 (#$ . 914)]) #@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) "\303>\2032 \204 \304\305\306 \"\207\307\310 \"\203 \311\312\313 !\"\207\307\314 \"\203( C\207\311\315\316\313 !)\"\207\311\317\313 \206: \320!\"\207" [system-type paths path-separator (windows-nt ms-dos) mapcar woman-Cyg-to-Win woman-parse-man\.conf string-match ";" woman-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] ""] 4 (#$ . 1164)]) #@64 Convert an absolute filename FILE from Cygwin to Windows form. (defalias 'woman-Cyg-to-Win #[(file) ":\203 \207\301H\302=\203 \303\304\305\217\207\207" [file 0 47 nil (byte-code "\302\303!rq\210\304\216\305\306\307\310\307\311 &\210\312\313 {+\207" [#1=#:temp-buffer file generate-new-buffer " *temp*" ((byte-code "\301!\203\n \302!\210\301\207" [#1# buffer-name kill-buffer] 2)) call-process "cygpath" nil t "-m" 1 buffer-size] 7) ((error (byte-code "\301\302\"\203 \303\224\203 \303\225\304O\305\303HI\210\303\306I\210\207" [file string-match "\\`\\(/cygdrive\\|/\\)?/./" 1 nil 0 58] 4)))] 3 (#$ . 2083)]) (byte-code "\300\301\302\303\304\305\306\307&\210\310\311\302\312\313\314\306\301&\210\310\315\302\316\313\317\306\301&\210\310\320\302\321\313\317\306\301&\210\300\322\302\323\304\324\306\301&\210\310\325\326\327\313\330\306\322&\207" [custom-declare-group woman nil "Browse UNIX manual pages `wo (without) man'." :tag "WoMan" :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)] 8) #@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 "\305\211\211\203h \306@\211!\203a \307\n!\203- \310\n\311\312\311$\211\203a \306\n@\211!\203a \313\314!r\fq\210\315\216\316\n!\210\317\320\305\311#\203\\ \321\301\322\224\203P \323\322!\202W \323\324!\323\325!B\"\210\202; +\204h A\211\204\n \237+\207" [woman-man\.conf-path manpath file path #1=#:temp-buffer nil file-readable-p file-directory-p directory-files t "\\`man.*\\.conf[a-z]*\\'" generate-new-buffer " *temp*" ((byte-code "\301!\203\n \302!\210\301\207" [#1# buffer-name kill-buffer] 2)) insert-file-contents re-search-forward "^[ ]*\\(?:\\(?:MANDATORY_\\|OPTIONAL_\\)?MANPATH[ ]+\\(\\S-+\\)\\|MANPATH_MAP[ ]+\\(\\S-+\\)[ ]+\\(\\S-+\\)\\)" add-to-list 1 match-string 2 3] 6 (#$ . 4250)]) #@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 '(#$ . 5383) :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\"