1. 25 Apr, 2019 2 commits
    • Stephen Leake's avatar
      Fix Bug#33618; define search path variables for grep, byte-compile · 1486eadf
      Stephen Leake authored
      * etc/NEWS: Mention new variables.
      
      * lisp/emacs-lisp/bytecomp.el (emacs-lisp-compilation-search-path): New.
      
      * lisp/progmodes/grep.el (grep-search-path): New.
      1486eadf
    • Stefan Monnier's avatar
      Use lexical-binding by default for M-:, --eval, and *scratch* · e08e0880
      Stefan Monnier authored
      * lisp/startup.el (command-line): Default to lexical-binding in *scratch*.
      (normal-no-mouse-startup-screen, command-line-1):
      Use startup--get-buffer-create-scratch.
      (command-line-1):
      * lisp/simple.el (eval-expression):
      * lisp/server.el (server-eval-and-print): Use lexical-binding to
      evaluate the expression.
      (server-execute): Use startup--get-buffer-create-scratch.
      * lisp/ielm.el (inferior-emacs-lisp-mode): Default to lexical-binding.
      e08e0880
  2. 24 Apr, 2019 2 commits
    • Philipp Stephani's avatar
      Add module functions to convert from and to big integers. · e290a7d1
      Philipp Stephani authored
      * src/module-env-27.h: Add new module functions to convert big
      integers.
      
      * src/emacs-module.h.in (emacs_mpz): Define if GMP is available.
      
      * src/emacs-module.c (module_extract_big_integer)
      (module_make_big_integer): New functions.
      (initialize_environment): Use them.
      
      * test/data/emacs-module/mod-test.c (Fmod_test_double): New test
      function.
      (emacs_module_init): Define it.
      
      * test/src/emacs-module-tests.el (mod-test-double): New unit test.
      
      * doc/lispref/internals.texi (Module Values): Document new functions.
      e290a7d1
    • Philipp Stephani's avatar
      Add conversions to and from struct timespec to module interface. · bffceab6
      Philipp Stephani authored
      Time values are a fundamental data type, and such conversions are hard
      to implement within modules because of the various forms of time
      values in Emacs Lisp.  Adding dedicated conversion functions can
      significantly simplify module code dealing with times.
      
      This approach uses nanosecond precision.  While Emacs in theory has
      support for higher-precision time values, in practice most languages
      and standards, such as POSIX, C, Java, and Go, have settled on
      nanosecond-precision integers to represent time.
      
      * src/emacs-module.h.in: Add header for struct timespec.
      
      * src/module-env-27.h: Add module functions for time conversion.
      
      * src/emacs-module.c (module_extract_time, module_make_time): New
      functions.
      (initialize_environment): Use them.
      
      * test/data/emacs-module/mod-test.c (Fmod_test_add_nanosecond): New
      test function.
      (emacs_module_init): Define it.
      
      * test/src/emacs-module-tests.el (mod-test-add-nanosecond/valid)
      (mod-test-add-nanosecond/nil, mod-test-add-nanosecond/invalid): New
      unit tests.
      
      * doc/lispref/internals.texi (Module Values): Document time
      conversion functions.
      bffceab6
  3. 23 Apr, 2019 2 commits
  4. 22 Apr, 2019 4 commits
    • Eli Zaretskii's avatar
      4ec02445
    • Paul Eggert's avatar
      Mention AddressSanitizer etc. in etc/DEBUG · b20d8a93
      Paul Eggert authored
      * etc/DEBUG: Modernize for AddressSanitizer etc.
      * etc/NEWS: Defer to etc/DEBUG for this.
      b20d8a93
    • Paul Eggert's avatar
      Remove --enable-checking=xmallocoverrun · 1ea048f6
      Paul Eggert authored
      It doesn’t work anymore, and these days ‘gcc -fsanitize=address’
      does a better job anyway.
      * configure.ac: Remove the option.
      * configure.ac (ac_xmalloc_overrun, XMALLOC_OVERRUN_CHECK):
      * src/alloc.c (XMALLOC_OVERRUN_CHECK_OVERHEAD)
      (XMALLOC_OVERRUN_CHECK_SIZE, XMALLOC_OVERRUN_SIZE_SIZE)
      (xmalloc_overrun_check_header, xmalloc_overrun_check_trailer)
      (xmalloc_put_size, xmalloc_get_size, overrun_check_malloc)
      (overrun_check_realloc, overrun_check_free):
      Remove.  All uses removed.
      * etc/NEWS: Mention this.
      1ea048f6
    • Paul Eggert's avatar
      Remove --enablechecking=conslist configure option · 72067661
      Paul Eggert authored
      * configure.ac: Remove the option.
      * configure.ac (ac_gc_check_cons_list, GC_CHECK_CONS_LIST):
      * src/alloc.c (check_cons_list) [GC_CHECK_CONS_LIST]:
      * src/lisp.h (lisp_h_check_cons_list, check_cons_list):
      Remove.  All uses removed.
      * etc/NEWS: Mention this.
      72067661
  5. 20 Apr, 2019 2 commits
  6. 19 Apr, 2019 2 commits
    • Philipp Stephani's avatar
      Remove :stop key from make-process. · 5c5e3095
      Philipp Stephani authored
      This has never worked and caused issues such as Bug#30460.
      
      * src/process.c (Fmake_process): Don't accept :stop key any more.
      (syms_of_process): Define needed symbol 'null'.
      
      * test/src/process-tests.el (make-process/stop): New unit test.
      
      * doc/lispref/processes.texi (Asynchronous Processes): Remove :stop
      key from manual.
      5c5e3095
    • Philipp Stephani's avatar
      Add a new user option 'ido-big-directories'. · f5e3c2cc
      Philipp Stephani authored
      This provides an alternative to 'ido-max-directory-size', for
      directories that are statically known to be too big for Ido
      completion.
      
      * lisp/ido.el (ido-big-directories): New user option.
      (ido-directory-too-big-p): Use it.
      
      * test/lisp/ido-tests.el (ido-directory-too-big-p): New unit test.
      f5e3c2cc
  7. 16 Apr, 2019 1 commit
  8. 15 Apr, 2019 1 commit
    • Alexander Gramiak's avatar
      Bump minimum GTK versions to 2.24 and 3.10 · fc0f469f
      Alexander Gramiak authored
      * configure.ac: Bump required GTK 2 and GTK 3 versions and the
      associated GLib versions. Remove obsolete AC_CHECK_FUNCS calls. These
      check for functions available in later GTK 2 versions. These checks
      and can safely be removed with the exception of
      gtk_window_set_has_resize_grip, which according to a comment in
      gtkutil.c causes an issue in Ubuntu's GTK 2.
      
      * src/gtkutil.c:
      * src/xfns.c:
      * src/xterm.c:
      * src/xterm.h: Remove now unused conditional blocks. Use HAVE_GTK3
      instead of GTK_CHECK_VERSION where now applicable. Remove checks of
      now always true USE_GTK_TOOLTIP.
      fc0f469f
  9. 14 Apr, 2019 2 commits
  10. 13 Apr, 2019 1 commit
  11. 12 Apr, 2019 1 commit
    • Stefan Monnier's avatar
      * lisp/help-fns.el (help-fns-describe-variable-functions): New hook · 896e5802
      Stefan Monnier authored
      (help-fns--compiler-macro, help-fns--parent-mode, help-fns--obsolete)
      (help-fns--interactive-only): Indent output by 2 spaces.
      (help-fns--side-effects): New function extracted from
      describe-function-1.
      (help-fns-describe-function-functions): Use it.
      (help-fns--first-release, help-fns--mention-first-release): New functions.
      (help-fns-function-description-header): Keymaps and macros can't
      be interactive.
      (help-fns--ensure-empty-line): New function.
      (describe-function-1): Use it.
      (help-fns--var-safe-local, help-fns--var-risky)
      (help-fns--var-ignored-local, help-fns--var-file-local)
      (help-fns--var-watchpoints, help-fns--var-obsolete)
      (help-fns--var-alias, help-fns--var-bufferlocal): New functions,
      extacted from describe-variable.
      (describe-variable): Run help-fns-describe-variable-functions instead.
      896e5802
  12. 11 Apr, 2019 4 commits
    • Stephen Leake's avatar
      Make `next-error' output fewer messages about locus · 77685811
      Stephen Leake authored
      * lisp/simple.el (next-error-verbosity): New user variable.
      (next-error, next-error-internal): Use it to control only outputting
      locus message if locus changed.
      77685811
    • NicolasPetton's avatar
      818a68b1
    • NicolasPetton's avatar
      * etc/AUTHORS: Update. · 8297e97f
      NicolasPetton authored
      8297e97f
    • Paul Eggert's avatar
      Bring back dmpstruct.h · 9994bf17
      Paul Eggert authored
      Bring back the dmpstruct.h checking, and use it when
      --enable-checking=structs is specified.  The checking can be helpful
      to some developers, although it gets in the way of others and is
      not needed for ordinary tarball builds.
      * src/dmpstruct.awk: Restore this file, with mode 644 not 755.
      * configure.ac: New option-arg --enable-checking=structs,
      implied by --enable-checking.
      (CHECK_STRUCTS): New macro and var.
      * src/Makefile.in (CHECK_STRUCTS): New macro.
      (dmpstruct_headers, dmpstruct.h, dmpstruct.h):
      Restore these macros and rules.
      (pdumper.o): Restore this dependency if $(CHECK_STRUCTS) is true.
      (mostlyclean): Remove dmpstruct.h.
      * src/pdumper.c [CHECK_STRUCTS]: Include dmpstruct.h,
      and restore checks against hashes.
      9994bf17
  13. 10 Apr, 2019 2 commits
  14. 09 Apr, 2019 2 commits
  15. 07 Apr, 2019 2 commits
    • Alexander Gramiak's avatar
      Introduce new defcustom for terminal CUA rectangle commands · b6840540
      Alexander Gramiak authored
      This allows a user to set a non-meta modifier for their terminal
      should his/her terminal support it. See bug#35058 for background on
      this change.
      
      * lisp/emulation/cua-base.el (cua-rectangle-terminal-modifier-key):
      New defcustom.
      
      * lisp/emulation/cua-base.el (cua--shift-control-x-prefix): Use new
      defcustom.
      b6840540
    • Alexander Gramiak's avatar
      Define and use new procedure display-symbol-keys-p · cffc04c4
      Alexander Gramiak authored
      * lisp/frame.el (display-symbol-keys-p): Define.
      
      * lisp/simple.el (normal-erase-is-backspace-setup-frame): Use eq
      instead of memq.
      (normal-erase-is-backspace-mode): Use display-symbol-keys-p.
      cffc04c4
  16. 03 Apr, 2019 2 commits
    • Stefan Monnier's avatar
      * lisp/progmodes/compile.el: Allow 'line' functions in error-regexp-alist · 3062f81d
      Stefan Monnier authored
      (compilation-error-properties): Allow 'line' and 'end-line' to be functions,
      like 'col' and 'end-col'.
      (compilation-error-regexp-alist): Document this.
      (compilation-parse-errors): Drop support for old undocumented feature
      where 'line' was a function of 2 arguments.
      (compilation--compat-error-properties): Delete function.
      3062f81d
    • Noam Postavsky's avatar
      Allow partial decompression (Bug#33133) · b36913d8
      Noam Postavsky authored
      * src/decompress.c (Fzlib_decompress_region): Add optional
      ALLOW-PARTIAL parameter.
      * lisp/url/url-http.el (url-handle-content-transfer-encoding): Use it.
      * doc/lispref/text.texi (Decompression): Document it.
      * etc/NEWS: Announce it.
      b36913d8
  17. 02 Apr, 2019 2 commits
  18. 31 Mar, 2019 2 commits
  19. 27 Mar, 2019 1 commit
    • YAMAMOTO Mitsuharu's avatar
      Support native image resizing on cairo · 2755cf18
      YAMAMOTO Mitsuharu authored
      * src/xterm.c (x_cr_draw_image): Add arguments image_width and
      image_height and support scaling.  All callers changed.
      * src/image.c (Fimage_scaling_p): Return t when USE_CAIRO.
      (x_set_image_size) [USE_CAIRO]: Record the scaled dimensions
      in the image struct.
      * src/dispextern.h (HAVE_NATIVE_SCALING): Define when
      USE_CAIRO as well.
      
      * etc/NEWS: Update the announcement of native image scaling.
      2755cf18
  20. 26 Mar, 2019 1 commit
  21. 25 Mar, 2019 2 commits