?
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/ffap.elc |
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:06:17 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/ffap.el ;;; in Emacs version 24.3.1 ;;; 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. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\302\303!\210\304\305\306\307#\210\310\307\211\2030 @\305N\203) \306N\204) \311\306\305N#\210 A\211\204 *\312\305\306\313#\210\314\315\307\316\317\320\317\321&\207" [prop --dolist-tail-- require url-parse defvaralias ffap-version emacs-version nil (saved-value saved-variable-comment) put make-obsolete-variable "23.2" custom-declare-group ffap "Find file or URL at point." :group matching convenience] 9) #@61 Return value of symbol SYM, if bound, or DEFAULT otherwise. (defalias 'ffap-symbol-value #[(sym &optional default) "\302!\203 J\207 \207" [sym default boundp] 2 (#$ . 976)]) (byte-code "\300\301\302\303\304\305\306\307&\210\300\310\311\312\304\313\306\307&\210\300\314\315\316\304\317\306\307&\210\300\320\321\322\304\323\306\307\324\325& \210\300\326\327\330\304\331\306\307&\210\300\332\333\334\304\335\306\307&\207" [custom-declare-variable ffap-shell-prompt-regexp "[$%><]*" "Paths matching this regexp are stripped off the shell prompt.\nIf nil, ffap doesn't do shell prompt stripping." :type (choice (const :tag "Disable" nil) (const :tag "Standard" "[$%><]*") regexp) :group ffap ffap-ftp-regexp "\\`/[^/:]+:" "File names matching this regexp are treated as remote ffap.\nIf nil, ffap neither recognizes nor generates such names." (choice (const :tag "Disable" nil) (const :tag "Standard" "\\`/[^/:]+:") regexp) ffap-url-unwrap-local t "If non-nil, convert some URLs to local file names before prompting.\nOnly \"file:\" and \"ftp:\" URLs are converted, and only if they\ndo not specify a host, or the host is either \"localhost\" or\nequal to `system-name'." boolean ffap-url-unwrap-remote '("ftp") "If non-nil, convert URLs to remote file names before prompting.\nIf the value is a list of strings, that specifies a list of URL\nschemes (e.g. \"ftp\"); in that case, only convert those URLs." (choice (repeat string) boolean) :version "24.3" ffap-ftp-default-user "anonymous" "User name in ftp file names generated by `ffap-host-to-path'.\nNote this name may be omitted if it equals the default\n(either `efs-default-user' or `ange-ftp-default-user')." string ffap-rfs-regexp "\\`/\\(afs\\|net\\)/." "Matching file names are treated as remote. Use nil to disable." regexp] 10) #@65 Regexp matching URLs. Use nil to disable URL features in ffap. (defvar ffap-url-regexp "\\`\\(news\\(post\\)?:\\|mailto:\\|file:\\|\\(ftp\\|https?\\|telnet\\|gopher\\|www\\|wais\\)://\\)." (#$ . 2777)) (byte-code "\300\301\302\303\304\305\306\307&\210\300\310\311\312\304\313\306\307&\210\300\314\315\316\304\317\306\307&\210\300\320\315\321\304\317\306\307&\210\300\322\315\323\304\317\306\307&\210\300\324\325\326\304\327\306\307\330\331& \210\300\332\333\334\304\327\306\307\330\331& \210\300\335\336\337\304\340\306\307\330\331& \210\300\341\342\343\304\344\306\307&\210\300\345\315\346\304\317\306\307\347\350& \207" [custom-declare-variable ffap-foo-at-bar-prefix "mailto" "Presumed URL prefix type of strings like \"<foo.9z@bar>\".\nSensible values are nil, \"news\", or \"mailto\"." :type (choice (const "mailto") (const "news") (const :tag "Disable" nil)) :group ffap ffap-dired-wildcards "[*?][^/]*\\'" "A regexp matching filename wildcard characters, or nil.\n\nIf `find-file-at-point' gets a filename matching this pattern,\nand `ffap-pass-wildcards-to-dired' is nil, it passes it on to\n`find-file' with non-nil WILDCARDS argument, which expands\nwildcards and visits multiple files. To visit a file whose name\ncontains wildcard characters you can suppress wildcard expansion\nby setting `find-file-wildcards'. If `find-file-at-point' gets a\nfilename matching this pattern and `ffap-pass-wildcards-to-dired'\nis non-nil, it passes it on to `dired'.\n\nIf `dired-at-point' gets a filename matching this pattern,\nit passes it on to `dired'." (choice (const :tag "Disable" nil) (const :tag "Enable" "[*?][^/]*\\'")) ffap-pass-wildcards-to-dired nil "If non-nil, pass filenames matching `ffap-dired-wildcards' to dired." boolean ffap-newfile-prompt "Whether `find-file-at-point' prompts about a nonexistent file." ffap-require-prefix "If set, reverses the prefix argument to `find-file-at-point'.\nThis is nil so neophytes notice ffap. Experts may prefer to disable\nffap most of the time." ffap-file-finder 'find-file "The command called by `find-file-at-point' to find a file." function :risky t ffap-directory-finder 'dired "The command called by `dired-at-point' to find a directory." ffap-url-fetcher (if (fboundp 'browse-url) 'browse-url 'w3-fetch) "A function of one argument, called by ffap to fetch an URL.\nReasonable choices are `w3-fetch' or a `browse-url-*' function.\nFor a fancy alternative, get `ffap-url.el'." (choice (const w3-fetch) (const browse-url) (const browse-url-netscape) (const browse-url-mosaic) function) ffap-next-regexp "[/:.~[:alpha:]]/\\|@[[:alpha:]][-[:alnum:]]*\\." "Regular expression governing movements of `ffap-next'." regexp dired-at-point-require-prefix "If non-nil, reverse the prefix argument to `dired-at-point'.\nThis is nil so neophytes notice FFAP. Experts may prefer to\ndisable FFAP most of the time." :version "20.3"] 10) (defalias 'ffap-mouse-event #[nil "<\205 \207" [last-nonmenu-event] 1]) (defalias 'ffap-event-buffer #[(event) "\301\302!@!\207" [event window-buffer event-start] 3]) #@43 Last value returned by `ffap-next-guess'. (defvar ffap-next-guess nil (#$ . 5850)) #@65 List (BEG END), last region returned by `ffap-string-at-point'. (defvar ffap-string-at-point-region '(1 1) (#$ . 5939)) #@260 Move point to next file or URL, and return it as a string. If nothing is found, leave point at limit and return nil. Optional BACK argument makes search backwards. Optional LIM argument limits the search. Only considers strings that match `ffap-next-regexp'. (defalias 'ffap-next-guess #[(&optional back lim) "\204 \203\f e\202 d\306`=\204+ \203 \307\202 \310\311#\210\312 \211\203 \2033 \313\2024 \314\f8b\210\n\211)\207" [lim back guess ffap-next-regexp ffap-string-at-point-region ffap-next-guess nil re-search-backward re-search-forward move ffap-guesser 0 1] 5 (#$ . 6066)]) #@322 Search buffer for next file or URL, and run ffap. Optional argument BACK says to search backwards. Optional argument WRAP says to try wrapping around if necessary. Interactively: use a single prefix to search backwards, double prefix to wrap forward, triple to wrap backwards. Actual search is done by `ffap-next-guess'. (defalias 'ffap-next #[(&optional back wrap) "`\304! \204 \203 \203 d\202 eb\203 \304\n\" \2030 \305\306!\210\307\310 !!\202? \nb\210\311\312\203= \313\202>