1. 27 May, 2020 1 commit
    • Glenn Morris's avatar
      Tiny texinfo markup fixes · bd7b681d
      Glenn Morris authored
      * doc/lispref/edebug.texi (Edebug Views):
      * doc/lispref/loading.texi (Library Search):
      * doc/lispref/os.texi (User Identification): Markup fixes.
  2. 01 Jan, 2020 1 commit
  3. 07 Dec, 2019 1 commit
  4. 01 Nov, 2019 1 commit
  5. 13 Oct, 2019 1 commit
  6. 12 Oct, 2019 1 commit
  7. 21 Sep, 2019 1 commit
    • Paul Eggert's avatar
      Revert too-picky file-access tests · d49d6ea9
      Paul Eggert authored
      Problem reported by Andreas Schwab (Bug#37475).
      * doc/lispref/files.texi (Writing to Files)
      (Testing Accessibility, Kinds of Files):
      Document that accessibility and file-type predicates return nil
      if there is trouble determining accessibility or type.
      * etc/NEWS: Adjust, and list the affected primitives.
      * src/callproc.c (init_callproc): Go back to Ffile_exists_p.
      * src/fileio.c (PICKY_EACCES, file_test_errno):
      Remove.  All uses removed.
      (Ffile_name_case_insensitive_p, Ffile_exists_p, Ffile_symlink_p)
      (Ffile_directory_p, Ffile_regular_p): Document that these
      functions return nil if there is trouble.
      (Ffile_name_case_insensitive_p, check_file_access)
      (Ffile_writable_p, Ffile_symlink_p, Ffile_directory_p)
      (Ffile_accessible_directory_p, Ffile_regular_p)
      * src/lread.c (Fload):
      Go back to treating trouble in determining the answer as if the
      file were missing.
      * src/fileio.c (Ffile_newer_than_file_p): Use file_attribute_errno
      not file_test_errno, since returning nil is not appropriate when
      there are two files to test; e.g., in the rare cases where both
      file timestamps have overflowed then neither t nor nil is correct.
  8. 18 Sep, 2019 1 commit
    • Paul Eggert's avatar
      Improve reporting of I/O, access errors · 9dc306b1
      Paul Eggert authored
      Signal an error for file-oriented errors that are not tame
      errors like ENOENT and ENOTDIR (Bug#37389).
      Do this for primitives exposed to Lisp; the lower
      level internal C API merely makes errno values available
      to higher-level C code.
      * doc/lispref/files.texi (Testing Accessibility)
      (File Attributes, Extended Attributes): Do not say that the
      functions return nil when the return value cannot be determined.
      * etc/NEWS: Mention the change.
      * src/dired.c (Ffile_attributes): Fix doc string confusion
      about opening a file vs getting its attributes.
      (file_attributes): Signal serious errors.
      * src/fileio.c (check_existing, check_executable)
      (check_writable): Remove.  All callers changed to use
      check_file_access or file_access_p.
      (file_access_p, file_metadata_errno, file_attribute_errno)
      (file_test_errno, check_file_access, check_emacs_readlinkat):
      New functions.
      * src/fileio.c (Ffile_executable_p, Ffile_readable_p)
      (Ffile_name_case_insensitive_p, Frename_file, Ffile_exists_p):
      (Ffile_symlink_p, Ffile_directory_p)
      (Ffile_accessible_directory_p, Ffile_regular_p)
      (Ffile_selinux_context, Ffile_acl, Ffile_modes)
      (Ffile_newer_than_file_p, Fset_visited_file_modtime)
      * src/filelock.c (unlock_file, Ffile_locked_p):
      * src/lread.c (Fload):
      Signal serious errors.
      * src/fileio.c (Ffile_writable_p): Remove unnecessary CHECK_STRING.
      (emacs_readlinkat): Now static.
      * src/filelock.c (current_lock_owner, lock_if_free): Return a
      positive errno on error, and the negative of the old old value
      on success.  All callers changed.
      * src/lread.c (openp): Propagate serious errno values to caller.
  9. 02 Sep, 2019 1 commit
  10. 01 Sep, 2019 1 commit
  11. 27 Aug, 2019 1 commit
    • Paul Eggert's avatar
      Use XDG conventions more consistently · 4118297a
      Paul Eggert authored
      Fit in better with the XDG conventions.
      Something like this was suggested in 2008 (Bug#583)
      and the XDG conventions seem to have settled down by now.
      * doc/emacs/custom.texi (Init File, Init Syntax, Find Init):
      * doc/lispref/files.texi (Standard File Names):
      * doc/lispref/os.texi (Init File):
      * doc/misc/url.texi (Customization):
      * etc/NEWS:
      Adjust accordingly.
      * lisp/startup.el (startup--load-user-init-file):
      If init-file-name is nil, do not load from it; instead
      just use the alt-file.
      (find-init-path): Remove; no longer used.
      (command-line): Don't check twice for XDG.
      Look at XDG_CONFIG_HOME instead of assuming it's ~/.config.
      Prefer XDG configuration if it exists; the user can disable
      this by setting XDG_CONFIG_HOME to some other place.
      * lisp/subr.el (user-emacs-directory):
      Prefer XDG configuration if it exists.
  12. 27 Jul, 2019 1 commit
  13. 24 Jul, 2019 1 commit
    • Paul Eggert's avatar
      Do not treat ~nosuchuser as an absolute file name · a5063aa8
      Paul Eggert authored
      Derived from Ken Brown’s patch (Bug#36502#97).
      * doc/lispref/files.texi (Relative File Names):
      * etc/NEWS: Document this.
      * src/fileio.c (user_homedir): New function.
      (Fexpand_file_name, file_name_absolute_p): Use it.
      (search_embedded_absfilename): Simplify via file_name_absolute_p.
      * test/src/fileio-tests.el (fileio-tests--no-such-user): New test.
  14. 15 Jul, 2019 1 commit
  15. 21 Jun, 2019 1 commit
  16. 22 Mar, 2019 1 commit
    • Stefan Monnier's avatar
      Fix misuses of NULL when talking about the NUL character · 76fea1eb
      Stefan Monnier authored
      * lisp/subr.el (inhibit-null-byte-detection): Make it an obsolete alias.
      * src/coding.c (setup_coding_system): Use new name.
      (detect_coding): Rename null_byte_found => nul_byte_found.
      (detect_coding_system): Use new name.
      Rename null_byte_found => nul_byte_found.
      (Fdefine_coding_system_internal): Use new name.
      (syms_of_coding): Rename inhibit-null-byte-detection to
      * src/w16select.c (get_clipboard_data): null_char => nul_char.
      * src/json.c (check_string_without_embedded_nuls): Rename from
      (Fjson_parse_string): Adjust accordingly.
      * src/coding.h (enum define_coding_undecided_arg_index)
      (enum coding_attr_index): ...null_byte... => ...nul_byte....
      * lisp/info.el (info-insert-file-contents, Info-insert-dir):
      * lisp/international/mule.el (define-coding-system):
      * lisp/vc/vc-git.el (vc-git--call):
      * doc/lispref/nonascii.texi (Lisp and Coding Systems): Use the new name.
  17. 13 Mar, 2019 1 commit
  18. 09 Mar, 2019 1 commit
  19. 01 Jan, 2019 1 commit
  20. 29 Dec, 2018 1 commit
    • Eli Zaretskii's avatar
      Improve documentation of 'file-local-name' and related APIs · 2e8825d6
      Eli Zaretskii authored
      * doc/lispref/files.texi (Unique File Names)
      (Magic File Names, File Name Expansion): Improve documentation
      of the "local part" of a remote file name.
      * doc/lispref/processes.texi (Synchronous Processes)
      (Asynchronous Processes): State explicitly that program and
      file names passed to functions that start remote processes
      need to be relative or obtained by 'file-local-name'.
      * lisp/files.el (file-local-name):
      * lisp/simple.el (start-file-process, process-file): Improve
      the documentation of the "local part" of a remote file name,
      and its use in APIs that start remote processes.
  21. 22 Dec, 2018 2 commits
    • Philipp Stephani's avatar
      Add file name handler support for 'make-process' (Bug#28691) · 039be4e0
      Philipp Stephani authored
      * src/process.c (Fmake_process): Add new keyword argument
      (syms_of_process) <make-process, :file-handler>: Define new symbols.
      * lisp/files.el (file-name-non-special): Add support for
      * test/src/process-tests.el (make-process/file-handler/found)
      (make-process/file-handler/disable): New unit tests.
      (process-tests--file-handler): New helper function.
      * test/lisp/files-tests.el
      (files-tests-file-name-non-special-make-process): New unit test.
      * doc/lispref/files.texi (Magic File Names): Document that
      'make-process' can invoke file name handlers.
      * doc/lispref/processes.texi (Asynchronous Processes): Document
      ':file-handlers' argument to 'make-process'.
      * etc/NEWS (Lisp Changes in Emacs 27.1): Mention new
      :file-handler argument for 'make-process'.
    • Michael Albinus's avatar
      Use "file name handler" consequently · 88b41c40
      Michael Albinus authored
      * doc/lispref/files.texi:
      * doc/lispref/processes.texi:
      * doc/misc/ediff.texi:
      * lisp/simple.el:
      * lisp/vc/ediff-ptch.el:
      * src/buffer.c:
      * src/dired.c:
      * src/fileio.c:
      * src/image.c:
      * src/insdel.c:
      * src/w32fns.c: Use "file name handler" consequently.
  22. 14 Nov, 2018 1 commit
    • Paul Eggert's avatar
      Document recent change to HOME handling · 454f7923
      Paul Eggert authored
      * doc/emacs/cmdargs.texi (General Variables):
      * doc/emacs/custom.texi (Find Init):
      * doc/lispref/files.texi (File Name Expansion):
      * etc/NEWS: Document behavior when HOME is a relative file name.
  23. 24 Sep, 2018 1 commit
    • Paul Eggert's avatar
      file-attributes cleanup · 662bee7d
      Paul Eggert authored
      Mostly, this replaces magic-number calls like (nth 4 A) with
      more-informative calls like (file-attribute-access-time A).
      It also fixes some documentation and minor timestamp coding
      issues that I noticed while looking into this.
      * doc/lispref/files.texi (File Attributes):
      * lisp/files.el (file-attribute-size)
      (file-attribute-inode-number, file-attribute-device-number):
      * src/dired.c (Fdirectory_files_and_attributes)
      Mention which attributes must be integers, or nonnegative integers,
      as opposed to merely being numbers.  Remove no-longer-correct
      talk about representing large integers as conses of integers.
      * doc/lispref/files.texi (Magic File Names):
      * doc/misc/gnus.texi (Low-level interface to the spam-stat dictionary):
      * lisp/autorevert.el (auto-revert-find-file-function)
      (auto-revert-tail-mode, auto-revert-handler):
      * lisp/auth-source.el (auth-source-netrc-parse):
      * lisp/cedet/ede/files.el (ede--inode-for-dir):
      * lisp/cedet/semantic/db-file.el (object-write):
      * lisp/cedet/semantic/db-mode.el (semanticdb-kill-hook):
      * lisp/cedet/semantic/db.el (semanticdb-needs-refresh-p)
      * lisp/cedet/srecode/table.el (srecode-mode-table-new):
      * lisp/desktop.el (desktop-save, desktop-read):
      * lisp/dired-aux.el (dired-file-set-difference)
      (dired-do-chxxx, dired-do-chmod, dired-copy-file-recursive)
      * lisp/dired.el (dired-directory-changed-p, dired-readin):
      * lisp/dos-w32.el (w32-direct-print-region-helper):
      * lisp/emacs-lisp/autoload.el (autoload-generate-file-autoloads)
      (autoload-find-destination, update-directory-autoloads):
      * lisp/emacs-lisp/shadow.el (load-path-shadows-same-file-or-nonexistent):
      * lisp/epg.el (epg--start, epg-wait-for-completion):
      * lisp/eshell/em-ls.el (eshell-ls-filetype-p)
      (eshell-ls-applicable, eshell-ls-size-string)
      (eshell-ls-file, eshell-ls-dir, eshell-ls-files)
      * lisp/eshell/em-pred.el (eshell-predicate-alist)
      (eshell-pred-file-type, eshell-pred-file-links)
      * lisp/eshell/em-unix.el (eshell-shuffle-files, eshell/cat)
      (eshell-du-sum-directory, eshell/du):
      * lisp/eshell/esh-util.el (eshell-read-passwd)
      * lisp/files.el (remote-file-name-inhibit-cache)
      (find-file-noselect, insert-file-1, dir-locals-find-file)
      (dir-locals-read-from-dir, backup-buffer)
      (file-ownership-preserved-p, copy-directory)
      * lisp/find-lisp.el (find-lisp-format):
      * lisp/gnus/gnus-agent.el (gnus-agent-unfetch-articles)
      (gnus-agent-read-agentview, gnus-agent-expire-group-1)
      (gnus-agent-request-article, gnus-agent-regenerate-group)
      * lisp/gnus/gnus-cache.el (gnus-cache-read-active)
      * lisp/gnus/gnus-cloud.el (gnus-cloud-file-new-p):
      * lisp/gnus/gnus-score.el (gnus-score-score-files):
      * lisp/gnus/gnus-start.el (gnus-save-newsrc-file)
      * lisp/gnus/gnus-sum.el (gnus-summary-import-article):
      * lisp/gnus/gnus-util.el (gnus-file-newer-than)
      * lisp/gnus/mail-source.el (mail-source-delete-old-incoming)
      (mail-source-callback, mail-source-movemail):
      * lisp/gnus/nneething.el (nneething-create-mapping)
      * lisp/gnus/nnfolder.el (nnfolder-read-folder):
      * lisp/gnus/nnheader.el (nnheader-file-size)
      * lisp/gnus/nnmail.el (nnmail-activate):
      * lisp/gnus/nnmaildir.el (nnmaildir--group-maxnum)
      (nnmaildir--new-number, nnmaildir--update-nov)
      (nnmaildir--scan, nnmaildir-request-scan)
      * lisp/gnus/nnmh.el (nnmh-request-list-1)
      (nnmh-request-expire-articles, nnmh-update-gnus-unreads):
      * lisp/gnus/nnml.el (nnml-request-expire-articles):
      * lisp/gnus/spam-stat.el (spam-stat-save, spam-stat-load)
      (spam-stat-process-directory, spam-stat-test-directory):
      * lisp/ido.el (ido-directory-too-big-p)
      * lisp/image-dired.el (image-dired-get-thumbnail-image)
      * lisp/info.el (info-insert-file-contents):
      * lisp/ls-lisp.el (ls-lisp-insert-directory)
      (ls-lisp-handle-switches, ls-lisp-classify-file)
      * lisp/mail/blessmail.el:
      * lisp/mail/feedmail.el (feedmail-default-date-generator)
      * lisp/mail/mailabbrev.el (mail-abbrevs-sync-aliases)
      * lisp/mail/mspools.el (mspools-size-folder):
      * lisp/mail/rmail.el (rmail-insert-inbox-text):
      * lisp/mail/sendmail.el (sendmail-sync-aliases):
      * lisp/mh-e/mh-alias.el (mh-alias-tstamp):
      * lisp/net/ange-ftp.el (ange-ftp-parse-netrc)
      (ange-ftp-write-region, ange-ftp-file-newer-than-file-p)
      * lisp/net/eudcb-mab.el (eudc-mab-query-internal):
      * lisp/net/eww.el (eww-read-bookmarks):
      * lisp/net/netrc.el (netrc-parse):
      * lisp/net/newst-backend.el (newsticker--image-get):
      * lisp/nxml/rng-loc.el (rng-get-parsed-schema-locating-file):
      * lisp/obsolete/fast-lock.el (fast-lock-save-cache):
      * lisp/obsolete/vc-arch.el (vc-arch-state)
      * lisp/org/ob-eval.el (org-babel--shell-command-on-region):
      * lisp/org/org-attach.el (org-attach-commit):
      * lisp/org/org-macro.el (org-macro-initialize-templates):
      * lisp/org/org.el (org-babel-load-file)
      * lisp/org/ox-html.el (org-html-format-spec):
      * lisp/org/ox-publish.el (org-publish-find-date)
      * lisp/pcmpl-gnu.el (pcomplete/tar):
      * lisp/pcmpl-rpm.el (pcmpl-rpm-packages):
      * lisp/play/cookie1.el (cookie-snarf):
      * lisp/progmodes/cmacexp.el (c-macro-expansion):
      * lisp/ps-bdf.el (bdf-file-mod-time):
      * lisp/server.el (server-ensure-safe-dir):
      * lisp/simple.el (shell-command-on-region):
      * lisp/speedbar.el (speedbar-item-info-file-helper)
      * lisp/thumbs.el (thumbs-cleanup-thumbsdir):
      * lisp/time.el (display-time-mail-check-directory)
      * lisp/url/url-cache.el (url-is-cached):
      * lisp/url/url-file.el (url-file-asynch-callback):
      * lisp/vc/diff-mode.el (diff-delete-if-empty):
      * lisp/vc/pcvs-info.el (cvs-fileinfo-from-entries):
      * lisp/vc/vc-bzr.el (vc-bzr-state-heuristic):
      * lisp/vc/vc-cvs.el (vc-cvs-checkout-model)
      (vc-cvs-state-heuristic, vc-cvs-merge-news)
      (vc-cvs-retrieve-tag, vc-cvs-parse-status, vc-cvs-parse-entry):
      * lisp/vc/vc-hg.el (vc-hg--slurp-hgignore-1)
      (vc-hg--cached-dirstate-search, vc-hg-state-fast):
      * lisp/vc/vc-hooks.el (vc-after-save):
      * lisp/vc/vc-rcs.el (vc-rcs-workfile-is-newer):
      * lisp/vc/vc-svn.el (vc-svn-merge-news, vc-svn-parse-status):
      * lisp/vc/vc.el (vc-checkout, vc-checkin, vc-revert-file):
      * lisp/xdg.el (xdg-mime-apps):
      Prefer (file-attribute-size A) to (nth 7 A), and similarly
      for other file attributes accessors.
      * doc/lispref/files.texi (File Attributes):
      * doc/lispref/intro.texi (Version Info):
      * doc/lispref/os.texi (Idle Timers):
      * lisp/erc/erc.el (erc-string-to-emacs-time):
      * lisp/files.el (file-attribute-access-time)
      * lisp/net/tramp-compat.el:
      * src/buffer.c (syms_of_buffer):
      * src/editfns.c (Fget_internal_run_time):
      * src/fileio.c (Fvisited_file_modtime)
      * src/keyboard.c (Fcurrent_idle_time):
      * src/process.c (Fprocess_attributes):
      Defer implementation details about timestamp format to the
      section that talks about timestamp format, to make it easier
      to change the documentation later if timestamp formats are
      * lisp/gnus/gnus-util.el (gnus-file-newer-than):
      * lisp/speedbar.el (speedbar-check-obj-this-line):
      * lisp/vc/vc-rcs.el (vc-rcs-workfile-is-newer):
      Prefer time-less-p to doing it by hand.
      * lisp/ls-lisp.el (ls-lisp-format): Inode numbers are no longer conses.
      * lisp/vc/vc-bzr.el (vc-bzr-state-heuristic):
      Use eql, not eq, to compare integers that might be bignums.
      * lisp/org/ox-publish.el (org-publish-cache-ctime-of-src):
      Prefer float-time to doing time arithmetic by hand.
  24. 28 Aug, 2018 1 commit
    • Paul Eggert's avatar
      Improve bignum support for system types · d77d01d2
      Paul Eggert authored
      Use bignums when Emacs converts to and from system types like
      off_t for file sizes whose values can exceed fixnum range.
      Formerly, Emacs sometimes generted floats and sometimes ad-hoc
      conses of integers.  Emacs still accepts floats and conses for
      these system types, in case some stray Lisp code is generating
      them, though this usage is obsolescent.
      * doc/lispref/files.texi (File Attributes):
      * doc/lispref/hash.texi (Defining Hash):
      * doc/lispref/nonascii.texi (Character Sets):
      * doc/lispref/os.texi (User Identification):
      * doc/lispref/processes.texi (System Processes):
      * etc/NEWS:
      Document changes.
      * src/bignum.c (mpz_set_uintmax, make_biguint)
      (mpz_set_uintmax_slow, bignum_to_intmax, bignum_to_uintmax):
      New functions.
      (mpz_set_intmax_slow): Implement via mpz_limbs_write,
      to avoid the need for an extra pass through a negative number.
      * src/charset.c (Fencode_char):
      * src/composite.h (LGLYPH_SET_CODE):
      * src/dired.c (file_attributes):
      * src/dosfns.c, src/w32.c (list_system_processes)
      * src/editfns.c (init_editfns, Fuser_uid, Fuser_real_uid)
      (Fgroup_gid, Fgroup_real_gid, Femacs_pid):
      * src/emacs-module.c (check_vec_index):
      * src/fns.c (Fsafe_length):
      * src/process.c (record_deleted_pid, Fprocess_id):
      * src/sysdep.c (list_system_processes, system_process_attributes):
      * src/xselect.c (x_own_selection, selection_data_to_lisp_data):
      * src/xterm.c (set_wm_state):
      * src/inotify.c (inotifyevent_to_event, add_watch)
      If an integer is out of fixnum range, use a bignum
      instead of converting it to a float or a cons of integers.
      * src/coding.c (Fdefine_coding_system_internal):
      * src/frame.c (frame_windows_min_size)
      * src/fringe.c (Fdefine_fringe_bitmap):
      * src/nsterm.m (mouseDown:):
      * src/syntax.c (find_defun_start):
      * src/w32fns.c (x_set_undecorated, w32_createwindow)
      (w32_wnd_proc, Fx_create_frame, Fx_show_tip)
      * src/w32inevt.c (key_event):
      * src/w32proc.c (Fw32_get_locale_info):
      Do not mishandle floats by treating their addresses as their
      * src/data.c (store_symval_forwarding):
      * src/gnutls.c (Fgnutls_error_fatalp, Fgnutls_error_string):
      * src/keyboard.c (command_loop_1, make_lispy_event):
      * src/lread.c (read_filtered_event, read1)
      * src/window.c (Fcoordinates_in_window_p, Fwindow_at)
      (window_resize_apply, Fset_window_vscroll):
      * src/xdisp.c (handle_single_display_spec, try_scrolling)
      (redisplay_window, calc_pixel_width_or_height)
      (calc_line_height_property, on_hot_spot_p):
      * src/xfaces.c (check_lface_attrs):
      * src/xselect.c (x_get_local_selection, cons_to_x_long)
      (lisp_data_to_selection_data, clean_local_selection_data)
      (x_check_property_data, x_fill_property_data):
      Do not reject bignums.
      * src/data.c (INTBIG_TO_LISP, intbig_to_lisp)
      Remove.  All uses removed.
      * src/data.c (cons_to_unsigned, cons_to_signed):
      * src/dbusbind.c (xd_signature, xd_extract_signed)
      * src/dispnew.c (sit_for):
      * src/dosfns.c, src/w32.c (system_process_attributes):
      * src/editfns.c (Fuser_full_name):
      * src/fileio.c (file_offset):
      * src/fileio.c (write_region):
      * src/font.c (font_unparse_xlfd, font_open_for_lface, Fopen_font):
      * src/frame.c (x_set_screen_gamma):
      * src/frame.h (NUMVAL, FRAME_PIXEL_X_FROM_CANON_X)
      * src/image.c (parse_image_spec, x_edge_detection)
      * src/json.c (json_to_lisp):
      * src/lcms.c (PARSE_LAB_LIST_FIELD, Flcms_cie_de2000)
      * src/nsimage.m (ns_load_image, setSizeFromSpec):
      * src/process.c (Fsignal_process, handle_child_signal):
      * src/sysdep.c (system_process_attributes):
      * src/xdisp.c (calc_line_height_property):
      Handle bignums.
      * src/data.c (Fnumber_to_string): Use proper predicate name in
      signal if the argument is not a number.
      * src/lisp.h (make_uint): New function.
      (INT_TO_INTEGER): New macro.
      (make_fixnum_or_float): Remove; no longer used.
      * src/nsfns.m, src/w32fns.c, src/xfns.c (Fx_create_frame):
      Reject floating-point min-width or min-height.
      * src/process.c (handle_child_signal): Do not worry
      about floating-point pids, as they are no longer generated.
  25. 02 Aug, 2018 1 commit
    • Tino Calancha's avatar
      New commands to create an empty file · e65ec81f
      Tino Calancha authored
      Similarly as `create-directory', `dired-create-directory',
      the new commands create the parent dirs as needed (Bug#24150).
      * lisp/files.el (make-empty-file): New command.
      * lisp/dired-aux.el (dired-create-empty-file): New command.
      (dired--find-topmost-parent-dir): New function extracted
      from `dired-create-directory'.
      (dired-create-directory, dired-create-empty-file): Use it.
      * lisp/dired.el (dired-mode-map):
      Add menu entry for `dired-create-empty-file'.
      * doc/emacs/dired.texi (Misc Dired Features)
      * doc/lispref/files.texi (Create/Delete Dirs): Update manual.
      ; * etc/NEWS: Announce the changes.
  26. 20 Jun, 2018 1 commit
    • Michael Albinus's avatar
      Implement command completion in remote shells. (Bug#31704) · 6f649e77
      Michael Albinus authored
      * doc/lispref/files.texi (Locating Files): Describe optional
      argument REMOTE of `executable-find'.
      (Magic File Names): Add `exec-path'.
      * doc/lispref/processes.texi (Subprocess Creation): Describe
      function `exec-path'.
      * doc/misc/tramp.texi (Remote programs): Explain refresh of search
      paths by `tramp-cleanup-this-connection'.
      * etc/NEWS: Mention 'exec-path' and 'executable-find'.
      * lisp/files.el (exec-path): New defun.
      (executable-find): Add optional argument REMOTE.
      * lisp/shell.el (shell-completion-vars): Set `comint-file-name-prefix'.
      (shell--command-completion-data): Use `(exec-path)'.  (Bug#31704)
      * lisp/net/ange-ftp.el (exec-path):
      * lisp/net/tramp.el (tramp-file-name-for-operation):
      * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist):
      * lisp/net/tramp-archive.el (tramp-archive-file-name-handler-alist):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-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)
      <exec-path>: Add handler.
      * lisp/net/tramp-adb.el (tramp-adb-handle-exec-path): New defun.
      (tramp-adb-maybe-open-connection): Do not set "remote-path"
      connection property.
      * lisp/net/tramp-compat.el (tramp-compat-exec-path): New defun.
      * lisp/net/tramp-sh.el (tramp-sh-handle-exec-path): New defun.
      * lisp/net/tramp.el (tramp-eshell-directory-change): Use it.
      * test/lisp/net/tramp-archive-tests.el
      (tramp-archive-test43-delay-load): Rename.
      * test/lisp/net/tramp-tests.el (tramp-test34-exec-path): New test.
      (tramp-test39-special-characters-with-ls, tramp-test40-utf8)
      (tramp-test40-utf8-with-stat, tramp-test40-utf8-with-perl)
      (tramp-test40-utf8-with-ls, tramp-test41-file-system-info)
      (tramp-test42-asynchronous-requests, tramp-test43-auto-load)
      (tramp-test43-delay-load, tramp-test43-recursive-load)
      (tramp-test43-remote-load-path, tramp-test44-unload): Rename.
  27. 11 Jun, 2018 1 commit
  28. 01 Jun, 2018 2 commits
    • Robert Pluim's avatar
      Add detailed documentation about lock files · 9188291f
      Robert Pluim authored
      * doc/emacs/files.texi (Interlocking): Point user at detailed
      file locking description in lisp reference manual.  Add index
      entry for '.#' to improve disoverability of information about locking.
      * doc/lispref/files.texi (File Locks): Describe in detail what
      the form of the lock file is.  Add index entry for '.#' to
      improve disoverability of information about locking.
      * src/filelock.c (create-lockfiles): Add cross reference to
      file locking in user manual and to 'lock-buffer'.  Add string
      '.#' to help users find the doc string.
    • Eli Zaretskii's avatar
      Improve documentation of 'directory-files-and-attributes' · 99f92dab
      Eli Zaretskii authored
      * doc/lispref/files.texi (Contents of Directories): Fix inaccurate
      description of the return value of directory-files-and-attributes.
      * src/dired.c (Fdirectory_files_and_attributes): Describe the
      function's value in more detail.
  29. 09 Apr, 2018 1 commit
  30. 25 Feb, 2018 1 commit
    • Michael Albinus's avatar
      Fix @kindex entries in manuals · 7a069f35
      Michael Albinus authored
      * doc/emacs/basic.texi:
      * doc/emacs/buffers.texi:
      * doc/emacs/building.texi:
      * doc/emacs/calendar.texi:
      * doc/emacs/custom.texi:
      * doc/emacs/dired.texi:
      * doc/emacs/display.texi:
      * doc/emacs/files.texi:
      * doc/emacs/frames.texi:
      * doc/emacs/help.texi:
      * doc/emacs/indent.texi:
      * doc/emacs/killing.texi:
      * doc/emacs/kmacro.texi:
      * doc/emacs/mark.texi:
      * doc/emacs/mini.texi:
      * doc/emacs/misc.texi:
      * doc/emacs/modes.texi:
      * doc/emacs/msdos-xtra.texi:
      * doc/emacs/msdos.texi:
      * doc/emacs/mule.texi:
      * doc/emacs/picture-xtra.texi:
      * doc/emacs/programs.texi:
      * doc/emacs/regs.texi:
      * doc/emacs/rmail.texi:
      * doc/emacs/screen.texi:
      * doc/emacs/search.texi:
      * doc/emacs/sending.texi:
      * doc/emacs/text.texi:
      * doc/emacs/trouble.texi:
      * doc/lispref/files.texi:
      * doc/misc/calc.texi:
      * doc/misc/cc-mode.texi:
      * doc/misc/ediff.texi:
      * doc/misc/epa.texi:
      * doc/misc/ert.texi:
      * doc/misc/eww.texi:
      * doc/misc/forms.texi:
      * doc/misc/gnus.texi:
      * doc/misc/info.texi:
      * doc/misc/mairix-el.texi:
      * doc/misc/message.texi:
      * doc/misc/mh-e.texi:
      * doc/misc/newsticker.texi:
      * doc/misc/org.texi:
      * doc/misc/pcl-cvs.texi:
      * doc/misc/rcirc.texi:
      * doc/misc/sc.texi:
      * doc/misc/sieve.texi:
      * doc/misc/vhdl-mode.texi:
      * doc/misc/vip.texi:
      * doc/misc/viper.texi:
      * doc/misc/woman.texi: Fix @kindex entries.  Mark keys consistently.
  31. 23 Feb, 2018 1 commit
  32. 31 Jan, 2018 1 commit
  33. 30 Jan, 2018 1 commit
  34. 29 Jan, 2018 1 commit
  35. 01 Jan, 2018 1 commit
  36. 22 Dec, 2017 1 commit
    • Martin Rudalics's avatar
      Fix uses of 'nil' and 'non-nil' in manuals and a few more minor issues · 164e84c9
      Martin Rudalics authored
      * doc/emacs/building.texi (Grep Searching): Fix doc of
      (Drag and Drop): Reorder paragraphs.  Fix doc of
      * doc/emacs/frames.texi (Word and Line Mouse):
      * doc/emacs/search.texi (Other Repeating Search):
      * doc/lispref/compile.texi (Compilation Functions):
      * doc/lispref/files.texi (Directory Names):
      * doc/lispref/functions.texi (Advising Named Functions):
      * doc/lispref/keymaps.texi (Controlling Active Maps):
      * doc/lispref/lists.texi (Association Lists):
      * doc/lispref/windows.texi (Quitting Windows): Fix uses of
      'non-nil' and 'nil'.
  37. 27 Oct, 2017 1 commit
    • Eli Zaretskii's avatar
      Improve documentation of set-default-file-modes · ec08d70b
      Eli Zaretskii authored
      * src/fileio.c (Fset_default_file_modes): Doc fix.  (Bug#28875)
      * doc/lispref/files.texi (Changing Files): Clarify how the bits in
      the argument of set-default-file-modes are used for setting file
  38. 03 Oct, 2017 1 commit
    • Michael Albinus's avatar
      Add file name handler support for file-system-info · 92045f45
      Michael Albinus authored
      * doc/lispref/files.texi (Magic File Names): Add file-system-info.
      * etc/NEWS: Mention get-free-disk-space working on remote systems.
      * lisp/files.el (get-free-disk-space): Do not block on remote systems.
      * src/w32fns.c (Ffile_system_info):
      * src/fileio.c (Ffile_system_info): Call file name handler if exists.
      (syms_of_fileio): Add Qfile_system_info.