aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ; Fix compilation warnings in term.cscratch/tty-child-framesEli Zaretskii2024-12-191-7/+7
| | | | | | | * src/term.c (Ftty_frame_geometry, Ftty_frame_edges) (Ftty_frame_list_z_order, Ftty_frame_restack) (Ftty_display_pixel_width, Ftty_display_pixel_height): Doc fixes. (Ftty_frame_restack): Make it "noreturn".
* ; Fix capitalizationStefan Kangas2024-12-181-1/+1
|
* Signal errors for unimplemented featuresGerd Möllmann2024-12-122-8/+2
| | | | | * src/frame.c (make_terminal_frame): Error for minibuffer-only frames. * src/term.c (Ftty_frame_restack): Signal error.
* Consider all windows for redisplay if frames have been clearedGerd Möllmann2024-11-201-5/+14
| | | | | | | * src/xdisp.c (clear_garbaged_frames): Return true if any tty frame's current matrix has been cleared. (redisplay_internal): Consider all windows if clear_garbaged_frames returns true.
* * src/xdisp.c (redisplay_internal): Use assq_no_quit.Gerd Möllmann2024-11-201-10/+3
|
* Revert "Don't pause display for pending input"Gerd Möllmann2024-11-165-262/+496
| | | | This reverts commit f62d70f52f4f6b7ed158d618bf790df21f171172.
* Revert "Remove an unused parameter"Gerd Möllmann2024-11-163-4/+4
| | | | This reverts commit 627cbf05b53756883a789ff45727acf23f5066a4.
* Remove an unused parameterGerd Möllmann2024-11-163-4/+4
| | | | | | * src/dispnew.c (combine_updates): Remove unused parameter inhibit_scrolling. * src/xdisp.c (redisplay_internal): Adjust caller. * src/dispextern.h: Change function prototype.
* Merge branch 'master' into scratch/tty-child-framesGerd Möllmann2024-11-1627-228/+1771
|\
| * Fix drag-n-drop on MS-WindowsCecilio Pardo2024-11-141-1/+6
| | | | | | | | | | | | | | | | * src/w32fns.c (struct w32_drop_target): New member 'ref_count'. (w32_drop_target_AddRef): Increment reference count. (w32_drop_target_Release): Decrement reference count, and free the target only if the reference count is zero. (w32_createwindow): Initialize reference count. (Bug#74312)
| * Merge from origin/emacs-30Michael Albinus2024-11-141-6/+7
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f69f54c454e Improve font-locking and indentation in 'php-ts-mode' 27aacbd172f Fix some 'lua-ts-mode' options (Bug#74235) a0613372a7b ; Update the xwidgets-on-NS text due to fixing bug#60703 d5928325045 Improve comment indenting in 'lua-ts-mode' 6bc44ccf287 Update 'xref-num-matches-found' when reverting *xref* buffer 8afcfed825a * lisp/files.el (require-with-check): Fix last fix (bug#7... 3496234c8ed lisp/files.el (require-with-check): Fix bug#74091. 90c97d3fac9 Fix handling of permanent-local variables in 'kill-all-lo... c96e5760907 Precise password cache in Tramp 3954e8d9bbe Fix picture-mode with full-width characters 7dabfe9465c Fix movement to the left in picture-mode # Conflicts: # lisp/net/tramp.el
| | * Fix handling of permanent-local variables in 'kill-all-local-variables'Eli Zaretskii2024-11-101-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | The original implementation went too far and caused unexpected results. * src/buffer.c (reset_buffer_local_variables): Second argument is now 'int', and can be 0, 1, or 2. (Fkill_all_local_variables): Call 'reset_buffer_local_variables' with 2nd argument 2 if KILL-PERMANENT is non-nil. (Bug#74091)
| * | ; * src/w32menu.c (w32_popup_dialog): Fix last change.Eli Zaretskii2024-11-121-1/+1
| | |
| * | ; * src/w32menu.c (w32_popup_dialog): Fix last change (bug#74312).Eli Zaretskii2024-11-121-2/+2
| | |
| * | Fix Cygw32 buildEli Zaretskii2024-11-123-6/+14
| | | | | | | | | | | | | | | | | | | | | * src/pdumper.c (dump_mm_heap_cb_release): Avoid NULL pointer dereference. * src/w32dwrite.c (INITGUID) [CYGWIN]: Don't define for Cygwin. * src/w32menu.c (w32_popup_dialog): Fix Cygw32 build. (Bug#74312)
| * | * src/w32fns.c (process_dropfiles): Fix cygw32 build (bug#74312).Eli Zaretskii2024-11-111-0/+14
| | |
| * | Merge from origin/emacs-30Eli Zaretskii2024-11-092-1/+12
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | dbcd9d782c9 Fix documentation and error message of adding local varia... 94bf7ad797b Document the 'display-line-numbers-disable' property b1be0f2ba6b Document issues with 'use-package's ':custom' and byte co... 775970a7831 ; * src/ftcrfont.c (ftcrhbfont_end_hb_font): Improve comm... 9149aa89ee8 Fix display of compositions when font style changes (Cair... 3bf00777be1 ; * src/xdisp.c (face_before_or_after_it_pos): Fix thinko...
| | * ; * src/ftcrfont.c (ftcrhbfont_end_hb_font): Improve commentary (bug#73752).Eli Zaretskii2024-11-081-2/+6
| | |
| | * Fix display of compositions when font style changes (Cairo backend)Tim Ruffing2024-11-081-0/+7
| | | | | | | | | | | | | | | | | | * src/ftcrfont.c (ftcrhbfont_end_hb_font): Don't persist the result of 'cairo_ft_scaled_font_lock_face' in violation of the API contract. (Bug#73752)
| | * ; * src/xdisp.c (face_before_or_after_it_pos): Fix thinko (bug#74241).Eli Zaretskii2024-11-071-1/+1
| | |
| * | Fix 'internal_equal' so that it uses at most one hash tableEthan Kong2024-11-091-8/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The old implementation passed the hash table by value in recursive tests, which would cause each recursive level to initialize its own hash table, causing excess memory usage. * src/fns.c (internal_equal): Delegate to 'internal_equal_1'. (internal_equal_1): New function; body from old 'internal_equal'. Pass the hash table argument by reference instead of by value. (Bug#73883)
| * | ; Fix quoting style in comments in itree.[ch] filesEli Zaretskii2024-11-082-35/+35
| | | | | | | | | | | | | | | * src/itree.c: * src/itree.h: Fix quoting style in comments.
| * | Ensure `move-frame-functions' trigger on macOS frame resizeRobert Pluim2024-11-071-0/+3
| | | | | | | | | | | | | | | | | | * src/nsterm.m ([EmacsView windowWillResize:toSize:]): Call windowDidMove to ensure that MOVE_FRAME_EVENT events are generated when a frame is resized. (Bug#74074)
| * | Support :transform-smoothing on images (MS-Windows) (bug#57166)Cecilio Pardo2024-11-055-14/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/dispextern.h (struct image): Add field 'smoothing' for NTGUI. * src/image.c (image_set_transform): Assign the 'smoothing' field of the image struct. * src/w32gdiplus.h: Add references to more GDI+ functions. * src/w32image.c (gdiplus_init): Add references to more GDI+ functions. * src/w32term.c (w32_draw_image_foreground): If the image is marked for smoothing and GDI+ is available, draw it with GDI+ bilinear interpolation. * etc/NEWS: New entry for this change.
| * | Make 'yank-media' on MS-Windows require native image APIsEli Zaretskii2024-11-051-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | * src/w32select.c (convert_dibv5_to_png) [!HAVE_NATIVE_IMAGE_API]: Fail if GDI+ cannot be used. Patch by Cecilio Pardo <cpardo@imayhem.com>. (Bug#71909) * etc/NEWS: Mention this dependency.
| * | Add support for 'yank-media' on MS-WindowsCecilio Pardo2024-11-034-109/+303
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds the capacity to handle types different from strings to the clipboard management functions on MS-Windows, and some logic required to convert media types names and content to be what yank-media and the modes that use it expect (bug#71909). * lisp/term/w32-win.el (w32--selection-target-translations): New variable that holds the name translations for media types. (w32--translate-selection-target): New function, translate the name of a media type. (w32--translate-reverse-selection-target): New function, reverse translation. (w32--get-selection): Modified to translate target names when asked for targets, and retrieve media types when asked for them. (w32--mime-type-textual-p): New function, checks if a MIME type is textual. * lisp/textmodes/sgml-mode.el (html-mode--image-yank-handler): Fixed the image save mechanism, that added line feed characters on MS-Windows, breaking binary formats. * src/w32image.c (gdiplus_init): Modified to fetch more functions fromm gdiplus. (get_encoder_clsid): Renamed to 'w32_gdip_get_encoder_clsid' and made nonstatic. (gdiplus_startup): Renamed to 'w32_gdiplus_startup' and made nonstatic. * src/w32select.c (stdfmt_name): Made global, was static function. (convert_dibv5_to_png): New function to convert DIBV5 clipboard format to PNG. (get_clipboard_format_name): New function get the name of a format given its index. (Fw32__get_clipboard_data_media): New function, retrieves and converts media content. (syms_of_w32select): Export new lisp functions. * src/w32gdiplus.h: New file, for definitions in w32image.c * doc/lispref/frames.texi: Updated with MS-Windows support. * etc/NEWS: Added entry about new feature.
| * | Merge from origin/emacs-30Eli Zaretskii2024-11-021-3/+3
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | 98796f95fa5 Work on proced-tests.el 8a4d13e370c ; * doc/lispref/frames.texi (Yanking Media): Add index en... 0aae02a3741 * lisp/files.el (require-with-check): Be a bit more lenie... cc6a11f4832 (with-peg-rules): Fix references to rulesets (bug#74018) 70f084db2ff ; * etc/NEWS: Fix typo (bug#74066). 9e1abf11fc1 Tweak doc w.r.t to "void function" (bug#73886) 7a8ca202c5e Fix flakey proced refine tests (Bug#73441) 55a8cec013e Another 'void' update
| | * Tweak doc w.r.t to "void function" (bug#73886)Stefan Monnier2024-10-271-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/functions.texi (Function Cells): Avoid talking about the function cell being void. * src/data.c (Fboundp, Ffmakunbound, Fsymbol_function): Don't suggest that "void" can be considered as a kind of value.
| * | ; * src/nsterm.m (ns_draw_fringe_bitmap): Fix coding style.Eli Zaretskii2024-11-021-3/+3
| | |
| * | Fix inconsistency in bitmap overlay drawing for macOSDaniel Pettersson2024-11-021-14/+18
| | | | | | | | | | | | | | | * src/nsterm.m (ns_draw_fringe_bitmap): Respect 'overlay_p', by not clearing fringe if set, as its done in xterm. (Bug#71763)
| * | More workarounds for GDB bug 32313Eli Zaretskii2024-10-281-11/+12
| | | | | | | | | | | | | | | * src/eval.c (backtrace_args): Same treatment as backtrace_function.
| * | Work around GDB bug 32313 when debugging Emacs internalsPaul Eggert2024-10-271-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | Problem reported by Eli Zaretskii in: https://lists.gnu.org/r/emacs-devel/2024-10/msg00653.html * src/eval.c (backtrace_function_body): Rename from backtrace_function, and make it static. (GDB_FUNCPTR): New macro. (backtrace_function): New function pointer, for GDB only.
| * | Merge from origin/emacs-30Eli Zaretskii2024-10-271-6/+6
| |\ \ | | |/ | | | | | | | | | | | | | | | c78b4d2b31d Fix doc string of 'wdired-use-dired-vertical-movement' b0aaee93fde Update the documentation of void functions 299a1f24075 ; * lisp/vc/log-edit.el (log-edit-diff-function): Grammar... 67a27ff53bf ; Fix typos
| | * Update the documentation of void functionsEli Zaretskii2024-10-271-6/+6
| | | | | | | | | | | | | | | | | | | | | * doc/lispref/functions.texi (Function Cells): * src/data.c (Ffboundp, Ffmakunbound, Fsymbol_function): Update documentation to the changes of how void functions are represented since Emacs 24.5. (Bug#73886)
| * | ; * src/w32dwrite.c (syms_of_w32dwrite): Init 'w32-inhibit-dwrite'.Eli Zaretskii2024-10-271-0/+4
| | |
| * | ; Fix problem with DirectWrite (MS-Windows)Cecilio Pardo2024-10-271-5/+7
| | | | | | | | | | | | | | | | | | | | | Negative lbearings were not handled. * src/w32dwrite.c (w32_dwrite_draw): Modified to handle negative lbearing.
| * | Fix bootstrap on MS-WindowsEli Zaretskii2024-10-262-1/+1
| | | | | | | | | | | | | | | | | | | | | * src/w32uniscribe.c (syms_of_w32uniscribe): Don't call 'syms_of_w32dwrite' here... * src/emacs.c (main): ...call it here. Reported by Andy Moreton <andrewjmoreton@gmail.com>.
| * | ; Fix coding style of Uniscribe filesPo Lu2024-10-263-78/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/w32dwrite.c (EMACS_DWRITE_UNUSED, IDWriteFontFaceVtbl) (IDWriteFontFace, IDWriteRenderingParamsVtbl) (IDWriteRenderingParams, IDWriteFontVtbl, IDWriteFont) (IDWriteBitmapRenderTargetVtbl, IDWriteBitmapRenderTarget) (IDWriteBitmapRenderTarget1, IDWriteGdiInteropVtbl) (IDWriteGdiInterop, IDWriteFactoryVtbl, IDWriteFactory) (IDWriteColorGlyphRunEnumeratorVtbl) (IDWriteColorGlyphRunEnumerator, IDWriteFactory2Vtbl) (IDWriteFactory2, get_font_face, text_extents_internal) (w32_initialize_direct_write, w32_dwrite_draw) (w32_use_direct_write): * src/w32font.c (w32font_text_extents, w32font_draw): * src/w32uniscribe.c (uniscribe_open): Correct coding style.
| * | ; * src/w32dwrite.c (Fw32_dwrite_reinit): Doc fix.Eli Zaretskii2024-10-251-3/+4
| | |
| * | ; Minor fixes to last changesEli Zaretskii2024-10-253-19/+20
| | | | | | | | | | | | | | | | | | | | | * src/w32font.h: * src/w32font.c: * src/w32dwrite.c: * etc/NEWS: Minor fixes of last changes. (Bug#73730)
| * | Implement drawing text with DirectWrite on MS-Windows.Cecilio Pardo2024-10-254-25/+1175
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds support for color fonts. * configure.ac: Add src/w32drite to W32_OBJ. * src/w32dwrite.c: New file. (w32-initialize-direct-write): New function, initialize the DirectWrite library if it is available, and required global variables. (w32_use_direct_write): New function, check if DirectWrite is available and activated by the user. (w32_dwrite_encode_char): New function, replacement for HarfBuzz's 'encode_char'. (w32_dwrite_text_extents): New function, replacement for w32font text_extents. (w32_dwrite_draw): New function, replacement for w32font draw. (w32_dwrite_free_cached_face): New function, used in the font deletion process to also delete DirectWrite data. (verify_hr): New function, verify COM method results. (release_com): New function, release a COM object. (w32-dwrite-available): New function, returns true if DirectWrite is available. (w32-dwrite-reinit): New function, reinitialize DirectWrite, optionally setting some rendering parameters. * src/w32font.c (w32font_text_extents): If DirectWrite is enabled, call 'w32_dwrite_text_extents'. (w32font_draw): If DirectWrite is enabled, call 'w32_dwrite_draw'. * src/w32uniscribe.c: (w32hb_encode_char): If DirectWrite is enabled, call 'w32_dwrite_encode_char'. (syms_of_w32uniscribe_for_pdumper): Initialize DirectWrite. (uniscribe_close): Free DirectWrite data for the font. Bug#73730
| * | Improve drag and drop on MS-Windows (bug#3468)Cecilio Pardo2024-10-253-3/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for 'dnd-scroll-margin' and 'dnd-indicate-insertion-point' by calling 'dnd-handle-movement' when dragging the mouse. * lisp/term/w32-win.el (w32-drag-n-drop): Call 'dnd-handle-movement' when applicable. * src/w32fns.c (w32_handle_drag_movement): New function, sends a WM_EMACS_DRAGOVER message. (w32_drop_target_DragEnter): Call 'w32_handle_drag_movement'. (w32_drop_target_DragOver): Call 'w32_handle_drag_movement'. * src/w32term.c: (w32_read_socket): Handle WM_EMACS_DRAGOVER, sending a drag-n-drop event. * src/w32term.h: Define new WM_EMACS_DRAGOVER message.
| * | Fix error message in charset.cEli Zaretskii2024-10-241-1/+2
| | | | | | | | | | | | | | | * src/charset.c (Fdefine_charset_internal): Don't reference uninitialized value in error message. (Bug#73985)
| * | Merge from origin/emacs-30Sean Whitton2024-10-242-1/+3
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f5451b6a066 ; Improve comment from last change 09e05f7ee4d Document and-let* vs. when-let* usage convention b7a375f5c49 Fix error when splicing Eshell globs and a glob expands t... 2289e162268 * etc/package-keyring.gpg: Update expiration and add new key 48024096fea Avoid crashes when scrolling images under winner-mode c35d6ba9f07 ; * doc/lispref/display.texi (Fontsets): Clarify wording. 88a1a32fc57 ; * doc/lispref/display.texi (Fontsets): Fix typo. 6be47058cd7 ; Add indexing for 'use-default-font-for-symbols' 681f70ea04a * src/lread.c (READ_AND_BUFFER): Reject negative chars (b... ac4151e0023 * test/Makefile.in: Do not show emacs-module-tests.log by... 4e0cb960dbd Fix 'php-ts-mode': better indentation and font locking
| | * Avoid crashes when scrolling images under winner-modeEli Zaretskii2024-10-211-1/+1
| | | | | | | | | | | | | | | * src/window.c (window_scroll_pixel_based): Fix calculation of a window's vscroll. (Bug#73933)
| | * * src/lread.c (READ_AND_BUFFER): Reject negative chars (bug#73914).Eli Zaretskii2024-10-201-0/+2
| | |
* | | Don't pause display for pending inputGerd Möllmann2024-11-165-496/+262
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/dispnew.c: Remove display_completed, redisplay_dont_pause, redisplay-dont-pause was declared obsolete in Emacs 24. Remove anything checking pending input, change function signatures accordingly, and so on. * src/keyboard.c (read_char): Don't use redisplay_dont_pause. * src/minibuf.c (read_minibuf): Use new function signatures. * src/xdisp.c: Don't check display_completed. Use new API. * lisp/subr.el (redisplay-dont-pause): Remove declaration.
* | | Respect redisplay_dont_pause in combined updateGerd Möllmann2024-11-151-0/+3
| | | | | | | | | | | | | | | * src/dispnew.c (combine_updates): Respect redisplay_dont_pause. This is important for echo_area_display which binds that variable.
* | | Fix a FIXME In redisplay_internalGerd Möllmann2024-11-121-9/+12
| | | | | | | | | | | | | | | * src/xdisp.c (redisplay_internal): Compare root frames before setting the frame garbaged.
* | | Change interface of prepare_desired_root_rowGerd Möllmann2024-11-101-16/+25
| | | | | | | | | | | | | | | | | | * src/dispnew.c (prepare_desired_root_row): Return NULL if we can't prepare the row. (produce_box_line, copy_child_glyphs): Callers changed accordingly.