1. 12 Jun, 2022 16 commits
    • Juri Linkov's avatar
      * lisp/icomplete.el: Consider a list in minibuffer-default (bug#55800) · 72e0ef74
      Juri Linkov authored
      * lisp/icomplete.el (icomplete--sorted-completions): Handle a string value
      in the first element of the list of default values in minibuffer-default.
      72e0ef74
    • Eli Zaretskii's avatar
    • Juri Linkov's avatar
      * lisp/isearch.el (isearch-search-fun-in-text-property): Handle ^/$ specially. · e42d4d2d
      Juri Linkov authored
      When the regexp contains ^ or $ then use a temporary buffer to find matches
      at the beginning/end of the region with the given text property (bug#14013).
      e42d4d2d
    • Po Lu's avatar
      Fix encoding of multibyte ToolTalk filenames · 1dd92bb7
      Po Lu authored
      * lisp/select.el (xselect-convert-to-dt-netfile): Encode file
      name before computing its tooltalk name, since the indices work
      on bytes.
      
      * test/lisp/dnd-tests.el (dnd-tests-begin-file-drag): Add test.
      1dd92bb7
    • Po Lu's avatar
      Fix handling of scroll bar clicks on Haiku · 6263f586
      Po Lu authored
      * src/haiku_support.cc (class EmacsView, BasicMouseDown)
      (BasicMouseUp): Move MouseDown and MouseUp here.  New parameter
      `scroll_bar'.
      (MouseDown, MouseUp): Call basic variants.
      
      (class EmacsScrollBar): New field `parent'.
      (BScrollBar_make_for_view): Rename to
      `be_create_scroll_bar_for_view'.
      * src/haiku_support.h (struct haiku_button_event): New field
      `scroll_bar'.
      * src/haikuterm.c (haiku_scroll_bar_from_widget): Handle NULL
      widget.
      (haiku_scroll_bar_create): Update calls.
      (haiku_mouse_position): Fix scroll bar part.
      (haiku_read_socket): Handle button events on scroll bars as
      scroll bar click events.
      6263f586
    • Mattias Engdegård's avatar
      Use BASE_EQ when comparing with Qunbound · bab1d412
      Mattias Engdegård authored
      Qunbound is uninterned and can therefore never be EQ to any symbol
      with position.
      
      * src/buffer.c (Fbuffer_local_value, buffer_lisp_local_variables)
      (buffer_local_variables_1):
      * src/bytecode.c (exec_byte_code):
      * src/comp.c (compile_function, Fcomp__compile_ctxt_to_file):
      * src/composite.c (composition_gstring_cache_clear_font):
      * src/data.c (Fboundp, Fsymbol_value, set_internal)
      (Fdefault_boundp, Fdefault_value, Fmake_variable_buffer_local):
      * src/emacs-module.c (module_global_reference_p):
      * src/eval.c (Fdefault_toplevel_value, defvar)
      (run_hook_with_args):
      * src/fns.c (hash_put, Fmaphash):
      * src/font.c (font_put_extra):
      * src/frame.c (gui_set_frame_parameters)
      (gui_frame_get_and_record_arg, gui_default_parameter)
      (gui_figure_window_size):
      * src/haikufns.c (get_geometry_from_preferences)
      (haiku_create_frame, haiku_create_tip_frame):
      * src/haikuterm.c (haiku_draw_text_decoration)
      (haiku_default_font_parameter):
      * src/json.c (lisp_to_json_nonscalar_1):
      * src/keymap.c (access_keymap_1, access_keymap, current_minor_maps):
      * src/lread.c (readevalloop, define_symbol):
      * src/minibuf.c (read_minibuf, Ftry_completion):
      (Fall_completions, Ftest_completion):
      * src/pgtkfns.c (pgtk_default_font_parameter, Fx_create_frame)
      (x_create_tip_frame):
      * src/pgtkselect.c (Fpgtk_own_selection_internal):
      * src/print.c (print):
      * src/profiler.c (evict_lower_half, record_backtrace):
      * src/terminal.c (create_terminal):
      * src/textprop.c (set_properties):
      * src/w32fns.c (my_create_window, w32_icon)
      (w32_default_font_parameter, Fx_create_frame)
      (w32_create_tip_frame):
      * src/w32term.c (w32_draw_glyph_string):
      * src/xdisp.c (handle_single_display_spec)
      (cursor_row_fully_visible_p, calc_pixel_width_or_height):
      * src/xfns.c (x_default_scroll_bar_color_parameter, x_icon_verify)
      (x_icon, x_default_font_parameter, Fx_create_frame)
      (x_create_tip_frame):
      * src/xselect.c (x_handle_selection_request):
      * src/xterm.c (x_draw_glyph_string, x_term_init):
      Use BASE_EQ instead of EQ when comparing with Qunbound.
      bab1d412
    • Lars Ingebrigtsen's avatar
      Make find-sibling-file-search non-private · 980009e8
      Lars Ingebrigtsen authored
      * lisp/files.el (find-sibling-file-search): Rename to be non-private.
      (find-sibling-file): Adjust call.
      980009e8
    • Eli Zaretskii's avatar
      Fix "C-x C-d" with wildcard arguments · dc5f6dce
      Eli Zaretskii authored
      * lisp/files.el (list-directory): Make sure 'default-directory' is
      set to a valid value if the argument DIRNAME included wildcards.
      (Bug#55877)
      dc5f6dce
    • Po Lu's avatar
      Fix phantom drag-and-drop targets showing up in some programs · 5bf40932
      Po Lu authored
      * src/xterm.c (x_dnd_cleanup_drag_and_drop)
      (x_dnd_begin_drag_and_drop): Delete XdndTypeList if it was set
      after the DND operation completes.  Some programs apparently
      think its presence on the drag source means there are more than
      3 targets.
      5bf40932
    • Richard Hansen's avatar
      bindat (str, strz): Reject non-ASCII, non-`eight-bit' characters · c1829b30
      Richard Hansen authored
      * lisp/emacs-lisp/bindat.el (str) (strz): Signal an error if the user
      attempts to pack a multibyte string containing characters other than
      ASCII and `eight-bit' characters (bug#55897).
      * doc/lispref/processes.texi (Bindat Types): Update documentation.
      * test/lisp/emacs-lisp/bindat-tests.el (str) (strz): Add tests.
      c1829b30
    • Po Lu's avatar
      Don't repetitively initialize type lists during DND · c2695621
      Po Lu authored
      * src/xterm.c (x_dnd_send_enter): Only set XdndTypeList once.
      (x_dnd_begin_drag_and_drop): Clear type list flag.
      c2695621
    • Stefan Kangas's avatar
      Merge from origin/emacs-28 · 0451a76f
      Stefan Kangas authored
      cbd2c87a ; Fix last change in whitespace.el.
      52ad2b53 Fix doc strings in whitespace.el
      0451a76f
    • Stefan Monnier's avatar
    • Po Lu's avatar
      Use cached monitor info during DND if available · 6aa8baae
      Po Lu authored
      * src/xterm.c (x_dnd_begin_drag_and_drop): Use previously cached
      monitor attributes if they exist.
      6aa8baae
    • Po Lu's avatar
    • Po Lu's avatar
      Don't rely on XdndAware on frames for dropping to work · 0adbb21e
      Po Lu authored
      * src/xterm.c (x_dnd_get_target_window): New parameter
      WAS_FRAME.  If toplevel is a frame, set it and clear proto and
      motif.
      (x_dnd_send_enter, x_dnd_send_position, x_dnd_send_leave)
      (x_dnd_send_drop): Remove special-cased self dropping code.
      (x_dnd_note_self_position, x_dnd_note_self_drop): New functions.
      
      (x_dnd_begin_drag_and_drop, x_dnd_update_state):
      (handle_one_xevent): Handle our own frames using those functions
      instead.
      0adbb21e
  2. 11 Jun, 2022 24 commits