summaryrefslogtreecommitdiff
path: root/doc/emacs/files.texi
Commit message (Collapse)AuthorAge
* Merge from origin/emacs-29Eli Zaretskii2023-04-15
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5ef7ff05736 ; Start a new ChangeLog.4 file. 11126c6d30a Fix 'C-h k' for "Paste from Kill Menu" in context menus 74ddfe811f9 ; * doc/misc/calc.texi (Rewrites Tutorial): Fix a typo (b... 08cda286c3f Improve the documentation of the XDS support 14d1c00e806 Allow reindentation of images inserted by 'mm-inline-image' b63a9eda01c Fix "C-h k" and "C-h c" with Paste from Kill Menu b36c21e27dc Change cursor color on NS port when it matches the face b... 96714c106b7 Improve documentation of image-related commands 6a2863ca016 Fix handling of sliced images 5be79fd05a5 ; * etc/NEWS: Announce 'cyrillic-mongolian' IM. ca1a0fda98a ; Fix last change. ce63462dbda Add cyrillic-mongolian input method 58801792706 ; Minor addition to the Emacs FAQ 88847dee125 Jsonrpc: don't bind inhibit-read-only to t so early cb8c87a423a Allow active region when IM is used # Conflicts: # etc/NEWS
| * Improve documentation of image-related commandsEli Zaretskii2023-04-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/image.el (image-map): Make it inherit from 'image-slice-map' instead of repeating the bindings. * doc/emacs/files.texi (Image Mode): Document the key bindings set by 'insert-image'. Add indexing. * doc/lispref/display.texi (Showing Images): Make the description of user commands more concise. Add index entries and cross-reference to the Emacs manual. * etc/NEWS: Rearrange entries relevant to image commands.
* | New option 'diff-ignore-whitespace-switches'Robert Pluim2023-02-15
| | | | | | | | | | | | | | | | | | | | Allows specifying the switches to use when ignoring whitespace for those of us who don't like "-b". * lisp/vc/diff-mode.el (diff-ignore-whitespace-switches): New defcustom. (diff-refresh-hunk): Use it when ignoring whitespace. * doc/emacs/files.texi (Diff Mode): Describe the new option. * etc/NEWS: Announce the new option.
* | Teach 'diff-ignore-whitespace-hunk' how to regenerate all hunksRobert Pluim2023-02-15
| | | | | | | | | | | | | | | | | | | | | | | | | | This implements the request from Bug#58516. * lisp/vc/diff-mode.el (diff--ignore-whitespace-all-hunks): New function. Iterate over all hunks, regenerate ignoring whitespace changes. (diff-ignore-whitespace-hunk): Call `diff--ignore-whitespace-all-hunks' when called with a prefix arg. * doc/emacs/files.texi (Diff Mode): Describe new functionality. * etc/NEWS: Announce the change.
* | Merge from origin/emacs-29Stefan Kangas2023-01-30
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8360e12f0ea Update to Org 9.6.1-23-gc45a05 9058601308d ; * doc/emacs/misc.texi (Document View): Remove @footnote... 197f994384c Document tree-sitter features in the user manual b73539832d9 ; Remove treesit--font-lock-fast-mode-grace-count 64fee21d5f8 Fix dockerfile-ts-mode line continuation indentation (bug... 1970726e26a Use treesit-subtree-stat to determine treesit--font-lock-... 382e018856a Add treesit-subtree-stat a3003492ace Move c-ts-mode--statement-offset to c-ts-common.el 4b1714571c8 ; Fix byte-compile warnings in c-ts-mode.el f50cb7d7c4b ; Improve docstring of c-ts-mode--indent-style-setter 1c3ca3bb649 Fix <> syntax in rust-ts-mode 56e8607dc99 Fix spurious errors on Windows when deleting temporary *.... 2bd0b947538 Fix java class member without access modifier (bug#61115) 1de6ebf2878 Make treesit-font-lock-level a defcustom 6e50ee8bbb5 Add c-ts-mode-set-style and :set for c-ts-mode-indent-style 450db0587a9 Minor documentation improvements for outline-minor-mode (... 578e8926713 ; * doc/lispref/variables.texi (File Local Variables): Im... bc5ee2b7bf0 ; * src/comp.c: Remove Local Variables section to avoid w... 362678d90e1 python.el: Use correct regexp when enabling python-ts-mode 76bb46db9df ; * doc/emacs/frames.texi (Mouse References): Improve ind... # Conflicts: # doc/emacs/programs.texi # etc/NEWS # lisp/progmodes/c-ts-mode.el
| * Document tree-sitter features in the user manualEli Zaretskii2023-01-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/c-ts-mode.el (c-ts-mode-map): Bind "C-c .", for consistency with CC mode. * lisp/treesit.el (treesit-font-lock-level): Doc fix. * doc/emacs/programs.texi (C Indent, Custom C Indent): Document the indentation features of 'c-ts-mode'. (Moving by Defuns): Document 'treesit-defun-tactic'. * doc/emacs/files.texi (Visiting): Document 'treesit-max-buffer-size'. * doc/emacs/display.texi (Traditional Font Lock) (Parser-based Font Lock): New subsections. * doc/emacs/emacs.texi (Top): Update top-level menu.
* | Add remote-file-name-inhibit-delete-by-moving-to-trashMichael Albinus2023-01-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/files.texi (Misc File Ops): * doc/lispref/files.texi (Changing Files): * doc/misc/tramp.texi (Frequently Asked Questions): * etc/NEWS: Explain remote-file-name-inhibit-delete-by-moving-to-trash. * lisp/files.el (remote-file-name-inhibit-delete-by-moving-to-trash): New defcustom. (Bug#60460) * lisp/net/ange-ftp.el (ange-ftp-delete-file): * lisp/net/tramp.el (tramp-skeleton-delete-directory): Handle `remote-file-name-inhibit-delete-by-moving-to-trash'. (tramp-skeleton-delete-file): New defmacro. * lisp/net/tramp-adb.el (tramp-adb-handle-delete-file): * lisp/net/tramp-fuse.el (tramp-fuse-handle-delete-file): * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-delete-file): * lisp/net/tramp-sh.el (tramp-sh-handle-delete-file): * lisp/net/tramp-smb.el (tramp-smb-handle-delete-file): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-delete-file): Use it. * lisp/net/tramp-crypt.el (tramp-crypt-handle-delete-directory) (tramp-crypt-handle-delete-file): Rearrange. * lisp/net/tramp-fuse.el (tramp-fuse-handle-delete-directory): Use `tramp-skeleton-delete-directory'. * test/lisp/net/tramp-tests.el (remote-file-name-inhibit-delete-by-moving-to-trash): Declare. (tramp-test07-file-exists-p, tramp-test14-delete-directory) (tramp-test48-unload): Extend tests.
* | Improve interactive file-saving performancePaul Eggert2023-01-02
|/ | | | | | * src/fileio.c (init_fileio): No longer any need to set write-region-inhibit-fsync here. (syms_of_fileio): Default write-region-inhibit-fsync to t (Bug#60474).
* ; Add 2023 to copyright years.Eli Zaretskii2023-01-01
|
* Add image-transform-reset-to-original to manualStefan Kangas2022-09-15
| | | | | | * doc/emacs/files.texi (Image Mode): Add 'image-transform-reset-to-original'. Suggested by Juri Linkov <juri@linkov.net>.
* Rename image transform commands to be less confusingStefan Kangas2022-09-14
| | | | | | | | | | | | * lisp/image-mode.el (image-transform-original): Rename from this... (image-transform-reset-to-original): ...to this. Make old name into an obsolete function alias and update all callers. (image-transform-reset): Rename from this... (image-transform-reset-to-initial): ...to this. Make old name into an obsolete function alias and update all callers. (Bug#51451) * doc/emacs/files.texi (Image Mode): Update for above change.
* ; * doc/emacs/files.texi (Image Mode): Improve indexing.Stefan Kangas2022-09-14
|
* New command image-transform-set-percentStefan Kangas2022-08-18
| | | | | | * lisp/image-mode.el (image-transform-set-percent): New command. (image-mode-map): Bind above new command to "s p". * doc/emacs/files.texi (Image Mode): Document it.
* ; Fix typos in the manualJuri Linkov2022-07-13
|
* Tweak image-converter-add-handler interfaceLars Ingebrigtsen2022-07-13
| | | | | | * doc/emacs/files.texi (Image Mode): Adjust documentation. * lisp/image/image-converter.el (image-convert): Let the converter know whether it's a file or not.
* Add support for viewing "images" such as Krita (.kra) filesLars Ingebrigtsen2022-07-13
| | | | | | | | * doc/emacs/files.texi (Image Mode): Document it. * lisp/image/image-converter.el (image-converter-add-handler): New function (bug#48415). (image-convert): Use it.
* Clarify `version-control' in the Emacs manualMike Kupfer2022-06-30
| | | | | * doc/emacs/files.texi (Backup Names): Rephrase for greater clarity (bug#56291).
* ; Fix documentation of 'rename-visited-file'Eli Zaretskii2022-06-28
| | | | | | * etc/NEWS: Move to proper place and mark as documented. * doc/emacs/files.texi (Save Commands): Fix typo.
* Add new command `rename-visited-file'Zachary Kanfer2022-06-28
| | | | | | * doc/emacs/files.texi (Save Commands): Document it. * lisp/files.el (rename-visited-file): New command (bug#56229).
* New command recentf-openStefan Kangas2022-06-25
| | | | | | | | | | | * lisp/recentf.el (recentf-open): New command. (Bug#56148) (recentf): New alias. (recentf, recentf-mode): Update documentation to focus more on the list of recently opened files and ways of accessing it, instead of focusing on the menu bar only. (recentf-list, recentf-enabled-p): Minor doc fixes. * doc/emacs/files.texi (File Conveniences): Update documentation.
* Link find-sibling-file to ff-find-related-file in manualLars Ingebrigtsen2022-06-10
| | | | | * doc/emacs/files.texi (Visiting): Link to ff-find-related-file documentation.
* Add new command find-sibling-fileLars Ingebrigtsen2022-06-05
| | | | | | | * doc/emacs/files.texi (Visiting): Document it. * lisp/files.el (file-expand-wildcards): Fix up the regexp expansion. (find-sibling-rules, find-sibling-file): New user option and command. (find-sibling-file--search): New helper function.
* Merge from origin/emacs-28Stefan Kangas2022-02-19
|\ | | | | | | | | 57c112cfe5 ; * doc/emacs/files.texi (Comparing Files): Fix a reference. bdeac2d5af ; Fix a typo in filesets.el's doc string
| * ; * doc/emacs/files.texi (Comparing Files): Fix a reference.Philipp Stephani2022-02-18
| |
* | Add documentation on how to delete files from TrashLars Ingebrigtsen2022-02-12
| | | | | | | | | | * doc/emacs/files.texi (Misc File Ops): Note trick to make `D' work in Trash directories (bug#44059).
* | 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
| |
* | ; Refer to Repeating from compare-windows info nodeFilipp Gunbin2021-11-10
| | | | | | | | | | * doc/emacs/files.texi (Comparing Files): C-x z (`repeat') is very convenient to use with compare-windows, so refer to its node.
* | New command image-transform-fit-to-windowStefan Kangas2021-11-06
|/ | | | | | | | | | | | | | | | | * lisp/image-mode.el (image-auto-resize, image-transform-resize): Add new value 'fit-window', meaning to scale the image up or down to fit the window. (Bug#) (image-transform-fit-to-window): New command. (image-transform-fit-to-height, image-transform-fit-to-width): Make obsolete in favor of above new command. (image-mode-map): Bind "s w" to 'image-transform-fit-to-window'. Move binding for obsolete command 'image-transform-fit-to-width' to "s i". (image-mode-map): Add menu entry for 'image-transform-fit-to-window'. Remove menu entries for above obsolete commands. * doc/emacs/files.texi (Image Mode): Update documentation. (image-transform-fit-both): Doc fix.
* ; * doc/emacs/files.texi (Auto Save Files): Fix a typo.Eli Zaretskii2021-08-23
|
* Add new variable 'kill-buffer/delete-auto-save-files'Lars Ingebrigtsen2021-08-23
| | | | | | | | | | | | | | | * doc/emacs/files.texi (Auto Save Files): Document it. * lisp/cus-start.el (standard): Add customize form. * lisp/files.el (delete-auto-save-files): Move definition to C (since it's used in the C layer). * src/buffer.c (Fkill_buffer): Use the new variable (and remove the old code that apparently didn't trigger for kill-buffer/delete-auto-save-files. (syms_of_buffer): Add new variable kill-buffer-delete-auto-save-files and move definition of delete-auto-save-files here (bug#21612).
* Improve documentation of 'file-preserve-symlinks-on-save'Eli Zaretskii2021-08-21
| | | | | | | | | | | | * lisp/files.el (file-precious-flag): Mention 'file-preserve-symlinks-on-save' in the doc string. * doc/lispref/files.texi (Saving Buffers): Move the description of 'file-preserve-symlinks-on-save' from here... * doc/emacs/files.texi (Customize Save): ...to here. Improve wording. * etc/NEWS: Fix wording of 'file-preserve-symlinks-on-save' entry.
* Allow copy-directory to copy the source as a symlinkMarco Centurion2021-08-20
| | | | | | | | | | * doc/emacs/files.texi (Copying and Naming): Document it. * lisp/files.el (copy-directory): Allow copying symbolic links as is (bug#10897). (copy-directory-create-symlink): New user option. Copyright-paperwork-exempt: yes
* Add a new command `revert-buffer-quick'Lars Ingebrigtsen2021-08-10
| | | | | | | | | * doc/emacs/files.texi (Reverting): Document it. * lisp/bindings.el (ctl-x-x-map): Bind `C-x x g' to `revert-buffer-quick' instead. * lisp/files.el (revert-buffer-quick-short-answers): New user option. (revert-buffer-quick): New command (bug#49869).
* Add lock-file-modeMichael Albinus2021-07-16
| | | | | | | | | | * doc/emacs/files.texi (Interlocking): * doc/lispref/files.texi (File Locks): * etc/NEWS: Add lock-file-mode. * lisp/files.el (lock-file-name-transforms) (remote-file-name-inhibit-locks): Move down. (lock-file-mode): New minor mode.
* ; Fix wording of recent changes in documentationEli Zaretskii2021-07-16
| | | | | | * lisp/files.el (query-about-changed-file): * doc/emacs/files.texi (Visiting): * etc/NEWS: Fix the wording of a recent change. (Bug#10755)
* Add new user option 'query-about-changed-file'Lars Ingebrigtsen2021-07-16
| | | | | | * doc/emacs/files.texi (Visiting): Document it. * lisp/files.el (query-about-changed-file): New user option (bug#10775). (find-file-noselect): Use it.
* Add remote-file-name-inhibit-locksMichael Albinus2021-07-13
| | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/files.texi (Interlocking): * doc/lispref/files.texi (File Locks): * doc/misc/tramp.texi (Auto-save File Lock and Backup): Add remote-file-name-inhibit-locks. * etc/NEWS: New user option 'remote-file-name-inhibit-locks'. * lisp/files.el (remote-file-name-inhibit-locks): New defcustom. * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist): * lisp/net/tramp-crypt.el (tramp-crypt-file-name-handler-alist): * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): * lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler-alist): * lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist): * lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist): * lisp/net/tramp-sshfs.el (tramp-sshfs-file-name-handler-alist): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler-alist): Use `tramp-handle-make-lock-file-name'. * lisp/net/tramp.el (tramp-allow-unsafe-temporary-files): Fix docstring. (tramp-handle-make-lock-file-name): New defun. * test/lisp/net/tramp-tests.el (tramp-test39-lock-file): Extend test.
* Add new user option lock-file-name-transformsLars Ingebrigtsen2021-07-07
| | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/files.texi (Interlocking): Mention lock-file-name-transforms. * doc/lispref/files.texi (File Locks): Document lock-file-name-transforms. * doc/misc/efaq.texi (Not writing files to the current directory): Mention all the three variables needed to not having Emacs writing files to the current directory in one place. * lisp/files.el (lock-file-name-transforms): New user option (bug#49261). (make-auto-save-file-name): Factor out the main logic... (auto-save--transform-file-name): ... to this new function. (make-lock-file-name): New function that also calls the factored-out function. * src/filelock.c: Remove MAKE_LOCK_NAME and fill_in_lock_file_name. (make_lock_file_name): New utility function that calls out to Lisp to heed `lock-file-name-transforms'. (lock_file): Use it. Also remove likely buggy call to dostounix_filename. (unlock_file_body, Ffile_locked_p): Also use make_lock_file_name.
* Merge from origin/emacs-27Glenn Morris2021-03-18
|\ | | | | | | | | a7f95d5244 Remove duplicate @table item from ELisp manual be1b3512f7 Fix reference to 'diff-font-lock-syntax' in diff-mode docu...
| * Fix reference to 'diff-font-lock-syntax' in diff-mode documentationDaniel Martín2021-03-14
| | | | | | | | | | * doc/emacs/files.texi (Diff Mode): Add the omitted name of the variable. (Bug#47129)
| * Update copyright year to 2021Paul Eggert2021-01-01
| | | | | | | | Run "TZ=UTC0 admin/update-copyright $(git ls-files)".
* | Move 'revert-buffer' global binding to 'C-x g g'Sean Whitton2021-02-07
| | | | | | | | | | | | | | * lisp/bindings.el: Define ctl-x-g-map and bind 'revert-buffer' to 'C-x x g' globally. * doc/emacs/files.texi: Replace 'C-x g' with 'C-x x g'. * etc/NEWS: Document the change (bug#46300).
* | Bind 'revert-buffer' to 'C-x g' globallySean Whitton2021-02-02
| | | | | | | | | | | | * lisp/bindings.el: Bind 'revert-buffer' to 'C-x g' globally. * doc/emacs/files.texi: Replace 'M-x revert-buffer' with 'C-x g'. * etc/NEWS: Document the change (bug#46151).
* | Update copyright year to 2021Paul Eggert2021-01-01
| | | | | | | | Run "TZ=UTC0 admin/update-copyright".
* | Add a new command to regenerate a hunk in diff-modeDima Kogan2020-10-30
| | | | | | | | | | * lisp/vc/diff-mode.el (diff-refresh-hunk): New function (bug#44312). (diff-mode-map): Bind C-c C-l.
* | New command: revert-buffer-with-fine-grainMauro Aranda2020-09-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/files.texi (Reverting): Document the new command and the new variable. * etc/NEWS: Mention the new command and the new variable. * lisp/files.el (revert-buffer-with-fine-grain): New command. Revert a buffer trying to be non-destructive, by using replace-buffer-contents. (revert-buffer-insert-file-contents-delicately): New function, alternative to revert-buffer-insert-file-contents-function--default-function. (revert-buffer-with-fine-grain-max-seconds): New variable. Passed as argument MAX-SECS of replace-buffer-contents. * test/lisp/files-tests.el (files-tests-lao files-tests-tzu): Helper variables, taken from diffutils manual, to test reverting a buffer. (files-tests-revert-buffer) (files-tests-revert-buffer-with-fine-grain): New tests (bug#18).
* | Make 'n'/'p' in image mode buffers respect dired sortingLars Ingebrigtsen2020-08-06
|/ | | | | | | | | | | | | | | | | | | The commands now also now work on archive and tar mode parent buffers. * doc/emacs/files.texi (Image Mode): Document it. * lisp/arc-mode.el (archive-goto-file): New function (bug#38647). (archive-next-file-displayer): Ditto. * lisp/image-mode.el (image-next-file): Reimplement to work on displayed dired buffers and the like. This means that `n' and `p' now works on the displayed ordering in the dired buffer, so if you've reversed the sorting, `n' picks the right "next" file. (image-mode--directory-buffers): New function. (image-mode--next-file): Ditto. * lisp/tar-mode.el (tar-goto-file): New function. (tar-next-file-displayer): Ditto.
* Fix some Texinfo markupBasil L. Contovounesios2020-06-17
| | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/gnus-faq.texi (FAQ 3-11): * doc/emacs/frames.texi (Tab Bars): Consistently use @var with lower-case metasyntactic variables and @minus instead of a dash. (Text-Only Mouse): * doc/emacs/files.texi (Auto Revert): * doc/emacs/misc.texi (emacsclient Options) (Embedded WebKit Widgets): * doc/lispref/control.texi (pcase Macro): * doc/lispref/debugging.texi (Backtraces): * doc/lispref/files.texi (Truenames): * doc/lispref/frames.texi (Management Parameters): * doc/lispref/os.texi (Time Calculations): * doc/lispref/text.texi (Parsing JSON): * doc/misc/efaq-w32.texi (Other versions of Emacs, Debugging) (Swap Caps NT, Printing, Bash, Developing with Emacs): * doc/misc/efaq.texi (New in Emacs 25): * doc/misc/emacs-gnutls.texi (Help For Users): * doc/misc/message.texi (Using S/MIME, Passphrase caching): * test/manual/etags/tex-src/gzip.texi (Overview): Use @. when a sentence in the middle of a paragraph ends with an upper-case letter as per "(texinfo) Ending a Sentence".
* Fix recentf typo in Emacs manualBasil L. Contovounesios2020-06-17
| | | | | * doc/emacs/files.texi (File Conveniences): Fix misspelling of recentf-list.