?
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/dirtrack.elc |
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:06:15 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/dirtrack.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 "\300\301\302\303\304\305\306\307&\210\310\311\312\313\306\301\314\315\316\317& \210\320\311!\210\310\321\302\322\306\301\314\323&\210\310\324\325\326\306\301\314\327&\210\310\330\331\332\306\301\314\333&\210\310\334\335\336\306\301\314\333&\210\310\337\302\340\306\301\314\341&\207" [custom-declare-group dirtrack nil "Directory tracking by watching the prompt." :prefix "dirtrack-" :group shell custom-declare-variable dirtrack-list (list "^emacs \\([a-zA-Z]:.*\\)>" 1) "List for directory tracking.\nFirst item is a regexp that describes where to find the path in a prompt.\nSecond is a number, the regexp group to match." :type (sexp (regexp :tag "Prompt Expression") (integer :tag "Regexp Group")) :version "24.1" make-variable-buffer-local dirtrack-debug "If non-nil, the function `dirtrack' will report debugging info." boolean dirtrack-debug-buffer "*Directory Tracking Log*" "Buffer in which to write directory tracking debug information." string dirtrack-directory-function (if (memq system-type '(ms-dos windows-nt cygwin)) 'dirtrack-windows-directory-function 'file-name-as-directory) "Function to apply to the prompt directory for comparison purposes." function dirtrack-canonicalize-function (if (memq system-type '(ms-dos windows-nt cygwin)) 'downcase 'identity) "Function to apply to the default directory for comparison purposes." dirtrack-directory-change-hook "Hook that is called when a directory change is made." hook] 10) #@156 Return a canonical directory for comparison purposes. Such a directory is all lowercase, has forward-slashes as delimiters, and ends with a forward slash. (defalias 'dirtrack-windows-directory-function #[(dir) "\301\302\303\304#\227!\207" [dir file-name-as-directory subst-char-in-string 92 47] 5 (#$ . 2013)]) #@80 Return a canonical directory taken from a Cygwin path for comparison purposes. (defalias 'dirtrack-cygwin-directory-function #[(dir) "\301\302\"\203 \303\304\"\305\303\306\"Q\207\207" [dir string-match "/cygdrive/\\([A-Z]\\)\\(.*\\)" match-string 1 ":" 2] 5 (#$ . 2331)]) (byte-code "\302\303\304\305#\210\306\303\304\307#\210\310\311\304\305#\210\312\305\211\2038 @\311N\2031 \304N\2041 \313\304\311N#\210 A\211\204 *\314\311\304\307#\207" [prop --dolist-tail-- defalias dirtrack-toggle dirtrack-mode nil make-obsolete "23.1" defvaralias dirtrackp (saved-value saved-variable-comment) put make-obsolete-variable] 6) #@95 Non-nil if Dirtrack mode is enabled. Use the command `dirtrack-mode' to change this variable. (defvar dirtrack-mode nil (#$ . 2969)) (make-variable-buffer-local 'dirtrack-mode) #@526 Toggle directory tracking in shell buffers (Dirtrack mode). With a prefix argument ARG, enable Dirtrack mode if ARG is positive, and disable it otherwise. If called from Lisp, enable the mode if ARG is omitted or nil. This method requires that your shell prompt contain the current working directory at all times, and that you set the variable `dirtrack-list' to match the prompt. This is an alternative to `shell-dirtrack-mode', which works by tracking `cd' and similar commands which change the shell working directory. (defalias 'dirtrack-mode #[(&optional arg) "\303 \304=\203 \n?\202 \305 !\306V\211\203\"