summaryrefslogtreecommitdiff
path: root/lisp/dired.el
Commit message (Collapse)AuthorAgeFilesLines
* Use the new keyword ':repeat' in repeatable keymaps.Juri Linkov2022-12-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | * lisp/bindings.el (undo-repeat-map) (buffer-navigation-repeat-map, next-error-repeat-map) (page-navigation-repeat-map): * lisp/comint.el (comint-repeat-map): * lisp/dired.el (dired-jump-map): * lisp/outline.el (outline-navigation-repeat-map) (outline-editing-repeat-map): * lisp/shell.el (shell-repeat-map): * lisp/tab-bar.el (tab-bar-switch-repeat-map) (tab-bar-move-repeat-map): * lisp/window.el (other-window-repeat-map) (resize-window-repeat-map): * lisp/winner.el (winner-repeat-map): * lisp/eshell/em-prompt.el (eshell-prompt-repeat-map): * lisp/eshell/esh-mode.el (eshell-command-repeat-map): Add the keyword ':repeat' to 'defvar-keymap' instead of setting the symbol property 'repeat-map' explicitly. * lisp/keymap.el (defvar-keymap): Check for 'props' that is used in 'defvar-form'.
* ; Fix typosStefan Kangas2022-11-181-1/+1
|
* ; * lisp/dired.el (dired--unhide): Remove FIXME. (Bug#59047)Eli Zaretskii2022-11-121-1/+0
|
* Make 'dired-hide-details-mode' work after 'dired-hide-subdir'Gabriel do Nascimento Ribeiro2022-11-101-1/+2
| | | | | | | * lisp/dired.el (dired--unhide): Restore text properties. (Bug#59047) * test/lisp/dired-tests.el (dired-test-bugXXXX): New test.
* ; * lisp/dired.el (dired--make-directory-clickable): Fix typo.Eli Zaretskii2022-10-291-1/+1
|
* Make Dired header clickable on non-Posix systems as wellEli Zaretskii2022-10-291-2/+6
| | | | | | * lisp/dired.el (dired--make-directory-clickable): Support MS-Windows and MS-DOS absolute directory names with drive letters and UNCs. (Bug#21973)
* Display the Dired buffer as unmodified initiallyEli Zaretskii2022-10-291-1/+1
| | | | | * lisp/dired.el (dired-readin): Make sure a newly-created Dired buffer is shown as unmodified. (Bug#58863)
* * lisp/dired.el (dired-make-relative): Make change less aggressive.Michael Albinus2022-10-071-1/+5
|
* Better support for remote file names in diredMichael Albinus2022-10-061-5/+1
| | | | | * lisp/dired.el (dired-make-relative): Expand DIR anyway, because it could also be an abbreviated remote file name. (Bug#58300)
* Actually delete markers in dired-do-flagged-deleteStefan Kangas2022-10-031-10/+10
| | | | | * lisp/dired.el (dired-do-flagged-delete): Actually delete markers. (Bug#58256)
* Delete many items obsolete since 24.3Stefan Kangas2022-09-091-36/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/allout.el (allout-exposure-change-hook) (allout-structure-added-hook, allout-structure-deleted-hook) (allout-structure-shifted-hook): * lisp/arc-mode.el (archive-extract-hooks): * lisp/buff-menu.el (Buffer-menu-buffer+size-width): * lisp/calendar/timeclock.el (timeclock-modeline-display) (timeclock-modeline-display, timeclock-update-modeline): * lisp/cedet/semantic/db-el.el (semanticdb-elisp-sym-function-arglist): * lisp/cedet/semantic/db-file.el (semanticdb-save-database-hooks): * lisp/cedet/semantic/edit.el (semantic-change-hooks) (semantic-edits-new-change-hooks) (semantic-edits-delete-change-hooks) (semantic-edits-reparse-change-hooks): * lisp/cedet/semantic/lex.el (semantic-lex-reset-hooks): * lisp/comint.el (comint--unquote&expand-filename) (comint-unquote-filename): * lisp/custom.el (user-variable-p): * lisp/dired.el (dired-shrink-to-fit, dired-pop-to-buffer) (dired-sort-set-modeline): * lisp/ebuff-menu.el (Electric-buffer-menu-mode): * lisp/emacs-lisp/byte-run.el (macro-declaration-function): * lisp/emacs-lisp/checkdoc.el (custom-print-functions) (checkdoc-comment-style-hooks): * lisp/emacs-lisp/cl-lib.el (custom-print-functions): * lisp/emacs-lisp/edebug.el (gud-inhibit-global-bindings): * lisp/erc/erc-dcc.el (erc-dcc-chat-filter-hook): * lisp/eshell/esh-mode.el (eshell-status-in-modeline): * lisp/eshell/eshell.el (eshell-add-to-window-buffer-names) (eshell-remove-from-window-buffer-names): * lisp/faces.el (set-face-underline-p, font-list-limit): * lisp/files.el (automount-dir-prefix, toggle-read-only): * lisp/filesets.el (filesets-cache-fill-content-hooks): * lisp/frame.el (automatic-hscrolling): * lisp/generic-x.el (javascript-generic-mode) (javascript-generic-mode-hook): * lisp/gnus/gnus-start.el (gnus-subscribe-newsgroup-hooks): * lisp/gnus/nndiary.el (nndiary-request-create-group-hooks) (nndiary-request-update-info-hooks) (nndiary-request-accept-article-hooks): * lisp/htmlfontify.el (hfy-post-html-hooks): * lisp/international/mule-cmds.el (inactivate-current-input-method-function) (inactivate-input-method, input-method-inactivate-hook) (ucs-insert): * lisp/international/quail.el (quail-inactivate) (quail-inactivate-hook): * lisp/international/robin.el (robin-inactivate) (robin-inactivate-hook): * lisp/leim/quail/hangul.el (hangul-input-method-inactivate): * lisp/leim/quail/uni-input.el (ucs-input-inactivate): * lisp/mail/emacsbug.el (report-emacs-bug-info): * lisp/mh-e/mh-e.el (mh-kill-folder-suppress-prompt-hooks): * lisp/mpc.el (mpc-string-prefix-p): * lisp/net/rcirc.el (rcirc-print-hooks, rcirc-sentinel-hooks) (rcirc-receive-message-hooks, rcirc-activity-hooks): * lisp/obsolete/crisp.el (crisp-mode-modeline-string): * lisp/pcomplete.el (pcomplete-arg-quote-list) (pcomplete-quote-argument): * lisp/progmodes/cc-mode.el (c-prepare-bug-report-hooks): * lisp/progmodes/python.el (python-info-ppss-context) (python-info-ppss-context-type) (python-info-ppss-comment-or-string-p, python-indent) (python-guess-indent, python-buffer, python-preoutput-result) (python-proc, python-send-receive, python-send-string) (python-use-skeletons): * lisp/progmodes/sh-script.el (sh-maybe-here-document): * lisp/replace.el (query-replace-interactive): * lisp/strokes.el (strokes-modeline-string): * lisp/subr.el (redraw-modeline): * lisp/term.el (term-default-fg-color, term-default-bg-color): * lisp/textmodes/tex-mode.el (latex-string-prefix-p) (tex-string-prefix-p): * lisp/url/url-parse.el (url-recreate-url-attributes): * lisp/vc/add-log.el (change-log-acknowledgement): * lisp/vc/ediff-wind.el (ediff-choose-window-setup-function-automatically): * lisp/vc/pcvs-util.el (cvs-string-prefix-p): * lisp/vc/vc.el (vc-string-prefix-p): * lisp/window.el (display-buffer-function): * lisp/winner.el (winner-mode-leave-hook): Remove many functions and variables obsolete since 24.3. * lisp/buff-menu.el (list-buffers--refresh): * lisp/dired.el (dired-mode-map): * lisp/files.el (abbreviate-file-name): * lisp/generic-x.el (generic-default-modes): * lisp/mh-e/mh-funcs.el (mh-kill-folder): * lisp/progmodes/hideif.el (hide-ifdef-mode-submap): * lisp/replace.el (query-replace-read-from): * lisp/term.el (term): * lisp/window.el (display-buffer): Don't use above deleted functions and variables. * src/marker.c (Fbuffer_has_markers_at): Delete DEFUN obsolete since 24.3. (syms_of_marker) <Sbuffer_has_markers_at>: Delete defsubr. * lisp/subr.el (buffer-has-markers-at): Remove obsoletion of above deleted DEFUN. * etc/TODO: Doc fix; don't mention above deleted function. * admin/cus-test.el (cus-test-get-options): * lisp/pcomplete.el: Doc fixes; don't mention removed items. ; * etc/NEWS: List removed items.
* Fix update of Dired display when it was called on a cons cellEli Zaretskii2022-09-041-1/+4
| | | | | * lisp/dired.el (dired-internal-do-deletions): Make sure that FN's directory entry is updated on display. (Bug#57565)
* Use a list of text properties to search in symlink filenames in WdiredJuri Linkov2022-08-271-3/+3
| | | | | | | | | | | * lisp/dired-aux.el (dired-isearch-search-filenames): Use text properties 'dired-filename' and 'dired-symlink-filename'. * lisp/dired.el (dired-font-lock-keywords): Add text property 'dired-symlink-filename' on symlinks. * lisp/isearch.el (isearch-search-fun-in-text-property): Support a list of text properties (bug#57293).
* Make point-at-eol and point-at-bol obsoleteStefan Kangas2022-08-231-3/+3
| | | | | | | * lisp/subr.el (point-at-eol, point-at-bol): Make XEmacs compat aliases obsolete in favor of `pos-bol'/'line-beginning-position' or 'pos-eol'/'line-end-position'. Update callers. Ref: https://lists.gnu.org/r/emacs-devel/2022-08/msg00853.html
* Assume dired-guess is now always availableStefan Kangas2022-08-171-4/+0
| | | | | | | | * lisp/dired-aux.el (dired-read-shell-command): Use dired-guess-shell-command unconditionally, as it is now always available. (dired-do-shell-command): Doc fix; dired-guess is always available. * lisp/dired.el (dired-do-man): Don't require dired-x.
* Move dired-guess commands from dired-x to diredStefan Kangas2022-08-171-0/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/dired-x.el (dired-shell-command-history) (dired-guess-shell-alist-default, dired-guess-default) (dired-guess-shell-command): Move from here... * lisp/dired-aux.el (dired-shell-command-history) (dired-guess-shell-alist-default, dired-guess-default) (dired-guess-shell-command): ...to here. (Bug#21981) * lisp/dired-x.el (dired-guess-shell-gnutar) (dired-guess-shell-gzip-quiet, dired-guess-shell-znew-switches) (dired-guess-shell-case-fold-search, dired-guess-shell-alist-user): Move from here... * lisp/dired.el (dired-guess-shell-gnutar) (dired-guess-shell-gzip-quiet, dired-guess-shell-znew-switches) (dired-guess-shell-case-fold-search, dired-guess-shell-alist-user): ...to here. Change :group to dired-guess. (dired-guess): New defgroup. * test/lisp/dired-x-tests.el (dired-guess-default): Move from here... * test/lisp/dired-aux-tests.el (dired-guess-default): ...to here. * doc/misc/dired-x.texi (Features, Technical Details, Installation): Delete any mention of shell command guessing. (Shell Command Guessing): Move from here... * doc/emacs/dired.texi (Shell Command Guessing): ...to here. Adapt to better fit the Emacs Manual conventions. * lisp/dired-aux.el (dired-do-shell-command): Doc fix to adjust for above changes. * etc/NEWS: Announce the above change.
* * lisp/dired.el (dired-mark-if): Evaluate MSG once to avoid warning.Mattias Engdegård2022-08-161-5/+6
|
* Prefer ‘time-equal-p’ to ‘equal’ on timestampsPaul Eggert2022-08-011-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is more robust since timestamps can have multiple forms. * lisp/auth-source.el (auth-source-netrc-parse): * lisp/bookmark.el (bookmark--watch-file-already-queried-p) (bookmark-maybe-load-default-file): * lisp/cedet/semantic/db.el (semanticdb-needs-refresh-p): * lisp/dired.el (dired-directory-changed-p): * lisp/files.el (dir-locals-find-file): * lisp/gnus/gnus-util.el (gnus-cache-file-contents): * lisp/gnus/nneething.el (nneething-create-mapping): * lisp/gnus/nnfolder.el (nnfolder-read-folder): * lisp/gnus/nnmaildir.el (nnmaildir--update-nov) (nnmaildir--scan, nnmaildir-request-scan) (nnmaildir-request-update-info): * lisp/gnus/nnmh.el (nnmh-update-gnus-unreads): * lisp/gnus/spam-stat.el (spam-stat-load): * lisp/mail/mailabbrev.el (mail-abbrevs-sync-aliases): * lisp/mail/sendmail.el (sendmail-sync-aliases): * lisp/net/netrc.el (netrc-parse): * lisp/nxml/rng-loc.el (rng-get-parsed-schema-locating-file): * lisp/play/cookie1.el (cookie-snarf): * lisp/vc/vc-cvs.el (vc-cvs-state-heuristic): * lisp/vc/vc-hg.el (vc-hg--ignore-patterns-valid-p) (vc-hg--cached-dirstate-search): * lisp/vc/vc-hooks.el (vc-after-save): Prefer ‘time-equal-p’ to ‘equal’ when comparing timestamps for equality.
* Fix wdired entry when there are hidden subdirsLars Ingebrigtsen2022-07-231-4/+5
| | | | | * lisp/dired.el (dired--unhide): Allow `C-c C-q' to work when there are hidden inserted subdirs (bug#56698).
* Tweak how dired-copy-filename-as-kill handles file names with spacesLars Ingebrigtsen2022-07-151-14/+25
| | | | | * lisp/dired.el (dired-copy-filename-as-kill): Quote files containing spaces (bug#48657).
* Remove some ineffectual calls to purecopyStefan Kangas2022-07-101-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/dired.el (dired-chown-program, dired-trivial-filenames): * lisp/emacs-lisp/shortdoc.el (shortdoc--display-function): * lisp/help-fns.el (help-fns--mention-shortdoc-groups): * lisp/mail/mail-extr.el (mail-extr-full-name-prefixes) (mail-extr-all-letters-but-separators, mail-extr-all-letters) (mail-extr-first-letters, mail-extr-last-letters) (mail-extr-bad-dot-pattern, mail-extr-full-name-suffix-pattern) (mail-extr-alternative-address-pattern) (mail-extr-trailing-comment-start-pattern) (mail-extr-name-pattern, mail-extr-telephone-extension-pattern) (mail-extr-ham-call-sign-pattern, mail-extr-normal-name-pattern) (mail-extr-two-name-pattern) (mail-extr-listserv-list-name-pattern) (mail-extr-stupid-vms-date-stamp-pattern) (mail-extr-hz-embedded-gb-encoded-chinese-pattern) (mail-extr-x400-encoded-address-pattern) (mail-extr-x400-encoded-address-field-pattern-format) (mail-extr-x400-encoded-address-surname-pattern) (mail-extr-x400-encoded-address-given-name-pattern) (mail-extr-x400-encoded-address-full-name-pattern): Remove ineffectual calls to purecopy.
* Bind M-G unconditionally in DiredStefan Kangas2022-07-091-0/+1
| | | | | | | | | * lisp/dired-x.el: Move dired-goto-subdir binding from here... * lisp/dired.el (dired-mode-map): ...to here. (Bug#21981) * doc/misc/dired-x.texi (Miscellaneous Commands): Move documentation of above command from here... * doc/emacs/dired.texi (Subdirectory Motion): ...to here.
* Move dired-buffer-more-recently-used-p to dired.elStefan Kangas2022-07-091-3/+8
| | | | | | * lisp/dired-x.el (dired-buffer-more-recently-used-p): Move from here... * lisp/dired.el (dired-buffer-more-recently-used-p): ...to here.
* Move dired-do-relsymlink from dired-x.el to dired.elStefan Kangas2022-07-081-0/+13
| | | | | | | | | | | | | | | | | | | | * lisp/dired-x.el (dired-do-relsymlink, dired-make-relative-symlink) (dired-do-relsymlink-regexp): Move from here... * lisp/dired-aux.el (dired-do-relsymlink, dired-make-relative-symlink) (dired-do-relsymlink-regexp): ...to here. (Bug#21981) * lisp/dired-x.el: Move keybinding and menu binding from here... * lisp/dired.el (dired-mode-map, dired-mode-regexp-menu): ...to here. * lisp/dired-x.el (dired-keep-marker-relsymlink): Move from here... * lisp/dired.el (dired-keep-marker-relsymlink): ...to here. Improve docstring. * doc/misc/dired-x.texi (Miscellaneous Commands): Move documentation of above commands from here... * doc/emacs/dired.texi (Operating on Files) (Transforming File Names): ...to here.
* * lisp/dired.el (dired-jump-map): Bind also "j" to dired-jump.Stefan Kangas2022-07-081-0/+1
|
* Quote some literal keys to get help-key-binding faceStefan Kangas2022-07-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/align.el (align): * lisp/bindings.el (undo-repeat-map): * lisp/calc/calc-embed.el (calc-do-embedded): * lisp/calc/calc-prog.el (calc-user-define-invocation): * lisp/calc/calc-yank.el (calc--edit-mode): * lisp/comint.el (comint-history-isearch) * lisp/dired.el (dired-mode): * lisp/emulation/viper.el (viper-mode): * lisp/erc/erc-button.el (erc-button-face): * lisp/erc/erc-track.el (erc-track-enable-keybindings): * lisp/gnus/gnus-art.el (gnus-article-button-face): * lisp/gnus/gnus-eform.el (gnus-edit-form): * lisp/gnus/gnus-sum.el (gnus-summary-stop-at-end-of-message) (gnus-summary-goto-unread): * lisp/icomplete.el (icomplete-show-matches-on-no-input): * lisp/image-mode.el (image-scroll-up): * lisp/international/iso-transl.el (iso-transl-set-language): * lisp/isearch.el (isearch-forward-regexp): * lisp/misc.el (butterfly): * lisp/outline.el (outline-minor-mode-cycle-filter) (outline-minor-mode-cycle): * lisp/progmodes/grep.el (rgrep): * lisp/progmodes/gud.el (gud-gdb-repeat-map, gud-sdb-repeat-map) (gud-dbx-repeat-map, gud-xdb-repeat-map, gud-perldb-repeat-map) (gud-pdb-repeat-map, gud-guiler-repeat-map, gud-jdb-repeat-map): * lisp/progmodes/idlw-shell.el (idlwave-shell-graphics-window-size) (idlwave-shell-mode): * lisp/progmodes/idlwave.el (idlwave-shell-debug-modifiers) (idlwave-list-shell-load-path-shadows): * lisp/progmodes/python.el (python-shell-get-process-or-error): * lisp/repeat.el (repeat-check-key): * lisp/replace.el (query-replace, query-replace-regexp) (read-regexp): * lisp/simple.el (read-extended-command-predicate): * lisp/tab-bar.el (tab-bar-switch-repeat-map) (tab-bar-move-repeat-map): * lisp/term.el (ansi-term): * lisp/textmodes/reftex-index.el (reftex-index-phrases-set-macro-key): * lisp/vc/emerge.el (emerge-scroll-left, emerge-scroll-right): * lisp/windmove.el: * lisp/winner.el (winner-mode): Quote literal keys to get 'help-key-binding' face. * lisp/comint.el (comint-insert-previous-argument): Use regular quotes.
* Move dired-clean-up-buffers-too to dired.elStefan Kangas2022-07-031-4/+12
| | | | | | | | | | * lisp/dired-x.el (dired-clean-up-buffers-too) (dired-clean-confirm-killing-deleted-buffers): Move from here... * lisp/dired.el (dired-clean-up-buffers-too) (dired-clean-confirm-killing-deleted-buffers): ...to here. (Bug#21981) (dired-clean-up-after-deletion): Adjust documentation. * etc/NEWS: Announce the change.
* * lisp/dired.el (dired-do-eww): New command.Stefan Kangas2022-07-031-0/+5
|
* Improve dired-do-{info,man} error handlingStefan Kangas2022-07-031-6/+6
| | | | | | * lisp/dired.el (dired-do-man, dired-do-info): Use 'dired-get-file-for-visit' to get better error handling. Interactive mode tagging.
* Make dired-jump repeatable in repeat-modeStefan Kangas2022-07-021-0/+5
| | | | | * lisp/dired.el (dired-jump-map): New variable. (dired-jump): Put 'repeat-map' property with 'dired-jump-map'.
* Move dired-info and dired-man from dired-x to diredStefan Kangas2022-07-021-0/+27
| | | | | | | | | | | | | | | | | | * lisp/dired-x.el (dired-bind-man, dired-bind-info): Change into defvars and make obsolete. (dired-extra-startup): Doc fix. (dired-info, dired-man): Move from here... * lisp/dired.el (dired-do-info, dired-do-man): ...to here and rename. (Bug#21981) * lisp/dired.el (dired-mode-map): Bind 'I' and 'N' to 'dired-do-info' and 'dired-do-man'. * doc/misc/dired-x.texi (Miscellaneous Commands): Remove documentation of 'dired-info' and 'dired-man'. * doc/emacs/dired.texi (Dired Enter): Document 'dired-do-info' and 'dired-do-man'. * etc/NEWS: Announce the above changes.
* Fix drag-and-drop of files with multibyte filenamesPo Lu2022-06-051-3/+3
| | | | | | | | | | | | | | | | | | | * lisp/dired.el (dired-mouse-drag): Fix re-signalling of errors. * lisp/select.el (xselect-convert-to-filename): (xselect-convert-to-text-uri-list): (xselect-convert-to-dt-netfile): Encode in raw-text-unix. * src/xgselect.c (suppress_xg_select, release_xg_select): New functions. (xg_select): Respect xg_select suppression by delegating to pselect. * src/xgselect.h: Update prototypes. * src/xterm.c (x_dnd_begin_drag_and_drop): Suppress xg_select during the nested event loop. (handle_one_xevent): Handle cases where hold_quit is nil inside a selection event handler during DND.
* Allow keyboard modifiers to control the action taken during dired DNDPo Lu2022-06-041-54/+81
| | | | | | | | | | | * doc/emacs/dired.texi (Misc Dired Features): Update documentation. * lisp/dired.el (dired-mouse-drag-files): Update defcustom for new values. (dired-mouse-drag): Recognize more values of `dired-mouse-drag-files' and keyboard modifiers. (dired-mouse-drag-files-map): Add C-down-mouse-1, M-down-mouse-1 and S-down-mouse-1.
* Fix dired drag and drop actionsPo Lu2022-06-031-4/+4
| | | | | * lisp/dired.el (dired-mouse-drag): Make `link' values work again.
* Allow dragging multiple files from a Dired bufferPo Lu2022-06-031-12/+37
| | | | | | | | | | | | | | | | | | | * doc/lispref/frames.texi (Drag and Drop): Document new function `dnd-begin-drag-files'. * lisp/dired.el (dired-mouse-drag-files): Update doc string. (dired-map-over-marks): Accept a new value of ARG `marked', meaning to not fall back to the current file if no marks were found. (dired-mouse-drag): Handle marked files in an intuitive way. * lisp/dnd.el (dnd-last-dragged-remote-file): Allow list values as well. (dnd-remove-last-dragged-remote-file): Handle list values. (dnd-begin-file-drag): Fix file name expansion. (dnd-begin-drag-files): New function. * lisp/select.el (xselect-convert-to-filename): Handle mutiple files (a vector of file names):.
* Add easier-to-use interfaces for initiating drag-and-dropPo Lu2022-06-031-42/+5
| | | | | | | | | | | | | | | | | The previous interface required that users know intricacies of the data types used to transfer data on each platform Emacs supports. * doc/lispref/frames.texi (Drag and Drop): Document new functions. * lisp/dired.el (dired-last-dragged-remote-file) (dired-remove-last-dragged-local-file): Delete functions. (dired-mouse-drag): Use `dnd-begin-file-drag'. * lisp/dnd.el (dnd-last-dragged-remote-file) (dnd-remove-last-dragged-remote-file): New variables and functions. (dnd-begin-text-drag, dnd-begin-file-drag): New functions. * src/xterm.c (x_dnd_begin_drag_and_drop): Add porting note.
* Clean up text/uri-list mess inside the Dired drag-and-drop codePo Lu2022-06-011-1/+9
| | | | | | | | | | | | | | | * doc/lispref/frames.texi (Window System Selections): * etc/NEWS: Document new changes to `gui-get-selection'. * lisp/dired.el (dired-mouse-drag): Specify text/uri-list value explicitly. * lisp/select.el (gui-set-selection): Update doc string. (xselect-convert-to-text-uri-list): Update to handle either a single URL (as a string) or a vector of URLs, instead of file names. (xselect-uri-list-available-p): Likewise. * src/xselect.c (x_get_local_selection): Look in tem's text properties (if it is a string) for a local value before using tem itself.
* Fix dired drag-and-drop for certain Motif programsPo Lu2022-05-281-1/+1
| | | | | | | | | | | | | * lisp/dired.el (dired-mouse-drag): Announce _DT_NETFILE in targets list as well. * lisp/select.el (xselect--encode-string): New arg `prefer-string-to-c-string'. (xselect-convert-to-filename): Convert to TEXT instead of C_STRING, but use STRING if the type would otherwise be C_STRING. (xselect-dt-netfile-available-p, xselect-tt-net-file) (xselect-convert-to-dt-netfile): New functions. (selection-converter-alist): New selection converter.
* Add file dragging support to NS portPo Lu2022-05-281-1/+1
| | | | | | | | | | * lisp/dired.el (dired-mouse-drag-files): Document that `dired-mouse-drag-files' now works on NS. * lisp/term/ns-win.el (x-begin-drag): Handle FILE_NAME. * src/nsselect.m (ns_decode_data_to_pasteboard): Handle file URL type. (ns_lisp_to_pasteboard, Fns_begin_drag): Handle new type `file'.
* Make `d' in Dired skip dot filesLars Ingebrigtsen2022-05-231-1/+5
| | | | | | * lisp/dired.el (dired-mark): Skip dot files (bug#38729). This makes `C-u 10 d' (etc) consistent with marking the next ten lines with the mouse and then hitting `d'.
* Give better error message in dired-toggle-read-only on nonexisting dirsLars Ingebrigtsen2022-04-271-0/+2
| | | | | * lisp/dired.el (dired-toggle-read-only): Refuse to edit non-existent directories (bug#23276).
* Merge from origin/emacs-28Eli Zaretskii2022-04-161-2/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | d53c999b4a Further vcs-cvs/rcs-responsible-p updates from master dc3d1628ec ; * src/sysdep.c: Fix mistake in previous commit 855e15dbf1 Fix builds on older versions of macOS 9da744e450 Fix documentation of Outline minor mode options a8bb12ab05 Improve discoverability of 'insert-directory-program' 3f166bdf44 ; * etc/PROBLEMS: Describe MS-Windows issues with fonts. ... 803ac857ee Fix cursor motion under truncate-lines with Flymake fringe... # Conflicts: # etc/PROBLEMS # lisp/outline.el # src/sysdep.c
| * Improve discoverability of 'insert-directory-program'Eli Zaretskii2022-04-151-2/+5
| | | | | | | | | | | | | | * lisp/files.el (insert-directory-program): Mention 'dired' in the doc string. * lisp/dired.el (dired): Mention 'insert-directory-program' in the doc string. (Bug#54962)
* | Merge from origin/emacs-28Eli Zaretskii2022-04-131-20/+35
|\| | | | | | | | | | | | | # Conflicts: # etc/NEWS # lisp/desktop.el # lisp/dired.el
| * dired: implement feature from 7b50ed553f differentlyTassilo Horn2022-03-301-20/+34
| | | | | | | | | | | | | | * lisp/dired.el (dired-buffers-for-dir): Restore to emacs-27 version. (dired-buffers-for-dir-or-subdir): New function. (dired-clean-up-after-deletion): Use dired-buffers-for-dir-or-subdir instead dired-buffers-for-dir.
| * Fix regression in 'dired-buffers-for-dir'Eli Zaretskii2022-03-301-1/+1
| | | | | | | | | | * lisp/dired.el (dired-buffers-for-dir): Fix inadvertently swapped arguments. (Bug#54636)
* | Fix clicking on files in Dired when drag is enabledPo Lu2022-04-121-31/+44
| | | | | | | | | | * lisp/dired.el (dired-mouse-drag): Don't drag if the mouse didn't move far enough.
* | * lisp/dired.el (dired-mouse-drag): Offer HOST_NAME as well.Po Lu2022-04-021-1/+1
| |
* | Make dropping files on Motif programs workPo Lu2022-04-011-2/+2
| | | | | | | | | | | | | | | | | | * lisp/dired.el (dired-mouse-drag): Announce "FILE" and "FILE_NAME" as targets as well. * lisp/select.el (xselect-convert-to-filename): Handle XdndSelection specially. (xselect-convert-to-xm-file): New function. (selection-converter-alist): Add new converters.
* | Remove local copies of remote files created for drag-and-dropPo Lu2022-03-301-2/+21
| | | | | | | | | | | | * lisp/dired.el (dired-mouse-drag): Remove last dragged remote file and save a record of any local copy created. (dired-remove-last-dragged-local-file): New function.