summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
| | * Fix XI 2.0 buildPo Lu2022-03-16
| | | | | | | | | | | | | | | * src/xterm.c (handle_one_xevent): Move declaration of dummy out of HAVE_XINPUT2_1.
| | * Fix tooltip text properties showing up in dragged textPo Lu2022-03-16
| | | | | | | | | | | | | | | * lisp/mouse.el (mouse-drag-and-drop-region): Directly call x-show-tip and x-hide-tip instead of going through tooltip-show.
| | * Merge from origin/emacs-28Stefan Kangas2022-03-16
| | |\ | | | | | | | | | | | | 62e830c3d9 * doc/misc/transient.texi: Fix @dircategory to "Emacs misc...
| | | * * doc/misc/transient.texi: Fix @dircategory to "Emacs misc features" for dir.Juri Linkov2022-03-15
| | | |
| | * | Better handle drag-and-drop from one Emacs frame to anotherPo Lu2022-03-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/frames.texi (Drag and Drop): Document new parameter `return-frame' to `x-begin-drag'. * lisp/mouse.el (mouse-drag-and-drop-region): Utilize new feature. * src/xfns.c (Fx_begin_drag): New parameter `return-frame'. * src/xterm.c (x_dnd_begin_drag_and_drop): New parameter return_frame_p. (handle_one_xevent): Set new flags and return frame whenever appropriate. * src/xterm.h: Update prototypes.
| | * | * src/xfns.c (Fx_begin_drag): Improve doc string.Po Lu2022-03-16
| | | |
| | * | Add support for dragging text from Emacs to other programsPo Lu2022-03-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This still probably needs some more protection from malfunctioning clients which delete windows at random, but I don't know if that's a problem in practice. * doc/emacs/frames.texi (Drag and Drop): * doc/lispref/frames.texi (Drag and Drop): Document new features. * etc/NEWS: Announce new function `x-begin-drag' and new user option `mouse-drag-and-drop-region-cross-program'. * lisp/mouse.el (mouse-drag-and-drop-region-cross-program): New user option. (x-begin-drag): New variable declaration. (mouse-drag-and-drop-region): If the mouse moves out of an Emacs frame, begin a window system drag. * lisp/x-dnd.el (x-dnd-handle-xdnd): Remove left-over debugging code. * src/xfns.c (Fx_set_mouse_absolute_pixel_position): Fix indentation of opening paren. (Fx_begin_drag): New function. (syms_of_xfns): Define new subr. * src/xselect.c (x_timestamp_for_selection): New function. * src/xterm.c (X_DND_SUPPORTED_VERSION): New preprocessor declaration. (x_dnd_get_window_proto, x_dnd_send_enter, x_dnd_send_position) (x_dnd_send_leave, x_dnd_send_drop, x_set_dnd_targets) (x_dnd_begin_drag_and_drop): New functions. (handle_one_xevent): Handle drag-and-drop motion and button events when active. (x_free_frame_resources): If f is the DND source, stop drag-and-drop. (x_term_init): Intern new atoms. (syms_of_xterm): New symbol QXdndSelection. * src/xterm.h (struct x_display_info): New atoms Xatom_XdndAware, Xatom_XdndSelection, Xatom_XdndTypeList, Xatom_XdndActionCopy, Xatom_XdndActionMove, Xatom_XdndActionLink, Xatom_XdndActionAsk, Xatom_XdndActionPrivate, Xatom_XdndActionList, Xatom_XdndActionDescription, Xatom_XdndProxy, Xatom_XdndEnter, Xatom_XdndPosition, Xatom_XdndStatus, Xatom_XdndLeave, Xatom_XdndDrop, and Xatom_XdndFinished.
| | * | Fix build with GTK 3.18.0 or earlierPo Lu2022-03-16
| | | | | | | | | | | | | | | | | | | | | | | | * src/gtkutil.c (xg_update_scroll_bar_pos) (xg_update_horizontal_scrollbar_pos): Avoid gtk_widget_queue_allocate on older GTK versions.
| | * | Clean up implementation of N0 per UAX#9Eli Zaretskii2022-03-15
| | | | | | | | | | | | | | | | | | | | | | | | * src/bidi.c (bidi_resolve_brackets): Instead of requiring prev_for_neutral's type to be known, fall back on SOS, per the UBA.
| | * | Extract `gnus-collect-urls-from-article' from `gnus-summary-browse-url'Sam Steingold2022-03-15
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/gnus-sum.el (gnus-collect-urls-from-article): New function, extracted from `gnus-summary-browse-url'. (gnus-summary-browse-url): Use it.
| | * | * lisp/url/url-vars.el: Cosmetic changesStefan Monnier2022-03-15
| | | | | | | | | | | | | | | | | | | | (url-mime-separator-chars): Simplify. (url-interactive-p): Tweak docstring.
| | * | doctex-mode: Try and fix bug#35140Stefan Monnier2022-03-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/textmodes/tex-mode.el (doctex-syntax-propertize-rules): Add support for the new ^^X and consider the first ^ of ^^A to be the closing char for the previous comment. (doctex-font-lock-^^A): Simplify accordingly.
| | * | Fix byte-code button in help--describe-commandLars Ingebrigtsen2022-03-15
| | | | | | | | | | | | | | | | | | | | * lisp/help.el (help--describe-command): Fix byte-code button (bug#24235).
| | * | Revert "New command `gnus-summary-browse-all-urls' bound to "v""Lars Ingebrigtsen2022-03-15
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit f52dcfd03ad542704d9a43faab0c33be09ab442e. It was never agreed that this should be added.
| | * | Fix some minor glitches with Haiku scroll barsPo Lu2022-03-15
| | | | | | | | | | | | | | | | | | | | * src/haiku_support.cc (MouseDown): Don't start overscroll if dragging started inside a button.
| | * | Fix crashes when trying to pop up a menu on GTK 2Po Lu2022-03-15
| | | | | | | | | | | | | | | | | | | | * src/xterm.c (handle_one_xevent): Respect finish when dispatching copy.
| | * | Fix some issues with input on GTK 2 buildsPo Lu2022-03-15
| | | | | | | | | | | | | | | | | | | | * src/xfns.c (setup_xi_event_mask): Don't ask for XI key press on GTK 2.
| | * | Fix extraneous ifdef in xwidgets codePo Lu2022-03-15
| | | | | | | | | | | | | | | | | | | | * xterm.c (handle_one_xevent): Pass GesturePinchEnd events to xwidgets regardless of no-longer-present define.
| | * | * src/xterm.c (handle_one_xevent): Fix use of wrong motion structure.Po Lu2022-03-15
| | | |
| | * | Stop relying on dynlib for PGTK interrupt inputPo Lu2022-03-15
| | | | | | | | | | | | | | | | | | | | * src/pgtkterm.c (pgtk_term_init): Use dlopen and dlsym directly instead of dynlib functions. (bug#54378)
| | * | EUDC: Fix a bug and some docstringsThomas Fitzsimmons2022-03-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/eudc.el (eudc-register-protocol): Add doc string. (eudc-expand-inline): Add TRY-ALL-SERVERS to docstring. (eudc-query-with-words): Fix early-return bug reported by Alexander Adolf. (eudc-menu): Add doc string. (eudc-install-menu): Likewise.
| | * | Another fix for the no-toolkit buildPaul Eggert2022-03-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This should be better in the long run. * oldXMenu/Activate.c (XMenuActivate): Revert previous change, eliminating the goto it introduced. * oldXMenu/XMenuInt.h: Include <attribute.h>, for FALLTHROUGH.
| | * | Prefer CALLNPaul Eggert2022-03-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/bytecode.c (Fbyte_code): * src/composite.c (Fclear_composition_cache): Prefer CALLN to doing it by hand. * src/fns.c (ccall2): Remove. All uses replaced by CALLN.
| | * | New command `gnus-summary-browse-all-urls' bound to "v"Sam Steingold2022-03-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/gnus-sum.el (gnus-collect-urls-from-article): New function, extracted from `gnus-summary-browse-url'. (gnus-summary-browse-url): Use it; also use `browse-url-button-open-url' to handle the prefix argument. (gnus-summary-browse-all-urls): New command. (gnus-summary-mode-map): Bind `gnus-summary-browse-all-urls' to "v".
| | * | Fix the no toolkit buildPo Lu2022-03-14
| | | | | | | | | | | | | | | | | | | | * Activate.c (XMenuActivate): Stop relying on fallthroughs inside switch statement. (bug#54382)
| | * | Fix RFC2047 encoding of Disposition-Notification-ToLars Ingebrigtsen2022-03-14
| | | | | | | | | | | | | | | | | | | | * lisp/mail/rfc2047.el (rfc2047-header-encoding-alist): Encode Disposition-Notification-To as an address header (bug#54383).
| | * | Handle position specification hints on X toolkit buildsPo Lu2022-03-14
| | | | | | | | | | | | | | | | | | | | * src/xterm.c (x_wm_set_size_hint): Set PPosition and USPosition independently of Xt.
| | * | * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Simplify Edebug specStefan Monnier2022-03-14
| | | |
| | * | Improve the execute-kbd-macro doc stringLars Ingebrigtsen2022-03-14
| | | | | | | | | | | | | | | | | | | | * src/macros.c (Fexecute_kbd_macro): Improve the doc string (bug#14206).
| | * | Make Edebug specification for 'cl-defstruct' more lenient.Philipp Stephani2022-03-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For example, 'xref-item' uses the list form of ':noinline'. * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Accept ':noinline' and ':named' with an argument. * test/lisp/emacs-lisp/cl-macs-tests.el (cl-defstruct/edebug): New unit test.
| | * | Don't always escape "." and "?" in `prin1'Lars Ingebrigtsen2022-03-14
| | | | | | | | | | | | | | | | | | | | * src/print.c (print_object): Only escape "." and "?" when appearing as the first character in a symbol (bug#23130).
| | * | Init 'rest' in 'balance-windows-2' (Bug#54380)Martin Rudalics2022-03-14
| | | | | | | | | | | | | | | | | | | | * lisp/window.el (balance-windows-2): Give 'rest' an initial value (Bug#54380).
| | * | Clean up some Haiku toolkit codePo Lu2022-03-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/haiku_io.c (haiku_read_with_timeout): Accept `bigtime_t' instead of `time_t' for values which are cast to bigtime_t anyway. * src/haiku_support.cc (BMenu_run): Read all help events instead of just one. * src/haiku_support.h: Update prototypes.
| | * | ; Merge from origin/emacs-28Stefan Kangas2022-03-14
| | |\| | | | | | | | | | | | | | | | | | | | | The following commit was skipped: 8e7a3f21e0 Fix evaluation of negated argument predicates in Eshell
| | | * Fix evaluation of negated argument predicates in EshellJim Porter2022-03-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/eshell/em-pred.el (eshell-add-pred-func): Let-bind 'pred' so the lambdas see the original value (bug#54369). Committed on the wrong branch. Do not merge to master.
| | * | Merge from origin/emacs-28Stefan Kangas2022-03-14
| | |\| | | | | | | | | | | | | 1ec4063017 ; * admin/make-tarball.txt: Minor updates.
| | | * ; * admin/make-tarball.txt: Minor updates.Eli Zaretskii2022-03-13
| | | |
| | * | Fix extraneous overscroll activation on HaikuPo Lu2022-03-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/haiku_support.cc (class EmacsScrollBar): New field `maybe_overscroll'. (MouseDown): Set that field. (MouseUp): Clear that field. (MouseMoved): Also test `maybe_overscroll' to ensure that a grab started inside the scroll bar.
| | * | Fix tool-bar highlight persisting after mouse moves onto WM framePo Lu2022-03-14
| | | | | | | | | | | | | | | | | | | | * src/xterm.c (handle_one_xevent): Always report MotionNotify coordinates in terms of the edit widget.
| | * | * src/bytecode.c: Include sysstdio.h, for fprint, stderr.Glenn Morris2022-03-13
| | | | | | | | | | | | | | | | ; Ref https://hydra.nixos.org/build/169207408
| | * | Enable overscroll on Haiku horizontal scroll barsPo Lu2022-03-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/haiku_support.cc (MouseMoved): Handle horizontal directions correctly. * src/haikuterm.c (haiku_set_horizontal_scroll_bar_thumb): Enable overscrolling on scroll bar widget.
| | * | Fix scroll bar movement right before overscroll begins on HaikuPo Lu2022-03-14
| | | | | | | | | | | | | | | | | | | | * src/haikuterm.c (haiku_set_scroll_bar_thumb): Make sure value and size are within bounds even if portion adjustment is off.
| | * | Really fix find-func for defgenericLars Ingebrigtsen2022-03-13
| | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/find-func.el (find-function-regexp): Really add defgeneric.
| | * | Make vtable sorting stableLars Ingebrigtsen2022-03-13
| | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/vtable.el (vtable--sort): Make the sorting stable.
| | * | Clang debug notesPaul Eggert2022-03-13
| | | | | | | | | | | | | | | | | | | | * etc/DEBUG: Don’t imply Clang works as well as GCC when debugging Emacs. Mention a coverage problem with Clang.
| | * | Fix evaluation of negated argument predicates in EshellJim Porter2022-03-13
| | | | | | | | | | | | | | | | | | | | * lisp/eshell/em-pred.el (eshell-add-pred-func): Let-bind 'pred' so the lambdas see the original value (bug#54369).
| | * | * src/bytecode.c (sf_set_ptr): Cast pointer to type of right size.Mattias Engdegård2022-03-13
| | | |
| | * | Separate bytecode stackMattias Engdegård2022-03-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use a dedicated stack for bytecode, instead of using the C stack. Stack frames are managed explicitly and we stay in the same exec_byte_code activation throughout bytecode function calls and returns. In other words, exec_byte_code no longer uses recursion for calling bytecode functions. This results in better performance, and bytecode recursion is no longer limited by the size of the C stack. The bytecode stack is currently of fixed size but overflow is handled gracefully by signalling a Lisp error instead of the hard crash that we get now. In addition, GC marking of the stack is now faster and more precise. Full precision could be attained if desired. * src/alloc.c (ATTRIBUTE_NO_SANITIZE_ADDRESS): Make non-static. * src/bytecode.c (enum stack_frame_index, BC_STACK_SIZE) (sf_get_ptr, sf_set_ptr, sf_get_lisp_ptr, sf_set_lisp_ptr) (sf_get_saved_pc, sf_set_saved_pc, init_bc_thread, free_bc_thread) (mark_bytecode, Finternal_stack_stats, valid_sp): New. (exec_byte_code): Adapt to use the new bytecode stack. (syms_of_bytecode): Add defsubr. * src/eval.c (unwind_to_catch): Restore saved stack frame. (push_handler_nosignal): Save stack frame. * src/lisp.h (struct handler): Add act_rec member. (get_act_rec, set_act_rec): New. * src/thread.c (mark_one_thread): Call mark_bytecode. (finalize_one_thread): Free bytecode thread state. (Fmake_thread, init_threads): Set up bytecode thread state. * src/thread.h (struct bc_thread_state): New. (struct thread_state): Add bytecode thread state.
| | * | Simplify exec_byte_code argumentsMattias Engdegård2022-03-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pass the function object and encoded arity, not the other components. This speeds up several call paths and is necessary for improvements to come. * src/bytecode.c (Fbyte_code): Make a new byte code object for execution. This is slower but performance isn't critical here. (exec_byte_code): Retrieve components from the passed function. * src/eval.c (fetch_and_exec_byte_code): * src/lisp.h (exec_byte_code): Update signature.
| | * | * lisp/net/ange-ftp.el (ange-ftp-ls): Make a loop when sanitizing LSARGS.Michael Albinus2022-03-13
| | | |