1. 16 Sep, 2017 8 commits
    • Eli Zaretskii's avatar
      Fix order of sorted overlays returned by 'overlays-at' · 2d53f878
      Eli Zaretskii authored
      * src/buffer.c (Foverlays_at): If SORTED is non-nil, reverse the
      list of results, to have their order as per the documentation.
      * etc/NEWS: Mention the change in the behavior of overlays-at.
    • Eli Zaretskii's avatar
      Disable execution of unsafe Lisp by Enriched Text mode · a103dbe3
      Eli Zaretskii authored
      * src/xdisp.c (handle_display_spec): If the display property is
      wrapped in 'disable-eval' form, disable Lisp evaluation while
      processing this property.
      (handle_single_display_spec): Accept new argument ENABLE_EVAL_P.
      If that argument is false, don't evaluate Lisp while processing
      display properties.
      * lisp/textmodes/enriched.el
      (enriched-allow-eval-in-display-props): New defcustom.
      (enriched-decode-display-prop): If
      enriched-allow-eval-in-display-props is nil, wrap the display
      property with 'disable-eval' to disable Lisp evaluation when the
      display property is processed for display.  (Bug#28350)
      * lisp/gnus/mm-view.el (mm-inline-text): Re-enable processing of
      enriched text.
      * doc/lispref/display.texi (Display Property): Document the
      'disable-eval' wrapping of 'display' properties.
      * doc/emacs/text.texi (Enriched Properties): Document
      * etc/NEWS: Describe the security issues with Enriched Text mode
      and their solution.
    • Eli Zaretskii's avatar
      Avoid MinGW64 compilation warning in w32.c · 6d6dc246
      Eli Zaretskii authored
      * src/w32.c (sys_strerror): Provide a prototype for MinGW64.
    • Eli Zaretskii's avatar
    • Eli Zaretskii's avatar
      Fix MS-Windows build broken by recent changes in lcms.c · 1170c2f3
      Eli Zaretskii authored
      * src/lcms.c [WINDOWSNT]: Define types for cmsWhitePointFromTemp
      and cmsxyY2XYZ function pointers.
      (init_lcms_functions) [WINDOWSNT]: Load cmsWhitePointFromTemp and
      cmsxyY2XYZ from liblcms2.
      (cmsWhitePointFromTemp, cmsxyY2XYZ) [WINDOWSNT]: Redirect to the
      corresponding function pointers.
      (Flcms_temp_to_white_point): Minor stylistic changes.  Doc fix.
      (syms_of_lcms2): Defsubr Slcms_temp_to_white_point.
    • Eli Zaretskii's avatar
      Avoid GCC 7 compilation warning in data.c · cb27a134
      Eli Zaretskii authored
      * src/data.c (minmax_driver): Use UNINIT to avoid compilation
      warnings.  Reported by Fabrice Popineau
    • Mark Oteiza's avatar
      Add lcms-temp->white-point and initial tests · f5f261c6
      Mark Oteiza authored
      * src/lcms.c (lcms-temp->white-point): New function.
      * test/src/lcms-tests.el: New file.
    • Mark Oteiza's avatar
      Use cl-print in timer list · 30c955b1
      Mark Oteiza authored
      * lisp/emacs-lisp/timer-list.el (timer-list): Use cl-print
      for handling functions.
      (timer-list-mode): Capitalize major mode name.  Set bidi direction
      as in tabulated-list-mode.
  2. 15 Sep, 2017 12 commits
    • Vincent Belaïche's avatar
    • Vincent Belaïche's avatar
      Make landscape layout with geometry package rather than a PostScript special. · d1458d0f
      Vincent Belaïche authored
      * lisp/calendar/cal-tex.el (cal-tex-preamble): Make 12pt the
      default class option.
      (cal-tex-year, cal-tex-cursor-month-landscape): Pass landscape
      request to `cal-tex-insert-preamble' function call within the
      class option string.
      (cal-tex-cursor-month): Don't pass any longer "12pt" argument
      to `cal-tex-insert-preamble' function, as it is default.
      (cal-tex-insert-preamble): Suppress landscape and size
      argument, and replace them by a class-options string
      argument. Do not insert any longer "\special{landscape}" in
      case of landscape layout, as the job is made by the geometry
    • Mark Oteiza's avatar
    • Eli Zaretskii's avatar
      One more attempt to avoid GCC 7 warnings in dispnew.c · 541b596b
      Eli Zaretskii authored
      * src/dispnew.c (adjust_glyph_matrix): Use eassume instead of
      eassert, to avoid compilation warnings about NULL pointer
    • Mark Oteiza's avatar
      Fix color-distance docstring · 6e38b925
      Mark Oteiza authored
      Also feed the translated color to the metric argument.
      * src/xfaces.c (color-distance): Reword docstring to be more helpful.
      Avoid duplicating effort in lcms2 by passing the translated 16 bit RGB
      instead of the function's color arguments.
    • Michael Albinus's avatar
      Improve Tramp behaviour according to bug#27986 · 7911ebc6
      Michael Albinus authored
      * lisp/net/tramp-adb.el (tramp-adb-handle-copy-file):
      * lisp/net/tramp-sh.el (tramp-sh-handle-copy-directory):
      * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory)
      (tramp-smb-handle-copy-file): Check, that NEWNAME is a
      directory name when existing.  Use `file-name-as-directory'
      where appropriate.
    • Mark Oteiza's avatar
      ; Partially revert previous commit · 1c700547
      Mark Oteiza authored
      The reduction in was because I broke it.
      * lisp/json.el (json-pop): Do not bind at compile time something needed
      at run time.
    • Mark Oteiza's avatar
      More JSON optimization · 3b783a75
      Mark Oteiza authored
      Last I checked, inlining json-skip-whitespace didn't make much
      difference.  However, changing defsubsts to define-inline results
      in roughly 15% reduction in read time on a 200K file.
      * lisp/json.el (json-advance, json-peek, json-pop):
      (json-skip-whitespace): Inline with define-inline.
      (json-read-keyword): Don't use whitespace syntax.
      (json-add-to-object): Simpler condition.
    • Eli Zaretskii's avatar
      Avoid crashes due to invalid error forms from sentinels/filters · 817e92b2
      Eli Zaretskii authored
      * src/process.c (exec_sentinel_error_handler): Make sure the error
      form passed to cmd_error_internal is a cons cell.  (Bug#28430)
    • Eli Zaretskii's avatar
      Avoid compilation warnings with GCC 7 on MS-Windows · 015172d1
      Eli Zaretskii authored
      * src/w32term.c (w32_setup_relief_color, construct_mouse_click)
      (w32_read_socket): Initialize variables to shut up bogus
      compilation warnings from GCC 7.
      * src/unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Cast to DWORD_PTR
      to avoid compiler warnings about printing signed values using %x
      format spec.
      * src/dispnew.c (adjust_glyph_matrix): Add eassert to avoid
      compiler warning about possible NULL pointer dereference.
      * src/lisp.h (pI): Tweak the definition some more for MinGW64.
    • Martin Rudalics's avatar
      Define gnutls_rnd for WINDOWSNT and HAVE_GNUTLS3 case only · 025e2165
      Martin Rudalics authored
      * src/fns.c (gnutls_rnd): Define for WINDOWSNT and HAVE_GNUTLS3
      case only to avoid unused macros warning otherwise.
    • Martin Rudalics's avatar
      In w32heap.c bump up DUMPED_HEAP_SIZE · 0ce6b431
      Martin Rudalics authored
      * src/w32heap.c (DUMPED_HEAP_SIZE): Bump up DUMPED_HEAP_SIZE
      to 13*1024*1024 for 32-bit non-wide-integer builds.
  3. 14 Sep, 2017 8 commits
  4. 13 Sep, 2017 12 commits
    • Paul Eggert's avatar
      Prefer HTTPS to FTP and HTTP in documentation · bc511a64
      Paul Eggert authored
      Most of this change is to boilerplate commentary such as license URLs.
      This change was prompted by ftp://ftp.gnu.org's going-away party,
      planned for November.  Change these FTP URLs to https://ftp.gnu.org
      instead.  Make similar changes for URLs to other organizations moving
      away from FTP.  Also, change HTTP to HTTPS for URLs to gnu.org and
      fsf.org when this works, as this will further help defend against
      man-in-the-middle attacks (for this part I omitted the MS-DOS and
      MS-Windows sources and the test tarballs to keep the workload down).
      HTTPS is not fully working to lists.gnu.org so I left those URLs alone
      for now.
    • Paul Eggert's avatar
      Prefer HTTPS to HTTP for gnu.org · 5da53a01
      Paul Eggert authored
      This patch just changes code files; a followup companion patch
      (much larger) will affect the commentary.  This part is
      separated out to make it easier to review.
      * .dir-locals.el (change-log-mode):
      * lisp/org/org-info.el (org-info-other-documents)
      * lisp/org/ox-html.el (org-html-creator-string):
      * lisp/startup.el (fancy-startup-text, fancy-about-text)
      * test/lisp/ffap-tests.el (ffap-other-window--bug-25352):
      * test/lisp/thingatpt-tests.el (thing-at-point-test-data):
      Use HTTPS instead of HTTP.
    • Simen Heggestøyl's avatar
      Add tests for color.el · e7d6c622
      Simen Heggestøyl authored
      * lisp/color.el (color-name-to-rgb, color-complement): Clarify in
      docstrings that RGB triplets should use four digits per component.
      (color-rgb-to-hsl): Break line to avoid "Hidden behind deeper element"
      * test/lisp/color-tests.el: New file.
    • Lars Ingebrigtsen's avatar
      Make gnutls-verify-error work again with url-retrieve-synchronously · 63398071
      Lars Ingebrigtsen authored
      * lisp/url/url-gw.el (url-open-stream): Only use :nowait if
      we're doing async connections (bug#26835).
      * lisp/url/url-parse.el (url): Add an asynchronous slot.
      * lisp/url/url.el (url-asynchronous): New variable.
      (url-retrieve-internal): Store the value.
      (url-retrieve-synchronously): Bind the variable.
    • Michael Albinus's avatar
      Improve backward compatibility of tramp-tests · 4ab44f75
      Michael Albinus authored
      * test/lisp/net/tramp-tests.el (seq): Don't require.
      (tramp--test-emacs26-p): New defun.
      (tramp-test10-write-region, tramp-test11-copy-file)
      (tramp-test12-rename-file, tramp-test15-copy-directory)
      (tramp-test21-file-links): Use it.
      (tramp-test16-file-expand-wildcards): Use `copy-sequence'.
    • Michael Albinus's avatar
      * lisp/net/trampver.el (customize-package-emacs-version-alist): · 51648115
      Michael Albinus authored
      Add Tramp version integrated in Emacs 25.3.
    • Mark Oteiza's avatar
      Add clarification to if-let* docstring · bdb71dea
      Mark Oteiza authored
      Also make its behaviour consistent with and-let* in that empty bindings
      results in success, not failure.
      * lisp/emacs-lisp/subr-x.el: Edit docstring, change else to then.
    • Lars Ingebrigtsen's avatar
      Make fully qualified domain names more fully qualified · 6519df8f
      Lars Ingebrigtsen authored
      * lisp/gnus/message.el (message-make-fqdn): Don't try to use a
      system-name without any periods as a fully qualified domain name.
    • Paul Eggert's avatar
      Remove unused file lib/getopt_.h · b74d536e
      Paul Eggert authored
      * lib/getopt_.h: Remove.  It was renamed to lib/getopt.in.h etc.
      on 2011-01-08, but I forgot to remove the old file.
    • Mark Oteiza's avatar
      Remove "baroque" use of prefix argument from gensym · 912826a8
      Mark Oteiza authored
      'cl-gensym' was simply moved here, but let us take an opportunity to
      shed some historical baggage.
      * lisp/subr.el (gensym): Remove special treatment of PREFIX as a
      number.  Use "g" as prefix to differentiate from cl-gensym defaults.
      * doc/lispref/symbols.texi (Creating Symbols): Update accordingly.
      * lisp/emacs-lisp/cl-macs.el (cl--gensym-counter, cl-gensym): Restore.
    • Mark Oteiza's avatar
      Provide an lcms2 feature · 3d96fc15
      Mark Oteiza authored
      * src/lcms.c (syms_of_lcms2): Provide "lcms2".
    • Mark Oteiza's avatar
      Add lcms2 interface · 5d4c539b
      Mark Oteiza authored
      configure.ac: Add boilerplate for configuring and detecting liblcms2.
      etc/NEWS: Mention new configure option and color-distance change.
      src/Makefile.in: Add references to lcms.c and liblcms.
      src/emacs.c: Define lcms2 symbols.
      src/lcms.c: New file.
      src/lisp.h: Add declaration for lcms2.
      src/xfaces.c: Add optional METRIC argument.