1. 18 Aug, 2017 6 commits
  2. 17 Aug, 2017 9 commits
  3. 16 Aug, 2017 8 commits
    • Paul Eggert's avatar
      Merge from Gnulib; use ‘open’ for O_CLOEXEC · 794c3cd3
      Paul Eggert authored
      This incorporates:
      2017-08-15 renameat: ensure declaration in <stdio.h> on NetBSD
      2017-08-15 extensions: enable NetBSD specific extensions
      2017-08-14 open: support O_CLOEXEC
      2017-08-13 reallocarray: new module
      * admin/merge-gnulib (AVOIDED_MODULES): Remove ‘open’, since
      it now supports O_CLOEXEC and this simplifies Emacs.
      * build-aux/config.guess, lib/fcntl.in.h, lib/stdio.in.h:
      * lib/stdlib.in.h, m4/extensions.m4, m4/stdlib_h.m4:
      Copy from Gnulib.
      * lib/cloexec.c, lib/cloexec.h, lib/open.c:
      * m4/mode_t.m4, m4/open-cloexec.m4, m4/open.m4:
      New files, copied from Gnulib.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      * lib-src/etags.c (O_CLOEXEC) [WINDOWSNT]:
      Remove, as Gnulib does this for us.
      * src/filelock.c (create_lock_file):
      * src/sysdep.c (emacs_open, emacs_pipe):
      Don’t worry about O_CLOEXEC == 0, as Gnulib no longer sets it to 0.
    • Alan Third's avatar
      Allow use of run-time OS version checks on macOS (bug#27810) · 69f2b755
      Alan Third authored
      * src/nsterm.h (NSWindowTabbingMode): Define in pre-Sierra macOS.
      NSApplicationPresentationAutoHideToolbar): Define in macOS 10.6.
      * src/nsterm.m (colorForEmacsRed, colorUsingDefaultColorSpace,
      check_native_fs, ns_read_socket, ns_select, runAlertPanel,
      initFrameFromEmacs, windowDidMiniaturize, windowDidEnterFullScreen,
      windowDidExitFullScreen, isFullscreen, updateCollectionBehavior,
      toggleFullScreen, constrainFrameRect, scrollerWidth, syms_of_nsterm):
      Allow use of run-time checks and replace version check macros.
      * src/nsfns.m (ns_screen_name): Use run-time OS version checks.
      * src/macfont.m (macfont_draw): Use run-time OS version checks.
      * src/nsmenu.m (menuWillOpen): Use run-time OS version checks.
      Co-authored-by: default avatarCharles A. Roelli <charles@aurox.ch>
    • Alan Third's avatar
      Add multiframe image support to NS port (bug#21714) · 3505b77a
      Alan Third authored
      * src/nsimage.m (ns_load_image): Handle multiple frames.
      (EmacsImage::getMetadata, EmacsImage::setFrame): New functions.
      * src/nsterm.h (EmacsImage::getMetadata, EmacsImage::setFrame): New
      function prototypes.
    • Tino Calancha's avatar
      files-tests.el: Remove unused lexical variable · 400934b6
      Tino Calancha authored
      * test/lisp/files-tests.el (file-test--do-local-variables-test);
      Remove unused var 'files-test-queried'.
    • Michael Albinus's avatar
      * doc/emacs/files.texi (Copying and Naming): Mention · 3b844643
      Michael Albinus authored
      restrictions to add-name-to-file and make-symbolic-link on
      remote systems.
    • Michael Albinus's avatar
    • Noam Postavsky's avatar
      Add tests for previous commit · 3305dec5
      Noam Postavsky authored
      * test/lisp/progmodes/elisp-mode-tests.el
      (elisp-mode-tests--face-propertized-string): New function.
      (elisp--highlight-function-argument-keyed-2): New tests.
    • Thierry Volpiatto's avatar
      Fix eldoc highlighting for &key args (Bug#27272) · 55c92381
      Thierry Volpiatto authored
      * lisp/progmodes/elisp-mode.el (elisp--highlight-function-argument):
      Only switch to keyword-based searching if INDEX point beyond `&key' in
      the argument list.  All arguments prior to the `&key' are position
      based.  Additionally, be more strict about what is a keyword when
      searching for the current keyword.
  4. 15 Aug, 2017 11 commits
    • Paul Eggert's avatar
      Do not assume regular Git .git/hooks dir · e97aebd8
      Paul Eggert authored
      Apparently Gitlab doesn’t create .git/hooks, like regular Git does.
      Problem reported by Ted Zlatanov in:
      * autogen.sh (git_sample_hook_src): New function.  Use it to work
      even if .git/hooks or its samples do not exist.
    • Paul Eggert's avatar
      New manual section "Copying and Naming" · 5c3d0ce3
      Paul Eggert authored
      * 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).
    • Eli Zaretskii's avatar
      Fix the MS-Windows build · 63daecda
      Eli Zaretskii authored
      * src/fileio.c (Frename_file): Don't use ENOTSUP if it is equal to
      ENOSYS.  (Bug#28097)  (Bug#27986)
    • Ted Zlatanov's avatar
    • Ted Zlatanov's avatar
    • Simen Heggestøyl's avatar
      Support indentation of detached Less CSS rulesets · 141cc78a
      Simen Heggestøyl authored
      * lisp/textmodes/css-mode.el (css-smie-rules): Provide better support
      for indentation of detached rulesets passed to Less mixins.
      * test/manual/indent/less-css-mode.less: New file.
    • Simen Heggestøyl's avatar
      Fixes and tweaks for the new Less CSS mode · 85a9f42b
      Simen Heggestøyl authored
      * etc/NEWS: Add an entry for the new mode.
      * lisp/textmodes/less-css-mode.el (less-css): Tweak docstring.
      (less-css-lessc-command): Tweak docstring. Don't mark it as
      safe. Don't autoload.
      (less-css-compile-at-save, less-css-lessc-options)
      (less-css-output-directory): Tweak docstrings. Don't autoload.
      (less-css-output-file-name): Tweak docstring. Don't mark it as safe.
      (less-css-input-file-name): Tweak docstring. Don't autoload.
      (less-css-compile-maybe): Use `when' for one-armed `if'.
      (less-css--output-path): Tweak docstring.
      (less-css--maybe-shell-quote-command): Remove function.
      (less-css-compile): Don't autoload. Tweak docstring and message. Fix
      compiler warning. Use `string-join' instead of `mapconcat'.
      (less-css-font-lock-keywords): Use `font-lock-variable-name-face' for
      (less-css-mode-syntax-table, less-css-mode-map): New variables.
      (less-css-mode): Change status line mode name from "LESS" to
      "Less". Tweak docstring. Move syntax table definitions to
      (less-css-indent-line): Remove function.
    • Steve Purcell's avatar
      New major mode: Less CSS mode · 3f887812
      Steve Purcell authored
      * lisp/textmodes/less-css-mode.el: New file.
    • Tino Calancha's avatar
      archive-int-to-mode: Fix order of testing S_ISUID, S_ISGID bits · 66b75d3f
      Tino Calancha authored
      * lisp/arc-mode.el (archive-int-to-mode):
      Swap order of 2048 and 1024 tests (Bug#28092).
      * test/lisp/arc-mode-tests.el (arc-mode-test-archive-int-to-mode):
      Update test.
    • Paul Eggert's avatar
      Improve rename-file port to macOS · 97460582
      Paul Eggert authored
      * src/fileio.c (Frename_file): On macOS, renameat_noreplace can
      fail with errno == ENOTSUP on file systems where it is not
      supported, according to the Apple documentation.
    • Noam Postavsky's avatar
      Speed up ./configure with more caching (Bug#27960) · e88bbd22
      Noam Postavsky authored
      * configure.ac: Cache the 'GTK compiles', 'GSettings is in gio',
      'LN_S', '-znocombreloc', 'sysinfo', 'gcc autodepends', '-b link',
      'Xkb', 'Xpm preprocessor', 'tputs library' 'GLib', 'signals via
      characters', and 'Windows API header' checks.  Remove pause after
      warning about GTK bug.
  5. 14 Aug, 2017 6 commits
    • Paul Eggert's avatar
      Improve rename-file behavior on macOS · 13a84682
      Paul Eggert authored
      Problem reported by Philipp Stephani (Bug#27986).
      * src/fileio.c (Frename_file):
      Worry about file name case sensitivity only if CYGWIN or DOS_NT.
      * src/sysdep.c (renameat_noreplace): Use renameatx_np on macOS,
      since this provides the necessary atomicity guarantees.
    • Glenn Morris's avatar
      Clean up temp files after some tests · 4fe9a9ef
      Glenn Morris authored
      * test/lisp/emacs-lisp/bytecomp-tests.el
      (bytecomp-tests--with-temp-file): Also delete .elc file if present.
      * test/lisp/progmodes/etags-tests.el
      (etags-buffer-local-tags-table-list): Delete temp file at end.
    • Eli Zaretskii's avatar
      Implement renameat_noreplace for MS-Windows · 5ba4c7d1
      Eli Zaretskii authored
      * src/sysdep.c (renameat_noreplace) [WINDOWSNT]: Implement minimal
      emulation for MS-Windows.  (Bug#27986)
    • Eli Zaretskii's avatar
      Fix 'rename' on MS-Windows · 16f11be4
      Eli Zaretskii authored
      * src/w32.c (sys_rename_replace): Use the FORCE argument only if
      the primitive rename errors out with EEXIST.
    • Michael Albinus's avatar
    • Mark Oteiza's avatar
      Tiny JSON performance improvement · ab2da681
      Mark Oteiza authored
      Get rid of some needless uses of apply.  Measuring with
        (benchmark-run 10 (json-read-file "test.json"))
      showed 1.5-2.5% reduction of execution time.
      * lisp/json.el (json-peek): Nix let-binding.
      (json-read-string): Use concat for making a string from chars.
      (json-read-array): Use cond and more appropriate conversion instead
      of blindly applying.