1. 16 Sep, 2017 10 commits
    • Eli Zaretskii's avatar
      Start emacs-26 release branch · 625cee53
      Eli Zaretskii authored
      * configure.ac:
      * nt/README.W32:
      * README:
      * msdos/sed2v2.inp: Increment Emacs version to 26.0.60.
      
      * lisp/cus-edit.el (customize-changed-options-previous-release):
      Update value to "25.3".
      625cee53
    • Alan Mackenzie's avatar
      Cope better with C++ and Objective-C protection keywords in class declarations · 4ea37c2b
      Alan Mackenzie authored
      This fix fixes the fontification of a method inside a class at the time it is
      typed, when there is a protection keyword clause preceding it.
      
      * lisp/progmodes/cc-engine.el (c-forward-keyword-clause): Handle protection
      keywords.
      (c-looking-at-decl-block): Avoid scanning forward over protection keyword
      clauses too eagerly.
      
      * lisp/progmodes/cc-langs.el (c-protection-key c-post-protection-token): New
      lang defconsts and defvars.
      
      * lisp/progmodes/cc-mode.el (c-fl-decl-start): When we encounter a protection
      keyword following a semicolon or brace, move forward over it before attempting
      to parse a type.
      4ea37c2b
    • 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.
      (Bug#28390)
      
      * etc/NEWS: Mention the change in the behavior of overlays-at.
      2d53f878
    • 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
      'enriched-allow-eval-in-display-props'.
      
      * etc/NEWS: Describe the security issues with Enriched Text mode
      and their solution.
      a103dbe3
    • 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.
      6d6dc246
    • Eli Zaretskii's avatar
      d25d2a9b
    • 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.
      1170c2f3
    • 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
      <fabrice.popineau@centralesupelec.fr>.
      cb27a134
    • 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.
      f5f261c6
    • 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.
      30c955b1
  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
      package.
      d1458d0f
    • 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
      dereferences.
      541b596b
    • 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.
      6e38b925
    • 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.
      7911ebc6
    • 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.
      1c700547
    • 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.
      3b783a75
    • 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)
      817e92b2
    • 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.
      015172d1
    • 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.
      025e2165
    • 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.
      0ce6b431
  3. 14 Sep, 2017 8 commits
  4. 13 Sep, 2017 10 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.
      bc511a64
    • 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)
      (org-info-map-html-url):
      * lisp/org/ox-html.el (org-html-creator-string):
      * lisp/startup.el (fancy-startup-text, fancy-about-text)
      (fancy-splash-head):
      * 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.
      5da53a01
    • 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"
      warning.
      
      * test/lisp/color-tests.el: New file.
      e7d6c622
    • 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.
      63398071
    • 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'.
      4ab44f75
    • 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.
      51648115
    • 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.
      bdb71dea
    • 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.
      6519df8f
    • 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.
      b74d536e
    • 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.
      912826a8