%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/ |
Current File : //usr/local/share/emacs/27.2/lisp/find-file.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. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301\302\303\304\305\306\307\310\311& \210\312\313\302\314\315\316\310\301&\210\312\317\302\320\315\316\310\301&\210\312\321\302\322\315\316\310\301&\210\312\323\302\324\315\316\310\301&\210\312\325\302\326\315\316\310\301&\210\312\327\302\330\315\331\310\301&\210\312\332\302\333\315\331\310\301&\210\312\334\302\335\315\331\310\301&\210\312\336\337\340\315\331\310\301&\210\312\341\302\342\315\331\310\301&\210\312\343\344\345\315\346\310\301&\210\347\350\351\"\210\312\351\352\353\315\354\310\301&\210\312\355\356\357\315\360\310\301&\210\312\361\362\363\315\364\310\301&\210\312\365\366\367\370\371\315\372\310\301& \210\312\373\374\375\315\376\310\301&\210\377\313!\210\377\317!\210\377\321!\210\377\323!\210\377\325!\210\377\327!\210\377\332!\210\377\334!\210\377\341!\210\377\351!\210\377\355!\207" [custom-declare-group ff nil "Find a file corresponding to this one given a pattern." :prefix "ff-" :link (emacs-commentary-link "find-file") :group find-file custom-declare-variable ff-pre-find-hook "List of functions to be called before the search for the file starts." :type hook ff-pre-load-hook "List of functions to be called before the other file is loaded." ff-post-load-hook "List of functions to be called after the other file is loaded." ff-not-found-hook "List of functions to be called if the other file could not be found." ff-file-created-hook "List of functions to be called if the other file needs to be created." ff-case-fold-search "Non-nil means ignore cases in matches (see `case-fold-search').\nIf you have extensions in different cases, you will want this to be nil." boolean ff-always-in-other-window "If non-nil, find the corresponding file in another window by default.\nTo override this, give an argument to `ff-find-other-file'." ff-ignore-include "If non-nil, ignore `#include' lines." ff-always-try-to-create t "If non-nil, always attempt to create the other file if it was not found." ff-quiet-mode "If non-nil, trace which directories are being searched." ff-special-constructs `((,(purecopy "^#\\s *\\(include\\|import\\)\\s +[<\"]\\(.*\\)[>\"]") lambda nil (buffer-substring (match-beginning 2) (match-end 2)))) "List of special constructs recognized by `ff-treat-as-special'.\nEach element, tried in order, has the form (REGEXP . EXTRACT).\nIf REGEXP matches the current line (from the beginning of the line),\n`ff-treat-as-special' calls function EXTRACT with no args.\nIf EXTRACT returns nil, keep trying. Otherwise, return the\nfilename that EXTRACT returned." (repeat (cons regexp function)) defvaralias ff-related-file-alist ff-other-file-alist 'cc-other-file-alist "Alist of extensions to find given the current file's extension.\n\nThis list should contain the most used extensions before the others,\nsince the search algorithm searches sequentially through each\ndirectory specified in `ff-search-directories'. If a file is not found,\na new one is created with the first matching extension (`.cc' yields `.hh').\nThis alist should be set by the major mode." (choice (repeat (list regexp (choice (repeat string) function))) symbol) ff-search-directories 'cc-search-directories "List of directories to search for a specific file.\n\nSet by default to `cc-search-directories', expanded at run-time.\n\nThis list is searched through with each extension specified in\n`ff-other-file-alist' that matches this file's extension. So the\nlonger the list, the longer it'll take to realize that a file\nmay not exist.\n\nA typical format is\n\n (\".\" \"/usr/include\" \"$PROJECT/*/include\")\n\nEnvironment variables can be inserted between slashes (`/').\nThey will be replaced by their definition. If a variable does\nnot exist, it is replaced (silently) with an empty string.\n\nThe stars are *not* wildcards: they are searched for together with\nthe preceding slash. The star represents all the subdirectories except\n`..', and each of these subdirectories will be searched in turn." (choice (repeat directory) symbol) cc-search-directories '("." "/usr/include" "/usr/local/include/*") "See the description of the `ff-search-directories' variable." (repeat directory) cc-other-file-alist '(("\\.cc\\'" (".hh" ".h")) ("\\.hh\\'" (".cc" ".C" ".CC" ".cxx" ".cpp" ".c++")) ("\\.c\\'" (".h")) ("\\.m\\'" (".h")) ("\\.h\\'" (".c" ".cc" ".C" ".CC" ".cxx" ".cpp" ".c++" ".m")) ("\\.C\\'" (".H" ".hh" ".h")) ("\\.H\\'" (".C" ".CC")) ("\\.CC\\'" (".HH" ".H" ".hh" ".h")) ("\\.HH\\'" (".CC")) ("\\.c\\+\\+\\'" (".h++" ".hh" ".h")) ("\\.h\\+\\+\\'" (".c++")) ("\\.cpp\\'" (".hpp" ".hh" ".h")) ("\\.hpp\\'" (".cpp")) ("\\.cxx\\'" (".hxx" ".hh" ".h")) ("\\.hxx\\'" (".cxx"))) "Alist of extensions to find given the current file's extension.\n\nThis list should contain the most used extensions before the others,\nsince the search algorithm searches sequentially through each directory\nspecified in `ff-search-directories'. If a file is not found, a new one\nis created with the first matching extension (`.cc' yields `.hh')." :version "24.4" (repeat (list regexp (choice (repeat string) function))) modula2-other-file-alist '(("\\.mi$" (".md")) ("\\.md$" (".mi"))) "See the description for the `ff-search-directories' variable." (repeat (list regexp (choice (repeat string) function))) make-variable-buffer-local] 10) #@187 Find the header or source file corresponding to this file. See also the documentation for `ff-find-other-file'. If optional IN-OTHER-WINDOW is non-nil, find the file in another window. (defalias 'ff-get-other-file #[(&optional in-other-window) "\303\304\n!\210 \211)\207" [ff-ignore-include ignore in-other-window t ff-find-the-other-file] 2 (#$ . 5700) "P"]) (defalias 'ff-find-related-file 'ff-find-other-file) #@1794 Find the header or source file corresponding to this file. Being on a `#include' line pulls in that file. If optional IN-OTHER-WINDOW is non-nil, find the file in the other window. If optional IGNORE-INCLUDE is non-nil, ignore being on `#include' lines. Variables of interest include: - `ff-case-fold-search' Non-nil means ignore cases in matches (see `case-fold-search'). If you have extensions in different cases, you will want this to be nil. - `ff-always-in-other-window' If non-nil, always open the other file in another window, unless an argument is given to `ff-find-other-file'. - `ff-ignore-include' If non-nil, ignores #include lines. - `ff-always-try-to-create' If non-nil, always attempt to create the other file if it was not found. - `ff-quiet-mode' If non-nil, traces which directories are being searched. - `ff-special-constructs' A list of regular expressions specifying how to recognize special constructs such as include files etc, and an associated method for extracting the filename from that construct. - `ff-other-file-alist' Alist of extensions to find given the current file's extension. - `ff-search-directories' List of directories searched through with each extension specified in `ff-other-file-alist' that matches this file's extension. - `ff-pre-find-hook' List of functions to be called before the search for the file starts. - `ff-pre-load-hook' List of functions to be called before the other file is loaded. - `ff-post-load-hook' List of functions to be called after the other file is loaded. - `ff-not-found-hook' List of functions to be called if the other file could not be found. - `ff-file-created-hook' List of functions to be called if the other file has been created. (defalias 'ff-find-other-file #[(&optional in-other-window ignore-include) "\n\304!\210 \211)\207" [ff-ignore-include ignore ignore-include in-other-window ff-find-the-other-file] 2 (#$ . 6126) "P"]) #@106 Like `buffer-file-name' but works with indirect buffers as well. If BUF is nil, uses the current buffer. (defalias 'ff-buffer-file-name #[(&optional buf) "\204 p\301!\206 \302!\205 \301\302!!\207" [buf buffer-file-name buffer-base-buffer] 3 (#$ . 8131)]) #@242 Find the header or source file corresponding to the current file. Being on a `#include' line pulls in that file, but see the help on the `ff-ignore-include' variable. If optional IN-OTHER-WINDOW is non-nil, find the file in another window. (defalias 'ff-find-the-other-file #[(&optional in-other-window) "\306\211\211\211\211\211\211\211\211\211\211\211\211$%&'()*\307\310\311\"\210\312\313!\210+9\2038 \314+J!\202<