aboutsummaryrefslogtreecommitdiffstats
path: root/doc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Make copy-directory act like copy-file etc.Paul Eggert2017-09-102-6/+7
| | | | | | | | | | Do the special dance with the destination only if it is a directory name, for consistency with copy-file etc. (Bug#27986). * doc/emacs/files.texi (Copying and Naming): * doc/lispref/files.texi (Create/Delete Dirs): * etc/NEWS: Document this. * lisp/files.el (copy-directory): Treat NEWNAME as special only if it is a directory name.
* Fix race with rename-file etc. with dir NEWNAMEPaul Eggert2017-09-102-5/+6
| | | | | | | | | | | | | | | | | | | | This changes the behavior of rename-file etc. slightly. The old behavior mostly disagreed with the documentation, and had a race condition bug that could allow attackers to modify victims' write-protected directories (Bug#27986). * doc/lispref/files.texi (Changing Files): Document that in rename-file etc., NEWFILE is special if it is a directory name. * etc/NEWS: Document the change in behavior. * src/fileio.c (directory_like): Remove. All uses removed. (expand_cp_target): Test only whether NEWNAME is a directory name, not whether it is currently a directory. This avoids a race. (Fcopy_file, Frename_file, Fadd_name_to_file, Fmake_symbolic_link): Document behavior if NEWNAME is a directory name. (Frename_file): Simplify now that the destdir behavior occurs only when NEWNAME is a directory name. * test/lisp/net/tramp-tests.el (tramp-test11-copy-file) (tramp-test12-rename-file, tramp--test-check-files): Adjust tests to match new behavior.
* Spelling fixesPaul Eggert2017-09-101-1/+1
| | | | | | * lisp/progmodes/cc-langs.el: (c-ambiguous-overloadable-or-identifier-prefixes): Rename from c-ambiguous-overloadable-or-identifier-prefices. Caller changed.
* Merge from gnulibPaul Eggert2017-09-101-6/+18
| | | | | | | | | | | | | This incorporates: 2017-09-08 stddef: Avoid conflict with system-defined max_align_t 2017-08-24 warnings: fix compilation with old autoconf 2017-08-23 glob: merge from glibc with Zanella glob changes 2017-08-17 random: Fix test compilation failure on Cygwin 1.5.25 * doc/misc/texinfo.tex, lib/flexmember.h, lib/stddef.in.h: * lib/stdlib.in.h, m4/manywarnings.m4, m4/stdlib_h.m4: * m4/warnings.m4: Copy from Gnulib. * lib/gnulib.mk.in: Regenerate.
* Be more consistent about "directory name" in manualPaul Eggert2017-09-0927-98/+105
| | | | | This clarifies the documentation, partly in response to the discussion in Bug#27986.
* Clarification in tramp-texiMichael Albinus2017-09-091-12/+0
| | | | | * doc/misc/tramp.texi (Connection caching): Two connections are regarded as different now when they differ in the port number only.
* Remove obsolete vc-mistrust-permissions docPaul Eggert2017-09-071-14/+1
| | | | | * doc/emacs/vc1-xtra.texi (RCS and SCCS): Remove documentation for vc-mistrust-permissions, which no longer exists.
* Fix a minor markup problem in ELisp manualEli Zaretskii2017-09-061-2/+2
| | | | | | * doc/lispref/functions.texi (Mapping Functions): Fix the order of @example and @group. For the details, see http://lists.gnu.org/archive/html/bug-texinfo/2017-09/msg00007.html.
* Doc precisment about remote link targetsMichael Albinus2017-09-051-2/+10
| | | | | | | | | | * doc/lispref/files.texi (Truenames): Explain handling of targets of `file-truename' and `make-symbolic-link', which look like a remote file name. * etc/NEWS: Precise examples for symlinks which look like remote file names. MUSTBENEW of `write-region' is not propagated to file name handlers.
* Remove an opinionated section on "What Eshell is not"John Wiegley2017-09-051-18/+0
| | | | | | I don't find this information to accurately reflect possible use cases for Eshell; plus, it doesn't offer much in the way of information, just opinion.
* Work on Tramp's (symbolic) linksMichael Albinus2017-09-041-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/tramp.texi (Traces and Profiles): Mention the backtrace when tramp-verbose is greater than or equal to 10. * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist): Use `tramp-handle-add-name-to-file'. * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): Use `tramp-handle-add-name-to-file' and `tramp-handle-file-truename'. * lisp/net/tramp-sh.el (tramp-sh-handle-make-symbolic-link): Improve. * lisp/net/tramp-smb.el (tramp-smb-errors): Add "NT_STATUS_CONNECTION_DISCONNECTED" and "NT_STATUS_OBJECT_PATH_SYNTAX_BAD". (tramp-smb-file-name-handler-alist): Use `tramp-handle-file-truename'. (tramp-smb-do-file-attributes-with-stat): Return non-nil only if one of the attributes is non-nil. (tramp-smb-handle-file-local-copy): Use `file-truename'. (tramp-smb-handle-file-truename): Move to tramp.el. (tramp-smb-handle-insert-directory): Show symlinks. (tramp-smb-handle-make-symbolic-link): Improve. (tramp-smb-read-file-entry): Handle extended file modes in Samba. * lisp/net/tramp.el (tramp-handle-add-name-to-file) (tramp-handle-file-truename): New defuns. * test/lisp/net/tramp-tests.el (tramp-test21-file-links): Extend test. (tramp--test-check-files): Make check for "smb".
* Rewrite Antinews for Emacs 26Eli Zaretskii2017-09-024-257/+257
| | | | | | | | | | | * doc/lispref/anti.texi (Antinews): Rewrite for Emacs 26. * doc/lispref/elisp.texi (Top): Update the top-level menu's Antinews entry. * doc/emacs/anti.texi (Antinews): Rewrite for Emacs 26. * doc/emacs/emacs.texi (Top): Update the top-level menu's Antinews entry. * etc/NEWS: Rearrange some entries in a more reasonable order.
* Add support for arguments in emacsclient's ALTERNATE_EDITOR (Bug #25082)Reuben Thomas2017-08-302-4/+6
| | | | | | | | | | | | | | | | * lib-src/emacsclient.c (fail): Parse ALTERNATE_EDITOR, or corresponding command-line argument, into quote- or space-separated tokens. If a token starts with a quote, then it naturally is expected to end with a quote; escaping is not supported. This is enough to cope with the typical case of requiring the initial path to be quoted, common on Windows where it may contain spaces. * etc/NEWS: Document. * doc/emacs/misc.texi: Likewise. * doc/man/emacsclient.1: Tweak to remove the implication that only an editor can be specified (the manual already mentions a “command”). Fix a small error where “EDITOR” is referred to rather than “ALTERNATE_EDITOR”. * test/lib-src/emacsclient-tests.el: Add tests.
* Sync NEWS with the documentationEli Zaretskii2017-08-301-5/+25
| | | | | | * etc/NEWS: Mark entries according to documentation. * doc/lispref/functions.texi (Mapping Functions): Document 'mapcan'.
* Document '--module-assertions'Eli Zaretskii2017-08-292-0/+13
| | | | | | | | | * doc/emacs/cmdargs.texi (Initial Options): Document the '--module-assertions' command-line option. * doc/lispref/loading.texi (Dynamic Modules): Add a cross-reference to the description of '--module-assertions'. * etc/NEWS: Update the NEWS entry for --module-assertions.
* Minor improvement in documentation of display-line-numbersEli Zaretskii2017-08-291-0/+9
| | | | | * doc/emacs/display.texi (Display Custom): Document the display-line-numbers-mode and related options.
* Update Org to v9.0.10Rasmus2017-08-291-67/+360
| | | | | Please see etc/ORG-NEWS for major changes. Note, this is a bugfix release.
* Do not munge contents of local symbolic linksPaul Eggert2017-08-262-6/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | This lets Emacs deal with arbitrary local symlinks without mishandling their contents (Bug#28156). For example, (progn (shell-command "ln -fs '~' 'x'") (rename-file "x" "/tmp/x")) now consistently creates a symbolic link from '/tmp/x' to '~'. Formerly, it did that only if the working directory was on the same filesystem as /tmp; otherwise, it expanded the '~' to the user's home directory. * lisp/dired.el (dired-get-filename): Use files--name-absolute-system-p instead of rolling our own code. * lisp/files.el (files--name-absolute-system-p): New function. (file-truename, file-chase-links): Use it to avoid mishandling symlink contents that begin with ~. (copy-directory, move-file-to-trash): Use concat rather than expand-file-name, to avoid mishandling symlink contents that begin with ~. * src/fileio.c (Fmake_symbolic_link): Do not expand leading "~" in the target unless interactive. Strip leading "/:" if interactive. (emacs_readlinkat): Do not prepend "/:" to the link target if it starts with "/" and contains ":" before NUL. * test/src/fileio-tests.el (try-link): Rename from try-char, and accept a string instead of a char. All uses changed. (fileio-tests--symlink-failure): Also test leading ~, and "/:", to test the new behavior.
* Improve doc for file-name-absolute-p.Paul Eggert2017-08-261-1/+1
|
* Improve expand-file-name docPaul Eggert2017-08-253-23/+26
| | | | | | | | | | | * doc/lispref/files.texi (Relative File Names, Directory Names) (File Name Expansion): * doc/lispref/minibuf.texi (Reading File Names): Document expand-file-name behavior with ~ more clearly and accurately. * doc/misc/org.texi (Batch execution): Simplify example script so that it does not need expand-file-name and thus will not mishandle file names with leading ~.
* ; * doc/lispref/files.texi (File Attributes): Add missing word.Noam Postavsky2017-08-251-1/+1
|
* Fix file-attributes race on GNU hostsPaul Eggert2017-08-251-0/+7
| | | | | | | | | | | | | * doc/lispref/files.texi (File Attributes): Document file-attributes atomicity. * etc/NEWS: Document the fix. * src/dired.c (file_attributes): New args DIRNAME and FILENAME, for diagnostics. All callers changed. On platforms like GNU/Linux that support O_PATH, fix a race condition in file-attributes and similar functions, so that these functions do not return nonsense if a directory entry is replaced while getting its attributes. On non-GNU platforms, do a better (though not perfect) job of detecting the race, and return nil if detected.
* Minor improvements for tramp-interrupt-process, documentationMichael Albinus2017-08-241-0/+16
| | | | | | | | | | | | | * doc/lispref/processes.texi (Signals to Processes): * etc/NEWS: Document interrupt-process-functions. * lisp/net/tramp.el (tramp-interrupt-process): Test also for `process-live-p'. * src/process.c (Vinterrupt_process_functions): Fix docstring. * test/lisp/net/tramp-tests.el (tramp-test28-interrupt-process): Extend test.
* Add ability to change macOS WM theme (bug#27973)Alan Third2017-08-231-0/+14
| | | | | | | | | | | | | | | | | | | | | | | * src/frame.c (make_frame, frame_parms, syms_of_frame) [NS_IMPL_COCOA]: Add ns-appearance and ns-transparent-titlebar options. * src/frame.h (ns_appearance_type) [NS_IMPL_COCOA]: Add enum to represent NSAppearance options. (struct frame) [NS_IMPL_COCOA]: Add ns_appearance and ns_transparent_titlebar frame parameters. * src/nsfns.m (ns_frame_parm_handlers) [NS_IMPL_COCOA]: Add ns_set_appearance and ns_set_transparent_titlebar handlers. (Sx_create_frame): Handle ns-appearance and ns-transparent-titlebar frame parameters. (Qdark): Add new symbol for use with ns-appearance. * src/nsterm.h (ns_set_appearance, ns_set_transparent_titlebar) [NS_IMPL_COCOA]: Add prototypes. * src/nsterm.m (ns_set_appearance, ns_set_transparent_titlebar) [NS_IMPL_COCOA]: New functions. (initFrameFromEmacs) [NS_IMPL_COCOA]: Handle ns-appearance and ns-transparent-titlebar frame parameters. * doc/lispref/frames.texi (Window Management Parameters): Document ns-apperance and ns-transparent-titlebar.
* ; Fix typo in lisprefMark Oteiza2017-08-201-1/+1
| | | | * doc/lispref/variables.texi (Using Lexical Binding): Append an s.
* Document Enchant supportReuben Thomas2017-08-202-11/+15
| | | | | | * doc/emacs/fixit.texi: Mention Enchant. * doc/misc/efaq.texi: Likewise. * etc/NEWS: Add an item on Enchant support.
* Don’t adjust CRLF in file namesPaul Eggert2017-08-191-2/+2
| | | | | | | | | | | | | * doc/misc/gnus.texi (Non-ASCII Group Names): * etc/NEWS: * test/lisp/net/tramp-tests.el (tramp--test-utf8): Use utf-8-unix, not utf-8, for default-file-name-coding-system, so that CRLF in file names is left alone. * lisp/international/mule-cmds.el (set-default-coding-systems): Do not alter CRLF in file name coding systems. (prefer-coding-system): Ignore differences in CRLF processing when checking whether we used the user-specified file name coding system. * test/src/fileio-tests.el: New file.
* Fix one more issue reported by Alex (Bug#27999)Martin Rudalics2017-08-191-3/+3
| | | | | | * doc/lispref/windows.texi (Preserving Window Sizes) (Window Parameters): Use the term `window-preserved-size' instead of `preserved-size' (Bug#27999).
* Fix two side window problems noted by Alex (Bug#27999)Martin Rudalics2017-08-191-6/+6
| | | | | | | | | | | * lisp/window.el (display-buffer-in-side-window): Fix doc-string typo. (delete-other-windows): Rename the `no-delete-other-window' parameter to `no-delete-other-windows' (see the discussion in Bug#27999 for the rationale of this change). * doc/lispref/windows.texi (Deleting Windows) (Frame Layouts with Side Windows, Window Parameters): Rename `no-delete-other-window' to `no-delete-other-windows'.
* Clarify behavior of symlinks and directoriesPaul Eggert2017-08-191-43/+80
| | | | | | | * doc/lispref/files.texi (Saving Buffers): Document how functions like rename-file work with symlinks and directories. This patch attempts to document the current behavior better, in preparation for possibly changing it. See Bug#27986.
* Fix and document make-temp-file optional text parameterTed Zlatanov2017-08-181-2/+5
| | | | | | | | * lisp/files.el (make-temp-file): Fix initial TEXT parameter. (files--make-magic-temp-file): Support optional TEXT parameter. * etc/NEWS: Document it. * doc/lispref/files.texi: Document it. * test/lisp/auth-source-tests.el: Minor reformat.
* ; Minor copyedits in manuals.Eli Zaretskii2017-08-182-7/+11
| | | | | | | * doc/lispref/variables.texi (Lexical Binding): The future is here. * doc/emacs/files.texi (Copying and Naming): Use @w{..} around constructs that could be split between lines, but shouldn't.
* * doc/emacs/files.texi (Copying and Naming): Avoid confusing texi2pdf.Glenn Morris2017-08-171-7/+5
|
* * doc/emacs/files.texi (Copying and Naming): MentionMichael Albinus2017-08-161-3/+4
| | | | | restrictions to add-name-to-file and make-symbolic-link on remote systems.
* New manual section "Copying and Naming"Paul Eggert2017-08-153-57/+69
| | | | | | | | | | * doc/emacs/files.texi (Copying and Naming): New section, split off from Misc File Ops and containing the operations that copy, name or rename files. This fixes some confusion caused by the incorrect phrase "The same rule applies to all the remaining commands in this section" in the old manual. This change does not affect the confusion about directories (see Bug#27986 for ongoing discussion).
* Be consistent in spelling 'ok-if-already-exists'.Paul Eggert2017-08-131-2/+2
|
* Document internal-use naming conventionsPaul Eggert2017-08-122-0/+19
| | | | | | | * doc/lispref/functions.texi (Function Names): * doc/lispref/variables.texi (Tips for Defining): Document naming conventions for internal-use functions and vars. See Bug#28023#59.
* Add new face 'header-line-highlight'Alexander Gramiak2017-08-121-0/+6
| | | | | | | | * lisp/faces.el: Define the face. * lisp/emacs-lisp/tabulated-list.el (tabulated-list-init-header): * lisp/info.el (Info-fontify-node): Use the new face. * doc/emacs/display.texi (Standard Faces): * etc/NEWS: Document the new face. (Bug#28033)
* Document make-temp-name magic limitationsPaul Eggert2017-08-081-4/+5
| | | | | | * doc/lispref/files.texi (Unique File Names): * src/fileio.c (Fmake_temp_name): Document that make-temp-name does not guarantee uniqueness on magic file names.
* Show number of errors in compilation-mode mode-lineTom Tromey2017-08-071-0/+4
| | | | | | | | | | | | | | | | | | Bug#25354 * lisp/progmodes/compile.el (compilation-num-errors-found): Provide default value. (compilation-num-warnings-found, compilation-num-infos-found): New defvars. (compilation-mode-line-errors): New defconst. (compilation-face): Remove. (compilation-type, compilation--note-type): New functions. (compilation-parse-errors): Call compilation--note-type. (compilation-start): Include compilation-mode-line-errors in mode-line-process. (compilation-setup): Initialize compilation-num-* variables to 0. (compilation-handle-exit): Include compilation-mode-line-errors in mode-line-process. * doc/emacs/building.texi (Compilation): Document new feature.
* Allow async command output buffer to be shown only on outputReuben Thomas2017-08-071-0/+5
| | | | | | | | | | | | * lisp/simple.el (async-shell-command-display-buffer): Add defcustom. (shell-command): Use the new defcustom to determine whether to show the buffer immediately, or add a process filter that shows it only when there is some output. * etc/NEWS: Document the new variable. * doc/emacs/misc.texi: Likewise. Thanks to Juri Linkov and Eli Zaretskii for advice and guidance.
* dired-do-delete: Allow to delete dirs recursively without promptsTino Calancha2017-08-061-0/+8
| | | | | | | | | | | | | | * lisp/dired.el (dired-delete-file): Accept 2 additional answers: 'all', to delete all directories recursively and no prompt anymore. 'quit', to cancel directory deletions (Bug#27940). Show help message when user inputs 'help'. (dired-do-flagged-delete): Bind locally dired-recursive-deletes so that we can overwrite its global value. Wrapp the loop within a catch '--delete-cancel to catch when the user abort the directtry deletion. * doc/emacs/dired.texi (Dired Deletion): Update manual. * etc/NEWS (Changes in Specialized Modes and Packages in Emacs 26.1): Announce this change.
* Default to --with-mailutils if it is installedPaul Eggert2017-08-021-1/+1
| | | | | | * configure.ac (with_mailutils): Default to 'yes' if GNU Mailutils is installed. See: http://lists.gnu.org/archive/html/emacs-devel/2017-08/msg00054.html
* Dired: Handle posix wildcards in directory partTino Calancha2017-07-301-4/+16
| | | | | | | | | | | | | | | | | | | | | | Allow Dired to handle calls like \(dired \"~/foo/*/*.el\"), that is, with wildcards within the directory part of the file argument (Bug#27631). * lisp/files.el (insert-directory-wildcard-in-dir-p): New predicate. (insert-directory-clean): New defun extracted from insert-directory. (insert-directory) * lisp/dired.el (dired-internal-noselect) (dired-insert-directory): Use the new predicate; when it's true, handle the directory wildcards with a shell call. * lisp/eshell/em-ls.el (eshell-ls-use-in-dired): Add/remove both advices. (eshell-ls-unload-hook): New defun. Use it in eshell-ls-unload-hook instead of an anonymous function. (eshell-ls--dired) * lisp/ls-lisp.el (ls-lisp--dired): Advice dired to handle wildcards in the directory part with both eshell-ls and ls-lisp. * etc/NEWS: Announce it. * doc/emacs/dired.texi (Dired Enter): Update manual. * test/lisp/dired-tests.el (dired-test-bug27631): Add test.
* Improve documentation of 'occur'Eli Zaretskii2017-07-291-0/+4
| | | | | | * doc/emacs/search.texi (Other Repeating Search): * lisp/replace.el (occur): Make the documentation of 'occur' be more accurate when matches overlap. (Bug#27818)
* Clarify documentation of ':inherit' face attributeEli Zaretskii2017-07-291-1/+3
| | | | | * doc/lispref/display.texi (Face Attributes): Document the special treatment of 'unspecified' in the ':inherit' attribute.
* New commands 'apropos-local-variable', 'apropos-local-value'Drew Adams2017-07-281-0/+9
| | | | | | | | | * lisp/apropos.el (apropos-local-variable, apropos-local-value): New functions. (Bug#27424) * doc/emacs/help.texi (Apropos): Document 'apropos-local-variable' and 'apropos-local-value'. * etc/NEWS: Mention the new commands.
* * doc/lispref/loading.texi (When to Autoload): New section.Glenn Morris2017-07-261-0/+40
|
* register-read-with-preview: Quit if user input C-g or ESCTino Calancha2017-07-251-1/+4
| | | | | | | * lisp/register.el (register-read-with-preview): Quit if user input C-g or ESC (bug#27634). * doc/emacs/regs.texi (Registers): Update manual. * test/lisp/register-tests.el (register-test-bug27634): Add test.
* * doc/emacs/frames.texi (Fonts): Mention Gsettings.Glenn Morris2017-07-221-1/+2
|