summaryrefslogtreecommitdiff
path: root/lisp/dired-aux.el
Commit message (Collapse)AuthorAgeFilesLines
* dired-do-print handles printer-nameRichard M. Stallman2014-01-021-0/+6
| | | | * dired-aux.el (dired-do-print): Handle printer-name.
* Update copyright year to 2014 by running admin/update-copyright.Paul Eggert2014-01-011-1/+1
|
* * lisp/misearch.el (multi-isearch-buffers): Set the value ofJuri Linkov2013-12-111-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | `multi-isearch-buffer-list' globally. Set NO-RECURSIVE-EDIT arg of isearch-forward to t. (multi-isearch-buffers-regexp): Set the value of `multi-isearch-buffer-list' globally. Set NO-RECURSIVE-EDIT arg of isearch-forward-regexp to t. (multi-isearch-files): Set the value of `multi-isearch-file-list' globally. Set NO-RECURSIVE-EDIT arg of isearch-forward to t. (multi-isearch-files-regexp): Set the value of `multi-isearch-file-list globally. Set NO-RECURSIVE-EDIT arg of isearch-forward-regexp to t. * lisp/dired-aux.el (dired-isearch-filenames): Set NO-RECURSIVE-EDIT arg of isearch-forward to t. (dired-isearch-filenames-regexp): Set NO-RECURSIVE-EDIT arg of isearch-forward-regexp to t. (dired-isearch-filter-filenames): Remove unnecessary check for `dired-isearch-filenames'. * lisp/comint.el (comint-history-isearch-backward): Set NO-RECURSIVE-EDIT arg of isearch-backward to t. (comint-history-isearch-backward-regexp): Set NO-RECURSIVE-EDIT arg of isearch-backward-regexp to t. Fixes: debbugs:16035
* lisp/*.el: Remove lexical-binding warnings; additional small cleanups.Juanma Barranquero2013-08-101-31/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * calculator.el (calculator): Mark unused argument. (calculator-paste, calculator-quit, calculator-integer-p): Use ignore-errors. (calculator-string-to-number, calculator-decimal, calculator-exp) (calculator-op-or-exp): Use string-match-p. * dired-aux.el (dired-compress): Use ignore-errors. (dired-do-chxxx, dired-do-chmod, dired-trample-file-versions) (dired-do-async-shell-command, dired-do-shell-command) (dired-shell-stuff-it, dired-compress-file, dired-insert-subdir) (dired-insert-subdir-validate): Use string-match-p. (dired-map-dired-file-lines, dired-subdir-hidden-p): Use looking-at-p. (dired-add-entry): Use string-match-p, looking-at-p. (dired-insert-subdir-newpos): Remove unused local variable. * dired.el (dired-buffer-more-recently-used-p): Declare. (dired-insert-set-properties, dired-insert-old-subdirs): Use ignore-errors. * filenotify.el (file-notify-callback): Remove unused local variable. * filesets.el (filesets-error): Mark unused argument. (filesets-which-command-p, filesets-filter-dir-names) (filesets-directory-files, filesets-get-external-viewer) (filesets-ingroup-get-data): Use string-match-p. * find-file.el (ff-other-file-name, ff-other-file-name) (ff-find-the-other-file, ff-cc-hh-converter): Remove unused local variables. (ff-get-file-name): Use string-match-p. (ff-all-dirs-under): Use ignore-errors. * follow.el (follow-comint-scroll-to-bottom): Mark unused argument. (follow-select-if-visible): Remove unused local variable. * forms.el (read-file-filter): Move declaration. (forms--make-format, forms--make-parser, forms-insert-record): Quote function with #'. (forms--update): Use string-match-p. Quote function with #'. * help-mode.el (help-dir-local-var-def): Mark unused argument. (help-make-xrefs): Use looking-at-p. (help-xref-on-pp): Use looking-at-p, ignore-errors. * ibuffer.el (ibuffer-ext-visible-p): Declare. (ibuffer-confirm-operation-on): Use string-match-p. * msb.el (msb-item-handler, msb-dired-item-handler): Mark unused arguments. * ses.el (ses-decode-cell-symbol) (ses-kill-override): Remove unused local variable. (ses-create-cell-variable, ses-relocate-formula): Use string-match-p. (ses-load): Use ignore-errors, looking-at-p. (ses-jump-safe): Use ignore-errors. (ses-export-tsv, ses-export-tsf, ses-unsafe): Mark unused arguments. * tabify.el (untabify, tabify): Mark unused arguments. * thingatpt.el (thing-at-point--bounds-of-well-formed-url): Mark unused argument. (bounds-of-thing-at-point, thing-at-point-bounds-of-list-at-point) (thing-at-point-newsgroup-p, form-at-point): Use ignore-errors.
* Revert introduction of isearch-filter-predicates.Stefan Monnier2013-08-051-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rely on add-function instead. * lisp/loadup.el: Preload nadvice. * lisp/isearch.el (isearch-filter-predicates): Rename it back to isearch-filter-predicate. (isearch-message-prefix): Use advice-function-mapc and advice properties to get the isearch-message-prefix. (isearch-search, isearch-lazy-highlight-search): Revert to funcall instead of run-hook-with-args-until-failure. (isearch-filter-visible): Not obsolete any more. * lisp/replace.el (perform-replace): Revert to funcall instead of run-hook-with-args-until-failure. * lisp/wdired.el (wdired-change-to-wdired-mode): Use add-function. * lisp/dired-aux.el (dired-isearch-filenames-mode): Rename from dired-isearch-filenames-toggle; make it into a proper minor mode. Use add/remove-function. (dired-isearch-filenames-setup, dired-isearch-filenames-end): Call the minor-mode rather than add/remove-hook. (dired-isearch-filter-filenames): Remove isearch-message-prefix property. * lisp/info.el (Info--search-loop): New function, extracted from Info-search. Funcall isearch-filter-predicate instead of run-hook-with-args-until-failure isearch-filter-predicates. (Info-search): Use it. (Info-mode): Use isearch-filter-predicate instead of isearch-filter-predicates. * src/lisp.mk (lisp): Add nadvice.elc. * lib-src/makefile.w32-in (lisp2): Add nadvice.elc. Fixes: debbugs:14714
* * lisp/isearch.el (isearch-filter-predicates): Rename from ↵Juri Linkov2013-05-281-20/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `isearch-filter-predicate'. Doc fix. (isearch-message-prefix): Display text from the property `isearch-message-prefix' of the currently active filters. (isearch-search): Don't compare `isearch-filter-predicate' with `isearch-filter-visible'. Call `run-hook-with-args-until-failure' on `isearch-filter-predicates'. Also check `search-invisible' for t or call `isearch-range-invisible'. (isearch-filter-visible): Make obsolete. (isearch-lazy-highlight-search): Call `run-hook-with-args-until-failure' on `isearch-filter-predicates' and use `isearch-range-invisible'. * lisp/info.el (Info-search): Call `run-hook-with-args-until-failure' on `isearch-filter-predicates' instead of `funcall'ing `isearch-filter-predicate'. (Info-mode): Set `Info-isearch-filter' to `isearch-filter-predicates' instead of `isearch-filter-predicate'. * lisp/dired-aux.el (dired-isearch-filter-predicate-orig): Remove variable. (dired-isearch-filenames-toggle, dired-isearch-filenames-setup) (dired-isearch-filenames-end): Add and remove `dired-isearch-filter-filenames' in `isearch-filter-predicates' instead of changing the value of `isearch-filter-predicate'. Rebind `dired-isearch-filenames-toggle' from "\M-sf" to "\M-sff". (dired-isearch-filter-filenames): Don't use `isearch-filter-visible'. Put property `isearch-message-prefix' to "filename " on `dired-isearch-filter-filenames'. * lisp/wdired.el (wdired-change-to-wdired-mode): Add `isearch-filter-predicates' to `wdired-isearch-filter-read-only' locally instead of changing `isearch-filter-predicate'. (wdired-isearch-filter-read-only): Don't use `isearch-filter-visible'. Fixes: debbugs:11378
* * lisp/dired-aux.el (dired-diff): If file at point is a backup file,Juri Linkov2013-02-281-4/+10
| | | | | | | use its original as the default value, and reverse the order of arguments to the `diff' call. Doc fix. Fixes: debbugs:13772
* Update copyright notices for 2013.Paul Eggert2013-01-011-2/+2
|
* * lisp/dired-aux.el (dired-diff): Remove (require 'diff) sinceJuri Linkov2012-09-201-3/+1
| | | | `diff-latest-backup-file' is now autoloaded.
* * lisp/dired-aux.el (dired-diff): Add (require 'diff) becauseJuri Linkov2012-09-191-3/+3
| | | | | | | `diff-latest-backup-file' is not autoloaded. (dired-do-chxxx, dired-do-chmod): Set `no-error-if-not-filep' arg of `dired-get-filename' to t to not report error when there is no default file on the current line.
* * lisp/dired-aux.el (dired-diff): Restore original functionality ofJuri Linkov2012-09-191-21/+45
| | | | | getting the default value, but keep new feature of using the latest existing backup file (`diff-latest-backup-file').
* * lisp/dired-aux.el (dired-do-chxxx, dired-do-chmod): Default fileJuri Linkov2012-09-191-10/+27
| | | | | | | | attributes for M-n are pulled from the file at point. (dired-do-chgrp, dired-do-chown, dired-do-touch): Doc fix. Suggested by Drew Adams. Fixes: debbugs:10624
* * lisp/dired-aux.el (dired-do-chmod): Use `eq' to detect empty input.Juri Linkov2012-09-151-1/+4
| | | | Fixes: debbugs:12399
* * lisp/dired-aux.el (dired-do-chxxx): Use `eq' to detect empty input.Juri Linkov2012-09-141-1/+4
| | | | Fixes: debbugs:12399
* Don't bind M-= in Dired.Chong Yidong2012-09-081-33/+20
| | | | | | * lisp/dired.el (dired-mode-map): Don't bind M-=. * lisp/dired-aux.el (dired-diff): Use backup file as default.
* * lisp/dired-aux.el (dired-do-async-shell-command): Doc fix.Juri Linkov2012-07-171-29/+52
| | | | | | | | | | | | | | (dired-do-async-shell-command): Don't add `*' at the end of the command (Bug#11815). (dired-do-shell-command): Doc fix. (dired-shell-stuff-it): Strip the trailing "&" and ";" if any. Join the individual commands using either "&" or ";" as the separator depending on the values of these trailing characters. At the end re-add the trailing "&". (Bug#10598) * lisp/simple.el (async-shell-command): Sync the interactive spec with `shell-command'. Doc fix. (shell-command): Doc fix.
* Misc doc fixes for Dired.Chong Yidong2012-06-221-27/+33
| | | | | | | | | | | | | | * dired-aux.el (dired-do-create-files): Doc fix (Bug#11327). (dired-create-files): Doc fix (Bug#11329). (dired-do-copy): Doc fix (Bug#11334). (dired-mark-read-string): Doc fix (Bug#11553). * dired.el (dired-recursive-copies, dired-recursive-deletes): Doc fix (Bug#11326). (dired-make-relative): Doc fix (Bug#11332). Remove unused arg. (dired-dwim-target): Doc fix. * wdired.el (wdired-mode): Doc fix.
* * lisp/dired-aux.el (dired-mark-read-string): Doc fix.Glenn Morris2012-04-161-1/+4
|
* Add user, group name completion to diredDmitry Antipov2012-04-161-4/+8
| | | | | | | | | | | | Note from committer: I modified the original patch, by adding the new collection argument at the end of the argument list rather than in the middle. * dired-aux.el (dired-mark-read-string): Offer optional completion. (dired-do-chxxx): Complete chown, chgrp over users, groups. Fixes: debbugs:7900
* Rename file-subdir-of-p to file-in-directory-p.Chong Yidong2012-04-011-2/+2
| | | | | | | | | | | | * lisp/files.el (file-in-directory-p): Rename from file-subdir-of-p. Handle root directory properly. (copy-directory): Caller changed. * lisp/dired-aux.el (dired-copy-file-recursive, dired-create-files): * lisp/net/tramp.el (tramp-file-name-for-operation): Callers changed. * doc/lispref/files.texi (Kinds of Files): file-subdir-of-p renamed to file-in-directory-p.
* Remove debug code.Chong Yidong2012-03-311-1/+1
|
* Fix copying of symlinks.Thierry Volpiatto2012-03-311-6/+9
| | | | | | | * dired-aux.el (dired-copy-file-recursive, dired-create-files): Check if file is a symlink (Bug#10489). * files.el (copy-directory): Likewise.
* Fix bug#10489: 24.0.92 `dired-do-copy' may create infinite directory hierarchy.thierry volpiatto2012-02-241-4/+26
| | | | | | | | | | | * lisp/files.el (files-equal-p): New, simple equality check between two filename. (file-subdir-of-p): New, Check if dir1 is subdir of dir2. (copy-directory): Return error when trying to copy a directory on itself. Add missing copy-contents arg to tramp handler. * lisp/dired-aux.el (dired-copy-file-recursive): Same. (dired-create-files): Modify destination when source is equal to dest when copying files. Return also when dest is a subdir of source.
* * lisp/dired-aux.el (dired-do-shell-command): Doc fix.Glenn Morris2012-01-101-2/+5
| | | | (Inspired by the Emacs manual.)
* * lisp/dired-aux.el (dired-do-shell-command): Fix */? logic. (Bug#6561)Glenn Morris2012-01-101-6/+6
|
* Add 2012 to FSF copyright years for Emacs filesGlenn Morris2012-01-051-1/+1
|
* * lisp/dired-aux.el (dired-query): Don't assume help-char is modifier-free.Stefan Monnier2011-12-021-2/+1
| | | | Fixes: debbugs:10191
* Spelling fixes.Paul Eggert2011-11-171-2/+2
|
* * lisp/dired-aux.el (dired-do-chmod): Don't provide initial input.Chong Yidong2011-09-141-10/+7
|
* * dired-aux.el (dired-mark-read-string): Don't use default value on empty input.Chong Yidong2011-09-121-34/+44
| | | | | | | | | | | (dired-do-chxxx): Treat empty input for "touch" as no -t option. Omit initial minibuffer contents. (dired-do-chmod): Signal an error on empty input. (dired-mark-read-string): Don't return default on empty input. * files.el (file-modes-symbolic-to-number): Doc fix. Fixes: debbugs:9361
* * lisp/dired-aux.el (dired-touch-initial): Remove function.Juri Linkov2011-07-301-19/+13
| | | | | | | | (dired-do-chxxx): For op-symbol `touch', set `initial' to the current time, and `default' to the last modification time of the current marked file. Fixes: debbugs:6887
* Minor Dired doc fixes.Chong Yidong2011-07-111-9/+12
| | | | | * lisp/dired.el (dired-mark-prompt): * lisp/dired-aux.el (dired-read-shell-command): Doc fix.
* * dired-aux.el (dired-kill-line): Add a doc string.Lars Magne Ingebrigtsen2011-07-061-0/+3
| | | | Fixes: debbugs:957
* Fix typos.Juanma Barranquero2011-07-051-1/+1
|
* (dired-show-file-type): Doc fixup (bug#8818).Lars Magne Ingebrigtsen2011-07-011-2/+3
|
* * dired-aux.el (dired-diff): Doc fixup (bug#8816).Lars Magne Ingebrigtsen2011-07-011-2/+2
|
* * dired-aux.el (dired-touch-initial): Just use current-time. (Bug#6887)Glenn Morris2011-05-201-8/+11
|
* lisp/*.el: Lexical-binding cleanup.Juanma Barranquero2011-04-191-10/+16
|
* * lisp/dired-aux.el (dired-create-files): Add docstring (Bug#7970).Chong Yidong2011-04-031-22/+17
|
* Add error for dired-create-directory on existing file (Bug#8246).Chong Yidong2011-03-191-1/+4
| | | | | * lisp/dired-aux.el (dired-create-directory): Signal an error if the directory already exists.
* dired-aux fix for bug#8131.Stephen Berman2011-02-271-3/+3
| | | | * lisp/dired-aux.el (dired-update-file-line): Fix 2010-11-09 change.
* Merge dired-x's dired-read-shell-command into dired-aux's version.Glenn Morris2011-02-191-8/+12
| | | | | | | | | * lisp/dired-x.el (dired-read-shell-command): Merge into dired-aux's version. * lisp/dired-aux.el (dired-read-shell-command): Merge dired-x's version. * doc/misc/dired-x.texi (Technical Details): No longer redefines dired-read-shell-command.
* Merge dired-x's dired-add-entry modifications into the main definition.Glenn Morris2011-02-181-85/+117
| | | | | | | | | | | * lisp/dired-aux.el (dired-add-entry): Give it a doc-string. Merge dired-x's dired-omit handling here. (dired-omit-mode, dired-omit-regexp, dired-omit-localp): Declare. * lisp/dired-x.el (dired-omit-new-add-entry): Merge into dired-add-entry. * doc/misc/dired-x.texi (Technical Details): No longer redefines dired-add-entry.
* Adapt dired-create-files to copy-directory changes.Thierry Volpiatto2011-02-121-0/+4
| | | | | * dired-aux.el (dired-create-files): Adapt destination name to match the new behavior of copy-directory.
* Convert consecutive FSF copyright years to ranges.Glenn Morris2011-01-241-2/+1
|
* Revert changes adding format args to yes-or-no-p and y-or-n-p.Chong Yidong2011-01-191-2/+2
| | | | | | | | | | | | | | | | See discussion on emacs-devel at http://lists.gnu.org/archive/html/emacs-devel/2011-01/msg00388.html * src/fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS. * lisp/subr.el (y-or-n-p): Revert 2011-01-07 change, removing ARGS. * lisp/files.el (find-alternate-file, basic-save-buffer) (basic-save-buffer-2, revert-buffer, recover-file) (kill-buffer-ask, abort-if-file-too-large) (set-visited-file-name, write-file, backup-buffer) (basic-save-buffer, save-some-buffers): * lisp/dired-aux.el (dired-compress-file): Callers changed.
* Refill some copyright headers.Glenn Morris2011-01-151-1/+2
|
* Merge from emacs-23Stefan Monnier2011-01-141-2/+1
|\
| * Add 2011 to FSF/AIST copyright years.Glenn Morris2011-01-021-1/+1
| |
* | New function read-char-choice for reading a restricted set of chars.Chong Yidong2011-01-081-50/+30
| | | | | | | | | | | | | | | | * lisp/subr.el (read-char-choice): New function, factored out from dired-query and hack-local-variables-confirm. * lisp/dired-aux.el (dired-query): * lisp/files.el (hack-local-variables-confirm): Use it.