1. 02 Sep, 2019 1 commit
  2. 01 Sep, 2019 1 commit
  3. 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.
      4118297a
  4. 27 Jul, 2019 1 commit
  5. 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.
      a5063aa8
  6. 15 Jul, 2019 1 commit
  7. 21 Jun, 2019 1 commit
  8. 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
      inhibit-nul-byte-detection.
      * src/w16select.c (get_clipboard_data): null_char => nul_char.
      * src/json.c (check_string_without_embedded_nuls): Rename from
      check_string_without_embedded_nulls.
      (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.
      76fea1eb
  9. 13 Mar, 2019 1 commit
  10. 09 Mar, 2019 1 commit
  11. 01 Jan, 2019 1 commit
  12. 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.
      2e8825d6
  13. 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
      ':file-handler'.
      (syms_of_process) <make-process, :file-handler>: Define new symbols.
      
      * lisp/files.el (file-name-non-special): Add support for
      'make-process'.
      
      * test/src/process-tests.el (make-process/file-handler/found)
      (make-process/file-handler/not-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'.
      039be4e0
    • 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.
      88b41c40
  14. 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.
      454f7923
  15. 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)
      (Ffile_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)
      (semanticdb-synchronize):
      * 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)
      (dired-create-files):
      * 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)
      (eshell-ls-entries):
      * lisp/eshell/em-pred.el (eshell-predicate-alist)
      (eshell-pred-file-type, eshell-pred-file-links)
      (eshell-pred-file-size):
      * lisp/eshell/em-unix.el (eshell-shuffle-files, eshell/cat)
      (eshell-du-sum-directory, eshell/du):
      * lisp/eshell/esh-util.el (eshell-read-passwd)
      (eshell-read-hosts):
      * 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)
      (read-file-modes):
      * 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)
      (gnus-agent-update-files-total-fetched-for)
      (gnus-agent-update-view-total-fetched-for):
      * lisp/gnus/gnus-cache.el (gnus-cache-read-active)
      (gnus-cache-update-file-total-fetched-for)
      (gnus-cache-update-overview-total-fetched-for):
      * 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)
      (gnus-master-read-slave-newsrc):
      * lisp/gnus/gnus-sum.el (gnus-summary-import-article):
      * lisp/gnus/gnus-util.el (gnus-file-newer-than)
      (gnus-cache-file-contents):
      * lisp/gnus/mail-source.el (mail-source-delete-old-incoming)
      (mail-source-callback, mail-source-movemail):
      * lisp/gnus/nneething.el (nneething-create-mapping)
      (nneething-make-head):
      * lisp/gnus/nnfolder.el (nnfolder-read-folder):
      * lisp/gnus/nnheader.el (nnheader-file-size)
      (nnheader-insert-nov-file):
      * lisp/gnus/nnmail.el (nnmail-activate):
      * lisp/gnus/nnmaildir.el (nnmaildir--group-maxnum)
      (nnmaildir--new-number, nnmaildir--update-nov)
      (nnmaildir--scan, nnmaildir-request-scan)
      (nnmaildir-request-update-info)
      (nnmaildir-request-expire-articles):
      * 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)
      (ido-file-name-all-completions):
      * lisp/image-dired.el (image-dired-get-thumbnail-image)
      (image-dired-create-thumb-1):
      * lisp/info.el (info-insert-file-contents):
      * lisp/ls-lisp.el (ls-lisp-insert-directory)
      (ls-lisp-handle-switches, ls-lisp-classify-file)
      (ls-lisp-format):
      * lisp/mail/blessmail.el:
      * lisp/mail/feedmail.el (feedmail-default-date-generator)
      (feedmail-default-message-id-generator):
      * lisp/mail/mailabbrev.el (mail-abbrevs-sync-aliases)
      (mail-abbrevs-setup):
      * 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)
      (ange-ftp-cf1):
      * 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)
      (vc-arch-diff3-rej-p):
      * 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)
      (org-file-newer-than-p):
      * lisp/org/ox-html.el (org-html-format-spec):
      * lisp/org/ox-publish.el (org-publish-find-date)
      (org-publish-cache-ctime-of-src):
      * 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)
      (speedbar-check-obj-this-line):
      * lisp/thumbs.el (thumbs-cleanup-thumbsdir):
      * lisp/time.el (display-time-mail-check-directory)
      (display-time-file-nonempty-p):
      * 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--ignore-patterns-valid-p)
      (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)
      (file-attribute-modification-time)
      (file-attribute-status-change-time):
      * lisp/net/tramp-compat.el:
      (tramp-compat-file-attribute-modification-time)
      (tramp-compat-file-attribute-size):
      * src/buffer.c (syms_of_buffer):
      * src/editfns.c (Fget_internal_run_time):
      * src/fileio.c (Fvisited_file_modtime)
      (Fset_visited_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
      extended.
      * 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.
      662bee7d
  16. 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)
      (system_process_attributes):
      * 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)
      (inotify_callback):
      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)
      (x_set_frame_parameters):
      * 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)
      (w32_console_toggle_lock_key):
      * src/w32inevt.c (key_event):
      * src/w32proc.c (Fw32_get_locale_info):
      Do not mishandle floats by treating their addresses as their
      values.
      * 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)
      (substitute_object_recurse):
      * 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):
      (x_send_client_event):
      Do not reject bignums.
      * src/data.c (INTBIG_TO_LISP, intbig_to_lisp)
      (uintbig_to_lisp):
      Remove.  All uses removed.
      * src/data.c (cons_to_unsigned, cons_to_signed):
      * src/dbusbind.c (xd_signature, xd_extract_signed)
      (xd_extract_unsigned):
      * 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)
      (FRAME_PIXEL_Y_FROM_CANON_Y):
      * src/image.c (parse_image_spec, x_edge_detection)
      (compute_image_size):
      * src/json.c (json_to_lisp):
      * src/lcms.c (PARSE_LAB_LIST_FIELD, Flcms_cie_de2000)
      (PARSE_XYZ_LIST_FIELD, PARSE_JCH_LIST_FIELD)
      (PARSE_JAB_LIST_FIELD, PARSE_VIEW_CONDITION_FLOAT)
      (Flcms_temp_to_white_point):
      * 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.
      (FIXED_OR_FLOATP, CHECK_FIXNUM_OR_FLOAT)
      (CHECK_FIXNUM_OR_FLOAT_COERCE_MARKER, INTEGER_TO_CONS)
      (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.
      d77d01d2
  17. 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.
      e65ec81f
  18. 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-test38-make-nearby-temp-file)
      (tramp-archive-test41-file-system-info)
      (tramp-archive-test43-auto-load)
      (tramp-archive-test43-delay-load): Rename.
      
      * test/lisp/net/tramp-tests.el (tramp-test34-exec-path): New test.
      (tramp-test36-make-auto-save-file-name)
      (tramp-test37-find-backup-file-name)
      (tramp-test38-make-nearby-temp-file)
      (tramp-test39-special-characters)
      (tramp-test39-special-characters-with-stat)
      (tramp-test39-special-characters-with-perl)
      (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.
      6f649e77
  19. 11 Jun, 2018 1 commit
  20. 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.
      9188291f
    • 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.
      99f92dab
  21. 09 Apr, 2018 1 commit
  22. 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.
      7a069f35
  23. 23 Feb, 2018 1 commit
  24. 31 Jan, 2018 1 commit
  25. 30 Jan, 2018 1 commit
  26. 29 Jan, 2018 1 commit
  27. 01 Jan, 2018 1 commit
  28. 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
      'grep-save-buffers'.
      (Drag and Drop): Reorder paragraphs.  Fix doc of
      'mouse-drag-and-drop-region'.
      * 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'.
      164e84c9
  29. 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
      permissions.
      ec08d70b
  30. 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.
      92045f45
  31. 24 Sep, 2017 2 commits
    • Eric Abrahamsen's avatar
      Accept new `always' value for option `buffer-offer-save' · 3d3778d8
      Eric Abrahamsen authored
      Also revert ee512e9a
      
      * lisp/files.el (buffer-offer-save): In addition to nil and t, now
        allows a third symbol value, `always'. A buffer where this option is
        set to `always' will always be offered for save by
        `save-some-buffers'.
        (save-some-buffers): Check the exact value of this buffer-local
        variable. No longer check the buffer name, or the value of
        `write-contents-functions'.
      * doc/lispref/buffers.texi (Killing Buffers): Note change in manual.
      * doc/lispref/files.texi (Saving Buffers): Remove note about buffer
        names.
      * etc/NEWS: Mention in NEWS.
      3d3778d8
    • Philipp Stephani's avatar
      Make FILENAME argument of 'file-name-base' mandatory · 1eb4e5c3
      Philipp Stephani authored
      * lisp/files.el (file-name-base): Make FILENAME argument mandatory.
      
      * lisp/autoinsert.el (auto-insert-alist):
      * lisp/progmodes/cperl-mode.el (cperl-electric-pod):
      * lisp/progmodes/idlwave.el (idlwave-parse-definition):
      * lisp/textmodes/reftex-ref.el (reftex-replace-prefix-escapes): Fix
      all callers.
      1eb4e5c3
  32. 18 Sep, 2017 1 commit
  33. 12 Sep, 2017 1 commit
    • Eric Abrahamsen's avatar
      Allow write-contents-functions to short-circuit buffer save · 9b980e26
      Eric Abrahamsen authored
      Bug#28412
      
      * lisp/files.el (basic-save-buffer): Re-arrange function so that
        write-contents-functions are run earlier. If they return non-nil,
        consider the buffer saved without requiring the buffer to be
        visiting a file.
        (save-some-buffers): This function should consider any buffer with a
        buffer-local value for write-contents-functions eligible for
        saving.
      * test/lisp/files-tests.el (files-test-no-file-write-contents): New
        test.
      * doc/lispref/files.texi (Saving Buffers): Mention in docs.
      * etc/NEWS: And in NEWS.
      9b980e26
  34. 11 Sep, 2017 1 commit
    • Paul Eggert's avatar
      Make copy-directory act like copy-file etc. · e2279486
      Paul Eggert authored
      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.
      e2279486
  35. 10 Sep, 2017 1 commit
    • Paul Eggert's avatar
      Fix race with rename-file etc. with dir NEWNAME · 01c885f2
      Paul Eggert authored
      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.
      01c885f2
  36. 09 Sep, 2017 1 commit
  37. 05 Sep, 2017 1 commit
    • Michael Albinus's avatar
      Doc precisment about remote link targets · 8d251607
      Michael Albinus authored
      * 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.
      8d251607