1. 02 Mar, 2019 5 commits
    • Phillip Lord's avatar
      Revert "; Fix typos in NEWS" · 5e4b8538
      Phillip Lord authored
      This reverts commit d52bc534.
      5e4b8538
    • Phillip Lord's avatar
      Revert "; Document input-event-functions" · 325b5dbd
      Phillip Lord authored
      This reverts commit 27fffb27.
      325b5dbd
    • Mattias Engdegård's avatar
      Correct regexp-opt return value for empty string list · 7bda34af
      Mattias Engdegård authored
      When regexp-opt is called with an empty list of strings, return a regexp
      that doesn't match anything instead of the empty string (Bug#20307).
      
      * doc/lispref/searching.texi (Regular Expression Functions):
      * etc/NEWS:
      Document the new behaviour.
      * lisp/emacs-lisp/regexp-opt.el (regexp-opt):
      Return a never-match regexp for empty inputs.
      7bda34af
    • Mattias Engdegård's avatar
      rx: fix `or' ordering by adding argument to regexp-opt · da758046
      Mattias Engdegård authored
      The rx `or' form may reorder its arguments in an unpredictable way,
      contrary to user expectation, since it sometimes uses `regexp-opt'.
      Add a NOREORDER option to `regexp-opt' for preventing it from
      producing a reordered regexp (Bug#34641).
      
      * doc/lispref/searching.texi (Regular Expression Functions):
      * etc/NEWS (Lisp Changes in Emacs 27.1):
      Describe the new regexp-opt NOREORDER argument.
      * lisp/emacs-lisp/regexp-opt.el (regexp-opt): Add NOREORDER.
      Make no attempt at regexp improvement if the set of strings contains
      a prefix of another string.
      (regexp-opt--contains-prefix): New.
      * lisp/emacs-lisp/rx.el (rx-or): Call regexp-opt with NOREORDER.
      * test/lisp/emacs-lisp/rx-tests.el: Test rx `or' form match order.
      da758046
    • Eli Zaretskii's avatar
      Fix 'end-of-visual-line' with overlay strings with newlines · dbffbe08
      Eli Zaretskii authored
      * src/indent.c (Fvertical_motion): Get out of overlay strings
      with embedded newlines even if moving within the same screen
      line.  See https://github.com/emacs-lsp/lsp-mode/issues/677
      for more details.
      Fix test for IT_CHARPOS being at the beginning of the
      accessible portion of the buffer.
      dbffbe08
  2. 01 Mar, 2019 19 commits
  3. 28 Feb, 2019 4 commits
    • Juri Linkov's avatar
      * lisp/replace.el (flush-lines): Return the number of deleted lines. · 44b7436d
      Juri Linkov authored
      When called interactively, also print the number. (Bug#34520)
      
      * doc/emacs/search.texi (Other Repeating Search): Update
      flush-lines that prints the number of deleted lines.
      44b7436d
    • Eli Zaretskii's avatar
      Avoid rare crashes in xbacktrace · 5d60229b
      Eli Zaretskii authored
      * src/eval.c (backtrace_thread_p, backtrace_top): Don't
      segfault in "xbacktrace" if called before the specpdl
      machinery is initialized in pdumped Emacs.
      5d60229b
    • Michael Albinus's avatar
      Adapt test names in tramp-archive-tests.el · 0a5212b9
      Michael Albinus authored
      * test/lisp/net/tramp-archive-tests.el
      (tramp-archive-test39-make-nearby-temp-file)
      (tramp-archive-test42-file-system-info)
      (tramp-archive-test45-auto-load)
      (tramp-archive-test45-delay-load): Rename.
      0a5212b9
    • Michael Albinus's avatar
      Use proper read syntax for all function names in Tramp · a80e1045
      Michael Albinus authored
      * lisp/net/tramp.el:
      * lisp/net/tramp-adb.el:
      * lisp/net/tramp-archive.el:
      * lisp/net/tramp-cache.el:
      * lisp/net/tramp-cmds.el:
      * lisp/net/tramp-compat.el:
      * lisp/net/tramp-ftp.el:
      * lisp/net/tramp-gvfs.el:
      * lisp/net/tramp-integration.el:
      * lisp/net/tramp-rclone.el:
      * lisp/net/tramp-sh.el:
      * lisp/net/tramp-smb.el:
      * lisp/net/tramp-sudoedit.el:
      * test/lisp/net/tramp-archive-tests.el:
      * test/lisp/net/tramp-tests.el: Use proper read syntax for all
      function names.
      a80e1045
  4. 27 Feb, 2019 9 commits
    • Paul Eggert's avatar
      Escape HTML NUL as � in eww · 4927f947
      Paul Eggert authored
      * lisp/net/eww.el (eww-display-html): Escape NUL as � as this
      is more appropriate for HTML.
      4927f947
    • Juri Linkov's avatar
      * lisp/vc/vc-annotate.el: Better error handling (bug#34532) · 4a16e630
      Juri Linkov authored
      * lisp/vc/vc-annotate.el (vc-annotate-revision-previous-to-line):
      Print message when prev-rev is nil.
      4a16e630
    • Juri Linkov's avatar
      Directional window swap states (bug#34656) · 5962a7c3
      Juri Linkov authored
      * lisp/windmove.el (windmove-swap-states-in-direction)
      (windmove-swap-states-left, windmove-swap-states-up)
      (windmove-swap-states-down, windmove-swap-states-right)
      (windmove-swap-states-default-keybindings): New functions.
      5962a7c3
    • Juri Linkov's avatar
      * doc/emacs/frames.texi (Multiple Displays): Add make-frame-on-monitor. · 56443690
      Juri Linkov authored
      * doc/lispref/frames.texi (Multiple Terminals): Add make-frame-on-monitor.
      (Bug#34516)
      56443690
    • Arash Esbati's avatar
      Improve matching of key-val labels (bug#34629) · b18cecf8
      Arash Esbati authored
      * lisp/textmodes/reftex-vars.el (reftex-label-regexps): Improve
      regexp for key-val labels in order to skip over content in braces.
      b18cecf8
    • Robert Pluim's avatar
      Replace NUL characters when calling into libxml · d07f3aae
      Robert Pluim authored
      2019-02-27  Robert Pluim  <rpluim@gmail.com>
      
      * lisp/net/eww.el (eww-display-html): Replace NUL characters with
      "\0", as libxml can't handle embedded NULLs.  (Bug#34469)
      d07f3aae
    • Stefan Monnier's avatar
    • John Shahid's avatar
      Add text properties to newlines used to unwrap long lines. · 52cd63d5
      John Shahid authored
      * lisp/term.el (term-emulate-terminal): do it.
      52cd63d5
    • Paul Eggert's avatar
      DEFVAR_INT variables are now intmax_t · e828765d
      Paul Eggert authored
      Formerly they were fixnums, which led to problems when dealing
      with values that might not fit on 32-bit platforms, such as
      string-chars-consed or floats_consed.  64-bit counters should
      be good enough for these (for a while, anyway...).
      While we’re at it, fix some unlikely integer overflow bugs
      that have been in the code for a while.
      * lib-src/make-docfile.c (write_globals):
      * src/data.c (do_symval_forwarding, store_symval_forwarding):
      * src/eval.c (restore_stack_limits, call_debugger):
      * src/frame.h (struct frame.cost_calculation_baud_rate):
      * src/keyboard.c (last_auto_save, bind_polling_period, read_char):
      * src/lisp.h (struct Lisp_Intfwd.intvar):
      * src/lread.c (defvar_int):
      * src/pdumper.c (dump_fwd_int):
      * src/thread.h (struct thread_state.m_lisp_eval_depth):
      * src/undo.c (truncate_undo_list):
      * src/xselect.c (wait_for_property_change)
      (x_get_foreign_selection):
      * src/xterm.c (x_emacs_to_x_modifiers):
      DEFVAR_INT variables now have the C type intmax_t, not EMACS_INT.
      * src/data.c (store_symval_forwarding):
      * src/gnutls.c (Fgnutls_boot):
      * src/keyboard.c (bind_polling_period):
      * src/macros.c (pop_kbd_macro, Fexecute_kbd_macro):
      * src/undo.c (truncate_undo_list):
      Allow any integer that fits into intmax_t, instead of
      requiring it to be a Lisp fixnum.
      * src/dispnew.c (update_window):
      * src/frame.c (x_figure_window_size):
      * src/gnutls.c (init_gnutls_functions)
      (emacs_gnutls_handle_error):
      * src/keyboard.c (make_lisp_event):
      * src/nsterm.m (ns_dumpglyphs_image):
      * src/profiler.c (make_log):
      * src/scroll.c (calculate_scrolling)
      (calculate_direct_scrolling):
      * src/termcap.c (tputs):
      * src/xterm.c (x_draw_image_relief):
      Avoid implementation-defined behavior on conversion of
      out-of-range integers.
      * src/eval.c (when_entered_debugger): Now intmax_t.
      (max_ensure_room): New function, that avoids signed integer overflow.
      (call_debugger, signal_or_quit): Use it.
      * src/fileio.c (Fdo_auto_save):
      * src/keyboard.c (make_lisp_event):
      * src/term.c (calculate_costs):
      * src/xdisp.c (build_desired_tool_bar_string)
      (hscroll_window_tree, try_scrolling, decode_mode_spec)
      (x_produce_glyphs):
      Avoid signed integer overflow.
      * src/lisp.h (clip_to_bounds): Generalize to intmax_t.
      * src/pdumper.c (dump_emacs_reloc_immediate_emacs_int): Remove, ...
      (dump_emacs_reloc_immediate_intmax_t): ... replacing with this
      function.  All uses changed.
      * src/profiler.c (make_log): Omit args.  All callers changed.
      * src/termcap.c: Include stdlib.h, for atoi.
      Include intprops.h.
      * src/window.c (sanitize_next_screen_context_lines): New function.
      (window_scroll_pixel_based, window_scroll_line_based):
      Use it to avoid signed integer overflow.
      e828765d
  5. 26 Feb, 2019 1 commit
  6. 25 Feb, 2019 2 commits