MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 18.116.170.100
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/share/emacs/24.3/lisp/obsolete/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/share/emacs/24.3/lisp/obsolete/sym-comp.elc
;ELC
;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:09:10 2024
;;; from file /builddir/build/BUILD/emacs-24.3/lisp/obsolete/sym-comp.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.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


#@117 Default `symbol-completion-symbol-function'.
Uses `current-word' with the buffer narrowed to the part before
point.
(defalias 'symbol-completion-symbol #[nil "\214e`}\210\300 )\207" [current-word] 2 (#$ . 561)])
#@421 Function to return a partial symbol before point for completion.
The value it returns should be a string (or nil).
Major modes may set this locally if the default isn't appropriate.

Beware: the length of the string STR returned need to be equal to the length
of text before point that's subject to completion.  Typically, this amounts
to saying that STR is equal to
(buffer-substring (- (point) (length STR)) (point)).
(defvar symbol-completion-symbol-function 'symbol-completion-symbol (#$ . 780))
#@513 Function to return possible symbol completions.
It takes an argument which is the string to be completed and
returns a value suitable for the second argument of
`try-completion'.  This value need not use the argument, i.e. it
may be all possible completions, such as `obarray' in the case of
Emacs Lisp.

Major modes may set this locally to allow them to support
`symbol-complete'.  See also `symbol-completion-symbol-function',
`symbol-completion-predicate-function' and
`symbol-completion-transform-function'.
(defvar symbol-completion-completions-function nil (#$ . 1287))
#@474 If non-nil, function to return a predicate for selecting symbol completions.
The function gets two args, the positions of the beginning and
end of the symbol to be completed.

Major modes may set this locally if the default isn't
appropriate.  This is a function returning a predicate so that
the predicate can be context-dependent, e.g. to select only
function names if point is at a function call position.  The
function's args may be useful for determining the context.
(defvar symbol-completion-predicate-function nil (#$ . 1870))
#@527 If non-nil, function to transform symbols in the symbol-completion buffer.
E.g., for Lisp, it may annotate the symbol as being a function,
not a variable.

The function takes the symbol name as argument.  If it needs to
annotate this, it should return a value suitable as an element of
the list passed to `display-completion-list'.

The predicate being used for selecting completions (from
`symbol-completion-predicate-function') is available
dynamically-bound as `symbol-completion-predicate' in case the
transform needs it.
(defvar symbol-completion-transform-function nil (#$ . 2412))
#@669 Perform completion of the symbol preceding point.
This is done in a way appropriate to the current major mode,
perhaps by interrogating an inferior interpreter.  Compare
`complete-symbol'.
If no characters can be completed, display a list of possible completions.
Repeating the command at that point scrolls the list.

When called from a program, optional arg PREDICATE is a predicate
determining which symbols are considered.

This function requires `symbol-completion-completions-function'
to be set buffer-locally.  Variables `symbol-completion-symbol-function',
`symbol-completion-predicate-function' and
`symbol-completion-transform-function' are also consulted.
(defalias 'symbol-complete #[(&optional predicate) "\306!\204\n\307\310!\210	 \206\307\311!\206\"\f\205\"\f`\nGZ`\"\n!\f\306
!\2052\312\313`\nGZ`
$-\207" [symbol-completion-completions-function symbol-completion-symbol-function pattern predicate symbol-completion-predicate-function completions functionp error "symbol-completion-completions-function not defined" "No preceding symbol to complete" #[(str) "	!\243\242\207" [symbol-completion-transform-function str] 2] completion-in-region symbol-completion-predicate symbol-completion-transform-function completion-annotate-function] 5 (#$ . 3007) nil])
#@427 Completion function for use with `hippie-expand'.
Uses `symbol-completion-symbol-function' and
`symbol-completion-completions-function'.  It is intended to be
used something like this in a major mode which provides symbol
completion:

  (if (featurep 'hippie-exp)
      (set (make-local-variable 'hippie-expand-try-functions-list)
	   (cons 'symbol-completion-try-complete
                 hippie-expand-try-functions-list)))
(defalias 'symbol-completion-try-complete #[(old) "\205^	\205^\n\204, \306`GZ`\"\210\307\f
\"\204\"\f
B\205)	!\f)\f\203E\307\f@
\"\203E\f\211A\f@\210\202,\f\203V\310\f\211A\f@!\210\311\207\n\203]\312 \210\313\207" [symbol-completion-symbol-function symbol-completion-completions-function old symbol he-search-string he-tried-table he-init-string he-string-member he-substitute-string t he-reset-string nil he-expand-list] 3 (#$ . 4306)])
#@47 `symbol-completion-symbol-function' for Lisp.
(defalias 'lisp-completion-symbol #[nil "`\305 p\306\216\307\n!\210\212\310\311!\210gz\312U\203\311u\210\202`,\313\f\"*\207" [#1=#:buffer #2=#:table emacs-lisp-mode-syntax-table beg end syntax-table ((byte-code "rq\210\302	!\210)\302\207" [#1# #2# set-syntax-table] 2)) set-syntax-table backward-sexp 1 39 buffer-substring-no-properties] 3 (#$ . 5201)])
#@50 `symbol-completion-predicate-function' for Lisp.
(defalias 'lisp-completion-predicate #[(beg end) "\212b\210`Sf\301=\204\302\202\303\304\305\217?\205\306)\207" [beg 40 #[(sym) "\301!\206\302!\206\303!\207" [sym boundp fboundp symbol-plist] 2] nil (byte-code "\300\301!\210\302u\210\303f\304=\207" [up-list -2 1 nil 40] 2) ((error)) fboundp] 3 (#$ . 5617)])
#@50 `symbol-completion-transform-function' for Lisp.
(defalias 'lisp-symbol-completion-transform #[nil "\300\207" [#[(elt) "\302=\204\302\303	!!\203	\304D\207	\207" [symbol-completion-predicate elt fboundp intern " <f>"] 3]] 1 (#$ . 5994)])
(provide 'sym-comp)

MMCT - 2023