1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-04 11:00:45 -08:00
Commit graph

154451 commits

Author SHA1 Message Date
Andrew G Cohen
58172cc28a nnselect.el: Speed up group info updating
* lisp/gnus/nnselect.el (nnselect-request-update-info): Use a hash and
other tricks to speed things up.
(nnselect-request-group-scan): Make sure the artlist is uncompressed.
2022-02-08 14:05:02 +08:00
Stefan Kangas
1e9eeed913 ; Merge from origin/emacs-28
The following commit was skipped:

0d46ee2dde Don't remove dummy.group from gnus-newsrc-alist on Gnus save
2022-02-08 06:30:53 +01:00
Po Lu
7a1a56da0a Try harder to preserve cursor when mapping tooltip frames on Haiku
* src/haikufns.c (haiku_set_cursor_color): Fix argument to
`error'.
(Fx_show_tip): Define cursors on both views.
2022-02-08 05:14:16 +00:00
Po Lu
65f0785917 Fix menu bar not opening after popup menu is dismissed on Lucid
* lwlib/xlwmenu.c (XlwMenuDestroy): Only set submenu_destroyed
if menu bar widget.
2022-02-08 10:37:24 +08:00
Po Lu
4592fb4046 * src/pgtkfns.c (Fx_create_frame): Realize frame widgets. (bug#53861) 2022-02-08 09:38:33 +08:00
Po Lu
cdf7e2e021 Don't allow tooltips to be transient for override redirect windows
* src/xfns.c (Fx_show_tip): Delete WM_TRANSIENT_FOR if the child
window is override-redirect.

* src/xterm.c (x_term_init): Intern new atom.
* src/xterm.h (struct x_display_info): New atom
`Xatom_wm_transient_for'.
2022-02-08 09:25:24 +08:00
Po Lu
1f45d27388 Make sure `update_wm_hints' finds the WMShell
* src/widget.c (update_wm_hints): Accept frame separately from
the shell widget.
(widget_update_wm_size_hints): Require WM shell to be explictly
specified.
(EmacsFrameRealize):
(EmacsFrameResize): Update callers to `update_wm_hints'.
* src/widget.h: Update prototypes.
* src/xterm.c (x_wm_set_size_hint): Pass frame widget
(ApplicationShell) and the edit widget (EmacsFrame) to
`widget_update_wm_size_hints'.  (bug#53839)
2022-02-08 08:48:55 +08:00
Stefan Monnier
77cbde6d09 minibuffer.el: Try and fix bug#53053
* lisp/minibuffer.el (completion--sifn-requote): Special case for when
`upos` is at the very end.
2022-02-07 16:51:18 -05:00
Tassilo Horn
919cbe2b7d ; paren.el: fix comment speaking of an undefined variable 2022-02-07 21:03:53 +01:00
Stefan Monnier
7a9b5e7504 * lisp/progmodes/xref.el (xref--marker-ring): Fix typo 2022-02-07 13:37:09 -05:00
Michael Albinus
992908b09a Make connection-local variables user options
* lisp/files-x.el (connection-local-profile-alist)
(connection-local-criteria-alist): Make them user options.

* doc/lispref/variables.texi (Connection Local Variables):
* etc/NEWS: Document this.
2022-02-07 19:32:38 +01:00
Stefan Monnier
9338fbbc28 lisp-mnt, checkdoc: Reduce run-time dependencies
* lisp/emacs-lisp/lisp-mnt.el: Don't require `mail-parse` at top-level.
(lm-crack-address): Require it here instead.

* lisp/emacs-lisp/checkdoc.el (dired): Don't load at run-time.
(checkdoc-dired): Add corresponding `declare-function`.
2022-02-07 12:59:27 -05:00
Mattias Engdegård
6f3c62ff07 Pin lazily read bytecode (bug#53809)
* src/eval.c (Ffetch_bytecode): Bytecode strings read lazily weren't
pinned as they must be.  Do so.

Bug reported by Gregor Zattler.
2022-02-07 18:18:32 +01:00
Po Lu
6e403efc9b ; * doc/emacs/xresources.texi (Table of Resources): Fix typo. 2022-02-07 21:39:19 +08:00
Tassilo Horn
90eb6a7fe4 ; Set show-paren--context-child-frame to nil after deleting it 2022-02-07 13:37:14 +01:00
Po Lu
3eaaeed2d0 Improve contrast of `custom-button' in the leuven-dark theme
* etc/themes/leuven-dark-theme.el (custom-button): Improve
contrast of custom-button foreground.
2022-02-07 19:59:43 +08:00
Eric Abrahamsen
0d46ee2dde Don't remove dummy.group from gnus-newsrc-alist on Gnus save
bug#53352

