1. 04 Feb, 2019 5 commits
    • Eli Zaretskii's avatar
      Support (locale-info 'paper) on MS-Windows · f37000ae
      Eli Zaretskii authored
      * src/w32proc.c (LOCALE_IPAPERSIZE): Define if undefined.
      (nl_langinfo): Support _NL_PAPER_WIDTH and _NL_PAPER_HEIGHT
      like glibc does.
      * src/fns.c (Flocale_info): Update the doc string.
      
      * nt/inc/langinfo.h: Add _NL_PAPER_WIDTH and _NL_PAPER_HEIGHT
      to the enumeration.
      (_NL_PAPER_WIDTH, _NL_PAPER_HEIGHT): Define namesake macros.
      * nt/mingw-cfg.site (emacs_cv_langinfo__nl_paper_width): Set
      to 'yes'.
      
      * doc/lispref/nonascii.texi (Locales): Update the
      documentation of 'locale-info' for the argument of 'paper'.
      
      * etc/NEWS: Update the locale-info entry.
      f37000ae
    • Federico Tedin's avatar
      Allow doc-view to open password-protected PDF files (bug#33684) · d5f629d1
      Federico Tedin authored
      * lisp/doc-view.el (doc-view-ghostscript-options): Removed "-sDEVICE"
      option.
      (doc-view-ghostscript-device): New customizable variable, passed as
      "-sDEVICE" option to GhostScript.
      (doc-view-pdf-password-protected-ghostscript-p): New function.
      (doc-view-pdf->png-converter-ghostscript): Can now open
      password-protected PDF files.
      (doc-view-pdfdraw-program-subcommand): New function.
      (doc-view-pdf-password-protected-pdfdraw-p): New function.
      (doc-view-pdf->png-converter-mupdf): Can now open password-protected
      PDF files.
      * etc/NEWS: Mention new doc-view-mode feature.
      d5f629d1
    • Michael Albinus's avatar
      Fix Bug#34196 · d6f430cb
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-process-actions): Disable `global-auto-revert-mode'
      temporarily.  (Bug#34196)
      d6f430cb
    • Michael Albinus's avatar
      Improve Tramp host name completion · 7cdf4004
      Michael Albinus authored
      * lisp/net/tramp-rclone.el (tramp-default-host-alist): Add empty host.
      
      * lisp/net/tramp.el (tramp-parse-auth-sources): Require :port.
      7cdf4004
    • Robert Pluim's avatar
      Use IPv6 localhost when family is 'ipv6 · 49f62430
      Robert Pluim authored
      This fixes Bug#34193
      
      * src/process.c (Fmake_network_process): Explicitly use ::1 when
      using IPv6 with 'local.  Update docstring.
      
      * test/lisp/net/network-stream-tests.el
      (make-ipv6-tcp-server-with-unspecified-port):
      (make-ipv6-tcp-server-with-specified-port): Test creating ipv6
      local server.
      (make-server): Add optional family argument, default ipv4
      (echo-server-with-local-ipv4): Test connecting to 'local ipv4
      (echo-server-with-local-ipv6): Test connecting to 'local ipv6
      
      * doc/lispref/processes.texi (Network Processes): Describe
      behavior when using 'local.
      
      * etc/NEWS: Document new 'make-network-process' behavior when
      connecting to 'local with ipv6.
      49f62430
  2. 03 Feb, 2019 2 commits
    • Juri Linkov's avatar
      * lisp/tar-mode.el (tar-extract): Call tar--try-jka-compr (bug#34251) · 4633b0ef
      Juri Linkov authored
      * lisp/tar-mode.el (tar--try-jka-compr): New function copied from
      archive-try-jka-compr.
      
      * lisp/arc-mode.el (archive-try-jka-compr): Set buffer-multibyte to t
      instead of let-binding coding-system-for-read to 'no-conversion.
      
      * test/data/decompress/tg.tar.gz:
      * test/data/decompress/zg.zip: New fixtures.
      
      * test/lisp/arc-mode-tests.el (arc-mode-test-zip-extract-gz):
      * test/lisp/tar-mode-tests.el (tar-mode-test-tar-extract-gz): New tests.
      
      * test/lisp/vc/diff-mode-tests.el (diff-mode-test-font-lock)
      (diff-mode-test-font-lock-syntax-one-line): Skip unless shell and
      diff executables are found.
      4633b0ef
    • Michael Albinus's avatar
      Work on accept-process-output in Tramp · b32ac17c
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-accept-process-output): Rework timer
      handling.
      (tramp-call-process): Adapt VEC if nil.
      (tramp-interrupt-process): Use `tramp-accept-process-output'.
      (tramp-process-lines): New defun.
      * lisp/net/tramp-adb.el (tramp-adb-parse-device-names):
      * lisp/net/tramp-rclone.el (tramp-rclone-parse-device-names): Use it.
      
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch):
      Use timeout 0 in `tramp-accept-process-output'.
      
      * test/lisp/net/tramp-tests.el (tramp--test-timeout-handler): Move up.
      (tramp-test29-start-file-process, tramp-test30-make-process)
      (tramp-test32-shell-command)
      (tramp--test-shell-command-to-string-asynchronously): Use it.
      (tramp-test35-remote-path): Suppress warning.
      (tramp--test-asynchronous-requests-timeout): New defconst.
      (tramp-test43-asynchronous-requests): Skip if not the only test.
      Use `tramp--test-asynchronous-requests-timeout'.
      Remove instrumentation.  Use `start-process-shell-command' for
      watchdog.  Add timeout in timer function.  Print status messages.
      Remove file operations from sentinel.  Suppress timers in
      `accept-process-output'.
      b32ac17c
  3. 02 Feb, 2019 13 commits
  4. 01 Feb, 2019 15 commits
  5. 31 Jan, 2019 3 commits
    • Paul Eggert's avatar
      Prefer static to extern where either will do · 47679e63
      Paul Eggert authored
      * src/charset.c (charset_table_size):
      * src/pdumper.c (dump_private):
      * src/sysdep.c (init_sigsegv):
      * src/window.c (old_selected_window):
      Now static.
      * src/charset.c (charset_table_size):
      Now int, since the value always fits in int.
      * src/gtkutil.c (xg_gtk_initialized): Now present only if
      HAVE_XWIDGETS, to make it clearer that this is an xwidgets
      hack.  All uses changed.
      * src/lread.c (ndefsubr): Remove; unused.
      * src/pdumper.h: Use usual GNU indenting style for functions,
      since my static-vs-extern checking hack relies on it.
      (dump_public): Always declare; simpler and doesn’t hurt.
      (pdumper_handle_page_fault): Remove unused decl.
      47679e63
    • Paul Eggert's avatar
      Widen modiff counts to avoid wraparound · 05d2fc71
      Paul Eggert authored
      Widen modification counts to at least 64 bits, to make
      wraparound practically impossible.
      * doc/lispref/buffers.texi (Buffer Modification):
      Don’t say the modification-count can wrap around.
      * src/buffer.c (Frestore_buffer_modified_p, Fbuffer_swap_text)
      (modify_overlay):
      * src/insdel.c (insert_1_both, insert_from_string_1)
      (insert_from_gap, insert_from_buffer_1)
      (adjust_after_replace, replace_range, replace_range_2)
      (del_range_2, modify_text):
      * src/textprop.c (modify_text_properties):
      Use modiff_incr instead of incrementing	directly.
      (Fbuffer_modified_tick, Fbuffer_chars_modified_tick):
      Don’t assume modification counts fit into fixnums.
      * src/buffer.h (struct buffer_text, struct buffer):
      * src/cmds.c (internal_self_insert):
      * src/fileio.c (Finsert_file_contents):
      * src/indent.c (last_known_column_modified):
      * src/keyboard.c (command_loop_1):
      * src/marker.c (cached_modiff):
      * src/syntax.c (find_start_modiff, parse_sexp_propertize)
      (find_defun_start):
      * src/window.h (struct window):
      Use modiff_count for modification counts.
      * src/editfns.c (Fsubst_char_in_region):
      Copy instead of incrementing modification counts,
      since integer overflow checking is not needed here.
      * src/lisp.h (modiff_count): New type.
      (modiff_incr, modiff_to_integer): New inline functions.
      * src/pdumper.c (dump_buffer): Update hash.
      05d2fc71
    • Paul Eggert's avatar
      Minor pdumper simplification · a68eee50
      Paul Eggert authored
      * src/pdumper.c (dump_roots, pdumper_load): Simplify initialization.
      (dump_bitset_init, pdumper_load): Omit unnecessary assignments.
      (dump_bitset_destroy): Remove; never called.  All callers removed.
      (dump_do_dump_relocation, pdumper_load): Add FIXME comment.
      (pdumper_load): Simplify by assuming C99.  Remove unused local.
      a68eee50
  6. 30 Jan, 2019 2 commits
    • Paul Eggert's avatar
      Fix process-contact bug with TCP connections · 9c8412a0
      Paul Eggert authored
      This fixes a regression from Emacs 25.3 (Bug#34134).
      * src/process.c (server_accept_connection):
      Set host correctly, fixing a bug introduced in
      2017-09-16T21:29:18Z!eggert@cs.ucla.edu
      when working around a GCC bug.
      9c8412a0
    • Glenn Morris's avatar
      Merge from origin/emacs-26 · 08bc407a
      Glenn Morris authored
      b94d7675 (origin/emacs-26) Minor copyedits in last manual change
      73508e62 Improve documentation of face numbers
      bf235ce3 * doc/emacs/custom.texi (Authentication): Refer to the "Help ...
      ceccb3c8 New node Authentication in the Emacs manual
      9078f34e Fix a loop in c-fl-decl-start.  This fixes bug #34186.
      a177fe75 Fix LaTeX output of month and day from cal-tex.el
      90177d7f Avoid elisp crash for OpenPGP User IDs with no e-mail address
      68e55a0b image-mode: Do not use default scaling (bug#33990)
      b6c762a5 create-image: Expand documentation (bug#33990)
      928d342c Improve documentation of 'isearch-filter-predicate'
      9034dd6c Fix cursor column positioning on Grep hits
      
      # Conflicts:
      #	doc/emacs/custom.texi
      08bc407a