1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-28 16:21:07 -08:00
Commit graph

154656 commits

Author SHA1 Message Date
Eli Zaretskii
dfe78ccb87 ; * etc/NEWS: Fix wording of a recently added NEWS entry. 2022-02-24 13:07:16 +02:00
Jim Porter
be496f942c Don't superfluously emit prompts when terminating processes in Eshell
* lisp/eshell/esh-proc.el (eshell-kill-process-function): Only reset
the prompt if PROC is writing to the terminal.
(eshell-sentinel): Only write the exit message if PROC is writing to
the terminal (bug#54136).

* test/lisp/eshell/esh-proc-tests.el (esh-proc-test/kill-pipeline)
(esh-proc-test/kill-pipeline-head)
(esh-proc-test/kill-background-process): New tests.
2022-02-24 10:35:54 +01:00
Stefan Kangas
aedb74b294 Merge from origin/emacs-28
5942504391 Reword face-remap-add-relative manual entry
2022-02-24 06:30:36 +01:00
Po Lu
ec1aaac5c0 Set border colors through the toolkit
* src/xfns.c (x_set_border_pixel): Set colors through Xt to
avoid some problems.
2022-02-24 11:58:41 +08:00
Po Lu
fe7c0798e8 Fix auto-lower when the mouse moves onto a scrollbar on Haiku
* src/haiku_support.cc (MouseMoved):
(BView_inside_scroll_bar): New functions.
* src/haiku_support.h: Update prototypes.
* src/haikuterm.c (haiku_read_socket): Don't auto-lower if the
pointer left the view for a scroll bar.
2022-02-24 03:35:25 +00:00
Po Lu
543ae215c1 Add support for _NET_WM_STATE_SHADED
* doc/lispref/frames.texi (Management Parameters): Document new
frame parameter `shaded'.
* etc/NEWS: Announce new frame parameter.

* src/frame.c (frame_parms) [HAVE_X_WINDOWS]: New frame
parameter `shaded'.
(syms_of_frame): New symbol `shaded'.
* src/xfns.c (x_frame_parm_handlers): Install handler
`x_set_shaded'.
* src/xterm.c (x_set_shaded): New frame parameter handler.
(x_get_current_wm_state): New parameter `shaded'.  All callers
changed.
(x_net_wm_state):
(x_handle_net_wm_state): Handle shaded state.
(x_term_init): Intern new atom `shaded'.
* src/xterm.h: Update prototypes.
2022-02-24 09:38:37 +08:00
Po Lu
d132bfe6cd Condition out things specific to some versions of the input extension
* src/xterm.c (x_free_xi_devices, x_init_master_valuators)
(handle_one_xevent): Condition out code that isn't supposed to
be run on the current input extension version.
* src/xterm.h (struct xi_scroll_valuator_t): Make conditional on
HAVE_XINPUT2_1.
(struct xi_touch_point_t): Make conditional on HAVE_XINPUT2_2.
(struct xi_device_t): Make individual fields conditional on the
appropriate client-side input extension version.
2022-02-24 09:11:53 +08:00
Po Lu
7b0e8cf347 Fix the MS-DOS port
* msdos/sedlibmk.inp:
* src/conf_post.h [MSDOS]: Update for recent gnulib.
2022-02-24 08:43:09 +08:00
Paul Eggert
ca9f2fc2a4 Pacify gcc -Wanalyzer-null-dereference
* src/xdisp.c (normal_char_ascent_descent): Pacify GCC 11.2.1
20220127 (Red Hat 11.2.1-9) x86-64 -Wanalyzer-null-dereference.
2022-02-23 12:32:24 -08:00
Mauro Aranda
479623784e Fix auth-sources defcustom
* lisp/auth-source.el (auth-sources): The extra attributes should be
in a plist, so inline both :host and :port.  Also, give a valid
default value for the choice (bug#54127).
2022-02-23 21:05:08 +01:00
Paul Eggert
b8a96f0556 Port pre-commit hook to Git 2.35.0
* build-aux/git-hooks/pre-commit: Use LC_ALL=C grep -E instead of
sane_egrep (removed in Git 2.35.0).
2022-02-23 11:41:02 -08:00
Paul Eggert
a773a78312 Port to current Gnulib some more
* admin/merge-gnulib: Remove lib/stdio-read.c and lib/stdio-write.c,
as Emacs doesn’t need these new Gnulib files.
2022-02-23 11:41:02 -08:00
Paul Eggert
308e63ccfc Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
Paul Eggert
995aed477d Port to current Gnulib
* configure.ac (AM_COND_IF): New macro, needed because Gnulib
normally assumes Automake and now uses this Automake macro.
Problem reported by Lars Ingebrigtsen (Bug#32452#47).
2022-02-23 11:41:01 -08:00
Juri Linkov
435d5c84ed * lisp/tab-bar.el: Create new unique windows with 'C-x t n' (bug#54038).
* lisp/tab-bar.el (tab-bar-new-tab-choice): Replace the value 'nil'
with explicit 'clone'.
(tab-bar-move-window-to-tab): Ignore possible side/atom window
parameters with ignore-window-parameters while deleting window.
(tab-bar-new-tab-to): When 'tab-bar-new-tab-choice' is 'clone',
create new unique windows with the same layout using window-state-get
and window-state-put.  Do the same after deleting other windows
when 'tab-bar-new-tab-choice' is 'window'.
(tab-bar-duplicate-tab): Replace the value 'nil' with 'clone' for
'tab-bar-new-tab-choice'.
2022-02-23 19:58:33 +02:00
Po Lu
99ba8c03c8 Expand commentary in xterm.c
* src/xterm.c: Expand commentary to include sections on optional
features and toolkit support.
2022-02-23 21:52:30 +08:00
Eli Zaretskii
85ad861600 ; * src/xterm.c: Minor fixes of the commentary. 2022-02-23 15:07:59 +02:00
Protesilaos Stavrou
b68217fe04
Update modus-themes to version 2.2.0
* doc/misc/modus-themes.org (Enable and load)
(Differences between loading and enabling): Clarify wording.
(Customization Options): Update sample configuration.
(Option for completion framework aesthetics): Refactor
'modus-themes-completions' to accept an alist value instead of a
symbol.
(Override colors): Elaborate on the example.
(Toggle themes without reloading them): Document sample command that
uses 'enable-theme' instead of 'load-theme'.
(Acknowledgements): Update names of contributors to ideas.
* etc/themes/modus-themes.el (modus-themes-operandi-colors)
(modus-themes-vivendi-colors): Tweak the palette's completion-related
background colors.
(modus-themes-completion-standard-first-match)
(modus-themes-completion-standard-selected)
(modus-themes-completion-extra-selected): Deprecate faces and replace
them with 'modus-themes-completion-selection'.
(modus-themes-completion-key-binding): Rename it to
'modus-themes-key-binding'.
(modus-themes-mode-line): Remove faulty default value.
(modus-themes-completions): Refactor it to accept an alist value.
(modus-themes-box-buttons): Fix typo.
(modus-themes--standard-completions, modus-themes--extra-completions)
(modus-themes--extra-completions-line): Remove outdated private
functions.
(modus-themes--completion): Add new private function.
(modus-themes-faces): Update faces.

* etc/themes/modus-operandi-theme.el:
* etc/themes/modus-vivendi-theme.el: Bump file's version.

For a detailed change log, read:
<https://protesilaos.com/codelog/2022-02-23-modus-themes-2-2-0/>.
2022-02-23 15:00:09 +02:00
Jim Porter
76fcfe1eb1 Ignore 'eshell-broken-pipe' error in 'eshell-sentinel'
This can happen if 'eshell-sentinel' tries to write output to another
process, but that process has already terminated.

* lisp/eshell/esh-proc.el (eshell-sentinel): Use 'ignore-error'
instead of 'unwind-protect'.
2022-02-23 13:13:45 +01:00
Lars Ingebrigtsen
5942504391 Reword face-remap-add-relative manual entry
* doc/lispref/display.texi (Face Remapping): Clarify the
face-remap-add-relative (bug#54114).
2022-02-23 12:58:50 +01:00
Lars Ingebrigtsen
7b0b27971b Make face-remap-set-base work with a single face again
* lisp/face-remap.el (face-remap-set-base): Fix regression
introduced by cece37cf09 (bug#46973).
2022-02-23 12:51:09 +01:00
Po Lu
4f53789a0a * src/xterm.c (x_term_init): Catch some errors from defective X servers. 2022-02-23 18:11:29 +08:00
Po Lu
304c373c98 Improve input extension version checks on GTK 3
* src/xterm.c (x_term_init): If newer versions of XInput 2 don't
work, then look for an older one.
2022-02-23 15:40:15 +08:00
Stefan Kangas
6410b6ada0 Merge from origin/emacs-28
3dfc8bff15 Fix indexing of module functions that return enumeration t...
86c0d9eb5f * doc/misc/transient.texi (Other Options): Fix a @ref.  (B...
3b5e29eaa3 tramp.texi texinfo 4.13 compatibility
5edb9572ec Explain "Tramp" spelling in its manual
2022-02-23 06:36:45 +01:00
Po Lu
e97580724d Fix display corruption with background alpha set on unsupported display
* src/xfns.c (x_set_alpha_background): Make opaque if display
doesn't support the required features.
2022-02-23 13:14:28 +08:00
Stefan Monnier
8adc3672ac (add-hook): Fix regression
* lisp/subr.el (add-hook): When the hook has no local part yet, don't
set `local` to t, so we set the right part of the depth-sym.
(remove-hook): Don't modify the depth alist by side-effect since I'm
not completely sure it's safe.
2022-02-22 22:52:40 -05:00
Po Lu
659eca9ed8 * src/xterm.c: Expand commentary. 2022-02-23 11:40:38 +08:00
Dmitry Gutov
0f67a3df0e Unbreak project switcher when inside *xref* buffer
* lisp/progmodes/xref.el (xref--ensure-default-directory):
New function.
(xref--show-xref-buffer, xref-show-definitions-buffer-at-bottom):
Use it (bug#53626).
2022-02-23 03:53:16 +02:00
Po Lu
b16e36476e * src/xterm.c (x_term_init): Don't catch errors too many times. 2022-02-23 08:58:06 +08:00
Po Lu
1f00710ecf Fix X errors caused by GTK using newer versions of XI2 than Emacs
* src/xterm.c (x_term_init): Handle errors from XIQueryVersion
caused by Emacs requesting versions of XI2 older than 2.2 and
what GTK requested.
2022-02-23 08:56:06 +08:00
Philipp Stephani
3dfc8bff15 Fix indexing of module functions that return enumeration types.
Return types that consist of more than one word need to be enclosed in
braces, see Info node `(texinfo) Typed Functions'.  Otherwise they are
indexed incorrectly.

* doc/lispref/internals.texi (Module Misc, Module Nonlocal): Enclose
multi-word return types in braces.
2022-02-22 21:39:32 +01:00
Lars Ingebrigtsen
c20e96d186 Enable "Revert Buffer" if file has different writability
* lisp/menu-bar.el (menu-bar-file-menu): Enable "Revert Buffer" if
the file has different writability than the buffer (bug#17148).
2022-02-22 18:56:09 +01:00
Stefan Monnier
4bd7963e2e (add-hook, remove-hook): Fix leaks (bug#48666)
* lisp/subr.el (add-hook, remove-hook): Rewrite the hook depth
management so we only keep the info relevant to functions present on
the hook.
2022-02-22 10:18:43 -05:00
Eli Zaretskii
86c0d9eb5f * doc/misc/transient.texi (Other Options): Fix a @ref. (Bug#54108) 2022-02-22 16:37:22 +02:00
Eli Zaretskii
09bd220d86 ; * doc/lispref/modes.texi (Tabulated List Mode): Fix @xref. 2022-02-22 16:32:49 +02:00
Andrea Rossetti
257ae88d4e Improve ruler-mode dragging
* lisp/ruler-mode.el (ruler-mode-mouse-drag-any-column)
(ruler-mode-mouse-add-tab-stop, ruler-mode-mouse-del-tab-stop):
Adjust callers.

* lisp/ruler-mode.el (ruler-mode-window-col): Fix dragging when
stepping outside the header line (bug#17788).

Copyright-paperwork-exempt: yes
2022-02-22 15:22:50 +01:00
Glenn Morris
3b5e29eaa3 tramp.texi texinfo 4.13 compatibility
* doc/misc/tramp.texi (Frequently Asked Questions):
Restore compatibility with Texinfo < 5.
2022-02-22 14:08:07 +00:00
Jeff Norden
161f5b4be4 Make outline-blank-line into defcustom
* lisp/outline.el (outline-blank-line): Make into defcustom
(bug#54095).

Copyright-paperwork-exempt: yes
2022-02-22 14:51:47 +01:00
Michael Albinus
5edb9572ec Explain "Tramp" spelling in its manual
* doc/misc/tramp.texi (Frequently Asked Questions):
Explain "Tramp" spelling.
2022-02-22 14:45:59 +01:00
Lars Ingebrigtsen
c6465d65fa Don't signal an error on re-builder startup with rx syntax
* lisp/emacs-lisp/re-builder.el (reb-initialize-buffer): Make
startup with rx syntax not signal an error (bug#54107).
2022-02-22 14:43:35 +01:00
Po Lu
85567d5798 ; * src/xterm.h: Fix typo in recent change. 2022-02-22 19:17:41 +08:00
Po Lu
dfa607c164 Fix build on glibc <2.10
* src/alloc.c (Fmalloc_info): Only enable if glibc supports
malloc_info.
(syms_of_alloc): Likewise.
2022-02-22 19:13:50 +08:00
Po Lu
8fef9a5cd9 Merge remote-tracking branch 'origin/master' 2022-02-22 18:47:49 +08:00
Po Lu
f7b5553045 Fix GTK build with GLib <2.44
* src/gtkutil.c (struct _EmacsMenuBar, EmacsMenuBar): New
structs.
(emacs_menu_bar_get_type): New function declaration.

* src/gtkutil.c: Remove declaration of EmacsMenuBar class.
2022-02-22 18:46:19 +08:00
Po Lu
c914572a46 Improve XInput2 version checking
* configure.ac: Check for various important structures from all
versions of libXi.

* src/xfns.c (setup_xi_event_mask):
* src/xwidget.c (x_draw_xwidget_glyph_string):
* src/xterm.c (x_init_master_valuators, handle_one_xevent)
(x_term_init): Replace XI version checks based on protocol
headers with new constants.

* src/xterm.h (HAVE_XINPUT2_1, HAVE_XINPUT2_2, HAVE_XINPUT2_3)
(HAVE_XINPUT2_4): New definitions.
2022-02-22 18:41:28 +08:00
Michael Albinus
dfd76688be * test/lisp/net/tramp-tests.el (tramp--test-check-files): Adapt test. 2022-02-22 08:50:17 +01:00
Po Lu
8d02624c0e Fix duplicate wheel events on XI2
* src/xterm.c (handle_one_xevent): Don't generate wheel events
on XI_ButtonPress.
2022-02-22 14:10:29 +08:00
Po Lu
6d060a38ec Always send wheel events on XI2
* src/xterm.c (handle_one_xevent): Send emulated button events
as wheel events when handling XI2 button events.
2022-02-22 14:02:41 +08:00
Stefan Kangas
bee54495e9 Merge from origin/emacs-28
666e40a109 Fix 'display-line-numbers-mode' in hide-show buffers
68d134cf0f Don't check whether a deleted window is deletable (Bug#54028)
b38223a844 A friendlier error message from image-mode in an empty buffer
b7a651ba37 Update to Org 9.5.2-17-gea6b74
3a8c3f7abd ; Don't reference obsolete variables in edebug.el
2022-02-22 06:30:59 +01:00
Po Lu
6b0e23412d Improve momentum pixel scrolling on a non-selected window
* lisp/pixel-scroll.el (pixel-scroll-kinetic-state): New
argument `window'.
(pixel-scroll-start-momentum): Don't select the window under
the event when calculating velocity or redisplaying.
2022-02-22 11:35:27 +08:00