Eli Zaretskii
33586db3d3
Adapt w32 console to tty-child-frame changes
...
* src/w32console.c (w32con_write_glyphs): Use the glyph's frame,
not the root frame, to resolve faces from face IDs.
2024-10-26 11:18:41 +03:00
Gerd Möllmann
9b8d1e0add
Handle obscured cursor differently
...
This also fixes an error made when porting this to savannah.
* src/dispnew.c (abs_cursor_pos, (is_cursor_obscured)
(terminal_cursor_magic): Port correctly and fix.
2024-10-23 12:59:09 +02:00
Gerd Möllmann
d1fd1d8fba
Deal with wide characters
...
* src/dispnew.c (make_glyph_space): New function.
(neutralize_wide_char): New function.
(produce_box_sides, copy_child_glyphs): Call neutralize_wide_char.
2024-10-23 10:02:05 +02:00
Eli Zaretskii
669586a5e7
Merge branch 'scratch/tty-child-frames' of git.sv.gnu.org:/srv/git/emacs into scratch/tty-child-frames
2024-10-23 03:20:16 -04:00
Gerd Möllmann
40aa1e329b
Fix copy/paste error
...
* src/dispnew.c (produce_box_glyphs): DonÄt set multibyte_p twice, set
padding_p.
2024-10-23 07:52:39 +02:00
Paul Eggert
dac51f1f66
Fix UB in line_hash_code
...
* src/dispnew.c (line_hash_code): Avoid undefined behavior on
integer overflow.
2024-10-23 05:14:58 +02:00
Gerd Möllmann
5cc5fa79bf
Some cleanup of frame_parm_table
...
* src/frame.c (frame_parms): Use built-in symbols for all entries.
(syms_of_frame): Check that entries are valid built-in symbols.
2024-10-23 05:06:15 +02:00
Eli Zaretskii
4182dfb7e8
; Clarify a comment in dispnew.c
2024-10-22 10:33:45 -04:00
Eli Zaretskii
560260a631
* src/term.c (tty_display_dimension): Avoid warnings.
2024-10-22 06:19:12 -04:00
Eli Zaretskii
4ef5ade5da
Fix commenting conventions.
2024-10-22 05:42:05 -04:00
Eli Zaretskii
9accfc24bc
Fix compilation warnings
...
* src/frame.c (tty_child_size_param):
* src/frame.h (MOUSE_HL_INFO): Avoid NULL dereference warnings.
2024-10-22 04:56:19 -04:00
Gerd Möllmann
fbe63a33f1
Comment
2024-10-22 06:40:20 +02:00
Gerd Möllmann
4a3ba42e6f
Comment
2024-10-22 06:40:20 +02:00
Gerd Möllmann
0012e555d9
Don't set internal_last_event_frame to nil
...
* src/frame.c (do_switch_frame): Do not set internal_last_event_frame to
nil on ttys.
2024-10-22 06:40:20 +02:00
Gerd Möllmann
6aa203bb04
Minor refactoring
2024-10-22 06:40:20 +02:00
Gerd Möllmann
23409041b1
Accept frame param width/height of 0
...
* src/frame.c (tty_child_size_param): Accept values of 0.
2024-10-22 06:40:20 +02:00
Gerd Möllmann
55b72ad875
Set top terminal frame also to children
...
* src/frame.c (make_terminal_frame): Don't check for being root when
setting top_frame.
2024-10-22 06:40:20 +02:00
Gerd Möllmann
414de92a56
Initial child frames based on master
...
This is based on a diff from 2024-10-15 which still applied.
Since then, I've inadvertantly modified the igc branch so that
it is no longer possible to get a clean diff of what has changed
since I created the branch.
2024-10-22 06:40:19 +02:00
Michael Albinus
cf01f8776a
Merge from origin/emacs-30
...
7dbbd58d6c Locate password icon in global-mode-string
19049efd30 ; Fix last documentation change
2c640e63a8 Explain tty-color-mode frame parameter more.
e5d600006e ; * src/doc.c (Ftext_quoting_style): Make doc string agre...
90c6880a92 (track-changes--after): Fix problem found in bug#73041
2024-10-18 17:56:15 +02:00
Michael Albinus
674ad2ba7f
Merge from origin/emacs-30
...
78e6328faf ; (select-safe-coding-system-interactively): Say "safely ...
c5eba443ae ; * lisp/icomplete.el (icomplete-in-buffer): Doc fix (bug...
569186c36e ; * doc/lispref/display.texi (Face Attributes): Fix typo ...
d5723fc4f0 * lisp/progmodes/c-ts-mode.el (treesit-node-eq): Declare ...
0085e48f91 * admin/notes/emba: Docker builds do not run in a worktree.
3d30905b02 * lisp/calc/calc-ext.el (math-approx-sqrt-e): Doc fix (bu...
94d0e9c401 : Revert a mistaken change
4d90a1d820 ; * doc/emacs/search.texi (Word Search): Spelling fixes.
c154047c46 Fix c-ts-mode--anchor-prev-sibling (bug#73661)
b87fda63dd Fix formatting of long keyboard macros by 'list-keyboard-...
ae75ea6232 ; * src/fileio.c (Ffile_newer_than_file_p): Fix wording (...
b120397868 Merge branch 'emacs-30' of git.sv.gnu.org:/srv/git/emacs ...
de54d922b5 * doc/emacs/mini.texi (Passwords): Mention password visib...
0f8f077318 ; * doc/emacs/search.texi (Word Search): Document 'dictio...
fb155bcfb6 ; * lisp/emacs-lisp/chart.el (chart-bar-quickie): Doc fix.
6dbe4e99ac ; * lisp/emacs-lisp/chart.el (chart-bar-quickie): Improve...
d664227f81 ; More accurate documentation of 'file-newer-than-file-p'
e49b479f86 Fix c-ts-mode indentation for initializer lists (bug#73661)
f520008744 Avoid segfaults in Rmail-MIME
6a5c2edd84 Eglot: use :immediate t when resolving completions (bug#7...
cd36e070c2 Eglot: minor changes to doc and docstrings
1ea0d9b891 Revert "Set treesit-primary-parser for tree-sitter modes"
52746ceb62 Remove duplicate indent rules in elixir-ts-mode
ed57faafc7 Set treesit-primary-parser for tree-sitter modes
37a6c859b0 ; * lisp/emacs-lisp/cl-macs.el (cl-once-only): Fix capita...
2d4d6dc43a Delete XIE X extension from TODO
b68b9f291c ; * lisp/progmodes/csharp-mode.el (treesit-query-compile)...
688201ef18 ; * lisp/window.el (switch-to-prev-buffer-skip-regexp): D...
ba44fc9a44 Restore comment/string check for 'electric-layout-mode'
5a462948e1 Update Arni Magnusson's email address
6b1271b169 Fix python-ts-mode-map docstring
aaaafddc94 Normalize "Commentary" section in eudc.el
d656be9794 Expand email abbrevs in X-Debbugs-Cc header.
e9dcf0c57d Fix 'list-tags' when invoked from a non-file buffer
51ef05f684 count-windows: Fix reference to walk-windows
5eaf0c784b * lisp/info-look.el (mapc): Add use-package manual's index.
705a5a1a9e ; * ChangeLog.4: Fix attribution of one change.
bf26ff0dc8 Update csharp-ts-mode font-lock (bug#73369)
4c866abab9 ; * doc/lispref/variables.texi (Creating Buffer-Local): F...
d42d7d474f ; * lisp/doc-view.el (doc-view-svg-face): Copy-edit docst...
f46f476bb8 ; * admin/MAINTAINERS: Take VC subsystem, add note about ...
d68e6d2689 ; rcirc-update-activity-string: Justify some existing beh...
e6a37869c8 Fix inconsistency in value of rcirc-activity-string
108b3179bd Revert "; Minor clarification in variables.texi"
44156c2140 ; Minor clarification in variables.texi
63058e1153 Tag interactive commands in 'lua-ts-mode'
84bea20eba ; * lisp/info-look.el: Add two more links.
96b87ad536 Mention LSP acronym in eglot defgroup docstring
9c904e8cea Change :group of 'eglot' defgroup to 'tools'
fd1a1b0780 Remove out-of-date documentation from python.el
11e3e0cadd Fix executing commands in Eshell using "env" with no loca...
c0ef8a9a1b Fix a typo in the calendar manual
36ff7138fe ; Fix a thinko in sieve-manage.el
7abecbcd63 ; * nt/INSTALL: Update MinGW notes URL. (Bug#73528)
e2b01d164c ; Fix last changes in php-ts-mode.el
e8830015b0 Require ert-x for use by 'ert-font-lock-deftest-file'
a1841b4d8e ; * admin/authors.el (authors-aliases): Don't ignore "one...
69d8f9d1b7 Fix php-ts-mode font-lock for latest PHP grammar (bug#73516)
68f53e4348 eieio.texi: Fix bug#73505
53c887fdf6 ; cperl-mode.el: Fix an invalid face specification
f5cd5585f4 ; Recommend GNU Find for 'find-dired'
65e589698e ; * lisp/filesets.el (filesets-homepage): Fix URL.
1f243a9780 Delete duplicated line in Viper refcard
2024-10-18 17:56:08 +02:00
Mattias Engdegård
e5d600006e
; * src/doc.c (Ftext_quoting_style): Make doc string agree with code.
2024-10-17 18:23:58 +02:00
Eli Zaretskii
ae75ea6232
; * src/fileio.c (Ffile_newer_than_file_p): Fix wording (bug#73709).
2024-10-13 18:29:34 +03:00
Eli Zaretskii
bb5b25181e
Merge from origin/emacs-30
...
0f8f077318 ; * doc/emacs/search.texi (Word Search): Document 'dictio...
fb155bcfb6 ; * lisp/emacs-lisp/chart.el (chart-bar-quickie): Doc fix.
6dbe4e99ac ; * lisp/emacs-lisp/chart.el (chart-bar-quickie): Improve...
d664227f81 ; More accurate documentation of 'file-newer-than-file-p'
e49b479f86 Fix c-ts-mode indentation for initializer lists (bug#73661)
f520008744 Avoid segfaults in Rmail-MIME
6a5c2edd84 Eglot: use :immediate t when resolving completions (bug#7...
cd36e070c2 Eglot: minor changes to doc and docstrings
1ea0d9b891 Revert "Set treesit-primary-parser for tree-sitter modes"
52746ceb62 Remove duplicate indent rules in elixir-ts-mode
ed57faafc7 Set treesit-primary-parser for tree-sitter modes
37a6c859b0 ; * lisp/emacs-lisp/cl-macs.el (cl-once-only): Fix capita...
2d4d6dc43a Delete XIE X extension from TODO
2024-10-12 05:53:27 -04:00
Eli Zaretskii
d664227f81
; More accurate documentation of 'file-newer-than-file-p'
...
* doc/lispref/files.texi (File Attributes):
* src/fileio.c (Ffile_newer_than_file_p): Say the comparison uses
the last-modification times. (Bug#73709)
2024-10-10 11:03:48 +03:00
Eli Zaretskii
f520008744
Avoid segfaults in Rmail-MIME
...
Rmail-MIME decodes text of email, including removal of
CR characters, but that can segfault if the text of some
MIME part is empty.
* src/coding.c (decode_coding_raw_text):
* lisp/mail/rmailmm.el (rmail-mime-insert-decoded-text): Don't
attempt to decode empty text region.
2024-10-09 16:22:52 +03:00
Po Lu
9ed82c26a3
; Fix coding style in w32fns.c
...
* src/w32fns.c (process_dropfiles, STDMETHODCALLTYPE)
(w32_createwindow): Fix coding style.
2024-10-09 09:37:07 +08:00
Cecilio Pardo
9af36e70f8
Implement drag-n-drop for w32 with support for files and text
...
Implement drag-n-drop with IDropTarget for MS-Windows. This
allows for dropping files or text.
* lisp/term/w32-win.el (w32-drag-n-drop): Change to handle
files or strings.
* src/w32fns.c (process_dropfiles): New function to convert
DROPFILES struct to array of strings.
(w32_process_dnd_data): New function to process drop data.
(w32_try_get_data): Extract data from IDataObject.
(w32_createwindow): Assign an IDropTarget to each new frame.
(w32_name_of_message): New message.
(w32_msg_pump): Changed CoInitialize to OleInitialize, needed
by the drag-n-drop functions.
(w32_wnd_proc): New struct w32_drop_target, and
w32_drop_target_* functions to implement the IDropTarget
interface.
* src/w32term.c (w32_read_socket): Handle WM_EMACS_DROP and
remove WM_EMACS_DROPFILES.
* src/w32term.h: New message WM_EMACS_DROP.
(Bug#3468)
* etc/NEWS: Announce the new feature.
2024-10-08 16:13:24 +03:00
Andrea Corallo
abb932290d
* src/comp.c (compile_function, Fcomp__compile_ctxt_to_file0): Use DOHASH.
2024-10-03 13:10:09 +02:00
Eli Zaretskii
d5b02b7ad6
Avoid assertion violations due to wrong 'min-width' property
...
* src/xdisp.c (display_min_width): Ignore 'min-width' display
specs which produce stretch glyphs wider than the window when
lines are truncated. (Bug#73600)
2024-10-03 13:32:10 +03:00
Daniel Colascione
79d66b4b29
Process focus-in events immediately on NS
...
* src/nsterm.m ([EmacsView windowDidBecomeKey]): kick the main
event loop when we get a focus-in event so it gets processed
immediately (Bug#73559).
2024-10-02 10:35:22 -07:00
Mattias Engdegård
0c28a1b0fa
Cease accepting the :reverse-video face attribute (bug#73552)
...
It was an old alias for :inverse-video that hasn't worked very well for
many years.
* src/xfaces.c (merge_face_ref, Finternal_set_lisp_face_attribute)
(Finternal_set_lisp_face_attribute_from_resource)
(Finternal_get_lisp_face_attribute)
(Finternal_lisp_face_attribute_values, syms_of_xfaces):
Stop recognising :reverse-video.
* etc/NEWS: Announce.
2024-09-29 18:10:46 +02:00
Eli Zaretskii
c90eb98dab
Merge from origin/emacs-30
...
e8830015b0 Require ert-x for use by 'ert-font-lock-deftest-file'
a1841b4d8e ; * admin/authors.el (authors-aliases): Don't ignore "one...
69d8f9d1b7 Fix php-ts-mode font-lock for latest PHP grammar (bug#73516)
68f53e4348 eieio.texi: Fix bug#73505
53c887fdf6 ; cperl-mode.el: Fix an invalid face specification
f5cd5585f4 ; Recommend GNU Find for 'find-dired'
65e589698e ; * lisp/filesets.el (filesets-homepage): Fix URL.
1f243a9780 Delete duplicated line in Viper refcard
d63bff4d88 Fix Tramp shortdoc integration
759b18a33c * lisp/imenu.el (imenu-flatten): More limitations in docs...
794bb2a2e3 remember-data-file: Don't unconditionally call set-visite...
7766ba8419 Align columns in which-key with wide characters properly
bd25a98b4e bibtex-mode: fix patch bibtex validation for non-file buf...
4729065ee7 Document 'buttonize-region' in manual
f189457e5a ; * lisp/yank-media.el (yank-media-handler): Fix docstrin...
2b53e11a08 Use black-on-white by default for doc-view-svg-face.
32d0c8f6af etags-regen-file-extensions: Enable for more extensions
8f265b49e3 ; Fix last change
c8ed48b990 ; Improve documentation of 'append'
c1f2501f55 Update and improve UI of sql-read-product (bug#73412)
4f5fc519f0 Insert correct commit data into VC package descriptions
98177d4b3d Document reporting security issues in user manual
b986e2018a * BUGS: Minor copy edit.
2024-09-28 07:59:16 -04:00
Eli Zaretskii
57c552b8b9
; * src/cm.c (cmgoto): Fix last change.
2024-09-27 09:19:19 +03:00
Jeremy Bryant
bfbed2f3ee
; * src/cm.c (cmgoto): Add function documentation (bug#73487).
2024-09-27 09:17:29 +03:00
Jeremy Bryant
0c861b820b
; * src/cm.c (calccost): Fix typo. (Bug#73485)
2024-09-26 01:47:04 +02:00
Eli Zaretskii
8f265b49e3
; Fix last change
...
* doc/lispref/lists.texi (Building Lists):
* src/fns.c (Fappend): Fix last change (bug#73427). Suggested by
Mattias Engdegård <mattias.engdegard@gmail.com>.
2024-09-23 17:13:31 +03:00
Eli Zaretskii
c8ed48b990
; Improve documentation of 'append'
...
* doc/lispref/lists.texi (Building Lists):
* src/fns.c (Fappend): Improve documentation of 'append'. (Bug#73427)
2024-09-23 14:41:34 +03:00
Eli Zaretskii
83b0e604ce
Merge from origin/emacs-30
...
4b9a8fd607 etags-regen-file-extensions: Add .pm
956f14ae5e * src/treesit.c (treesit_debug_print_parser_list): Fix co...
300d05ecb4 Type-check argument to network-lookup-address-info
0f0f21b7f2 ; Improve doc strings of options related to numbered backups
f0daa2f215 Conservative heuristic for tree-sitter parser ranges (bug...
035024b4e5 ; Fix treesit.c printing
8771310a10 ; * admin/notes/unicode: Need to run textsec-tests (bug#7...
4c6f45fa8e Re-enable GC mark trace buffer by default
c607701589 ; * src/haiku_support.cc: Correct last change.
ae22ad7f62 ; Add even more tests for previous commit
460b9d705a Fix treesit_sync_visible_region's range fixup code (bug#7...
81347c1aaf ; * etc/PROBLEMS: Fix last change (bug#73207).
a82b7f3e82 Document unavailability of frame geometry on Wayland
2024-09-21 07:30:19 -04:00
Eli Zaretskii
a513f2a4dd
Fix 'regexp-replace' in WDired
...
* src/search.c (Freplace_match): Remove the test that
search_regs.num_regs != num_regs. It is deemed unnecessary now,
and could produce false positives. (Bug#73018)
2024-09-21 12:30:49 +03:00
Eli Zaretskii
eced135120
Fix 'replace-regexp' in WDired
...
* src/search.c (Freplace_match): Revert the search.c part of the
change from Apr 7, 2024, which aims to fix bug#65451, but causes
bug#73018. Do not merge to master.
* test/src/editfns-tests.el
(editfns-tests--before/after-change-functions): Expect this test
to fail.
2024-09-21 12:26:24 +03:00
Po Lu
7ef805d6a4
Disable fontset-related workaround on non-Android systems
...
* src/fontset.c (fontset_find_font) [!HAVE_ANDROID]: Don't
refuse to cache font objects whose registries do not agree with
the font specs. (bug#73363)
Do not merge to master.
2024-09-20 22:30:07 +08:00
Po Lu
357cd83875
Remove obsolete workaround
...
* src/fontset.c (fontset_find_font): Don't refuse to cache
font objects whose registries do not agree with the font
specs. (bug#73363)
2024-09-20 22:28:36 +08:00
Andrea Corallo
956f14ae5e
* src/treesit.c (treesit_debug_print_parser_list): Fix compiler warning.
2024-09-19 10:28:34 +02:00
Robert Pluim
300d05ecb4
Type-check argument to network-lookup-address-info
...
* src/process.c (Fnetwork_lookup_address_info): Check that the
"name" argument is a string, and mention 'puny-encode-domain'.
(Bug#73337)
2024-09-19 09:23:58 +02:00
Eli Zaretskii
252ed22d62
; Use c-ctype.h in w32*.c
...
* src/w32.c:
* src/w32fns.c: Replace ctype.h functions by equivalent
c-ctype.h functions.
2024-09-18 21:22:04 +03:00
Paul Eggert
6d507d586a
yes-or-no-p now uses blankp rather than SYNTAX
...
* src/fns.c: Do not include syntax.h; no longer needed.
(Fyes_or_no_p): Use blankp rather than SYNTAX to check whether the
prompt ends in nonspace. That way, the test doesn’t depend on the
current buffer.
2024-09-18 09:18:48 -07:00
Yuan Fu
f0daa2f215
Conservative heuristic for tree-sitter parser ranges (bug#73324)
...
* src/treesit.c (treesit_sync_visible_region): If the parser's original
ranges don't overlap with visible region, give it a zero range, rather
than don't set any range.
* test/src/treesit-tests.el (treesit-range-fixup-after-edit): Test new
behavior.
2024-09-17 21:18:28 -07:00
Yuan Fu
035024b4e5
; Fix treesit.c printing
...
* src/treesit.c (treesit_debug_print_parser_list): Use PRIuPTR so 32bit
systems compile without warnings.
2024-09-17 20:54:40 -07:00
Paul Eggert
58a44b6ac3
Fix misuse of toupper in sfnt_parse_style
...
* src/sfntfont.c: Include c-ctype.h, not ctype.h.
(sfnt_parse_style): Upcase just initial ASCII letters;
that’s good enough here.
2024-09-17 16:39:25 -07:00
Paul Eggert
43cde03fa5
Fix yes-or-no-p with multibyte spaces
...
Problem reported by Thomas Klausner (Bug#73307).
Emacs shouldn’t use ctype.h, as it doesn’t work for multibyte
chars and it doesn’t work with Emacs’s locale model anyway.
* src/fns.c: Include syntax.h, not ctype.h.
(Fyes_or_no_p): Check the character category with SYNTAX, not
with isspace, which assumes the current locale and works only
with single-byte characters.
2024-09-17 16:39:25 -07:00