%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/ |
Current File : //usr/local/share/emacs/27.2/lisp/dirtrack.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&\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 (#$ . 1870)]) #@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 (#$ . 2188)]) #@95 Non-nil if Dirtrack mode is enabled. Use the command `dirtrack-mode' to change this variable. (defvar dirtrack-mode nil (#$ . 2471)) (make-variable-buffer-local 'dirtrack-mode) #@608 Toggle directory tracking in shell buffers (Dirtrack mode). If called interactively, enable Dirtrack mode if ARG is positive, and disable it if ARG is zero or negative. If called from Lisp, also enable the mode if ARG is omitted or nil, and toggle it if ARG is `toggle'; disable the mode otherwise. 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) "\304 \305=\203 \n?\202 \306 !\307V\211\203\"