1. 11 Sep, 2017 12 commits
    • Eli Zaretskii's avatar
      Update documentation of 'max-lisp-eval-depth' · 4c57eda5
      Eli Zaretskii authored
      * doc/lispref/eval.texi (Eval): Update the documented default
      value of 'max-lisp-eval-depth'.
      4c57eda5
    • Eli Zaretskii's avatar
      Another place to produce debugging output in etags · 7fb03a28
      Eli Zaretskii authored
      * lib-src/etags.c (Ruby_functions): One more place to print
      debugging output under --debug.
      7fb03a28
    • Eli Zaretskii's avatar
      Improve documentation of etags-related features · e33234ab
      Eli Zaretskii authored
      * doc/emacs/maintaining.texi (Looking Up Identifiers): Document
      'xref-prompt-for-identifier'.  (Bug#28403)
      (Etags Regexps): Document \D back references in etags regexps.
      e33234ab
    • Alan Third's avatar
      Fix macOS compatibility versions for vibrant dark theme (bug#28415) · aa4bb9de
      Alan Third authored
      * src/nsterm.m (ns_set_appearance, EmacsView::initFrameFromEmacs):
      Change macOS compatibility from 10.9 to 10.10.
      aa4bb9de
    • Michael Albinus's avatar
      Further optimization in Tramp's file name decomposition · 70045452
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-syntax): Recompute all file name
      components.  Call `custom-set-variables' after loading.
      (tramp-build-prefix-format, tramp-build-prefix-regexp)
      (tramp-build-method-regexp)
      (tramp-build-postfix-method-format)
      (tramp-build-postfix-method-regexp)
      (tramp-build-prefix-ipv6-format)
      (tramp-build-prefix-ipv6-regexp)
      (tramp-build-postfix-ipv6-format)
      (tramp-build-postfix-ipv6-regexp)
      (tramp-build-postfix-host-format)
      (tramp-build-postfix-host-regexp)
      (tramp-build-file-name-regexp)
      (tramp-build-completion-file-name-regexp): New defuns.
      (tramp-prefix-format, tramp-prefix-regexp)
      (tramp-method-regexp, tramp-postfix-method-format)
      (tramp-postfix-method-regexp, tramp-prefix-ipv6-format)
      (tramp-prefix-ipv6-regexp, tramp-postfix-ipv6-format)
      (tramp-postfix-ipv6-regexp, tramp-postfix-host-format)
      (tramp-postfix-host-regexp)
      (tramp-remote-file-name-spec-regexp)
      (tramp-file-name-structure, tramp-file-name-regexp)
      (tramp-completion-file-name-regexp): Convert defuns into defvars.
      (tramp-prefix-regexp-alist)
      (tramp-postfix-method-regexp-alist)
      (tramp-prefix-ipv6-regexp-alist)
      (tramp-postfix-ipv6-regexp-alist)
      (tramp-postfix-host-regexp-alist)
      (tramp-remote-file-name-spec-regexp-alist): Remove.
      (tramp-build-remote-file-name-spec-regexp)
      (tramp-build-file-name-structure): Simplify.
      (tramp-completion-file-name-regexp-alist): New defconst.
      (tramp-tramp-file-p, tramp-dissect-file-name)
      (tramp-make-tramp-file-name)
      (tramp-completion-make-tramp-file-name)
      (tramp-rfn-eshadow-update-overlay-regexp)
      (tramp-register-file-name-handlers)
      (tramp-completion-handle-file-name-all-completions)
      (tramp-completion-dissect-file-name, tramp-clear-passwd):
      * lisp/net/tramp-ftp.el (tramp-ftp-file-name-handler):
      * lisp/net/tramp-sh.el (tramp-sh-handle-vc-registered)
      (tramp-compute-multi-hops): Use variables but functions for
      file name components.
      
      * test/lisp/net/tramp-tests.el (tramp-test24-file-name-completion):
      Use variables but functions for file name components.
      70045452
    • Paul Eggert's avatar
      Port tramp-tests to new copy-directory behavior · 29963648
      Paul Eggert authored
      * test/lisp/net/tramp-tests.el (tramp-test15-copy-directory):
      Use directory name as arg for copy-directory when we want
      the special behavior.
      29963648
    • Paul Eggert's avatar
      Adjust thumbs to new rename-file behavior · 2aa02882
      Paul Eggert authored
      * etc/NEWS: Mention this.
      * lisp/thumbs.el (thumbs-rename-images): Treat the destination
      as special only if it is a directory name.  When there is
      a marked list, turn the destination into a directory name
      if it is not already.
      2aa02882
    • Paul Eggert's avatar
      Adjust ob-tangle to new copy-file behavior · 74b8615f
      Paul Eggert authored
      * lisp/org/ob-tangle.el (org-babel-tangle-publish):
      Port to new copy-file behavior.
      74b8615f
    • Paul Eggert's avatar
      Make gnus-copy-file act like copy-file etc. · 739593d6
      Paul Eggert authored
      * etc/NEWS: Mention this.
      * lisp/gnus/gnus-util.el (gnus-copy-file): Treat the destination
      as special only if it is a directory name.
      739593d6
    • Paul Eggert's avatar
      Make write-file act like copy-file etc. · 61946d99
      Paul Eggert authored
      Change write-file to be consistent with the new behavior
      of copy-file, etc.
      * etc/NEWS: Mention this.
      * lisp/files.el (write-file): Treat the destination as special
      only if it is a directory name.
      61946d99
    • 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
    • Paul Eggert's avatar
      Fix some make-directory bugs · cf9891e1
      Paul Eggert authored
      * lisp/files.el (files--ensure-directory): New function.
      (make-directory): Use it to avoid bugs when (make-directory FOO t)
      is invoked on a non-directory, or on a directory hierarchy that
      is being built by some other process while Emacs is running.
      * test/lisp/files-tests.el (files-tests--make-directory): New test.
      cf9891e1
  2. 10 Sep, 2017 10 commits
    • 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
    • Eli Zaretskii's avatar
      Extend --debug printouts in etags · 52739ffe
      Eli Zaretskii authored
      * lib-src/etags.c (regex_tag_multiline, readline): Under
      "--debug", print tags found via regexps.
      52739ffe
    • Eli Zaretskii's avatar
      Add --debug option to etags · 4b86cf56
      Eli Zaretskii authored
      * lib-src/etags.c (make_tag): Print found tags under --debug.
      (longopts): Add --debug.
      4b86cf56
    • Paul Eggert's avatar
      Spelling fixes · cdef84fb
      Paul Eggert authored
      * lisp/progmodes/cc-langs.el:
      (c-ambiguous-overloadable-or-identifier-prefixes): Rename from
      c-ambiguous-overloadable-or-identifier-prefices.  Caller changed.
      cdef84fb
    • Mark Oteiza's avatar
      ; Add to last commit · 4973788c
      Mark Oteiza authored
      * lisp/xdg.el (xdg-desktop-entry-regexp): Add a commented capture group
      for future reference.
      4973788c
    • Eli Zaretskii's avatar
      ; * configure.ac: Fix last change. · 6ae84563
      Eli Zaretskii authored
      6ae84563
    • Paul Eggert's avatar
      Merge from gnulib · b079ee72
      Paul Eggert authored
      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.
      b079ee72
    • Ken Brown's avatar
      Implement renameat_noreplace on recent Cygwin · c990f8d9
      Ken Brown authored
      * src/sysdep.c [CYGWIN]: Include cygwin/fs.h.
      (renameat_noreplace) [RENAME_NOREPLACE]: Use renameat2.
      (Bug#27986)
      c990f8d9
    • Eli Zaretskii's avatar
      Avoid warnings about file names in autoloads on MS-Windows · 43779f9b
      Eli Zaretskii authored
      * configure.ac (srcdir) [mingw32]: Downcase the drive letter, to
      avoid warnings from find-file-noselect when making autoloads.  For
      the details, see
      http://lists.gnu.org/archive/html/emacs-devel/2017-09/msg00049.html.
      43779f9b
    • Mark Oteiza's avatar
      Avoid looking at localized strings · e7165389
      Mark Oteiza authored
      * lisp/xdg.el (xdg-desktop-read-group): Add condition to catch
      localized strings.
      * test/lisp/xdg-tests.el (xdg-desktop-parsing): Add test to ensure
      parsing l10n strings doesn't error but is essentially a no-op.
      e7165389
  3. 09 Sep, 2017 15 commits
    • Paul Eggert's avatar
      * etc/NEWS.25: Document 25.3 changes. · 3ef0c164
      Paul Eggert authored
      3ef0c164
    • Lars Ingebrigtsen's avatar
      Remove unsafe enriched mode translations · 19584f13
      Lars Ingebrigtsen authored
      * lisp/gnus/mm-view.el (mm-inline-text):
      Do not worry about enriched or richtext type.
      * lisp/textmodes/enriched.el (enriched-translations):
      Remove translations for FUNCTION, display (Bug#28350).
      (enriched-handle-display-prop, enriched-decode-display-prop): Remove.
      19584f13
    • Paul Eggert's avatar
      Be more consistent about "directory name" in manual · 743b95cc
      Paul Eggert authored
      This clarifies the documentation, partly in response to the
      discussion in Bug#27986.
      743b95cc
    • Eli Zaretskii's avatar
      Remove more compilation warnings in MinGW64 build · ad7ba0fb
      Eli Zaretskii authored
      * src/w32.c (faccessat, map_w32_filename):
      * src/w32fns.c (w32_wnd_proc):
      * src/w32term.c (w32_horizontal_scroll_bar_handle_click)
      (w32_scroll_bar_handle_click): Use FALLTHROUGH to avoid compiler
      warnings with GCC 7 and later.
      ad7ba0fb
    • Paul Eggert's avatar
      Improve --enable-gcc-warnings for MinGW64 · d6312354
      Paul Eggert authored
      This partially reverts my 2016-05-30 patch.  Apparently MinGW64
      still requires pacifications that GCC 7.1.1 x86-64 (Fedora 26)
      does not.  Also, pacify tparam.c, which isn’t used on Fedora.
      * lib-src/etags.c (process_file_name, TeX_commands):
      * src/buffer.c (fix_overlays_before):
      * src/data.c (Fmake_variable_buffer_local, cons_to_unsigned)
      (cons_to_signed):
      * src/editfns.c (Ftranslate_region_internal):
      Prefer UNINIT to some stray value, as this simplifies
      code-reading later.
      * src/eval.c (CACHEABLE): New macro.
      (internal_lisp_condition_case): Use it.
      * src/tparam.c (tparam1): Use FALLTHROUGH to pacify GCC.
      d6312354
    • Eli Zaretskii's avatar
      Fix font-lock in Compilation mode · 715f0835
      Eli Zaretskii authored
      * lisp/progmodes/compile.el (compilation-face): Restore function
      lost during recent changes.  (Bug#28349)
      715f0835
    • Mark Oteiza's avatar
      Add function to read all entries in a group · 4131f978
      Mark Oteiza authored
      Use that to extend xdg-desktop-read-file.  Also fix a bug where all
      entries in all groups were read and returned by xdg-desktop-read-file.
      * lisp/xdg.el (xdg-desktop-read-group): New function.
      (xdg-desktop-read-file): Use it.
      * test/data/xdg/malformed.desktop: New file.
      * test/data/xdg/test.desktop: Add another section.
      * test/lisp/xdg-tests.el (xdg-desktop-parsing): Test presence of a key
      in another group.  Test reading a prescribed group.  Test detecting a
      malformed key=value.
      4131f978
    • Gemini Lasswell's avatar
      Reduce Tramp's memory usage · 68b7ecba
      Gemini Lasswell authored
      Construct Tramp syntax strings and regular expressions once instead
      of every time they are used, and store them in alists keyed by Tramp
      syntax.
      * tramp.el (tramp-build-remote-file-name-spec-regexp)
      (tramp-build-file-name-structure): New functions.
      (tramp-prefix-format-alist, tramp-prefix-regexp-alist)
      (tramp-method-regexp-alist)
      (tramp-postfix-method-format-alist)
      (tramp-postfix-method-regexp-alist)
      (tramp-prefix-ipv6-format-alist, tramp-prefix-ipv6-regexp-alist)
      (tramp-postfix-ipv6-format-alist)
      (tramp-postfix-ipv6-regexp-alist)
      (tramp-postfix-host-format-alist)
      (tramp-postfix-host-regexp-alist)
      (tramp-remote-file-name-spec-regexp-alist)
      (tramp-file-name-structure-alist): New constants.
      (tramp-lookup-syntax): New function.
      (tramp-prefix-format, tramp-prefix-regexp, tramp-method-regexp)
      (tramp-postfix-method-format, tramp-postfix-method-regexp)
      (tramp-prefix-ipv6-format, tramp-prefix-ipv6-regexp)
      (tramp-postfix-ipv6-format, tramp-postfix-ipv6-regexp)
      (tramp-postfix-host-format, tramp-postfix-host-regexp)
      (tramp-remote-file-name-spec-regexp, tramp-file-name-structure):
      Use it.
      68b7ecba
    • Eli Zaretskii's avatar
      Fix compilation warnings in MinGW64 build using GCC 7 · 2b84c166
      Eli Zaretskii authored
      Reported by Richard Copley <rcopley@gmail.com>.
      * src/w32heap.c (init_heap): Declare enable_lfh only for
      mingw.org's MinGW build.
      
      * src/w32console.c (w32con_write_glyphs):
      * src/unexw32.c (get_section_info, COPY_CHUNK, unexec): Fix some
      mismatches of data type vs format spec.
      
      * src/w32fns.c (compute_tip_xy):
      * src/w32proc.c (stop_timer_thread):
      * src/w32notify.c (remove_watch):
      * src/eval.c (internal_lisp_condition_case):
      * src/editfns.c (Ftranslate_region_internal):
      * src/data.c (Fmake_variable_buffer_local, cons_to_unsigned)
      (cons_to_signed):
      * src/buffer.c (fix_overlays_before): Initialize variables to
      avoid compiler warnings.
      
      * lib-src/etags.c (TeX_commands, process_file_name): Initialize
      variables to avoid compilation warnings.
      2b84c166
    • Miles Bader's avatar
      e91da7f8
    • Eli Zaretskii's avatar
      Avoid infloop when scrolling under scroll-preserve-screen-position · d1da8e53
      Eli Zaretskii authored
      * src/window.c (window_scroll_pixel_based): If screen position is
      to be preserved, make sure its recorded Y coordinate is outside
      the scroll margin.  (Bug#28342)
      d1da8e53
    • Michael Albinus's avatar
      Clarification in tramp-texi · af11532b
      Michael Albinus authored
      * doc/misc/tramp.texi (Connection caching): Two connections are
      regarded as different now when they differ in the port number only.
      af11532b
    • Mark Oteiza's avatar
      ; Fix previous commit · be9bc8e6
      Mark Oteiza authored
      See https://lists.gnu.org/archive/html/emacs-devel/2017-09/msg00101.html
      * test/lisp/xdg.el: Remove match data tests.
      * lisp/xdg.el (xdg-user-dir): Fix docstring. Remove save-match-data.
      (xdg-desktop-read-file, xdg-desktop-strings): Remove save-match-data.
      be9bc8e6
    • Miles Bader's avatar
      ce964084
    • Miles Bader's avatar
      Use text-property buttons in rcirc-markup-urls · b464dab2
      Miles Bader authored
      * lisp/net/rcirc.el (rcirc-markup-urls): Use `make-text-button'
      instead of `make-button'; the former is much more efficient in large
      buffers, and for the purposes of rcirc, changes no functionality.
      b464dab2
  4. 08 Sep, 2017 3 commits