Files
emacsd/elpa/company-20191127.16/company-dabbrev-code.elc

27 lines
3.5 KiB
Plaintext
Raw Normal View History

;ELC
;;; Compiled
;;; in Emacs version 26.3
;;; 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!\210\300\302!\210\300\303!\210\304\305\306\307\310\301%\210\311\312\313\314\315DD\316\317\320%\210\311\321\313\314\322DD\323\317\324%\210\311\325\313\314\326DD\327\317\330%\210\311\331\313\314\332DD\333\317\334%\210\311\335\313\314\336DD\337\317\334%\207" [require company company-dabbrev cl-lib custom-declare-group company-dabbrev-code nil "dabbrev-like completion backend for code." :group custom-declare-variable company-dabbrev-code-modes funcall function #[0 "\300\207" [(prog-mode batch-file-mode csharp-mode css-mode erlang-mode haskell-mode jde-mode lua-mode python-mode)] 1] "Modes that use `company-dabbrev-code'.\nIn all these modes (and their derivatives) `company-dabbrev-code' will\ncomplete only symbols, not text in comments or strings. In other modes\n`company-dabbrev-code' will pass control to other backends\n(e.g. `company-dabbrev'). Value t means complete in all modes." :type (choice (repeat :tag "Some modes" (symbol :tag "Major mode")) (const :tag "All modes" t)) company-dabbrev-code-other-buffers #[0 "\300\207" [t] 1] "Determines whether `company-dabbrev-code' should search other buffers.\nIf `all', search all other buffers, except the ignored ones. If t, search\nbuffers with the same major mode. If `code', search all buffers with major\nmodes in `company-dabbrev-code-modes', or derived from one of them. See\nalso `company-dabbrev-code-time-limit'." (choice (const :tag "Off" nil) (const :tag "Same major mode" t) (const :tag "Code major modes" code) (const :tag "All" all)) company-dabbrev-code-time-limit #[0 "\300\207" [0.1] 1] "Determines how long `company-dabbrev-code' should look for matches." (choice (const :tag "Off" nil) (number :tag "Seconds")) company-dabbrev-code-everywhere #[0 "\300\207" [nil] 1] "Non-nil to offer completions in comments and strings." boolean company-dabbrev-code-ignore-case #[0 "\300\207" [nil] 1] "Non-nil to ignore case when collecting completion candidates."] 6)
#@15
(fn PREFIX)
(defalias 'company-dabbrev-code--make-regexp #[257 "\300\301\232\203 \302\202\303!\304Q\207" ["\\_<" "" "\\([a-zA-Z]\\|\\s_\\)" regexp-quote "\\(\\sw\\|\\s_\\)*\\_>"] 4 (#$ . 2371)])
#@181 dabbrev-like `company-mode' backend for code.
The backend looks for all symbols in the current buffer that aren't in
comments or strings.
(fn COMMAND &optional ARG &rest IGNORED)
(defalias 'company-dabbrev-code #[641 "\306\307\"\203 \310\311!\207\306\312\"\2030\313=\204\314\315\"\205u \204)\316 ?\205u\317 \206/\320\207\306\321\"\203d\n\322\323!\f \313=\203JC\202_ \324=\203T\202_ \325=\203^\325\202_\326 ?$)\207\306\327\"\203m\n\207\306\330\"\205u\313\207" [company-dabbrev-code-modes company-dabbrev-code-everywhere company-dabbrev-code-ignore-case case-fold-search company-dabbrev-code-time-limit company-dabbrev-code-other-buffers eql interactive company-begin-backend company-dabbrev-code prefix t apply derived-mode-p company-in-string-or-comment company-grab-symbol stop candidates company-dabbrev--search company-dabbrev-code--make-regexp code all nil ignore-case duplicates major-mode] 8 (#$ . 2580) (byte-code "\300C\207" [interactive] 1)])
(provide 'company-dabbrev-code)