1. 23 Jun, 2022 3 commits
  2. 22 Jun, 2022 20 commits
  3. 21 Jun, 2022 17 commits
    • Sam Steingold's avatar
      A trivial optimization and a formatting fix · 6f5f2ebf
      Sam Steingold authored
      * lisp/subr.el (internal--compiler-macro-cXXr): Re-use `head' for `n'.
      Fix indentation and line length.
      6f5f2ebf
    • Tassilo Horn's avatar
      Merge from origin/emacs-28 · 5e40c5a3
      Tassilo Horn authored
      f3acc093 ; Revert "Use file-in-directory-p instead of obsolete dire...
      5082d74c ; * lisp/recentf.el: Fix typo.
      3f66e2a9 * lisp/repeat.el (repeat-mode): Fix message format.
      137539c1 Clarify autotype.texi text slightly
      5e40c5a3
    • Lars Ingebrigtsen's avatar
      Fix logic in previous Tetris change · de30e8c0
      Lars Ingebrigtsen authored
      * lisp/play/tetris.el (tetris-new-shape): Fix logic in previous
      change.
      de30e8c0
    • Timothee Denizou's avatar
      Allow different randomization of shapes in Tetris · ca6c8fc7
      Timothee Denizou authored
      * lisp/play/tetris.el (tetris-allow-repetitions): New user option.
      (tetris--shuffle, tetris--seven-bag): New functions.
      (tetris-new-shape): Use the option.
      
      * Added 7 bag randomizer for tetris
      A piece is selected from the bag and removed each time we want a piece
      When the bag is empty, refill the bag with the seven piece and shuffle it
      
      Copyright-paperwork-exempt: yes
      ca6c8fc7
    • Tassilo Horn's avatar
      ; Revert "Use file-in-directory-p instead of obsolete dired-in-this-tree-p" · f3acc093
      Tassilo Horn authored
      Fixes bug#56126.
      
      This reverts commit b425966b.
      f3acc093
    • Lars Ingebrigtsen's avatar
      Fix shr--set-target-ids test for empty buffer · 3833ce16
      Lars Ingebrigtsen authored
      * lisp/net/shr.el (shr--set-target-ids): Fix the check for an
      empty buffer (which may be narrowed).
      3833ce16
    • Michael Heerdegen's avatar
      Fix autoload generation of iter-defun forms · 406fd979
      Michael Heerdegen authored
      This fixes Bug#54648.
      
      * lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate--make-autoload):
      Add `iter-defun' and `cl-iter-defun' to the list of "complex cases"
      that are macro-expanded and recursed on.
      406fd979
    • Philipp Stephani's avatar
      Document and test 'no-byte-compile' behavior. · dbbf38d4
      Philipp Stephani authored
      * lisp/emacs-lisp/bytecomp.el (byte-compile-file): Document behavior
      if 'no-byte-compile' is set.
      * test/lisp/emacs-lisp/bytecomp-tests.el
      (byte-compile-file/no-byte-compile): New unit test.
      * test/lisp/emacs-lisp/bytecomp-resources/no-byte-compile.el: New test
      file.
      dbbf38d4
    • Lars Ingebrigtsen's avatar
      Fix too-long ediff defface doc strings · 16d48cf8
      Lars Ingebrigtsen authored
      * lisp/vc/ediff-init.el (ediff-fine-diff-Ancestor):
      (ediff-even-diff-Ancestor):
      (ediff-odd-diff-Ancestor): Fix too-long doc strings.
      16d48cf8
    • Lars Ingebrigtsen's avatar
      Check defface doc strings · acf9dcdc
      Lars Ingebrigtsen authored
      * lisp/emacs-lisp/bytecomp.el
      (byte-compile-file-form-custom-declare-variable): We already warn
      about missing groups from byte-compile-normal-call, so this would
      be a double warning.
      (custom-declare-face)
      (byte-compile-file-form-custom-declare-face): Add doc string
      checking for defface.
      acf9dcdc
    • Lars Ingebrigtsen's avatar
      Untabify doc strings before displaying in Customize · 1883e532
      Lars Ingebrigtsen authored
      * lisp/cus-edit.el (custom-variable-documentation): Untabify the
      doc string since we'll be indenting it when displaying it (which
      makes the tabs not align properly).
      1883e532
    • Manuel Giraud's avatar
      Two typos captured on OpenBSD/clang · 0008003c
      Manuel Giraud authored
      ; * src/kqueue.c (kqueue_compare_dir_list): Indent typo.
      ; * src/sysdep.c (system_process_attributes): Unused variable on OpenBSD.
      0008003c
    • Po Lu's avatar
      Fix recent change to xlwmenu.c · a4dcc8b9
      Po Lu authored
      * lwlib/xlwmenu.c (ungrab_all): Ungrab keyboard if it was
      grabbed.  This handles `lucid--menu-grab-keyboard' changing
      while the menu is open.
      
      (XlwMenuDestroy):
      (pop_up_menu): Record if the keyboard was grabbed.
      a4dcc8b9
    • Po Lu's avatar
      Rewrite PGTK selection code from scratch · be35c92c
      Po Lu authored
      * src/frame.c (delete_frame): Clear selections and swallow
      special events.
      
      * src/keyboard.c (kbd_buffer_get_event, process_special_events):
      Also handle selection events on PGTK.
      
      * src/keyboard.h (union buffered_input_event): Include selection
      events on PGTK.
      
      * src/pgtkselect.c (symbol_to_gtk_clipboard, LOCAL_SELECTION):
      New functions and macros.
      (selection_type_to_quarks, get_func, clear_func): Delete
      functions.
      (pgtk_selection_init, pgtk_selection_lost):
      (pgtk_selection_usable): New functions.
      (Fpgtk_own_selection_internal, Fpgtk_disown_selection_internal)
      (Fpgtk_selection_exists_p, Fpgtk_selection_owner_p)
      (Fpgtk_get_selection_internal): Complete rewrite.
      (syms_of_pgtkselect): Update defsyms and add more hooks.
      
      * src/pgtkselect.h: Delete file.
      
      * src/pgtkterm.c (evq_enqueue): Set last user time based on the
      event.
      (pgtk_any_window_to_frame, button_event): Fix coding style.
      (pgtk_set_event_handler): Add selection events.
      (pgtk_find_selection_owner, pgtk_selection_event): New
      functions.
      (pgtk_term_init): Remove call to `pgtk_selection_init'.
      
      * src/pgtkterm.h (struct pgtk_display_info): New field
      `display'.
      (enum selection_input_event): New struct.  New macros for
      accessing its fields.
      be35c92c
    • Eli Zaretskii's avatar
    • Lars Ingebrigtsen's avatar
      Fix previous -batch change for gc-cons-percentage · 49137311
      Lars Ingebrigtsen authored
      * src/emacs.c (main): Reset the default for gc-cons-percentage in
      interactive Emacs.
      49137311
    • Lars Ingebrigtsen's avatar
      Increase gc-cons-percentage in -batch Emacs · 73a384a9
      Lars Ingebrigtsen authored
      * doc/lispref/os.texi (Batch Mode): Document it.
      
      * src/emacs.c (main): Use a gc-cons-percentage of 1.0 in
      noninteractive Emacsen.
      73a384a9