;ELC ;;; Compiled ;;; in Emacs version 28.0.50 ;;; with all optimizations. (byte-code "\300\301!\210\300\302!\210\300\303!\207" [require persp-mode project cl-lib] 2) (defvar persp-mode-project-bridge-mode nil) (byte-code "\300\301\302\303\304\305\304\306\307\310\311\312& \210\313\314\315\316\317DD\320\304\301\321\322\323\324& \207" [custom-declare-group persp-mode-project-bridge nil "persp-mode project.el integration." :group persp-mode project :prefix "persp-mode-project-bridge-" :link (url-link :tag "Github" "https://github.com/CIAvash/persp-mode-project-bridge") custom-declare-variable persp-mode-project-bridge-persp-name-prefix funcall function #[0 "\300\207" [#1="[p] "] 1 #1#] "Prefix to use for project perspective names." :type string :set #[514 "\203J\301\"\210\302C\303\304\305$\306 \"\207\301\"\207" [persp-mode-project-bridge-mode custom-set-default nil mapc make-closure #[257 "\211\205,\304\305\"\205,\302\306! >\204\307\310\311D\"\210\312H\313\301!\314O\240\210\315\300\302\242P\"\207" [V0 V1 V2 cl-struct-perspective-tags persp-parameter persp-mode-project-bridge type-of signal wrong-type-argument perspective 1 string-width nil persp-rename] 6 "\n\n(fn P)"] persp-persps] 10 "\n\n(fn SYM VAL)"]] 12) #@43 Create a new perspective NAME. (fn NAME) (defalias 'persp-mode-project-bridge-add-new-persp #[257 "\301\302#\211\302=\203/\303!\211\262\2030\304\305\306#\210\304\307\306#\210\310\311\312\313\314 !\"\315\211$\210\207\211\207" [*persp-hash* persp-get-by-name :nil persp-add-new set-persp-parameter persp-mode-project-bridge t dont-save-to-file persp-add-buffer cl-remove-if-not get-file-buffer project-files project-current nil] 8 (#$ . 1259)]) #@42 Find a perspective for buffer B. (fn B) (defalias 'persp-mode-project-bridge-find-perspective-for-buffer #[257 "\302!\205Br\211q\210\205A\303!\205A\304 \205A\305 \306\307\310\311!\203*\311\304 !\202/\312\304 !@!!P!\211\205?\313\314\211$\210\211\262)\207" [persp-mode-project-bridge-mode persp-mode-project-bridge-persp-name-prefix buffer-live-p buffer-name project-current persp-mode-project-bridge-add-new-persp file-name-nondirectory directory-file-name fboundp project-root project-roots persp-add-buffer nil] 7 (#$ . 1719)]) #@66 Switch to a perspective when hook is activated. (fn &rest ARGS) (defalias 'persp-mode-project-bridge-hook-switch #[128 "\301p!\211\205\302\303!>\204\304\305\306D\"\210\307H!\207" [cl-struct-perspective-tags persp-mode-project-bridge-find-perspective-for-buffer persp-frame-switch type-of signal wrong-type-argument perspective 1] 7 (#$ . 2268)]) #@36 Find perspectives for all buffers. (defalias 'persp-mode-project-bridge-find-perspectives-for-all-buffers #[0 "\205 \301\302\303 \"\207" [persp-mode-project-bridge-mode mapc persp-mode-project-bridge-find-perspective-for-buffer buffer-list] 3 (#$ . 2629)]) #@31 Kill all bridge perspectives. (defalias 'persp-mode-project-bridge-kill-perspectives #[0 "\205\301\302\303\304\305\306\307\310\"\311 \"\"\"\207" [persp-mode mapc persp-kill mapcar persp-name cl-delete-if-not apply-partially persp-parameter persp-mode-project-bridge persp-persps] 8 (#$ . 2894)]) (defvar persp-mode-project-bridge-switch-hooks (list 'find-file-hook 'dired-mode-hook 'vc-dir-mode-hook 'eshell-mode-hook)) (byte-code "\300\301\302\303\304DD\305\306\307\310\311\312\313\314\315\316\315& \207" [custom-declare-variable persp-mode-project-bridge-mode funcall function #[0 "\300\207" [nil] 1] "Non-nil if Persp-Mode-Project-Bridge mode is enabled.\nSee the `persp-mode-project-bridge-mode' command\nfor a description of this minor mode.\nSetting this variable directly does not take effect;\neither customize it (see the info node `Easy Customization')\nor call the function `persp-mode-project-bridge-mode'." :set custom-set-minor-mode :initialize custom-initialize-default :type boolean :require persp-mode-project-bridge :group] 14) #@691 `persp-mode' and `project.el' integration. Creates perspectives for project.el projects. This is a minor mode. If called interactively, toggle the `Persp-Mode-Project-Bridge mode' mode. If the prefix argument is positive, enable the mode, and if it is zero or negative, disable the mode. If called from Lisp, toggle the mode if ARG is `toggle'. Enable the mode if ARG is nil, omitted, or is a positive number. Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `(default-value 'persp-mode-project-bridge-mode)'. The mode's hook is called both when the mode is enabled and when it is disabled. (fn &optional ARG) (defalias 'persp-mode-project-bridge-mode #[256 "\304 \305\301\306=\203\307\301!?\202!\247\203 \310W\203 \311\202!\312\"\210\313\300!\2038\314\301\"\307\301!\2038\301B \203e\n\203\\\315\316\317\"\210 \211\203X\211@\315\320\"\210A\266\202\202F\210\202y\321\322!\210\311\202y \211\203x\211@\323\320\"\210A\266\202\202f\210\324\325\307\301!\203\205\326\202\206\327\"\210\330\331!\203\256\332\301!\210\304 \203\236\211\304 \232\203\256\321\333\307\301!\203\252\334\202\253\335\336#\210\210\337 \210\307\301!\207" [global-minor-modes persp-mode-project-bridge-mode persp-mode persp-mode-project-bridge-switch-hooks current-message set-default toggle default-value 1 nil t boundp delq add-hook persp-mode-hook #[0 "?\205\301\302!\207" [persp-mode persp-mode-project-bridge-mode -1] 2] persp-mode-project-bridge-hook-switch message "You can not enable persp-mode-project-bridge-mode unless persp-mode is active." remove-hook run-hooks persp-mode-project-bridge-mode-hook persp-mode-project-bridge-mode-on-hook persp-mode-project-bridge-mode-off-hook called-interactively-p any customize-mark-as-set "Persp-Mode-Project-Bridge mode %sabled%s" "en" "dis" "" force-mode-line-update] 7 (#$ . 3950) (byte-code "\203\n\301!\202 \302C\207" [current-prefix-arg prefix-numeric-value toggle] 2)]) (defvar persp-mode-project-bridge-mode-hook nil) (byte-code "\301\302N\204\f\303\301\302\304#\210\303\301\305\306#\210\303\301\307\310C#\210\311\312\310\313\300!\205#\310\211%\210\314\315!\207" [persp-mode-project-bridge-mode-map persp-mode-project-bridge-mode-hook variable-documentation put "Hook run after entering or leaving `persp-mode-project-bridge-mode'.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it. (This is true for all hook variables.)" custom-type hook standard-value nil add-minor-mode persp-mode-project-bridge-mode boundp provide persp-mode-project-bridge] 6)