1. 19 Jan, 2019 1 commit
    • Dmitry Gutov's avatar
      Misc ignore-related project.el changes · b6af0900
      Dmitry Gutov authored
      * lisp/progmodes/project.el (project-ignores): Don't append the
      default ignores list, just use vc-directory-exclusion-list.
      (project--dir-ignores): Use the default ignores if the dir is
      outside of the current project.
      (project-files): Use project--dir-ignores to support external
      roots better.
      b6af0900
  2. 18 Jan, 2019 13 commits
    • João Távora's avatar
      Revert "Remove leftover from previous electric-layout-rules API" · 7717778e
      João Távora authored
      This is a backward-incompatible change, and removing it isn't really
      necessary.
      
      This reverts commit 942dad2b.
      7717778e
    • Stefan Monnier's avatar
      (electric-layout-post-self-insert-function-1): Simplify. · 78725e49
      Stefan Monnier authored
      Call electric--after-char-pos right from the start, and take advantage of the
      fact that it guarantees to return the right position or nil.
      78725e49
    • João Távora's avatar
      Ensure fns in electric-layout-rules are called in right position · 06215916
      João Távora authored
      * lisp/electric.el (electric-layout-rules): Ensure rules are
      called from right spot.
      06215916
    • João Távora's avatar
      Remove leftover from previous electric-layout-rules API · 942dad2b
      João Távora authored
      An element of electric-layout-rules is either a function or a pair
      (CHAR . WHERE), and WHERE can't be a function anymore.
      
      * lisp/electric.el (electric-layout-post-self-insert-function-1):
      Remove leftover line.
      942dad2b
    • Paul Eggert's avatar
      Port to platforms where NULL is a pointer · 7818bcdd
      Paul Eggert authored
      * src/image.c (x_create_x_image_and_pixmap):
      The Picture type is an integer, not a pointer.
      Come to think of it, Picture is really XID, and as
      far as I can tell, all-bits-one is the invalid XID,
      not all-bits-zero.  However that is a bigger issue;
      for now, this patch just unbreaks the build.
      7818bcdd
    • Eli Zaretskii's avatar
      Improve documentation of portable dumping · 6bac9ea1
      Eli Zaretskii authored
      * src/pdumper.c (Fdump_emacs_portable): Improve the doc string
      and the error messages.
      
      * doc/lispref/internals.texi (Building Emacs): Document
      portable dumping and the 'dump-emacs-portable' function.
      6bac9ea1
    • Glenn Morris's avatar
      Merge from origin/emacs-26 · 957090b7
      Glenn Morris authored
      b6d78a0d (origin/emacs-26) Fix a typo in ELisp manual
      c9f6f868 Prevent redrawing if frame is garbaged
      00ba2267 Attempt to fix hangs on MS-Windows due to C-g
      b26d6373 Fix Calc graph output on MS-Windows
      03818b0a Fix a minor mistake in ELisp manual
      6ac59854 ; Fix some trivial doc typos
      21b90269 * etc/tutorials/TUTORIAL: Fix typo (bug#34049)
      d223727a Fix UI of Buffer-menu
      0f716557 Reinitialize ispell-really-enchant when changing the speller
      9845044f Speed up loading css-mode
      957090b7
    • Eli Zaretskii's avatar
      Clean up memory allocation and unexec support on MS-Windows · 5e3b0f52
      Eli Zaretskii authored
      * src/w32heap.c (report_temacs_memory_usage): Condition on
      !CANNOT_DUMP, in addition to ENABLE_CHECKING.
      (init_heap): Accept an argument, which tells us what heap
      allocation method to use.
      (DUMPED_HEAP_SIZE) [CANNOT_DUMP]: Define to a small value, as
      we don't use dumped_data[] in this case.
      * src/w32heap.h (init_heap): Adjust prototype.
      <using_dynamic_heap>: Remove declaration.
      * src/emacs.c (main) [WINDOWSNT]: Determine heap allocation
      method based on whether we are in temacs and whether unexec
      will be used to dump Emacs.  Pass the heap allocation method
      to init_heap, which is now called after parsing the
      --temacs=METHOD option.
      * src/unexw32.c (unexec): Don't fiddle with using_dynamic_heap.
      <using_dynamic_heap>: Remove definition.
      * src/w32proc.c (malloc_before_init, realloc_before_init)
      (free_before_init): New functions, to catch memory allocation
      before heap allocation method is set up.
      5e3b0f52
    • Eli Zaretskii's avatar
      ; * etc/NEWS: Fix description of pdumper. · f9434091
      Eli Zaretskii authored
      f9434091
    • Eli Zaretskii's avatar
      Fix a typo in ELisp manual · b6d78a0d
      Eli Zaretskii authored
      * doc/lispref/nonascii.texi (Converting Representations): Fix
      inconsistency between @defun and the argument description of
      'byte-to-string'.  (Bug#34119)
      b6d78a0d
    • Dmitry Gutov's avatar
      Rebase project-find-regexp on top of project-files · fbe87d0f
      Dmitry Gutov authored
      * lisp/progmodes/project.el (project--files-in-directory):
      New function.
      (project-files, project-find-regexp): Use it.
      (project--dir-ignores): New function.
      (project--find-regexp-in): Remove.
      (project--process-file-region): New function.
      (project--find-regexp-in-files): New function.
      (project-find-regexp, project-or-external-find-regexp): Use it, and
      project-files as well.
      fbe87d0f
    • Dmitry Gutov's avatar
      ; Update the number · afc8a41f
      Dmitry Gutov authored
      afc8a41f
    • Dmitry Gutov's avatar
      Make 'project-files' the "canonical" generic of the two · d8da0916
      Dmitry Gutov authored
      * lisp/progmodes/project.el (project-files): Move the actual
      command building and invocation here.
      (project-file-completion-table): Delegate to 'project-files'.
      d8da0916
  3. 17 Jan, 2019 13 commits
  4. 16 Jan, 2019 11 commits
    • Paul Eggert's avatar
      27f53bd6
    • Daniel Colascione's avatar
      3fd369be
    • Daniel Colascione's avatar
      Fix crash in charset detection after pdumper load · ece563e8
      Daniel Colascione authored
      * src/coding.c:
      (reset_coding_after_pdumper_load): new function re-init character
      classes after pdumper load.
      (syms_of_coding): Call it.
      ece563e8
    • Andy Moreton's avatar
      Avoid compilation warnings in MS-Windows build · 8bf51c38
      Andy Moreton authored
      * src/pdumper.c (dump_cold_bignum):
      * src/emacs.c(load_pdump) [WINDOWSNT]: Avoid compiler warnings
      due to 64-bit vs 32-bit data type mismatches.
      8bf51c38
    • Eli Zaretskii's avatar
      Improve documentation of pdumper; minor code cleanup · ebd174e2
      Eli Zaretskii authored
      * src/emacs.c (usage_message): Add the --dump-file option.
      (string_starts_with_p, find_argument): Functions removed; use
      'argmatch' instead.
      (PDUMP_FILE_ARG): Macro removed; use literal strings instead,
      as with other command-line options.  Use HAVE_PDUMPER for cpp
      conditionals which used PDUMP_FILE_ARG.
      (load_pdump, main): Use 'argmatch' for "--dump-file" and
      "--temacs" arguments, thus supporting the "-dump-file" and
      "-temacs" variants, for consistency with other options.
      (main): Remove the extra fatal error for using --dump-file in
      unexec'ed Emacs: load_pdump does that anyway.
      (standard_args): Add --dump-file and --temacs, with
      appropriate priorities.
      
      * etc/NEWS: Expand on the pdumper support.
      
      * doc/emacs/cmdargs.texi (Initial Options): Document the
      '--dump-file' command-line option.
      ebd174e2
    • Eli Zaretskii's avatar
      Fix minor glitch with producing 'emacs' executable · e96a54eb
      Eli Zaretskii authored
      * src/Makefile.in (LC_ALL) [!DUMPING]: Don't overwrite
      previous emacs-X.Y.Z executables with new ones.
      e96a54eb
    • Michael Albinus's avatar
      8832de4f
    • Michael Albinus's avatar
      Some accept-process-output cleanups in Tramp · b2497ef6
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-action-out-of-band): Read process
      output in a loop.
      (tramp-accept-process-output): Return result.
      (tramp-interrupt-process):
      * lisp/net/tramp-adb.el (tramp-adb-parse-device-names):
      * lisp/net/tramp-rclone.el (tramp-rclone-parse-device-names):
      Remove FIXME.
      
      * lisp/net/tramp-sh.el (tramp-local-coding-commands): Fix docstring.
      
      * lisp/net/tramp-smb.el (tramp-smb-wait-for-output): Adapt docstring.
      Simplify code.
      
      * lisp/net/tramp-sudoedit.el (tramp-sudoedit-action-sudo):
      Adapt docstring.  Read process output in a loop.
      
      * test/lisp/net/tramp-tests.el (tramp-test43-asynchronous-requests):
      Remove :unstable tag on emba.
      b2497ef6
    • Glenn Morris's avatar
      ; Copyright fixes for pdumper files · 655badc3
      Glenn Morris authored
      I wonder if the copyright years for lib-src/make-fingerprint.c are correct.
      655badc3
    • Glenn Morris's avatar
      * make-dist: Include src/dmpstruct.awk. · 021f34be
      Glenn Morris authored
      021f34be
    • Paul Eggert's avatar
      Fix unlikely races with GnuTLS, datagrams · e87e6a24
      Paul Eggert authored
      Retry some calls if interrupted at inopportune times.
      These were found by code inspection.
      * src/gnutls.c (gnutls_try_handshake): Simplify by using
      new emacs_gnutls_handle_error API.
      (emacs_gnutls_write): Remove GNUTLS_E_AGAIN hack since
      emacs_gnutls_handle_error now does that.
      Use emacs_gnutls_handle_error only on errors.
      (emacs_gnutls_read): Retry if gnutls_record_recv returns
      GNUTLS_E_INTERRUPTED, to be consistent with emacs_read.
      (emacs_gnutls_handle_error): Return 0 on fatal errors,
      -1 (setting errno) on ordinary errors, to simplify callers.
      Assume that ERR is negative, since it always is now.
      Map non-fatal GnuTLS errors to errno values as best we can.
      * src/process.c (read_process_output) [DATAGRAM_SOCKETS]:
      Retry recvfrom if it is interrupted, to be consistent with
      how things are handled when not a datagram channel.
      (send_process) [DATAGRAM_SOCEKTS]: If sendto is interrupted,
      process pending signals and retry it, to be consistent with
      how things are handled when not a datagram channel.
      e87e6a24
  5. 15 Jan, 2019 2 commits