summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Fix --without-x build after previous image cache changesLars Ingebrigtsen2022-07-14
| | | | * src/alloc.c (garbage_collect): Fix --without-all --without-x build.
* Prune animation cache when images are no longer reachableLars Ingebrigtsen2022-07-14
| | | | | | | | | | | * lisp/image.el (image-animate-timeout): Eject cached animated images that are no longer reachable (bug#56546). * src/image.c (Fclear_image_cache): Allow specifying a cached animated image to eject. (gif_load, webp_load): Adjust what to use as the caching key -- the identity of the list itself is apparently changed by some callers.
* Make image-cache-size also include the animation cacheLars Ingebrigtsen2022-07-14
| | | | | | | * src/image.c (struct anim_cache, anim_create_cache): Store approx cache size. (gif_load, webp_load): Ditto. (Fimage_cache_size): Also report animation cache size (bug#56546).
* Prune the animation cache from gcLars Ingebrigtsen2022-07-14
| | | | | * src/alloc.c (garbage_collect): Prune animation cache (bug#56546).
* * src/gtkutil.c (xg_free_frame_widgets): Avoid compiler warning.Eli Zaretskii2022-07-14
|
* ; * src/xterm.c (x_scroll_bar_expose, mark_xterm): Fix last change.Eli Zaretskii2022-07-14
|
* Silence unused variable warning in a build --without-allStefan Kangas2022-07-14
| | | | | * src/xfns.c (Fx_double_buffered_p): Silence unused variable warning in a build --without-all.
* ; Fix compilation warnings in a build --without-allEli Zaretskii2022-07-14
| | | | | * src/xterm.c (x_scroll_bar_expose, handle_one_xevent) (mark_xterm): Avoid compiler warnings. (Bug#56551)
* Pacify -Wunused-macros in --without-all buildsStefan Kangas2022-07-14
| | | | * src/image.c (IMAGE_TYPE_INIT): Make conditional on image support.
* ; Fix typosStefan Kangas2022-07-14
|
* Try to restore the initial "daemon" frame when a display goes downPo Lu2022-07-14
| | | | | * src/xterm.c (x_try_restore_frame): New function. (x_connection_closed): Call it if selected_frame is nil.
* ; Fix typos: prefer American spellingStefan Kangas2022-07-14
|
* Make clear-image-cache clear the animation cacheLars Ingebrigtsen2022-07-14
| | | | | | | | | | | | * src/dispextern.h: Declare image_prune_animation_caches for use in gc. * src/image.c (Fclear_image_cache): Clear animation cache. (anim_prune_animation_cache, anim_get_animation_cache): Allow clearing in addition to pruning. (imagemagick_prune_animation_cache) (imagemagick_get_animation_cache): Ditto. (image_prune_animation_caches): New function (bug#56546).
* Merge from origin/emacs-28Stefan Kangas2022-07-14
|\ | | | | | | | | | | | | | | | | | | | | | | 5e47ec9511 ; * lisp/url/url-http.el (url-http-parse-headers): Fix typo. ba0871bef1 ; Fix typos: prefer American spelling e3e7f31faa Adapt Tramp doc # Conflicts: # etc/NEWS # etc/themes/modus-themes.el # lisp/emacs-lisp/byte-opt.el # test/lisp/so-long-tests/spelling-tests.el
| * ; Fix typos: prefer American spellingStefan Kangas2022-07-13
| |
* | Fix killing Emacs upon display disconnectPo Lu2022-07-14
| | | | | | | | | | | | * src/xterm.c (x_connection_closed): On Xt builds terminals can be left alive without any frames on them, so take that into account. (bug#56528)
* | ; * src/xterm.c (x_error_handler): Fix magic numbers.Po Lu2022-07-14
| |
* | Fix recursive calls of x_connection_closed leading to dead terminalPo Lu2022-07-13
| | | | | | | | | | | | * src/xterm.c (x_connection_closed): Return if called again for the current display. (x_io_error_quitter): Fix attributes. (bug#56528)
* | Implement TIMESTAMP target for Haiku selectionsPo Lu2022-07-13
| | | | | | | | | | | | | | | | | | | | * lisp/term/haiku-win.el (haiku-selection-targets): Fix return values. (gui-backend-get-selection): Handle TIMESTAMP specially. * src/haiku_select.cc (be_get_clipboard_count): New function. * src/haikuselect.c (Fhaiku_selection_timestamp): New function. (syms_of_haikuselect): Add new defsubr. * src/haikuselect.h: Update prototypes.
* | Fix closing displays when preserving selections is enabledPo Lu2022-07-13
| | | | | | | | | | | | | | | | | | | | | | * src/frame.c (delete_frame): Bind `x-auto-preserve-selections' to nil if deleting display. * src/xselect.c (x_clear_frame_selections): Pass original frame to that function. * src/xterm.c (x_preserve_selections): Fix determining the new owner. (syms_of_xterm): New defsym `x-auto-preserve-selections'. * src/xterm.h: Update prototypes.
* | Fix buffer-stale-function fixLars Ingebrigtsen2022-07-12
| | | | | | | | | | | | | | * src/buffer.c (Fmake_indirect_buffer): Kill the local buffer-stale-function variable instead of setting it buffer-locally to the default value. This should have the same effect, but is less confusing.
* | Reduce syncing when fetching selection names during frame deletionPo Lu2022-07-12
| | | | | | | | | | * src/xterm.c (x_preserve_selections): Use XCB to asynchronously fetch the selection owner.
* | Expunge unused recompute-lucid-menubar, lucid-menu-bar-dirty-flagAlan Mackenzie2022-07-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes bug #56502. That function and these variables were manipulated by the former file emacs-lisp/lmenu.el that was finally expunged from directory obsolete/ by Stefan Kangas on 2020-05-15. There remain references to them in the *.c, and *.m files. * src/keyboard.c (syms_of_keyboard): Remove declarations of the symbol and variable. * src/haikumenu.c (set_frame_menu_bar) * src/keyboard.c (command_loop_1) * src/nsmenu.m (ns_update_menubar) * src/pgtkmenu.c (set_frame_menubar) * src/xdisp.c (update_menu_bar) * src/xmenu.c (set_frame_menubar): Remove calls to Qrecompute_lucid_menubar contitional on Vlucid_menu_bar_dirty_flag.
* | Fix preserving selections if `x-lost-selection-functions' signalsPo Lu2022-07-12
| | | | | | | | | | * src/xterm.c (x_preserve_selections): Get selection owner and run lost selection hook separately.
* | Try to save selections from being disowned during frame deletionPo Lu2022-07-12
| | | | | | | | | | | | | | | | | | | | * lisp/cus-start.el (standard): Add `x-auto-preserve-selections'. * src/xselect.c (x_clear_frame_selections): Collect deleted selections into a variable and preserve them. * src/xterm.c (x_preserve_selections): New function. (syms_of_xterm): New variable `x-auto-preserve-selections'. * src/xterm.h: Update prototypes.
* | Remove obsolete uses of obsolete functionsMattias Engdegård2022-07-11
| | | | | | | | | | | | | | | | | | * src/minibuf.c (minibuf_conform_representation): Remove. (Ftry_completion): Don't call it. (Ftest_completion): Don't use the obsolete Fstring_make_unibyte or Fstring_make_multibyte; they don't serve any useful purpose here. We don't try to equate unibyte and multibyte raw bytes in symbol lookups elsewhere and there is no reason to do it here.
* | Only reset buffer-local buffer-stale-function in make-indirect-bufferLars Ingebrigtsen2022-07-11
| | | | | | | | | | * src/buffer.c (Fmake_indirect_buffer): Don't set the global buffer-stale-function (bug#48348).
* | * src/.lldbinit: Fix copyright year.Stefan Kangas2022-07-11
| |
* | Allow commands that call `yes-or-no-p' to be repeatable againLars Ingebrigtsen2022-07-11
| | | | | | | | | | | | | | * lisp/subr.el (y-or-n-p): Enable commands that call this function to be repeatable (bug#45999). This stopped working after this function started using read-from-minibuffer. * src/fns.c (Fyes_or_no_p): Ditto.
* | Support for debugging Emacs with LLDBGerd Möllmann2022-07-11
| | | | | | | | | | * (src/.lldbinit): New file. * (etc/emacs_lldb.py): Module loaded from .lldbinit.
* | Simplify str_to_multibyte and related codeMattias Engdegård2022-07-11
| | | | | | | | | | | | | | | | | | | | | | * src/character.h (str_to_multibyte): * src/character.c (str_to_multibyte): Remove `nbytes` argument; return it instead. Copy forwards. * src/fns.c (concat_to_string, Fstring_make_multibyte): Use str_to_multibyte. (string_make_multibyte): Remove. (string_to_multibyte): * src/print.c (print_string): Adapt calls.
* | Improve behavior of `lost-selection-mode' with multiple buffersPo Lu2022-07-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * etc/NEWS: Announce new hook `post-select-region-hook'. * lisp/select.el (lost-selection-last-region-buffer): New variable. (lost-selection-post-select-region-function): New function. Deactivate the mark if the buffer changed. (lost-selection-mode): Add new hook. * src/keyboard.c (command_loop_1): Run that hook when appropriate. (syms_of_keyboard): New hook `post-select-region-hook'.
* | Prevent setting user time if the WM doesn't support itPo Lu2022-07-11
| | | | | | | | | | * src/xterm.c (x_update_frame_user_time_window): Don't set _NET_WM_USER_TIME if it's not supported by the window manager.
* | Fix memory leak in ns_draw_reliefDaniel Martín2022-07-11
| | | | | | | | | | | | | | | | | | | | * src/nsterm.h (struct ns_output): New fields to store the relief colors. * src/nsterm.m (ns_setup_relief_colors): New function to keep the relief colors as part of the ns_output structure. (ns_draw_relief): Remove static local variables. Assigning them to nil caused a memory leak of NSColor instances (bug#56462). Call ns_setup_relief_colors instead.
* | Simplify and speed up string-to-multibyteMattias Engdegård2022-07-11
| | | | | | | | | | | | | | | | | | | | | | | | * src/character.h (str_to_multibyte): * src/character.c (str_to_multibyte): Change signature and simplify; the conversion is no longer done in-place. * src/fns.c (string_to_multibyte): Drop temporary buffer and memcpy; adapt to new str_to_multibyte signature. * src/print.c (print_string): Drop memcpy; adapt call to str_to_multibyte. * test/src/fns-tests.el (fns--string-to-unibyte): Rename to... (fns--string-to-unibyte-multibyte): ... this and strengthen, so that the test covers string-to-multibyte reasonably well.
* | Handle errors sending selection decline events asynchronouslyPo Lu2022-07-11
| | | | | | | | | | | | | | | | * src/xselect.c (x_decline_selection_request): Handle errors asynchronously. * src/xterm.c (x_ignore_errors_for_next_request) (x_stop_ignoring_errors): Export functions. * src/xterm.h: Update prototypes.
* | Speed up string-to-unibyteMattias Engdegård2022-07-10
| | | | | | | | | | | | | | | | * src/character.h (str_to_unibyte): * src/character.c (str_to_unibyte): Remove. * src/fns.c (Fstring_to_unibyte): Ditch the call to str_to_unibyte and the unnecessary heap allocation. Write new, faster code. * test/src/fns-tests.el (fns--string-to-unibyte): New test.
* | * src/dired.c (directory_files_internal): Update commentStefan Monnier2022-07-10
| |
* | * src/dired.c (directory_files_internal): Fix bug#56469Stefan Monnier2022-07-10
| | | | | | | | Avoid concatenating encoded and decoded file names.
* | Minor fixes to WM_DELETE_WINDOW handlingPo Lu2022-07-10
| | | | | | | | | | * src/xterm.c (handle_one_xevent): Only handle WM_DELETE_WINDOW to toplevel windows, and set event timestamp.
* | ; * src/composite.c (Fcomposition_get_gstring): Fix compiler warnings.Po Lu2022-07-10
| |
* | Fix build with old sqlite librariesPo Lu2022-07-10
| | | | | | | | | | * src/sqlite.c (Fsqlite_open): Don't use SQLITE_OPEN_FULLMUTEX if not defined.
* | Speed up 'find_automatic_composition'Eli Zaretskii2022-07-10
| | | | | | | | | | * src/composite.c (find_automatic_composition): Limit search backward in buffers to the first newline. Fix commentary.
* | Don't sync for errors setting up DND targets and toplevelsPo Lu2022-07-10
| | | | | | | | | | * src/xterm.c (xm_setup_dnd_targets, x_dnd_free_toplevels) (x_dnd_compute_toplevels): Avoid catching errors synchronously.
* | Make `x-no-window-manager' cover user time as wellPo Lu2022-07-10
| | | | | | | | | | | | * src/xterm.c (x_update_frame_user_time_window): (x_wm_supports_1): Respect `x-no-window-manager'. This makes testing some features easier.
* | Make STRING_SET_MULTIBYTE an inline functionStefan Monnier2022-07-09
| | | | | | | | | | | | | | * src/lisp.h (STRING_SET_MULTIBYTE): Make it into a function. * src/composite.c (Fcomposition_get_gstring): Prefer `make_multibyte_string` over Fconcat+STRING_SET_MULTIBYTE.
* | Avoid extra sync and atom name query on ending Motif DNDPo Lu2022-07-09
| | | | | | | | | | * src/xterm.c (handle_one_xevent): Use `x_dnd_action_symbol' to set the Motif action instead.
* | Improve drag-and-drop emulation time handlingPo Lu2022-07-09
| | | | | | | | | | | | | | | | | | | | | | | | * src/xselect.c (x_handle_selection_request): Use display-specific pending DND time. (x_set_pending_dnd_time): Delete function. * src/xterm.c (x_dnd_do_unsupported_drop, handle_one_xevent): Set dpyinfo->pending_dnd_time instead. * src/xterm.h (struct x_display_info): New field `pending_dnd_time'. Make handling pending drops display-specific to avoid interference when there are multiple displays.
* | Fix race conditions handling selection clear events on HaikuPo Lu2022-07-09
| | | | | | | | | | | | | | | | | | | | | | | | * src/haiku_select.cc (be_handle_clipboard_changed_message): Include current clipboard count. (be_selection_outdated_p): New function. * src/haikuselect.c (haiku_handle_selection_clear): Ignore outdated events. (haiku_selection_disowned): New argument `count'. Include it in the timestamp field of the selection clear event. * src/haikuselect.h: Update prototypes. * src/systime.h: Define `Time' to an appropriate value on Haiku.
* | Merge from origin/emacs-28Stefan Kangas2022-07-09
|\| | | | | | | | | 3442de2edd Doc fix; don't mention obsolete variable c4e251103b ; * lisp/textmodes/rst.el: Update URLs.