1. 28 May, 2022 9 commits
  2. 27 May, 2022 27 commits
    • Paul Eggert's avatar
      Remove stray decl of nonexistent var · 3bbf047c
      Paul Eggert authored
      * src/lisp.h (symbols_with_pos_enabled): Remove decl.
    • Paul Eggert's avatar
      decoded-time-set-defaults now leaves DST alone · d9879e68
      Paul Eggert authored
      * lisp/calendar/time-date.el (decoded-time-set-defaults):
      Don’t mess with decoded-time-dst (Bug#55635).
    • Paul Eggert's avatar
      Fix unlikely null pointer dereference · eb37e481
      Paul Eggert authored
      * src/xselect.c (Fx_get_atom_name): Fix unlikely core dump when
      build_string is called on a null pointer.  Found by GCC -fanalyzer.
    • Paul Eggert's avatar
      Add ATTRIBUTE_DEALLOC to extern functions · cb57db51
      Paul Eggert authored
      This can help static checking.  It’s not as important for static
      functions, where GCC can figure this stuff out own its own.
      * src/sysstdio.h (emacs_fopen): Add ATTRIBUTE_DEALLOC (fclose, 1).
      * src/tparam.h (tparam): Add ATTRIBUTE_DEALLOC_FREE.
      Include stdlib.h so that ‘free’ is declared.
      * src/xterm.h (x_get_atom_name): Add ATTRIBUTE_DEALLOC_FREE.
    • Paul Eggert's avatar
      Pacify gcc -Wsuggest-attribute-malloc · 7f3d781d
      Paul Eggert authored
      * src/xterm.h (x_get_atom_name): Add ATTRIBUTE_MALLOC.
    • Juri Linkov's avatar
      Fix navigation in the *Completions* buffer and enable more tests (bug#54374) · 6c4d7670
      Juri Linkov authored
      * lisp/ido.el: Use first-completion instead of next-completion.
      * lisp/minibuffer.el (completion--insert): Put completion--string
      text property on prefix and suffix as well.
      * lisp/simple.el (first-completion, last-completion): New commands.
      (next-completion): Rewrite to fix many bugs reported in
      bug#54374, bug#55289, bug#55430.
      (choose-completion): Use the text property completion--string that
      allows to select a completion when point is on its prefix or suffix.
      (switch-to-completions): Use first-completion instead of next-completion,
      and last-completion instead of previous-completion.
      * test/lisp/minibuffer-tests.el (completion-auto-select-test)
      (completion-auto-wrap-test, completions-header-format-test)
      (completions-affixation-navigation-test): Uncomment fixed lines.
    • Eli Zaretskii's avatar
      Extend 'C-x 8 =' to produce characters with macron · 4df20e2f
      Eli Zaretskii authored
      * lisp/international/iso-transl.el (iso-transl-char-map): Add
      several new sequences for characters with macron.  (Bug#55668)
    • Stefan Monnier's avatar
      * lisp/shell.el (shell): Query shell file name from `interactive` · f8b2a01a
      Stefan Monnier authored
      This avoids the use of the brittle `called-interactively-p`
      and makes it easier to start a shell buffer running another shell than
      your usual one.
    • Eli Zaretskii's avatar
      Improve font selection on MS-Windows · 8399c6a8
      Eli Zaretskii authored
      The Arial Unicode MS font claims in its USB (Unicode Subset
      Bitfields) values support for several scripts for which it
      doesn't actually have glyphs.  This sometimes caused Emacs to
      decide to use Arial Unicode MS for some script, only to
      discover later that there are no glyphs for that script's
      characters.  This change fixes the USB values according to
      actual font coverage, as determined by BabelMap.
      * src/w32font.c (add_font_entity_to_list): Fix USB values of Arial
      Unicode MS font according to its actual coverage of scripts.
    • Lars Ingebrigtsen's avatar
      Make make-decoded-time use -1 for dst unless given · a83e75b2
      Lars Ingebrigtsen authored
      * lisp/calendar/time-date.el (make-decoded-time): DST -1 is the
      value for "doesn't know", not nil (bug#55635).
    • Lars Ingebrigtsen's avatar
      Make package-update-all also refresh the list · fd4a0c02
      Lars Ingebrigtsen authored
      * lisp/emacs-lisp/package.el (package-update-all): Also refresh
      package list.
    • Po Lu's avatar
      Fix GNUstep build · 82b75a97
      Po Lu authored
      * src/nsterm.h (NSPasteboardNameGeneral): Fix definition.
    • Po Lu's avatar
      Fix NS drag and drop on macOS · 5d2523dc
      Po Lu authored
      * lisp/term/ns-win.el (gui-backend-set-selection):
      * src/nsselect.m (Fns_begin_drag): Fix deprecation warnings and
      selection/value mixup.
    • Po Lu's avatar
    • Po Lu's avatar
      Implement some drag and drop functions on NS · 27de58af
      Po Lu authored
      * lisp/term/ns-win.el (ns-selection-exists-p):
      (x-begin-drag): New functions and selection types.
      * src/nsfns.m (Fns_get_resource):
      (Fx_server_max_request_size): Fix coding style.
      * src/nsselect.m (ns_decode_data_to_pasteboard):
      (Fns_begin_drag): New functions.
      (syms_of_nsselect): New subrs.
      * src/nsterm.h (EmacsWindow): New fields and messages.
      (NSPasteboardNameGeneral): New define.
      * src/nsterm.m ([EmacsView mouseDown:]): Store last mouse event.
      ([EmacsWindow initWithEmacsFrame:fullscreen:screen:]): Clear that event.
      ([EmacsWindow dealloc]): Free last mouse event.
    • Stefan Kangas's avatar
    • Stefan Kangas's avatar
      Prefer defvar-keymap in some progmodes · 7d74b8f6
      Stefan Kangas authored
      * lisp/progmodes/asm-mode.el (asm-mode-map):
      * lisp/progmodes/bug-reference.el (bug-reference-map):
      * lisp/progmodes/erts-mode.el (erts-mode-map):
      * lisp/progmodes/flymake.el (flymake-mode-map)
      * lisp/progmodes/icon.el (icon-mode-map):
      * lisp/progmodes/js.el (js-mode-map):
      * lisp/progmodes/m4-mode.el (m4-mode-map):
      * lisp/progmodes/mixal-mode.el (mixal-mode-map):
      * lisp/progmodes/scheme.el (scheme-mode-map): Prefer defvar-keymap.
    • Stefan Kangas's avatar
      Silence byte-compiler warning about x-pointer-invisible · 4ed0f6e9
      Stefan Kangas authored
      * lisp/avoid.el (x-pointer-invisible): Declare to silence
    • Eli Zaretskii's avatar
    • समीर सिंह Sameer Singh's avatar
      Add support for the Javanese script (bug#55667) · 77bfc5ed
      * lisp/language/indonesian.el ("Javanese"): New language environment.
      Add composition rules for Javanese.  Add sample text and input
      * lisp/international/fontset.el (script-representative-chars):
      Support Javanese.
      * lisp/leim/quail/indonesian.el ("javanese"): New input method.
      * etc/NEWS: Announce the new language environment and its
      input method.
    • Po Lu's avatar
    • Po Lu's avatar
      Update comments in some X code · edd11a2c
      Po Lu authored
      * src/xterm.c (x_parse_color): Update comment.
      (syms_of_xterm): Add new debugging option too.
    • Stefan Kangas's avatar
      Merge from origin/emacs-28 · 7da75401
      Stefan Kangas authored
      9283508f Fix format specifiers in tramp-adb.el
      a9f17ccc ; Fix some doc typos and minor language issues
    • Po Lu's avatar
      Fix XI scroll valuator reset on X Toolkit builds · bb031744
      Po Lu authored
      * src/xterm.c (handle_one_xevent): Reset valuators on XI_Leave
      if leave->event is an edit widget as well.
    • Po Lu's avatar
      Improve lookup efficiency of color cache and prevent leaking · c0807dae
      Po Lu authored
      * src/xterm.c (x_parse_color): Move recently used colors to the
      start of the cache and free unused entries when there are too
      (x_term_init, x_delete_display): Initialize and free new fields.
      * src/xterm.h (struct x_display_info): New field
    • Po Lu's avatar
      Handle allocation errors when creating menu items on Haiku · 8dcebc96
      Po Lu authored
      * src/haiku_support.cc (class EmacsMenuItem): Don't abort on
      failed strdup.
    • Po Lu's avatar
      Fix longjmp/siglongjmp mixup · 061c2d68
      Po Lu authored
      * src/xterm.c (xm_drag_window_io_error_handler)
      (x_dnd_io_error_handler): Use `siglongjmp'.  Reported by Ken
      Brown <kbrown@cornell.edu>.
  3. 26 May, 2022 4 commits