1. 06 Jul, 2019 7 commits
    • Stefan Kangas's avatar
    • Stefan Kangas's avatar
    • Stefan Kangas's avatar
      4436bd30
    • Stefan Kangas's avatar
      Prefer progress-reporter to 'message' in bookmark.el · 2aa0b01f
      Stefan Kangas authored
      * lisp/bookmark.el (bookmark-upgrade-file-format-from-0)
      (bookmark-bmenu-execute-deletions): Use progress-reporter.
      (Bug#36462)
      2aa0b01f
    • Konstantin Kharlamov's avatar
      Replace manually crafted hex regexes with [:xdigit:] · dfc322d7
      Konstantin Kharlamov authored
      * admin/charsets/mapconv:
      * build-aux/gitlog-to-changelog (parse_amend_file, git_dir_option):
      * lisp/progmodes/verilog-mode.el (verilog-delay-re):
      (verilog-type-font-keywords, verilog-read-always-signals-recurse):
      (verilog-is-number):
      * lisp/progmodes/vera-mode.el (vera-font-lock-keywords):
      * test/src/emacs-module-tests.el (mod-test-sum-test):
      * lisp/xml.el: (xml--entity-replacement-text):
      * lisp/version.el (emacs-repository-version-git):
      * lisp/textmodes/sgml-mode.el (sgml-quote):
      * lisp/textmodes/css-mode.el (css-escapes-re)
      (css--colors-regexp):
      * lisp/progmodes/prolog.el (prolog-syntax-propertize-function):
      * lisp/progmodes/hideif.el (hif-token-regexp, hif-tokenize):
      * lisp/progmodes/ebnf-dtd.el: (ebnf-dtd-attlistdecl)
      (ebnf-dtd-entitydecl, ebnf-dtd-lex):
      * lisp/progmodes/ebnf-ebx.el (ebnf-ebx-hex-character):
      * lisp/progmodes/ebnf-abn.el (ebnf-abn-character):
      * lisp/progmodes/cperl-mode.el (cperl-highlight-charclass)
      (cperl-find-pods-heres):
      * lisp/progmodes/cc-mode.el (c-maybe-quoted-number-head)
      (c-maybe-quoted-number, c-parse-quotes-before-change)
      (c-parse-quotes-after-change, c-quoted-number-head-before-point)
      (c-quoted-number-straddling-point):
      * lisp/progmodes/ada-mode.el (featurep, ada-in-numeric-literal-p)
      (ada-font-lock-keywords):
      * lisp/org/org-mobile.el (org-mobile-copy-agenda-files)
      * lisp/org/org-table.el (org-table-number-regexp):
      (org-mobile-update-checksum-for-capture-file):
      * lisp/nxml/xsd-regexp.el (xsdre-gen-categories):
      * lisp/nxml/xmltok.el (let*):
      * lisp/nxml/rng-xsd.el (rng-xsd-convert-hex-binary)
      (rng-xsd-convert-any-uri):
      * lisp/nxml/rng-uri.el (rng-uri-file-name-1)
      (rng-uri-unescape-multibyte, rng-uri-unescape-unibyte)
      (rng-uri-unescape-unibyte-match)
      (rng-uri-unescape-unibyte-replace):
      * lisp/nxml/rng-cmpct.el (rng-c-process-escapes):
      * lisp/nxml/nxml-maint.el (nxml-insert-target-repertoire-glyph-set):
      * lisp/net/shr-color.el (shr-color->hexadecimal):
      * lisp/mail/rfc2231.el (rfc2231-decode-encoded-string):
      * lisp/international/mule-cmds.el (read-char-by-name):
      * lisp/htmlfontify.el (hfy-hex-regex):
      * lisp/gnus/nneething.el (nneething-decode-file-name):
      * lisp/gnus/mml-sec.el (mml-secure-find-usable-keys):
      * lisp/gnus/gnus-art.el (gnus-button-mid-or-mail-heuristic-alist):
      * lisp/faces.el (read-color):
      * lisp/epg.el (epg--status-ERRSIG, epg--status-VALIDSIG)
      (epg--status-SIG_CREATED, epg--decode-percent-escape)
      (epg--decode-hexstring, epg--decode-quotedstring)
      (epg-dn-from-string):
      * lisp/emulation/cua-rect.el (cua-incr-rectangle):
      * lisp/dnd.el (dnd-unescape-uri):
      * lisp/cedet/semantic/lex.el (semantic-lex-number-expression):
      * lisp/cedet/semantic/java.el (semantic-java-number-regexp):
      * lisp/calc/calc-lang.el (pascal):
      * lisp/calc/calc-ext.el (math-read-number-fancy):
      * lisp/calc/calc-aent.el (math-read-token):
      Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
      (Bug#36167)
      dfc322d7
    • YAMAMOTO Mitsuharu's avatar
      Add HarfBuzz fallbacks for libotf functions used in ftfont_list · 814b509b
      YAMAMOTO Mitsuharu authored
      * src/ftfont.c [!HAVE_LIBOTF && HAVE_HARFBUZZ]: Include hb-ot.h.
      (OTF, OTF_tag) [!HAVE_LIBOTF && HAVE_HARFBUZZ]: New typedefs.
      (hbotf_open, hbotf_check_features) [!HAVE_LIBOTF && HAVE_HARFBUZZ]: New
      functions.
      (OTF_open, OTF_close, OTF_check_features) [!HAVE_LIBOTF && HAVE_HARFBUZZ]:
      New macros.
      (ftfont_list) [!HAVE_LIBOTF && HAVE_HARFBUZZ]: Use them.
      814b509b
    • YAMAMOTO Mitsuharu's avatar
      Avoid crash inside CFCharacterSetIsLongCharacterMember · 0e15bd11
      YAMAMOTO Mitsuharu authored
      * src/macfont.m (macfont_supports_charset_and_languages_p)
      (macfont_has_char): Don't pass integers outside the Unicode codespace to
      CFCharacterSetIsLongCharacterMember.
      0e15bd11
  2. 05 Jul, 2019 1 commit
  3. 04 Jul, 2019 7 commits
    • Juri Linkov's avatar
      * lisp/minibuffer.el (minibuffer-message-properties): New variable. · 44f19964
      Juri Linkov authored
      (minibuffer-message): Use it to propertize message unless already
      propertized by the caller.
      
      * lisp/simple.el (minibuffer-error-function): Propertize the error.
      
      * lisp/isearch.el (isearch-message-properties): New variable.
      (isearch--momentary-message, isearch-message-prefix)
      (isearch-message-suffix): Use it.  (Bug#21112)
      44f19964
    • Juri Linkov's avatar
      * lisp/char-fold.el (char-fold-to-regexp): Implement arg LAX (bug#36398). · 19b1cefa
      Juri Linkov authored
      * test/lisp/char-fold-tests.el (char-fold--test-multi-lax): New test.
      19b1cefa
    • Basil L. Contovounesios's avatar
    • Mattias Engdegård's avatar
      Optimise more inputs to `regexp-opt' (bug#36444) · 3fd74915
      Mattias Engdegård authored
      Use a more precise test to determine whether the input to `regexp-opt'
      is safe to optimise when KEEP-ORDER is non-nil, permitting more inputs
      to be optimised than before.  For example, ("good" "goal" "go") is now
      accepted.
      
      * lisp/emacs-lisp/regexp-opt.el (regexp-opt):
      More precise test for whether the list is safe w.r.t. KEEP-ORDER.
      (regexp-opt--contains-prefix): Remove.
      
      * test/lisp/emacs-lisp/regexp-opt-tests.el: Use lexical-binding.
      (regexp-opt-test--permutation, regexp-opt-test--factorial)
      (regexp-opt-test--permutations, regexp-opt-test--match-all)
      (regexp-opt-test--check-perm, regexp-opt-test--explain-perm)
      (regexp-opt-keep-order): Test KEEP-ORDER.
      3fd74915
    • Stefan Monnier's avatar
      2bc90e0c
    • Lars Ingebrigtsen's avatar
      In Message, respect Content-Type provided by the user · 138060e3
      Lars Ingebrigtsen authored
      * lisp/gnus/mml.el (mml-parse-1): Respect any Content-Type
      inserted by the user instead of insisting on text/plain.
      138060e3
    • Alan Mackenzie's avatar
      Fix an infinite loop in c-end-of-macro. Should fix bug #36484 · 4bf40029
      Alan Mackenzie authored
      Also fix two faulty regexps, save-match-data, and check c-major-mode-is
      'c++-mode where needed.
      
      * lis/progmodes/cc-langs.el (c-last-c-comment-end-on-line-re)
      (c-last-open-c-comment-start-on-line-re): Handle repeated *s in regexp
      correctly.
      
      * lisp/progmodes/cc-engine.el (c-beginning-of-macro, c-end-of-macro): Protect
      the match-data with save-match-data around regexp operations.
      (c-end-of-macro): In the loop handling multiline block comments, check a
      comment actually is multiline.
      
      * lisp/progmodes/cc-mode.el (c-depropertize-CPP): Only call
      c-depropertize-raw-strings-in-region in C++ Mode.
      4bf40029
  4. 03 Jul, 2019 8 commits
    • João Távora's avatar
      Fix Flymake's user-visible accessors of diagnostic positions · 5b48dab4
      João Távora authored
      Diagnostics are supported by overlays, and they can legitimately move
      around.  So flymake-diagnostic-beg and flymake-diagnostic-end must
      look up the overlay positions, not the immutable slots of the
      flymake--diag structure, which become stale.
      
      * lisp/progmodes/flymake.el (version): Bump to 1.0.8.
      (flymake-diagnostic-beg, flymake-diagnostic-end): Use diag's
      overlay.
      (flymake-show-diagnostic): Use flymake-diagnostic-end,
      flymake-diagnostic-beg.
      5b48dab4
    • João Távora's avatar
      Fix Flymake's treatment of region-specific reports · 22d99801
      João Távora authored
      We're supposed to delete intersecting diagnostics in that situation,
      but the intersection logic was way off.
      
      * lisp/progmodes/flymake.el (version): Bump to 1.0.7.
      (flymake--intersects-p): New helper.
      (flymake--handle-report): Fix handling of :region.
      22d99801
    • Eric Abrahamsen's avatar
      Small fix to writing Gnus dribble change-level entries · 619592df
      Eric Abrahamsen authored
      * lisp/gnus/gnus-start.el (gnus-group-change-level): PREVIOUS needs to
        still be a string when the dribble entry is written, so don't
        convert it to an entry until after that's done. Also, we're not
        meant to write PREVIOUS itself, we're meant to write the group that
        comes _after_ it in the sort-order of gnus-group-list, so do that
        instead.
      619592df
    • Stefan Kangas's avatar
      Add tests for bookmark.el (Bug#36452) · 22760ab3
      Stefan Kangas authored
      * test/lisp/bookmark-resources/example.txt:
      * test/lisp/bookmark-resources/test.bmk:
      * test/lisp/bookmark-tests.el: New files.
      * lisp/bookmark.el: Minor cleanups.
      (bookmark-insert-annotation): Signal error on invalid bookmark.
      (bookmark-write-file): Add newline at end of file.
      22760ab3
    • Eli Zaretskii's avatar
      Fix rotation validity test in image.c · ecd7d40a
      Eli Zaretskii authored
      * src/image.c (compute_image_rotation): Fix the validity test
      for :rotation values.  This avoids logging error messages when
      no :rotation was provided in the image spec.
      ecd7d40a
    • Eli Zaretskii's avatar
      Fix compiler warnings due to a recent commit · b5de191e
      Eli Zaretskii authored
      * src/xdisp.c (expose_window, expose_frame): Avoid compilation
      warnings about printing unsigned values with %d.
      b5de191e
    • Michael Albinus's avatar
      Change expected result of a flymake test on emba · 14563dc1
      Michael Albinus authored
      * test/lisp/progmodes/flymake-tests.el (different-diagnostic-types):
      Test is now passing on emba.gnu.org, too.
      14563dc1
    • Paul Eggert's avatar
      Replace TRACE with redisplay_trace, etc. · 52d0d4fe
      Paul Eggert authored
      This simplifies callers and catches trace printf format errors
      even with typical (non-debugging) compiles.
      * src/dispextern.h (TRACE) [GLYPH_DEBUG]:
      Move definitions to xdisp.c if it’s used only there.
      * src/xdisp.c (redisplay_trace): New function, replacing TRACE macro.
      (move_trace): New function, replacing TRACE_MOVE macro.
      All uses changed.
      (dump_glyph): When tracing, don’t use %d to format ptrdiff_t,
      or %x to format a pointer.
      (expose_frame): Redo trace printfs to avoid interleaved output
      on GNU/Linux.
      52d0d4fe
  5. 02 Jul, 2019 17 commits