* lisp/gnus/gnus-start.el (gnus-gnus-to-quick-newsrc-format): This
function was removing dummy.group from the global value of
`gnus-newsrc-alist' on save; we only wanted to remove it temporarily.
2022-02-07 11:42:49 +01:00
Po Lu
a5e6a7c3bc * lwlib/xlwmenu.c (pop_up_menu): Fix cast. 2022-02-07 17:48:00 +08:00
Po Lu
30d92721ce Correct off-by-one errors with frame resizing on Haiku
* src/haiku_support.cc (UnZoom):
(MakeFullscreen):
(BWindow_resize): Fix off-by-one errors in calls to
`BWindow::ResizeTo'.
2022-02-07 09:43:26 +00:00
Po Lu
b432fb6c86 Make menus work better on X toolkit builds with XInput 2
* src/xmenu.c (popup_get_selection): Translate some important
XI2 events into events the toolkit can understand.
(x_activate_menubar):
(create_and_show_popup_menu): Clear grab regardless of reported
status on Motif.
* src/xterm.c (xi_device_from_id): Export function.
* src/xterm.h: Update prototypes.
2022-02-07 17:15:53 +08:00
Michael Albinus
dfda7d1463 Sanitize ls switches in ange-ftp (bug#53360)
* lisp/net/ange-ftp.el (ls-lisp--sanitize-switches): Declare.
(ange-ftp-ls): Sanitize LSARGS.  (Bug#53360)
2022-02-07 10:07:15 +01:00
Lars Ingebrigtsen
985e7148a7 Improve indentation of some shell script forms
* lisp/progmodes/sh-script.el (sh-smie--default-backward-token):
Don't skip past things like "true;then" (bug#53817).
2022-02-07 09:13:54 +01:00
Po Lu
61a5bbc683 Really fix extended frame synchronization
* src/xterm.c (XTframe_up_to_date): Make sure the extended
counter ends up even.
2022-02-07 14:59:06 +08:00
Tassilo Horn
f91a911ef3 ; Fix previous commit (6e5d79c048) 2022-02-07 06:52:04 +01:00
Lars Ingebrigtsen
de419bba04 Fix the Scroll key binding on Windows
* lisp/bindings.el (global-map): Fix the binding on Windows
(bug#38007).

* lisp/scroll-lock.el (scroll-lock-mode): The event is `scroll' on
Windows, not `Scroll_Lock'.
2022-02-07 04:58:49 +01:00
Lars Ingebrigtsen
cb09a1120e Make the eintr.html target match what's on the web
* doc/lispintro/Makefile.in (HTML_TARGETS, eintr.html): Make the
name match the URL at
https://www.gnu.org/software/emacs/manual/eintr.html (bug#38817).
2022-02-07 04:58:49 +01:00
Lars Ingebrigtsen
f655bd2008 Give a better error in locate-default-make-command-line
* lisp/locate.el (locate-default-make-command-line): Error out
more nicely.
2022-02-07 04:58:49 +01:00
Lars Ingebrigtsen
130cd70d9b Improve the ediff-diff-options documentation
* lisp/vc/ediff-diff.el (ediff-diff-options):
* doc/misc/ediff.texi (Patch and Diff Programs): Note that setting
this variable directly is probably the wrong thing to do (bug#6512).
2022-02-07 04:58:49 +01:00
Po Lu
ab5b2e63fa Respect `x-cursor-fore-pixel' on Haiku
* src/haikufns.c (haiku_set_cursor_color): Respect
`x-cursor-fore-pixel'.
(syms_of_haikufns): Declare variable `x-cursor-fore-pixel'.
2022-02-07 03:00:25 +00:00
Po Lu
e9217d0f34 Clean up more code from PGTK port
* lisp/term/pgtk-win.el (pgtk-disown-selection-internal)
(pgtk-get-selection-internal): Fix declarations for new calling
conventions.
* src/gtkutil.c (xg_frame_set_char_size, x_wm_set_size_hint):
Clean up meaningless variables on PGTK.
* src/pgtkfns.c (Fx_create_frame, syms_of_pgtkfns): Clean up
meaningless variables and fix copied doc strings to use "skip".
* src/pgtkim.c (im_context_commit_cb)
(im_context_retrieve_surrounding_cb)
(im_context_delete_surrounding_cb, make_color_string)
(im_context_preedit_changed_cb, im_context_preedit_end_cb)
(im_context_preedit_start_cb): Fix coding style.
* src/pgtkselect.c (pgtk_selection_usable)
(Fpgtk_disown_selection_internal, Fpgtk_get_selection_internal):
Remove unused arguments.
(syms_of_pgtkselect): Fix doc strings and old style variable
declarations.
* src/pgtkterm.c (x_set_offset, x_set_parent_frame)
(syms_of_pgtkterm): Clean up doc strings and remove meaningless
variables.
2022-02-07 10:38:15 +08:00
Po Lu
905dad0a31 * doc/emacs/xresources.texi (Table of Resources): Improve wording. 2022-02-07 09:56:55 +08:00
Po Lu
011fa3a4cb Correct implementation of extended frame synchronization
* src/xterm.c (handle_one_xevent): Use value provided in the
extended synchronization message as the current counter value.
2022-02-07 09:42:08 +08:00
Lars Ingebrigtsen
838da4aef8 Make dired-directory and dired-subdir-alist buffer-local
* lisp/dired.el (dired-directory):
(dired-subdir-alist): Make buffer-local (bug#7118)
(dired-readin):
(dired-mode):
* lisp/dired-x.el (dired-virtual): Adjust usage.
* lisp/locate.el (locate-mode):
* lisp/find-lisp.el (find-lisp-find-dired-internal):
* lisp/find-dired.el (find-dired): Adjust usage.
2022-02-07 01:31:53 +01:00
Stefan Monnier
69efc36c6b Fix eval-tests/backtrace-in-batch-mode test
* lisp/emacs-lisp/debug-early.el (debug-early-backtrace): Fix the
zero-arg case.
2022-02-06 19:20:36 -05:00
Lars Ingebrigtsen
0d36eaa7c6 Make async connect_network_socket failures use Qfailed
* src/process.c (connect_network_socket): Mark the process as
Qfailed instead of using the error symbol (since this is what's
defined for the status) (bug#53814).
2022-02-07 00:26:25 +01:00
Bob Rogers
dcb3b85ec7 Remove outdated comments from ietf-drums.el
* lisp/mail/ietf-drums.el: Remove outdated comments (bug#53811).
2022-02-07 00:08:36 +01:00
Ioannis Kappas
e9ba08be21 ansi-color: don't get stuck on \e
* lisp/ansi-color.el (ansi-color--control-seq-fragment-regexp): New
constant.

* test/lisp/ansi-color-tests.el
(ansi-color-incomplete-sequences-test): Test for \e that doesn't
start a valid ANSI escape sequence (bug#53808).

Code amended (and test code written) by <miha@kamnitnik.top>.  Code by
Ioannis Kappas is small enough to be

Copyright-paperwork-exempt: yes
2022-02-06 23:54:07 +01:00
Stefan Monnier
bff8354ec4 (debug-early-backtrace): Tweak the non-evald output
* lisp/emacs-lisp/debug-early.el (debug-early-backtrace): Make the
non-evald output more like what is used in `debug.el`.
2022-02-06 13:06:22 -05:00
Stefan Monnier
e95ca5cf07 (debug-early-backtrace): Tweak the non-evald output
* lisp/emacs-lisp/debug-early.el (debug-early-backtrace): Make the
non-evald output more like what is used in `debug.el`.
2022-02-06 13:04:35 -05:00
Juri Linkov
0f38e2393d Use mode-line-window-selected-p in tab-line-tab-name-format-default.
* lisp/tab-line.el (tab-line-tab-name-format-default):
Use the recently added function 'mode-line-window-selected-p'
for the face 'tab-line-tab-current' (bug#53629).
2022-02-06 19:58:43 +02:00
Juri Linkov
1efc94e7ce * lisp/tab-bar.el (tab-bar-new-tab-choice): Add const 'window'. Update doc.
(tab-bar-new-tab-to): Remove window parameters 'window-side' and
'window-atom' from the old window.  Move split-window/delete-window
inside ignore-window-parameters (bug#53662).
2022-02-06 19:55:03 +02:00
Michael Albinus
8b35f64ff9 Adapt em-tramp-tests.el
* test/lisp/eshell/em-tramp-tests.el (tramp): Require.
(em-tramp-test/su-default, em-tramp-test/su-user)
(em-tramp-test/su-login, em-tramp-test/sudo-basic)
(em-tramp-test/sudo-user): Adapt tests.
2022-02-06 18:50:16 +01:00
Mattias Engdegård
1850121629 Avoid deprecation warning in NS-specific code
* src/macfont.m (mac_font_create_preferred_family_for_attributes):
CTGetCoreTextVersion is obsolete and its use elicits a warning
in macOS 11.6; use NSProcessInfo instead.
2022-02-06 17:58:54 +01:00
Mattias Engdegård
ead36d8d36 ; * src/alloc.c (mark_memory): Fix outdated comment. 2022-02-06 17:57:46 +01:00
Po Lu
b0fd3ec2c0 Ensure bar cursors are always visible on Haiku
* src/haikuterm.c (haiku_draw_window_cursor): Adjust bar cursor
colors like X.
2022-02-06 13:08:06 +00:00
Po Lu
dc5930ba97 Fix the GTK 2 build
* src/gtkutil.c (xg_filter_key): Remove call to GTK3-only
function without GTK 3.
* src/xfns.c (select_visual): Avoid 32-bit visuals on GTK 2.
2022-02-06 20:10:46 +08:00
Po Lu
3775156990 Disable extended frame synchronization by default
* doc/emacs/xresources.texi (Table of Resources): Document
new possible value of `synchronizeResize'.
* src/xfns.c (Fx_create_frame): Set synchronization protocol
according to `synchronizeResize'.
2022-02-06 19:51:05 +08:00
Po Lu
30c6074d5a Add support for EWMH extended frame synchronization
* src/xfns.c (Fx_create_frame): Populate both counter variables.
* src/xterm.c (XTframe_up_to_date):
(handle_one_xevent): Support extended synchronization.
(x_free_frame_resources): Destroy extended counter.
(x_term_init): Intern new atom _NET_WM_FRAME_DRAWN.

* src/xterm.h (struct x_display_info): New atom
`_NET_WM_FRAME_DRAWN'.
(struct x_output): New fields for extended counter tracking.
(FRAME_X_EXTENDED_COUNTER): New macro.
2022-02-06 18:59:00 +08:00
Eli Zaretskii
8d4154742f ; * etc/NEWS: Fix entry for 'find-library-include-other-files'. 2022-02-06 12:34:14 +02:00
Eli Zaretskii
47ddaaab02 Fix infloop in 'redisplay_window' when buffer is narrowed
* src/xdisp.c (redisplay_window): Ensure window-start point is in
the accessible portion of the buffer when passing it to
'window_start_acceptable_p'.  (Bug#14582)
2022-02-06 12:26:36 +02:00