summaryrefslogtreecommitdiff
path: root/lisp/wdired.el
Commit message (Collapse)AuthorAge
* Merge from savannah/emacs-29Po Lu2024-01-02
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dc4e6b13296 ; Update copyright years in more files 64b37776318 ; Run set-copyright from admin.el 8e1c56ae467 ; Add 2024 to copyright years # Conflicts: # doc/misc/modus-themes.org # doc/misc/texinfo.tex # etc/NEWS # etc/refcards/ru-refcard.tex # etc/themes/modus-operandi-theme.el # etc/themes/modus-themes.el # etc/themes/modus-vivendi-theme.el # lib/alloca.in.h # lib/binary-io.h # lib/c-ctype.h # lib/c-strcasecmp.c # lib/c-strncasecmp.c # lib/careadlinkat.c # lib/cloexec.c # lib/close-stream.c # lib/diffseq.h # lib/dup2.c # lib/filemode.h # lib/fpending.c # lib/fpending.h # lib/fsusage.c # lib/getgroups.c # lib/getloadavg.c # lib/gettext.h # lib/gettime.c # lib/gettimeofday.c # lib/group-member.c # lib/malloc.c # lib/md5-stream.c # lib/md5.c # lib/md5.h # lib/memmem.c # lib/memrchr.c # lib/nanosleep.c # lib/save-cwd.h # lib/sha1.c # lib/sig2str.c # lib/stdlib.in.h # lib/strtoimax.c # lib/strtol.c # lib/strtoll.c # lib/time_r.c # lib/xalloc-oversized.h # lisp/auth-source-pass.el # lisp/emacs-lisp/lisp-mnt.el # lisp/emacs-lisp/timer.el # lisp/info-look.el # lisp/jit-lock.el # lisp/loadhist.el # lisp/mail/rmail.el # lisp/net/ntlm.el # lisp/net/webjump.el # lisp/progmodes/asm-mode.el # lisp/progmodes/project.el # lisp/progmodes/sh-script.el # lisp/textmodes/flyspell.el # lisp/textmodes/reftex-toc.el # lisp/textmodes/reftex.el # lisp/textmodes/tex-mode.el # lisp/url/url-gw.el # m4/alloca.m4 # m4/clock_time.m4 # m4/d-type.m4 # m4/dirent_h.m4 # m4/dup2.m4 # m4/euidaccess.m4 # m4/fchmodat.m4 # m4/filemode.m4 # m4/fsusage.m4 # m4/getgroups.m4 # m4/getloadavg.m4 # m4/getrandom.m4 # m4/gettime.m4 # m4/gettimeofday.m4 # m4/gnulib-common.m4 # m4/group-member.m4 # m4/inttypes.m4 # m4/malloc.m4 # m4/manywarnings.m4 # m4/mempcpy.m4 # m4/memrchr.m4 # m4/mkostemp.m4 # m4/mktime.m4 # m4/nproc.m4 # m4/nstrftime.m4 # m4/pathmax.m4 # m4/pipe2.m4 # m4/pselect.m4 # m4/pthread_sigmask.m4 # m4/readlink.m4 # m4/realloc.m4 # m4/sig2str.m4 # m4/ssize_t.m4 # m4/stat-time.m4 # m4/stddef_h.m4 # m4/stdint.m4 # m4/stdio_h.m4 # m4/stdlib_h.m4 # m4/stpcpy.m4 # m4/strnlen.m4 # m4/strtoimax.m4 # m4/strtoll.m4 # m4/time_h.m4 # m4/timegm.m4 # m4/timer_time.m4 # m4/timespec.m4 # m4/unistd_h.m4 # m4/warnings.m4 # nt/configure.bat # nt/preprep.c # test/lisp/register-tests.el
| * ; Add 2024 to copyright yearsPo Lu2024-01-02
| |
* | Add option `dired-filename-display-length'Liu Hui2023-11-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/dired.el (dired-filename-display-length): New option. (dired-insert-set-properties): Set invisible property for long filenames. (dired--get-ellipsis-length, dired--get-filename-display-length) (dired-filename-update-invisibility-spec): New functions. (dired-mode): Add filename invisibility spec. (dired-make-directory-clickable) (dired-kill-when-opening-new-dired-buffer) (dired-hide-details-preserved-columns): Add missing :group. * lisp/wdired.el (wdired-change-to-wdired-mode) (wdired-change-to-dired-mode): Update filename invisibility spec. * etc/NEWS: Announce the change. (Bug#67161)
* | Fix mode-line after switching from WDired back to DiredEli Zaretskii2023-11-10
| | | | | | | | | | | | | | * lisp/wdired.el (wdired-change-to-dired-mode): Call 'dired-sort-set-mode-line' to set the mode name in the mode line, so as to restore the display before switching to WDired. (Bug#67028)
* | Fix Wdired with relative and abbreviated file namesEli Zaretskii2023-07-16
|/ | | | | | * lisp/wdired.el (wdired-finish-edit): Support Dired buffers where 'dired-directory' is a list made of relative or abbreviated file names. (Bug#64606)
* A better fix for "Fix cancellation of Wdired"Michael Heerdegen2023-05-28
| | | | | | * lisp/wdired.el (wdired-abort-changes): Call `dired-build-subdir-alist' instead of `dired-revert'. (Bug#63676)
* Fix cancellation of WdiredEli Zaretskii2023-05-26
| | | | | * lisp/wdired.el (wdired-abort-changes): Call 'dired-revert'. Patch by Stephen Berman <stephen.berman@gmx.net>. (Bug#63676)
* Restore invisibility of symlink target on exiting wdired-modeStephen Berman2023-02-24
| | | | | | | * lisp/wdired.el (wdired-change-to-dired-mode): Invoke dired-hide-details-update-invisibility-spec (bug#61510). * test/lisp/wdired-tests.el (wdired-test-bug61510): New test.
* ; Add 2023 to copyright years.Eli Zaretskii2023-01-01
|
* Make wdired match dired with symlink permissionsPaul Eggert2022-09-10
| | | | | * lisp/wdired.el (wdired-do-perm-changes): Do not follow symlinks, to be consistent with plain dired (bug#50189).
* Merge from origin/emacs-28Stefan Kangas2022-08-26
|\ | | | | | | | | | | 9e03e29c4e * lisp/wdired.el: Improve "Commentary" section. 92e90297f9 * lisp/wdired.el: Doc fix; don't mention obsolete variable. 2ccefef4c7 * lisp/progmodes/etags.el (next-file): Minor doc fix.
| * * lisp/wdired.el: Improve "Commentary" section.Stefan Kangas2022-08-25
| |
| * * lisp/wdired.el: Doc fix; don't mention obsolete variable.Stefan Kangas2022-08-25
| |
* | Fix wdired with (dired '(dir f1 f2 ...))Thierry Volpiatto2022-08-23
| | | | | | | | | | * lisp/wdired.el (wdired-finish-edit): Fix wdired with (dired '(dir f1 f2 ...)) (bug#57334).
* | Remove duplicate key definitions from keymapsRobert Pluim2022-08-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/gnus/gnus-srvr.el (gnus-browse-mode-map): Remove binding for 'gnus-browse-prev-map'. * lisp/gnus/gnus-sum.el (gnus-summary-mode-map): Remove 'gnus-summary-down-thread' binding, and by symmetry 'gnus-summary-up-thread' (it's still available on "T-u"). * lisp/ibuffer.el (ibuffer-mode-map): Remove binding for 'ibuffer-mark-for-delete'. * lisp/wdired.el (wdired-perm-mode-map): Remove duplicate binding of "s" to 'wdired-set-bit'. * etc/NEWS: Announce 'gnus-summary-up-thread' change.
* | Fix wdired marking of unsuccessfully renamed filesLars Ingebrigtsen2022-06-17
| | | | | | | | | | * lisp/wdired.el (wdired-finish-edit): Don't mark non-renamed files as renamed (bug#46438).
* | Add search function to search within filenames in Dired and WDired (bug#14013)Juri Linkov2022-03-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/dired-aux.el (dired-isearch-filenames-mode): Use dired-isearch-search-filenames on isearch-search-fun-function instead of dired-isearch-filter-filenames on isearch-filter-predicate. (dired-isearch-filter-filenames): Remove function. (dired-isearch-search-filenames): Add function. * lisp/isearch.el (isearch-message-prefix): Add isearch-search-fun-function to the list of supported advice-functions along with isearch-filter-predicate. * lisp/replace.el (replace-search): Add comment. * lisp/wdired.el (wdired-search-replace-filenames): New defcustom. (wdired-isearch-filter-read-only): Remove function. (wdired-change-to-wdired-mode, wdired-change-to-dired-mode): Add and remove dired-isearch-search-filenames on isearch-search-fun-function instead of wdired-isearch-filter-read-only on isearch-filter-predicate. Also set/unset replace-search-function and replace-re-search-function. Remove and restore isearch-mode-hook with dired-isearch-filenames-setup. The problem is that dired-isearch-filenames-setup adds dired-isearch-filenames-end to isearch-mode-end-hook that removes dired-isearch-search-filenames added to isearch-search-fun-function in wdired-change-to-wdired-mode. Then replace-highlight can't use dired-isearch-search-filenames.
* | Allow using dired-hide-details-mode in wdired buffersLars Ingebrigtsen2022-01-28
| | | | | | | | | | | | | | * lisp/dired.el (dired-hide-details-mode): Also work in wdired-mode buffers (bug#45127). * lisp/wdired.el (wdired-mode-map): Add a key binding.
* | Merge from origin/emacs-28Eli Zaretskii2022-01-01
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 836be7a112 ; * etc/refcards/ru-refcard.tex: Update Copyright year. 86cbc6ee4a * lisp/net/tramp-sh.el: Adapt copyright year ebe8772f65 ; Minor fixes related to copyright years 23c1ee6989 ; * test/manual/etags/ETAGS.good_N: Adjust to copyright ye... 8d3fc7ec89 * src/xfaces.c (face_for_font): Make 'hash' be uintptr_t. 19dcb237b5 ; Add 2022 to copyright years. # Conflicts: # etc/NEWS # etc/refcards/ru-refcard.tex # lib/cdefs.h # lisp/erc/erc-dcc.el # lisp/erc/erc-imenu.el # lisp/erc/erc-replace.el # lisp/image-dired.el # lisp/progmodes/xref.el # m4/alloca.m4 # m4/byteswap.m4 # m4/errno_h.m4 # m4/getopt.m4 # m4/gnulib-common.m4 # m4/inttypes.m4 # m4/stddef_h.m4 # m4/stdint.m4 # m4/sys_socket_h.m4
| * ; Add 2022 to copyright years.Eli Zaretskii2022-01-01
| |
* | Use defvar-keymap in wdired.elStefan Kangas2021-12-20
|/ | | | | * lisp/wdired.el (wdired-mode-map, wdired-perm-mode-map): Use defvar-keymap.
* ; More minor stylistic fixes found by checkdocStefan Kangas2021-09-22
|
* ; Minor stylistic fixes found by checkdocStefan Kangas2021-09-16
|
* Make wdired work better in narrowed-to buffersLars Ingebrigtsen2021-07-19
| | | | | | * lisp/wdired.el (wdired--before-change-fn): (wdired--restore-properties): Widen before doing anything so that we get all the changed bits (bug#49124).
* * lisp/wdired.el (wdired-normalize-filename): Sync withAndreas Schwab2021-05-29
| | | | dired-get-filename. (Bug#48659)
* * lisp/wdired.el (wdired--before-change-fn): Wrap body in save-match-data.Juri Linkov2021-04-23
| | | | Suggested by Michael Heerdegen <michael_heerdegen@web.de> (bug#14013)
* * lisp/wdired.el (wdired--self-insert): Put symbol property delete-selection.Juri Linkov2021-04-20
|
* * lisp/wdired.el (wdired--self-insert): Fix thinkoStefan Monnier2021-03-27
|
* * lisp/wdired.el: Fix minor regressions and simplify a bitStefan Monnier2021-03-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use `wdired--current-column` more consistently to avoid mayhem when it doesn't return the same result as `current-column`. (wdired-get-filename): Fix the unprocessed case. (wdired-finish-edit): Don't force processing all the lines. (wdired--col-perm): Remove, redundant with `wdired--perm-beg`. (wdired-change-to-wdired-mode): Don't error in empty directory. (wdired--set-permission-bounds): Set `wdired--perm-beg` when we can't find permissions. Move `wdired--perm-beg` 1 char further (like `wdired--col-perm`). Use `wdired--current-column`. (wdired--point-at-perms-p): Fix when `wdired--perm-beg` is nil. (wdired--self-insert): Lookup the keymap to know command to call. (wdired--before-change-fn): Just use `point` instead of `beg`. Use `with-silent-modifications` here rather than in each of the `wdired--preprocess-*` functions. (wdired--preprocess-files): Presume we're at BOL and within `with-silent-modifications`. Fix application of `read-only`. (wdired-abort-changes): Don't use `with-silent-modifications` since we're really modifying the buffer. (wdired--preprocess-symlinks): Presume we're at BOL and within `with-silent-modifications`. (wdired--preprocess-perms): Presume we're at BOL and within `with-silent-modifications`. (wdired-set-bit): Add `char` argument. Use `wdired--current-column`. Copy previous text properties rather than duplicating the code of `wdired--preprocess-perms`. (wdired-toggle-bit): Delegate to `wdired-set-bit`.
* * lisp/wdired.el: Apply text properties lazilyArthur Miller2021-03-27
| | | | | | | | | | | | | | | | | | | | | | | Entering wdired was taking time proportional to the size of the directory, making it inconvenient to quickly enter wdired just to rename one or two files in a large directory. (wdired-mode-map): Rebind `self-insert-command`. (wdired--perm-beg, wdired--perm-end): New vars. (wdired--col-perm, wdired--old-content, wdired--old-point) (wdired--old-marks): Rename vars, using "--" rather than "-". All users updated. (wdired--before-change-fn): New function. (wdired-change-to-wdired-mode): Use it `before-change-functions` instead of eagerly putting the various text properties here. (wdired--set-permission-bounds, wdired--current-column) (wdired--point-at-perms-p, wdired--line-preprocessed-p): New auxiliary functions. (wdired--self-insert): New command. (wdired--preprocess-files, wdired--preprocess-symlinks) (wdired--preprocess-perms): Add "--" to the name. Make it operate only on the current line. Use `with-silent-modifications`. (wdired-abort-changes): Use `with-silent-modifications`.
* * lisp/wdired.el: Fix typo in last change.Stefan Monnier2021-03-23
| | | | | | | Reported by Michael Heerdegen <michael_heerdegen@web.de>. (wdired-change-to-wdired-mode, wdired-change-to-dired-mode): The `(local FOO)` form takes an expression, so the var needs to be quoted.
* * lisp/wdired.el: Use lexical-bindingStefan Monnier2021-03-19
| | | | | | | | | Remove redundant `:group` args. (wdired-change-to-wdired-mode): Use `add-function` to modify `revert-buffer-function`. (wdired-change-to-dired-mode): Adjust accordingly. (wdired-do-renames): Make sure to bind `dired-backup-overwrite` dynamically.
* Convert some more menus to easy-menu-defineStefan Kangas2021-02-23
| | | | | | | | | | | * lisp/tar-mode.el (tar-mode-map): * lisp/textmodes/sgml-mode.el (sgml-mode-map, html-mode-map): * lisp/wdired.el (wdired-mode-map): Move menus from here... * lisp/tar-mode.el (tar-mode-immediate-menu, tar-mode-mark-menu) * lisp/textmodes/sgml-mode.el (sgml-mode-menu, html-mode-menu): * lisp/wdired.el (wdired-mode-menu): ...to here, and convert to easy-menu-define.
* Use `undefined' instead of `ignore' in wdiredLars Ingebrigtsen2021-02-21
| | | | | * lisp/wdired.el (wdired-mode-map): Use `undefined' here instead of `ignore' to give the user more feedback.
* * lisp/wdired.el: Minor doc fixes.Stefan Kangas2021-01-28
|
* Avoid recommending GoogleStefan Kangas2021-01-28
| | | | | | | | | | | * doc/misc/org.texi (Link Abbreviations): * lisp/net/webjump.el (webjump-sample-sites): * lisp/org/ol.el (org-link-shell-confirm-function) (org-link-elisp-confirm-function): * lisp/org/org.el (org-highlight-links): * lisp/wdired.el: Avoid recommending Google. squash! Avoid recommending Google
* Update copyright year to 2021Paul Eggert2021-01-01
| | | | Run "TZ=UTC0 admin/update-copyright".
* Fix wdired-get-filename when ls -F marks symlinksDaniel Martín2020-12-22
| | | | | | | | * lisp/wdired.el (wdired-get-filename): In some systems like BSD or macOS, "ls -F" marks symlinks with a trailing "@". Add logic accounting for this so that wdired-get-filename returns the correct filename. This change also fixes test "wdired-test-bug34915" on macOS and BSD systems (bug#34915).
* Prefer setq-local in dired extensionsStefan Kangas2020-12-09
| | | | | | | | * lisp/dired-aux.el (dired-diff, dired-compare-directories) (dired-do-create-files, dired-isearch-filenames): * lisp/dired-x.el (dired-virtual, dired-vm): * lisp/wdired.el (wdired-change-to-wdired-mode) (wdired-change-to-dired-mode, wdired-preprocess-perms):
* Use null-device where appropriateMichael Albinus2020-11-25
| | | | | | | | | | | | | | | | | | | | | | | | | * lisp/filesets.el (filesets-select-command): * lisp/shell.el (shell-mode): * lisp/term.el (term-exec-1): * lisp/wdired.el (wdired-do-symlink-changes): * lisp/cedet/ede/pmake.el (ede-proj-makefile-create): * lisp/eshell/esh-io.el (eshell-set-output-handle): * lisp/gnus/gnus-fun.el (gnus-grab-cam-x-face): * lisp/gnus/mml2015.el (mml2015-epg-key-image): * lisp/gnus/smime.el (smime-noverify-region): * lisp/org/ob-picolisp.el (org-babel-execute:picolisp): * lisp/org/ob-screen.el (org-babel-prep-session:screen) (org-babel-prep-session:screen): * lisp/play/fortune.el (fortune-quiet-strfile-options): * lisp/progmodes/cperl-mode.el (cperl-pod2man-build-command): * lisp/progmodes/sh-script.el (sh-tmp-file): * lisp/vc/diff-mode.el (diff-add-log-current-defuns) (diff--font-lock-prettify): * lisp/vc/ediff-mult.el (ediff-patch-file-form-meta): * lisp/vc/ediff-ptch.el (ediff-map-patch-buffer) (ediff-fixup-patch-map, ediff-dispatch-file-patching-job): * lisp/vc/vc.el (vc-diff-internal): Use null-device or (null-device), respectively. (Bug#3736)
* wdired: fix error handling of set-file-modesAndreas Schwab2020-10-31
| | | | | | | * lisp/wdired.el (wdired-perms-to-number): Return decimal number. (wdired-do-perm-changes): Handle error from set-file-modes. (wdired-finish-edit): Remove `rename' from error message. (Bug#44343)
* Allow killing files with C-k in wdired if -F is usedStephen Berman2020-10-11
| | | | | | | | | | * lisp/wdired.el (wdired-change-to-wdired-mode): Add hook to restore properties. (wdired-change-to-wdired-mode): Adjust check for symlinks. (wdired-preprocess-files): Fix parsing when using the -F flag. (wdired-get-filename): Fix parsing of symlinks when using the -F flag. (wdired--restore-properties): Renamed, and restore more properties (bug#18475).
* Fix wdired-do-perm-changes when over TrampTino Calancha2020-10-01
| | | | | | * lisp/wdired.el (wdired-do-perm-changes) Use set-file-modes instead of external program (bug#39284). This fixes the problem of passing the wrong argument to the external chmod.
* Fix bug in wdired-get-filenameTino Calancha2020-10-01
| | | | | | * lisp/wdired.el (wdired-get-filename): Acknowledge the first argument (bug#39280). * test/lisp/wdired-tests.el (wdired-test-bug39280): Add test.
* wdired-do-renames: Speed up for long Emacs sessionsTino Calancha2020-09-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | `dired-rename-file' calls unconditionally `dired-rename-subdir'. The second function performs performs a loop on all the Emacs buffers; this step is only needed if FILE is a directory (bug#32899). In a long lived Emacs session, this can make a difference when renaming a bunch of files with `wdired'. For instance, in my 40 days old Emacs session, with ~ 700 buffers, this patch increases the speed to rename 2000 files a factor ~ 15. * lisp/dired-aux.el (dired-rename-file): Call `dired-rename-subdir' iif FILE is a directory. Add docstring. (dired-rename-subdir, dired-remove-entry) (dired-remove-file): Add docstring. (dired-remove-entry): Move definition into `dired.el'. * lisp/wdired.el (wdired-do-renames): Use a progress-reporter. * lisp/dired.el (dired-delete-entry): Use `dired-remove-entry'. Add docstring. (dired-buffers-for-dir, dired-fun-in-all-buffers): Change comment into docstring. (dired-fun-in-all-buffers): Prefer `when' and `push' here.
* Mark the end of file names correctly on Macos in wdiredLars Ingebrigtsen2020-08-04
| | | | | * lisp/wdired.el (wdired--restore-dired-filename-prop): Fix problem with finding the end of the name on Macos.
* Add "Old-" prefix to "Version" header in some casesStefan Kangas2020-03-21
| | | | | | | | | | | | | | | | | These version numbers are historical accidents and not relevant today. Ref: https://lists.gnu.org/r/emacs-devel/2020-03/msg00080.html * lisp/calendar/icalendar.el: * lisp/emacs-lisp/checkdoc.el: * lisp/hippie-exp.el: * lisp/linum.el: * lisp/master.el: * lisp/progmodes/cwarn.el: * lisp/repeat.el: * lisp/ruler-mode.el: * lisp/textmodes/remember.el: * lisp/wdired.el: * lisp/woman.el: Change "Version" header to "Old-Version".
* * lisp/wdired.el (wdired-next-line, wdired-previous-line): Preserve columnStefan Monnier2020-02-18
|
* * lisp/wdired.el: Clean out isearch-filter-predicate (bug#37496)Juri Linkov2020-01-28
| | | | | | * lisp/wdired.el (wdired-change-to-dired-mode): Use remove-function to remove wdired-isearch-filter-read-only (whose value was added in wdired-change-to-wdired-mode) from local value of isearch-filter-predicate.
* Update copyright year to 2020Paul Eggert2020-01-01
| | | | Run "TZ=UTC0 admin/update-copyright $(git ls-files)".