%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/ |
Current File : //usr/local/share/emacs/27.2/lisp/wdired.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!\210\302\303\304\"\210\305\306\307\310\311\301%\210\312\313\307\314\315\316\311\306&\210\312\317\320\321\315\316\311\306&\210\312\322\307\323\315\324\311\306&\210\312\325\320\326\315\316\311\306&\210\312\327\307\330\315\331\311\306&\210\312\332\320\333\315\334\335\336\311\306& \210\312\337\320\340\335\341\315\316\311\306& \207" [require dired autoload dired-do-create-files-regexp "dired-aux" custom-declare-group wdired nil "Mode to rename files by editing their names in dired buffers." :group custom-declare-variable wdired-use-interactive-rename "If non-nil, WDired requires confirmation before actually renaming files.\nIf nil, WDired doesn't require confirmation to change the file names,\nand the variable `wdired-confirm-overwrite' controls whether it is ok\nto overwrite files without asking." :type boolean wdired-confirm-overwrite t "If nil the renames can overwrite files without asking.\nThis variable has no effect at all if `wdired-use-interactive-rename'\nis not nil." wdired-use-dired-vertical-movement "If t, the \"up\" and \"down\" movement works as in Dired mode.\nThat is, always move the point to the beginning of the filename at line.\n\nIf `sometimes', only move to the beginning of filename if the point is\nbefore it, and `track-eol' is non-nil. This behavior is very handy\nwhen editing several filenames.\n\nIf nil, \"up\" and \"down\" movement is done as in any other buffer." (choice (const :tag "As in any other mode" nil) (const :tag "Smart cursor placement" sometimes) (other :tag "As in dired mode" t)) wdired-allow-to-redirect-links "If non-nil, the target of the symbolic links are editable.\nIn systems without symbolic links support, this variable has no effect\nat all." wdired-allow-to-change-permissions "If non-nil, the permissions bits of the files are editable.\n\nIf t, to change a single bit, put the cursor over it and press the\nspace bar, or left click over it. You can also hit the letter you want\nto set: if this value is allowed, the character in the buffer will be\nchanged. Anyway, the point is advanced one position, so, for example,\nyou can keep the <x> key pressed to give execution permissions to\neverybody to that file.\n\nIf `advanced', the bits are freely editable. You can use\n`string-rectangle', `query-replace', etc. You can put any value (even\nnewlines), but if you want your changes to be useful, you better put a\nintelligible value.\n\nAnyway, the real change of the permissions is done by the external\nprogram `dired-chmod-program', which must exist." (choice (const :tag "Not allowed" nil) (const :tag "Toggle/set bits" t) (other :tag "Bits freely editable" advanced)) wdired-keep-marker-rename "Controls marking of files renamed in WDired.\nIf t, files keep their previous marks when they are renamed.\nIf a character, renamed files (whether previously marked or not)\nare afterward marked with that character.\nThis option affects only files renamed by `wdired-finish-edit'.\nSee `dired-keep-marker-rename' if you want to do the same for files\nrenamed by `dired-do-rename' and `dired-do-rename-regexp'." (choice (const :tag "Keep" t) (character :tag "Mark" :value 82)) :version "24.3" wdired-create-parent-directories "If non-nil, create parent directories of destination files.\nIf non-nil, when you rename a file to a destination path within a\nnonexistent directory, wdired will create any parent directories\nnecessary. When nil, attempts to rename a file into a\nnonexistent directory will fail." "26.1"] 10) #@31 Keymap used in `wdired-mode'. (defvar wdired-mode-map (byte-code "\301 \302\303\304#\210\302\305\304#\210\302\306\307#\210\302\310\307#\210\302\311\312#\210\302\313\314#\210\302\315\314#\210\302\316\314#\210\302\317\320#\210\302\321\320#\210\302\322\323#\210\302\324\323#\210\302\325\326\301\326!B#\210\302\327\330#\210\302\331\332#\210\302\333\334#\210\302\335\336#\210\302\337\340#\210\302\341\342#\210\302\343\344#\210)\207" [map make-sparse-keymap define-key "" wdired-finish-edit "" "" wdired-abort-changes "" "" wdired-exit " " ignore "\n" "" [up] wdired-previous-line "" [down] wdired-next-line "" [menu-bar wdired] "WDired" [menu-bar wdired wdired-customize] ("Options" . wdired-customize) [menu-bar wdired dashes] ("--") [menu-bar wdired wdired-abort-changes] (menu-item "Abort Changes" wdired-abort-changes :help "Abort changes and return to dired mode") [menu-bar wdired wdired-finish-edit] ("Commit Changes" . wdired-finish-edit) [remap upcase-word] wdired-upcase-word [remap capitalize-word] wdired-capitalize-word [remap downcase-word] wdired-downcase-word] 6) (#$ . 3935)) #@41 Hooks run when changing to WDired mode. (defvar wdired-mode-hook nil (#$ . 5064)) #@711 Writable Dired (WDired) mode. \<wdired-mode-map> In WDired mode, you can edit the names of the files in the buffer, the target of the links, and the permission bits of the files. Type \[wdired-finish-edit] to exit WDired mode, returning to Dired mode, and make your edits "take effect" by modifying the file and directory names, link targets, and/or file permissions on disk. If you delete the filename of a file, it is flagged for deletion in the Dired buffer. Type \[wdired-abort-changes] to abort your edits and exit WDired mode. Type \[customize-group] RET wdired to customize WDired behavior. The only editable texts in a WDired buffer are filenames, symbolic link targets, and filenames permission. (defalias 'wdired-mode #[nil "\300\301!\207" [error "This mode can be enabled only by `wdired-change-to-wdired-mode'"] 2 (#$ . 5153) nil]) (put 'wdired-mode 'mode-class 'special) #@323 Put a Dired buffer in Writable Dired (WDired) mode. \<wdired-mode-map> In WDired mode, you can edit the names of the files in the buffer, the target of the links, and the permission bits of the files. After typing \[wdired-finish-edit], Emacs modifies the files and directories to reflect your edits. See `wdired-mode'. (defalias 'wdired-change-to-wdired-mode #[nil "\306\307!\204\n \310\311!\210\312\300!\210ed{\312\301!\210\313ed\"\312\302!\210`\312\303!\210\314\315\316\317\320B\321\322$\210\323\f!\210\324 \210\322\325,!\210\326\327\330\322\314$\210\326\331\332\322\314$\210\333-\334.\335/\336 \210\337 \2100\203c \340 \2101\203q \341\342!\203q \343 \210\344 \210\345\322!\210\3222\346\347!\210\350\351\352\353!\"\207" [wdired-old-content wdired-old-marks wdired-old-point query-replace-skip-read-only wdired-mode-map buffer-read-only derived-mode-p dired-mode error "Not a Dired buffer" make-local-variable dired-remember-marks t advice--add-function :after-while #[nil "\300\301!\207" [advice--buffer-local isearch-filter-predicate] 2] #[(gv--val) "\301\302\"\207" [gv--val advice--set-buffer-local isearch-filter-predicate] 3] wdired-isearch-filter-read-only nil use-local-map force-mode-line-update dired-unadvertise add-hook kill-buffer-hook wdired-check-kill-buffer after-change-functions wdired--restore-dired-filename-prop wdired-mode "Editable Dired" wdired-revert buffer-disable-undo wdired-preprocess-files wdired-preprocess-perms fboundp make-symbolic-link wdired-preprocess-symlinks buffer-enable-undo set-buffer-modified-p run-mode-hooks wdired-mode-hook message "%s" substitute-command-keys "Press \\[wdired-finish-edit] when finished or \\[wdired-abort-changes] to abort changes" default-directory major-mode mode-name revert-buffer-function wdired-allow-to-change-permissions wdired-allow-to-redirect-links buffer-undo-list] 5 (#$ . 6049) nil]) #@46 Skip matches that have a read-only property. (defalias 'wdired-isearch-filter-read-only #[(beg end) "\302 ^ ]\303\304$?\207" [beg end text-property-not-all read-only nil] 5 (#$ . 7936)]) (defalias 'wdired-preprocess-files #[nil "\302eeT\303\304$\210\212eb\210`\305m\204L \306\305\304\"\211\203F \307!\310\235\204F \311 \210\312`S`\313\314BB#\210\302 `\315\304$\210\316\304!\302``T\317\304$\210\305y\210\202 \302 d\315\304$+\207" [filename b-protection put-text-property front-sticky t nil dired-get-filename file-name-nondirectory ("." "..") dired-move-to-filename add-text-properties old-name (rear-nonsticky (read-only)) read-only dired-move-to-end-of-filename end-name] 7]) (defalias 'wdired-normalize-filename #[(file unquotep) "\203 \305\306\307\310\311 #\306Q! \203$ \n\203$ \204$ \f\204$ \312 \n\" \207" [unquotep file buffer-file-coding-system file-name-coding-system default-file-name-coding-system read "\"" replace-regexp-in-string "\\([^\\]\\|\\`\\)\"" "\\1\\\\\"" encode-coding-string] 6]) (put 'wdired-normalize-filename 'byte-optimizer 'byte-compile-inline-expand) #@271 Return the filename at line. Similar to `dired-get-filename' but it doesn't rely on regexps. It relies on WDired buffer's properties. Optional arg NO-DIR with value non-nil means don't include directory. Optional arg OLD with value non-nil means return old filename. (defalias 'wdired-get-filename #[(&optional no-dir old) "\306\211\211\212\307 \310 \210\311`\312\306 $\211 =\204c \203&