1. 28 Mar, 2019 3 commits
  2. 27 Mar, 2019 17 commits
    • Juri Linkov's avatar
    • Michael Albinus's avatar
    • Charles A. Roelli's avatar
    • Paul Eggert's avatar
      Tune css-mode regexp · df167575
      Paul Eggert authored
      * lisp/textmodes/css-mode.el (css--font-lock-keywords):
      Omit unnecessary \(?: \) in regexp.  Suggested by Mattias Engdegård in:
    • Michael Heerdegen's avatar
      Improve documentation of 'alist-get' (Bug#34708) · 6dfd28c3
      Michael Heerdegen authored
      * lisp/subr.el (alist-get): Enhance part of docstring explaining usage
      in place expressions.
    • Paul Eggert's avatar
      Use regexp-opt-charset to improve regexp tweaks · 92acab73
      Paul Eggert authored
      * lisp/emacs-lisp/regexp-opt.el (regexp-opt):
      Reword confusing sentence in doc string.
      * lisp/erc/erc.el (erc-lurker-maybe-trim):
      * lisp/mail/footnote.el (footnote-hebrew-numeric-regex):
      Improve by using regexp-opt-charset.
    • Eli Zaretskii's avatar
      Attempt to fix crashes under GDB on Windows 10 · a35a1f6a
      Eli Zaretskii authored
      * src/pdumper.c (dump_discard_mem)
      [VM_SUPPORTED == VM_MS_WINDOWS]: Don't pass NULL pointer as
      last argument to VirtualProtect.  Reported by Martin Rudalics
    • Paul Eggert's avatar
      Minor xml.el tweaks · a697d1e6
      Paul Eggert authored
      * lisp/xml.el (xml-name-start-char-re, xml-name-char-re):
      No need to call concat.
      (xml-name-char-re): Use \u escapes rather than chars inline,
      so that the code matches the comments better and is easier
      to audit.
    • Michael Albinus's avatar
      Use connection-local setting for tramp-remote-path · 907d11fc
      Michael Albinus authored
      * doc/misc/tramp.texi (Remote programs): Mention connection-local
      settings for `tramp-remote-path'.
      * lisp/net/tramp-sh.el (tramp-get-remote-path): Expand connection-local
    • Basil L. Contovounesios's avatar
      Avoid recently obsolete seq-contains in css-mode · e50bfaae
      Basil L. Contovounesios authored
      * lisp/textmodes/css-mode.el (css--join-nested-selectors): Replace
      recently obsolete seq-contains with new predicate seq-contains-p.
    • Mattias Engdegård's avatar
    • Alan Mackenzie's avatar
      Improve C++ raw string fontification. · 29ec1e48
      Alan Mackenzie authored
      Integrate the handling of raw string and ordinary string fontification.
      * lisp/progmodes/cc-defs.el (c-font-lock-flush)
      (c-search-forward-char-property-without-value-on-char): new macros.
      (c-point): In the 'eoll arm, check for eobp.
      (c-search-forward-char-property-with-value-on-char): Handle the &optional
      limit argument being nil.
      (c-clear-char-property-with-value-on-char): Return the position of the first
      cleared property.
      * lisp/progmodes/cc-engine.el (c-find-decl-prefix-search): Don't spuriously
      recognize the change of face at a ) as the start of a string (a
      "pseudo match").
      (c-old-beg-rs c-old-end-rs): New variables.
      (c-raw-string-pos): Analyze raw string delimiters more carefully.
      (c-raw-string-in-end-delim): New function.
      (c-depropertize-raw-string): Largely rewritten.
      (c-before-change-check-raw-strings): New functionality: only remove the
      syntax-table text properties from raw strings whose delimiters are about to
      (c-propertize-raw-string-id): New function.
      (c-after-change-re-mark-raw-strings): Remove, incorporating functionality into
      other functions.
      (c-propertize-raw-string-opener): Largely rewritten.
      (c-after-change-re-mark-raw-strings): Removed.
      (c-after-change-unmark-raw-strings, c-after-change-unmark-raw-strings): New
      * lisp/progmodes/cc-fonts.el (c-font-lock-raw-strings): Largely rewritten.
      * lisp/progmodes/cc-langs.el (c-before-font-lock-functions): Replace
      c-after-change-re-mark-unbalanced-strings by
      c-after-change-mark-abnormal-strings in the t, c+objc, c++ and java sections.
      Add c-after-change-unmark-raw-strings and remove
      c-after-change-re-mark-raw-strings from the c++ section.
      * lisp/progmodes/cc-mode.el (c-old-BEG c-old-END): Remove.
      (c-old-END-literality): New variable.
      (c-depropertize-CPP): Remove syntax-table properties from raw strings within
      (c-before-change-check-unbalanced-strings): Call
      c-truncate-semi-nonlit-pos-cache to preserve the integrity of the cache.
      (c-before-change-check-unbalanced-strings): Call
      c-truncate-semi-nonlit-pos-cache, largely rewritten.
      (c-after-change-re-mark-unbalanced-strings): Renamed to
      c-after-change-mark-abnormal-strings.  Call c-maybe-re-mark-raw-string.
    • Andreas Schwab's avatar
    • NicolasPetton's avatar
    • YAMAMOTO Mitsuharu's avatar
      Support native image resizing on cairo · 2755cf18
      YAMAMOTO Mitsuharu authored
      * src/xterm.c (x_cr_draw_image): Add arguments image_width and
      image_height and support scaling.  All callers changed.
      * src/image.c (Fimage_scaling_p): Return t when USE_CAIRO.
      (x_set_image_size) [USE_CAIRO]: Record the scaled dimensions
      in the image struct.
      * src/dispextern.h (HAVE_NATIVE_SCALING): Define when
      USE_CAIRO as well.
      * etc/NEWS: Update the announcement of native image scaling.
    • YAMAMOTO Mitsuharu's avatar
      Fix cairo image drawing with box · d7e44265
      YAMAMOTO Mitsuharu authored
      * src/xterm.c (x_cr_draw_image): Don't call cr_clip for non-mask case.
      (x_draw_image_foreground) [USE_CAIRO]: Draw image here ...
      (x_draw_image_glyph_string) [USE_CAIRO]: ... instead of here.
      (x_draw_image_foreground, x_draw_image_foreground_1)
      (x_draw_image_glyph_string) [USE_CAIRO]: Ifdef away unused code path.
    • Paul Eggert's avatar
      2019-03-26 regex cleanup · 5d6a3144
      Paul Eggert authored
      Problems reported by Mattias Engdegård in:
      * lisp/align.el (align-rules-list):
      * lisp/speedbar.el (speedbar-check-read-only, speedbar-check-vc):
      * lisp/vc/diff-mode.el (diff-add-change-log-entries-other-window):
      * lisp/woman.el (woman-parse-numeric-arg):
      Put "-" at end of character alternatives, since a range was not intended.
      * lisp/erc/erc.el (font-lock):
      * lisp/mail/footnote.el (cl-seq):
      Avoid duplicate character alternatives by using cl-seq API.
      * lisp/mail/footnote.el (footnote--current-regexp):
      * lisp/textmodes/css-mode.el (css--font-lock-keywords):
      Avoid repetition of repetition.
      * lisp/net/webjump.el (webjump-url-encode):
      Add ~ to character alternatives, and rewrite confusing range.
      * lisp/progmodes/verilog-mode.el (verilog-compiler-directives)
      Remove duplicate.
      * lisp/progmodes/verilog-mode.el (verilog-preprocessor-re):
      * lisp/textmodes/css-mode.el (css--font-lock-keywords):
      Don’t escape a char that doesn’t need it.
      * lisp/textmodes/picture.el (picture-tab-chars): In docstring,
      do not say regexp characters will be quoted; merely say in
      another way that the syntax is that of character alternatives.
      (picture-set-tab-stops, picture-tab-search): Don’t attempt
      to regexp-quote picture-tab-chars.
      (picture-tab-search): Quote \ in picture-tab-chars for
      skip-chars-backwards, which treats \ differently than
      regexp character alternatives do.
  3. 26 Mar, 2019 6 commits
  4. 25 Mar, 2019 14 commits
    • Paul Eggert's avatar
      Port recent ngettext stub to non-glibc · 7f967b16
      Paul Eggert authored
      * src/editfns.c: Don’t try to call glibc ngettext;
      we’re not ready for that yet.
      (Fngettext): Do not restrict integer arguments to fixnums.
      Improve doc string a bit.
    • Paul Eggert's avatar
      Update from Gnulib. · a3c55309
      Paul Eggert authored
      This incorporates:
      2019-03-23 Support cross-compilation to musl libc
      2019-03-23 noreturn: In C++ mode with clang, use _Noreturn as fallback
      2019-03-22 _Noreturn: beware of C's _Noreturn in C++ pre C++11
      2019-03-19 Help making signal handlers more reliable
      2019-03-18 _Noreturn: clang and MSVC do support [[noreturn]] in C++11
      2019-03-17 _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11
      2019-03-14 all: Update URLs to msdn.microsoft.com
      * doc/misc/texinfo.tex, lib/_Noreturn.h, lib/gettimeofday.c:
      * lib/mktime.c, lib/regcomp.c, lib/regexec.c, lib/stat-time.h:
      * lib/utimens.c, m4/fdopendir.m4, m4/getgroups.m4:
      * m4/gettimeofday.m4, m4/gnulib-common.m4, m4/putenv.m4, m4/utimes.m4:
      Update from gnulib.
    • Juri Linkov's avatar
      * lisp/vc/vc.el (vc-diff-mergebase, vc-log-mergebase): New commands. · d43af7b6
      Juri Linkov authored
      * lisp/vc/vc-git.el (vc-git-mergebase): New function.
      (vc-git-print-log): Interpret string value of arg LIMIT as an end-revision.
      * lisp/vc/vc-hooks.el (vc-prefix-map): Bind 'vc-log-mergebase' to
      'C-x v M L', and 'vc-diff-mergebase' to 'C-x v M D'.  (Bug#33950)
    • Paul Eggert's avatar
      Fix alignment bug with pure bignums · db53731c
      Paul Eggert authored
      Problem found on 32-bit sparc, which has stricter alignment
      checking than x86-64.
      * src/alloc.c (pure_alloc): When TYPE is negative it now specifies
      the negation of the required alignment of the result.
      (make_pure_bignum): Specify bignum limb alignment.
    • Juri Linkov's avatar
      * lisp/international/mule-cmds.el (ngettext): Move to editfns.c. · 389475db
      Juri Linkov authored
      * src/editfns.c (Fngettext): Move from mule-cmds.el and use
      gettext's ngettext when available.
    • Eric Abrahamsen's avatar
      Fix text property bug in gnus-group-list-active · 1f8a6b56
      Eric Abrahamsen authored
      * lisp/gnus/gnus-group.el (gnus-group-list-active): The property value
        should be the group name, not the value of gethash. Ie, it should be
        the key, not the value.
    • Eric Abrahamsen's avatar
      Don't save Gnus' dummy.group to the .newsrc.eld file · a09306d5
      Eric Abrahamsen authored
      * lisp/gnus/gnus-start.el (gnus-gnus-to-quick-newsrc-format): Remove
        the "dummy.group" element.
    • Eric Abrahamsen's avatar
      Handle multiple possible types for Gnus group names · a8efdd4c
      Eric Abrahamsen authored
      * lisp/gnus/gnus-start.el (gnus-active-to-gnus-format): Numbers,
        symbols, and strings.
    • Paul Eggert's avatar
      Fix a dns-mode reentrancy bug · 6d0f7f70
      Paul Eggert authored
      * lisp/textmodes/dns-mode.el (dns-mode-ipv6-to-nibbles):
      Don’t assume kill-new does no matching.
    • Basil L. Contovounesios's avatar
      Fix non_local_exit_get signature in Elisp manual · 04a228f4
      Basil L. Contovounesios authored
      * doc/lispref/internals.texi (Module Nonlocal): Fix typo in return
      type of non_local_exit_get.
    • Michael Albinus's avatar
      Explain messages with patches in CONTRIBUTE · ace29fcb
      Michael Albinus authored
      * CONTRIBUTE: A message shall contain the string "[PATCH]" in the
      subject if there's a patch in the message.
    • Paul Eggert's avatar
      Support ./configure --with-gif=ifavailable etc. · 97a793cb
      Paul Eggert authored
      Suggested by Stefan Monnier in:
      * INSTALL, etc/NEWS: Document this.
      * configure.ac: Implement this.
    • Stefan Monnier's avatar
      * lisp/vc/diff-mode.el: Better handle empty lines in context diffs · 49188503
      Stefan Monnier authored
      (diff-end-of-hunk): Obey diff-valid-unified-empty-line for context style.
      (diff--refine-hunk): Don't look further than the end.
    • Paul Eggert's avatar
      Fix some integer issues in regex-emacs · b7a98993
      Paul Eggert authored
      Also, remove some duplicate comments related to thread.h.
      * src/regex-emacs.h (struct re_registers):
      * src/regex-emacs.c (SIGN_EXTEND_CHAR): Remove.
      (TALLOC, RETALLOC): Remove.  All uses replaced by usual
      allocators, which check for integer overflow.
      (extract_number): Redo without using ‘unsigned’.
      (CHARSET_RANGE_TABLE_EXISTS_P): Clearly return a boolean.
      (print_fastmap, print_partial_compiled_pattern, CHECK_INFINITE_LOOP)
      (regex_compile, analyze_first, bcmp_translate, mutually_exclusive_p)
      Use bool for booleans.
      (print_fastmap, regex_compile, execute_charset):
      Prefer int to unsigned where either will do.
      (print_double_string): Prefer ptrdiff_t to ssize_t, since the
      latter can in theory be narrower than the former.  Use fwrite
      instead of repeated putchar.
      (emacs_re_max_failures, fail_stack_type, compile_stack_type)
      (re_wctype_parse, regex_compile, re_search, re_search_2)
      (re_match_2, re_match_2_internal, re_compile_pattern):
      Prefer ptrdiff_t to size_t where either will do.
      (union fail_stack_elt, PUSH_FAILURE_REG, POP_FAILURE_REG_OR_COUNT):
      Make the integer an intptr_t, not long.
      (GET_BUFFER_SPACE, EXTEND_BUFFER, regex_compile):
      Use xpalloc to simplify allocation.
      (regex_compile): Check for integer overflow when calculating
      register numbers.
      * src/regex-emacs.c (re_set_registers, re_match_2_internal):
      * src/regex-emacs.h (struct re_registers, struct re_pattern_buffer):
      * src/search.c (Freplace_match):
      Prefer ptrdiff_t to unsigned where either will do.
      * src/regex-emacs.h (struct re_pattern_buffer):
      Prefer bool_bf to unsigned where either will do.