Eli Zaretskii
dae4fa9986
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
2022-01-27 12:57:16 +02:00
Zajcev Evgeny
9d34946e53
; Fix typo in doc/lispref/display.texi.
2022-01-27 12:56:30 +02:00
Andrea Corallo
d0aac84b2a
* Fix `startup--honor-delayed-native-compilations' for (bug#53497)
...
* lisp/startup.el (startup--honor-delayed-native-compilations): Don't
forget to set `comp--loadable' when `comp--delayed-sources' is empty.
2022-01-27 11:55:35 +01:00
Andrea Corallo
60cfb90d01
* Have `benchmark-run-compiled' use the native compiler when available
...
* lisp/emacs-lisp/benchmark.el (benchmark-run-compiled): Use native
compiler when available.
2022-01-27 11:55:21 +01:00
Stefan Kangas
a8862f313b
Merge from origin/emacs-28
...
c9524819ea Partially revert a fill-region-as-paragraph regression
6075ea0b79 Fix 'make_lispy_position' when there's an image at EOB
# Conflicts:
# test/lisp/textmodes/fill-tests.el
2022-01-27 09:45:49 +01:00
Stefan Kangas
82aa5be7ce
; Merge from origin/emacs-28
...
The following commits were skipped:
c5b0019e10 Fix copyright-find-copyright when searching from the end
ed18d08f6f Fix copyright.el comment and add a test
2022-01-27 09:07:56 +01:00
Po Lu
333e95196f
* lisp/xwidget.el (xwidget-webkit-edit-mode-map): Pass C-backspace.
2022-01-27 14:07:08 +08:00
Po Lu
b89ae23636
Implement crossing event generation between windows for xwidgets on X
...
* src/xwidget.c (enum xw_crossing_mode): New enum.
(xwidget_motion_notify):
(xwidget_motion_or_crossing): Synthesize crossing events if the
pointer moved between different windows.
(window_coords_from_toplevel):
(xw_maybe_synthesize_crossing): New functions.
(xwidget_init_view): Initialize new field to NULL.
(Fdelete_xwidget_view): Clear last crossing window.
* src/xwidget.h (struct xwidget_view): New field
`last_crossing_window'.
2022-01-27 14:00:46 +08:00
Stefan Kangas
2b150f943b
Silence byte-compiler slightly in tests
...
* test/src/comp-resources/comp-test-45603.el
(comp-test-45603--call-marked):
* test/src/comp-resources/comp-test-funcs.el
(comp-tests-discardn-f, comp-test-42360-f, comp-test-46824-1-f)
(comp-test-silly-frame2): Silence byte-compiler.
2022-01-27 04:25:08 +01:00
Stefan Kangas
5b931eb8ff
Don't use obsolete second argument to byte-compile-file
...
* test/src/comp-resources/comp-test-funcs.el
(comp-test-big-interactive): Don't use obsolete second argument to
byte-compile-file.
2022-01-27 04:15:13 +01:00
Stefan Kangas
8f9f1701f6
Don't discourage auto-mode-alist entries in autoloads
...
* lisp/files.el (auto-mode-alist, interpreter-mode-alist): Delete
comment discouraging entries in autoload directives. (Bug#8158)
2022-01-27 03:57:45 +01:00
Po Lu
a0fbdb5166
Improve XI2 valuator reset logic
...
* src/xterm.c (handle_one_xevent): Clear valuators on XI_Leave
instead of XI_Enter.
2022-01-27 10:03:56 +08:00
Po Lu
458024a3d9
* src/xterm.c (x_focus_frame): Set input focus on outer window.
2022-01-27 09:33:11 +08:00
Po Lu
7116092eaf
Get rid of unnecessary draw locking in haikumenu.c
...
* src/haikumenu.c (Fhaiku_menu_bar_open): Stop holding the draw
lock.
2022-01-27 01:26:54 +00:00
Po Lu
824440a7c8
Apply fix for bug#52761 to GTK native input as well
...
* src/xgselect.c (xg_select): Apply said fix on regular GTK
builds when native input is being used.
2022-01-27 09:20:25 +08:00
Glenn Morris
6fcf7c9a83
* Makefile.in (install-etc): Remove unnecessary chown.
...
Not needed since this rule was changed to not use tar, 2012-05-11.
2022-01-26 16:58:21 -05:00
Lars Ingebrigtsen
0a51a85b5d
Make smerge-refine-ignore-whitespace into defcustom
...
* lisp/vc/smerge-mode.el (smerge-refine-ignore-whitespace): Make
into defcustom (bug#12585).
2022-01-26 18:57:29 +01:00
Mattias Engdegård
66b99778b8
Add tests for concat, vconcat and append
...
* test/src/fns-tests.el (fns-tests-concat)
(fns-concat, fns-vconcat, fns-append): New.
2022-01-26 17:10:16 +01:00
Mattias Engdegård
a3aeee88aa
Minor concat tweaks
...
* src/fns.c (concat): Do things in the right order for speed.
(concat_strings): Initialise variable.
2022-01-26 17:10:16 +01:00
Lars Ingebrigtsen
c9524819ea
Partially revert a fill-region-as-paragraph regression
...
* lisp/textmodes/fill.el (fill-region-as-paragraph): Revert
e186af261 (bug#53537), because it leads to regressions. (But
leave tests in place.)
2022-01-26 16:20:05 +01:00
Eli Zaretskii
6075ea0b79
Fix 'make_lispy_position' when there's an image at EOB
...
* src/xdisp.c (move_it_to): Don't compare IT_CHARPOS with an
invalid TO_CHARPOS. (Bug#53546)
2022-01-26 16:44:14 +02:00
Lars Ingebrigtsen
c5b0019e10
Fix copyright-find-copyright when searching from the end
...
* lisp/emacs-lisp/copyright.el (copyright-find-copyright): Make
the double check also work when searching from the end (bug#7179).
Do not merge to master.
2022-01-26 15:03:56 +01:00
Lars Ingebrigtsen
ed18d08f6f
Fix copyright.el comment and add a test
...
* lisp/emacs-lisp/copyright.el (copyright-find-copyright): Fix
comment (bug#7179).
Do not merge to master.
2022-01-26 15:03:33 +01:00
Lars Ingebrigtsen
826959ccb4
Fix copyright-find-copyright when searching from the end
...
* lisp/emacs-lisp/copyright.el (copyright-find-copyright): Make
the double check also work when searching from the end (bug#7179).
2022-01-26 15:02:00 +01:00
Lars Ingebrigtsen
8a343ecee5
Fix copyright.el comment and add a test
...
* lisp/emacs-lisp/copyright.el (copyright-find-copyright): Fix
comment (bug#7179).
2022-01-26 14:53:07 +01:00
Sean Whitton
afd1fdf6bb
Fix input of sharp-quoted symbols in Eshell with em-extpipe
...
* lisp/eshell/em-extpipe.el (eshell-parse-external-pipeline): Fix
misinterpreting sharp-quoted symbols as the beginning of single-quoted
strings (Bug#53518). Add protection against a possible infinite loop.
* test/lisp/eshell/em-extpipe-tests.el (em-extpipe-test-17): New
test (bug#53518).
2022-01-26 14:16:40 +01:00
Michael Albinus
fc8875be07
Adapt tramp-tests
...
* test/lisp/net/tramp-tests.el (tramp--test-special-characters):
Adapt test candidates.
2022-01-26 14:05:30 +01:00
Michael Albinus
b085ca237d
Fix insert-file-contents for tramp-crypt
...
* lisp/net/tramp-crypt.el (tramp-crypt-file-name-handler-alist):
Use `tramp-handle-insert-file-contents'.
2022-01-26 14:05:11 +01:00
Po Lu
9421678987
Add workaround for super modifier misconfiguration to non-XKB code
...
* src/xterm.c (x_find_modifier_meanings): Don't let a modifier
be both Hyper and Super.
2022-01-26 20:36:35 +08:00
Andrea Corallo
1200e55b6f
Make use of NILP where possible
...
* src/w32menu.c (menubar_selection_callback, w32_menu_show): Use NILP
where possible.
* src/w32fns.c (w32_set_mouse_color): Likewise.
* src/w16select.c (Fw16_selection_exists_p): Likewise.
* src/process.c (Fnetwork_lookup_address_info): Likewise.
* src/cygw32.c (Fcygwin_convert_file_name_to_windows)
(Fcygwin_convert_file_name_from_windows): Likewise.
2022-01-26 12:59:10 +01:00
Po Lu
a2eb83d037
Simplify Haiku scrolling code
...
* src/haikuterm.c (haiku_scroll_run): Remove code that can never
be reached since Cairo frames are always double buffered.
2022-01-26 06:05:35 +00:00
Po Lu
401ccb0b9c
Fix GTK menu bar height reporting when scaled
...
* src/gtkutil.c (xg_update_frame_menubar): Multiply requisition
height by GDK scale.
2022-01-26 13:53:20 +08:00
Po Lu
3e00ab5efb
; * src/xterm.c (handle_one_xevent): Fix formatting of XI2 switch.
2022-01-26 13:51:06 +08:00
Stefan Kangas
f97c3f9ced
Merge from origin/emacs-28
...
7eca80b204 ; * src/composite.c (syms_of_composite) <auto-composition-...
2022-01-26 06:30:26 +01:00
Po Lu
db7de56eef
Simplify Haiku underline code
...
* src/haikuterm.c (haiku_draw_text_decoration): Remove code left
over from when mouse face had to be set manually.
2022-01-26 05:09:09 +00:00
Po Lu
bca6855084
Make `haiku-menu-bar-open' faster
...
* src/haikumenu.c (Fhaiku_menu_bar_open): Get draw lock before
updating the menu bar.
* src/haikuterm.c (haiku_read_socket): Don't update menu bar if
b->no_lock.
2022-01-26 01:20:48 +00:00
Stefan Kangas
19c6fb1674
; * test/lisp/emacs-lisp/derived-tests.el: Silence byte-compiler.
2022-01-26 00:44:00 +01:00
Stefan Kangas
51fdcca000
* src/image.c (parse_image_spec): Use NILP.
2022-01-26 00:42:10 +01:00
Lars Ingebrigtsen
fb16a6c124
Improve how change-log-mode fills all-file-name lines
...
* lisp/vc/add-log.el (change-log-fill-file-list): New function to
improve how we fill all-file-name ChangeLog lines (bug#19341).
(change-log-indent): Use it.
2022-01-25 23:41:07 +01:00
Lars Ingebrigtsen
2362eb0980
Fix up Gnus FAQ entry
...
* doc/misc/gnus-faq.texi (FAQ 3-9): Remove mention of
nnimap-list-pattern, which was removed some years ago (bug#53522).
2022-01-25 23:41:07 +01:00
Andrea Corallo
50fea24b8b
* src/comp.c (emit_lisp_obj_rval): Make use of NILP.
2022-01-25 22:15:51 +01:00
Andrea Corallo
2d4d6f1a3f
;* src/fns.c (concat_strings): Add missing space.
2022-01-25 22:05:05 +01:00
Stefan Monnier
f4ed3f39c9
* src/comp.c (emit_limple_insn): Fix another int/Lisp_Object mixup
2022-01-25 14:36:48 -05:00
Glenn Morris
84276bf775
Tag an mml-sec test
...
* test/lisp/gnus/mml-sec-tests.el (mml-secure-en-decrypt-3):
Tag unstable on hydra.nixos.org due to repeated intermittent failures.
2022-01-25 09:38:50 -08:00
Eli Zaretskii
d25cb37694
; * src/fns.c (concat_strings): Fix comment style.
2022-01-25 19:12:50 +02:00
Andrea Corallo
65172e61cc
* src/fns.c (concat_strings): Clean-up unused variable.
2022-01-25 17:52:43 +01:00
Andrea Corallo
dfaf8bec4e
* `batch-byte+native-compile' produce .eln younger than .elc (bug#52912)
...
* lisp/emacs-lisp/comp.el (batch-native-compile): Add return
value.
(batch-byte+native-compile): Touch the produced .eln after the
corresponding .elc is produced.
2022-01-25 17:47:34 +01:00
Andrea Corallo
72a4cdaadc
* lisp/emacs-lisp/comp.el (batch-byte+native-compile): Fix unwind form
2022-01-25 17:47:34 +01:00
Stefan Monnier
e8c66036d1
* src/lisp.h (lisp_h_EQ, lisp_h_NILP): Fix length and indent
2022-01-25 10:03:01 -05:00
Mattias Engdegård
697723b63d
Faster concat, append, vconcat, copy-sequence, etc
...
Split the C auxiliary function `concat` into separate functions for
string and list/vector as target types, respectively. This makes them
simpler and faster.
Implement `Fcopy_sequence` more efficiently for strings, lists and
vectors instead of using `concat`.
The result is a significant performance increase for the Lisp
built-ins concat, append, vconcat, copy-sequence and anything using
them such as mapconcat, copy-alist and propertize.
* src/fns.c (concat2, concat3, Fconcat): Use concat_strings.
(Fappend, Fvconcat): Adapt to changed signature of concat.
(Fcopy_sequence): Faster implementation for lists, strings, and vectors.
(concat_strings): New.
(concat): Strip code for string target, simplify, optimise.
(Fcopy_alist): Use Fcopy_sequence.
2022-01-25 15:51:25 +01:00