1. 21 May, 2020 1 commit
    • Paul Eggert's avatar
      Redo RCS Id for pdumper · 62a5e890
      Paul Eggert authored
      * lisp/version.el: Don’t put an RCS Id style string into the
      executable via purecopy, as this does not work with the pdumper.
      * src/emacs.c (RCS_Id): New constant, for 'ident'.
      
      (cherry picked from commit 3d1bcfba)
      62a5e890
  2. 13 May, 2020 2 commits
  3. 09 May, 2020 1 commit
    • Philipp Stephani's avatar
      Refer to fill column indicator Info node in some places. · d5c184aa
      Philipp Stephani authored
      * src/xdisp.c (syms_of_xdisp): Add reference to manual in
      documentation strings for variables related to fill column indicators.
      
      * lisp/display-fill-column-indicator.el (display-fill-column-indicator)
      (display-fill-column-indicator-mode): Add reference to manual.
      d5c184aa
  4. 08 May, 2020 1 commit
  5. 05 May, 2020 1 commit
  6. 03 May, 2020 1 commit
  7. 29 Apr, 2020 1 commit
  8. 28 Apr, 2020 1 commit
    • Eli Zaretskii's avatar
      Avoid crashes on TTY frames with over-long compositions · 16fed05b
      Eli Zaretskii authored
      * src/term.c (encode_terminal_code): Each character from an
      automatic composition is a multibyte character, so its multibyte
      representation can take up to MAX_MULTIBYTE_LENGTH bytes.
      Account for that when allocating storage for characters to be
      encoded.  (Bug#40913)
      16fed05b
  9. 24 Apr, 2020 1 commit
  10. 19 Apr, 2020 1 commit
  11. 18 Apr, 2020 2 commits
  12. 15 Apr, 2020 1 commit
    • YAMAMOTO Mitsuharu's avatar
      Limit RLIMIT_NOFILE to FD_SETSIZE on macOS · d87a4d1f
      YAMAMOTO Mitsuharu authored
      * src/nsterm.m ([EmacsApp applicationDidFinishLaunching:]): Call
      CoreFoundation functions that increase RLIMIT_NOFILE behind our back
      during startup, and then set RLIMIT_NOFILE back to FD_SETSIZE to avoid
      crashes in setup_process_coding_system  (Bug#39164).
      d87a4d1f
  13. 13 Apr, 2020 1 commit
  14. 12 Apr, 2020 1 commit
    • Martin Rudalics's avatar
      Fix build failure with Fx_gtk_debug · 1482a75e
      Martin Rudalics authored
      * src/xfns.c (Fx_gtk_debug, Sx_gtk_debug): Define only for GTK
      versions >= 3.14.0 so gtk_window_set_interactive_debugging is
      defined.  Reported by Andreas Schwab  <schwab@linux-m68k.org>.
      1482a75e
  15. 10 Apr, 2020 1 commit
    • Eli Zaretskii's avatar
      Fix redisplay when scrolling under redisplay-dont-pause · 17a1bb5a
      Eli Zaretskii authored
      * src/dispnew.c (update_window): Reset the window's
      'must_be_updated_p' flag if the window's update was completed
      without interruption.  This fixes redisplay glitches when
      'redisplay-dont-pause' is nil, at least on MS-Windows, because
      'expose_window' doesn't redraw the exposed rectangle when the
      window's 'must_be_updated_p' flag is set.
      17a1bb5a
  16. 09 Apr, 2020 1 commit
  17. 08 Apr, 2020 1 commit
  18. 06 Apr, 2020 1 commit
    • Martin Rudalics's avatar
      Fix some problems with moving and resizing child frames · c49d379f
      Martin Rudalics authored
      (1) Provide new option 'x-gtk-resize-child-frames' which allows
      to either hide a child frame during resizing or asks GTK to
      resize it "immediately".  This is needed because desktops like
      GNOME shell otherwise won't allow resizing child frames at all.
      (2) Do not try to synchronize the position of a child frame
      after moving it.  Needed because the present implementation
      introduces a 0.5 secs delay which makes dragging child frames
      virtually impossible with Lucid and Motif toolkits on desktops
      like GNOME shell that use invisible outer frame borders.
      
      For further information see the thread starting with
      https://lists.gnu.org/archive/html/emacs-devel/2020-01/msg00343.html
      
      * src/frame.c (syms_of_frame): New symbol Qxg_frame_set_char_size_4.
      * src/gtkutil.c (xg_frame_set_char_size): Hide child frame
      during resizing when 'x-gtk-resize-child-frames' equals 'hide'.
      * src/xfns.c (x_set_parent_frame, Fx_create_frame): Set
      gtk_container_resize_mode to GTK_RESIZE_IMMEDIATE for child
      frames when'x-gtk-resize-child-frames' equals 'resize-mode'.
      (Fx_gtk_debug): New function to toggle interactive GTK debugging
      from within Emacs.
      (syms_of_xfns): New symbols Qhide and Qresize_mode.
      (x-gtk-resize-child-frames): New option that allows to resize
      child frames on desktops like GNOME shell (with the mutter WM)
      that otherwise refuse to resize them.
      * src/xterm.c (x_set_offset): Don't x_sync_with_move for child
      frames, it makes moving child frames virtually impossible with
      the Lucid and Motif toolkits.
      c49d379f
  19. 03 Apr, 2020 3 commits
  20. 29 Mar, 2020 3 commits
  21. 23 Mar, 2020 1 commit
    • Noam Postavsky's avatar
      Don't signal during backtrace unrewind (Bug#40088) · 8944310d
      Noam Postavsky authored
      backtrace_eval_unrewind is used to temporarily reverse
      let-bindings (it's called with a positive argument to reverse
      bindings, and then a negative argument to re-apply them) by
      backtrace--locals and backtrace-eval.  For the SPECPDL_LET_DEFAULT and
      SPECPDL_LET_LOCAL cases (which occur for let-bindings on buffer-local
      variables), the code calls Fdefault_value and Fbuffer_local_value on
      the symbol.
      
      For symbols which are unbound at top-level, the first (with positive
      argument) call to backtrace_eval_unrewind will set the symbol's value
      to unbound (putting the current value in the specpdl's "old value"
      slot).  On the second (with negative argument) call,
      backtrace_eval_unrewind attempts to retrieve the symbol's value with
      Fdefault_value or Fbuffer_local_value, but that raises a void-variable
      signal.  This interrupts the restoration of the let-bindings, so any
      other variables more recent on the stack will now have the wrong
      value.
      
      * src/data.c (default_value): Make non-static.
      * src/lisp.h: Declare it.
      * src/eval.c (backtrace_eval_unrewind): Replace the calls to
      Fdefault_value and Fbuffer_local_value with default_value and
      buffer_local_value, respectively.  The latter do exactly the same as
      the former, except if the symbol's value is Qunbound they just return
      it instead of signaling void-variable.
      8944310d
  22. 19 Mar, 2020 1 commit
  23. 17 Mar, 2020 1 commit
    • Robert Pluim's avatar
      Recalculate default font when switching font backend · 5747a59a
      Robert Pluim authored
      This is an updated version of the patch by Dmitry Antipov
      <dmantipov@yandex.ru> in
      <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23386#43>.
      
      Fixes Bug#23386
      
      * src/dispextern.h (struct redisplay_interface): New member
      default_font_parameter.
      * src/xterm.h: Add prototype for x_default_font_parameter.
      * src/xterm.c (x_redisplay_interface): Initialize
      default_font_parameter member.
      * src/xfns.c (x_default_font_parameter): Make non-static.
      * src/w32term.h: Add prototype for w32_default_font_parameter
      * src/w32fns.c (w32_default_font_parameter): Make non-static.
      * src/w32term.c (w32_redisplay_interface): Initialize
      default_font_parameter member.
      * src/nsterm.m (ns_redisplay_interface): Add dummy
      ns_default_font_parameter (there is currently only one possible font
      backend on macOS).  Initialize default_font_parameter member.
      * src/frame.c (gui_set_font_backend): Recalculate default font using
      RIF default_font_parameter to avoid crash when changing font backend.
      5747a59a
  24. 14 Mar, 2020 1 commit
  25. 09 Mar, 2020 1 commit
  26. 08 Mar, 2020 3 commits
  27. 06 Mar, 2020 1 commit
  28. 05 Mar, 2020 1 commit
    • Eli Zaretskii's avatar
      Avoid crashes when a fontset has strange entries · 88c6db91
      Eli Zaretskii authored
      * src/fontset.c (reorder_font_vector): Skip nil entries in the
      loop that assigns scores to rfont_def's.
      (fontset_compare_rfontdef): Cope with nil.  This has the effect of
      moving any nil entries to the end of the font-group, and avoids
      crashing if an element other than the last in the font-group is
      nil.  (Bug#39892)
      88c6db91
  29. 03 Mar, 2020 2 commits
  30. 02 Mar, 2020 1 commit
    • Robert Pluim's avatar
      Don't attempt to cache glyph metrics for FONT_INVALID_CODE · fe1a447d
      Robert Pluim authored
      This was causing massive slowdown in redisplay when eg #xfe0f
      (VARIATION SELECTOR-16) was present, as the cache ended up very large,
      unused, and being recreated on every call to font_fill_lglyph_metrics
      (Bug#39133).
      
      * src/composite.c (fill_gstring_body): Hoist FONT_OBJECT_P check out
      of loop.  Calculate glyph code and check for FONT_INVALID_CODE before
      calling font_fill_lglyph_metrics.  Pass glyph code to it.
      
      * src/font.c (font_fill_lglyph_metrics): Add code parameter, move
      glyph code calculation up the call stack into fill_gstring_body.
      
      * src/font.h: Adjust font_fill_lglyph_metrics prototype.
      fe1a447d
  31. 28 Feb, 2020 1 commit