]> git.eshelyaron.com Git - emacs.git/log
emacs.git
2 years agoAdd new function imagep
Lars Ingebrigtsen [Tue, 13 Sep 2022 13:49:18 +0000 (15:49 +0200)]
Add new function imagep

* lisp/simple.el (imagep): New function.

2 years ago; Add commentary to comp-tests.el
Eli Zaretskii [Tue, 13 Sep 2022 13:49:02 +0000 (16:49 +0300)]
; Add commentary to comp-tests.el

Sigh... why do people insist on removing useful comments and leave
their tricky code more obfuscated than it must be??
* test/src/comp-tests.el (comp-tests-type-spec-tests): Add a
comment explaining why the expressions are quoted.  (Bug#51104)

2 years agoFix whitespace-tests on macOS
Gerd Möllmann [Tue, 13 Sep 2022 13:37:56 +0000 (15:37 +0200)]
Fix whitespace-tests on macOS

* test/lisp/whitespace-tests.el (whitespace-tests--empty-bob):
(whitespace-tests--empty-eob): Use C-a/C-e instead of
<home>/<end> (bug#57763).

2 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Tue, 13 Sep 2022 13:39:26 +0000 (16:39 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

2 years ago; * src/image.c (svg_load_image): Always free 'err' if non-NULL.
Eli Zaretskii [Tue, 13 Sep 2022 13:38:50 +0000 (16:38 +0300)]
; * src/image.c (svg_load_image): Always free 'err' if non-NULL.

2 years agocomp-tests.el: Enable compilation again
Stefan Monnier [Tue, 13 Sep 2022 13:36:21 +0000 (09:36 -0400)]
comp-tests.el: Enable compilation again

Rather than disable byte-compilation to circumvent bug#51104,
change the ELisp code so that `most-positive/negative-fixnum` does
not end up hardcoded in the `.elc` file.

* test/src/comp-tests.el (comp-tests-define-type-spec-test):
Don't quote the type expressions.
(comp-tests-type-spec-tests): Quote them here instead.

2 years agoFix last change in image.c
Eli Zaretskii [Tue, 13 Sep 2022 13:26:50 +0000 (16:26 +0300)]
Fix last change in image.c

* src/image.c (svg_load_image): Don't call Lisp to remove trailing
whitespace from librsvg error messages, do it in C instead; this
reduces consing and is much cleaner.  Don't display empty error
reason if librsvg happens to return an empty message text.
(syms_of_image): Don't DEFSYM string-trim-right.  (Bug#57755)

2 years agoPrefer defvar-keymap in several cases
Stefan Kangas [Tue, 13 Sep 2022 13:05:28 +0000 (15:05 +0200)]
Prefer defvar-keymap in several cases

* lisp/calc/calc-embed.el (calc-override-minor-modes-map):
* lisp/calc/calc-yank.el (calc-edit-mode-map):
* lisp/calc/calc.el (calc-trail-mode-map):
* lisp/cedet/semantic/mru-bookmark.el (semantic-mru-bookmark-mode-map):
* lisp/cedet/semantic/util-modes.el (semantic-highlight-edits-mode-map)
(semantic-show-unmatched-syntax-mode-map)
(semantic-show-parser-state-mode-map)
(semantic-stickyfunc-mode-map, semantic-highlight-func-mode-map):
* lisp/cedet/srecode/srt-mode.el (srecode-template-mode-map):
* lisp/gnus/gnus-art.el (gnus-prev-page-map, gnus-next-page-map):
* lisp/gnus/gnus-search.el (gnus-search-minibuffer-map):
* lisp/gnus/score-mode.el (gnus-score-mode-map):
* lisp/gnus/smime.el (smime-mode-map):
* lisp/indent.el (edit-tab-stops-map):
* lisp/isearch.el (minibuffer-local-isearch-map):
* lisp/printing.el (pr-interface-map):
* lisp/progmodes/prog-mode.el (prog-mode-map):
* lisp/progmodes/subword.el (subword-mode-map):
* lisp/reveal.el (reveal-mode-map):
* lisp/strokes.el (strokes-mode-map):
* lisp/textmodes/flyspell.el (flyspell-mouse-map):
* lisp/textmodes/less-css-mode.el (less-css-mode-map):
* lisp/textmodes/remember.el (remember-mode-map)
(remember-notes-mode-map):
* lisp/wid-browse.el (widget-browse-mode-map):
* lisp/wid-edit.el (widget-key-sequence-map): Prefer defvar-keymap in
some easy-to-convert cases.

2 years agoEnable undo in eww buffers
Lars Ingebrigtsen [Tue, 13 Sep 2022 12:31:59 +0000 (14:31 +0200)]
Enable undo in eww buffers

* lisp/net/eww.el (eww-render): Enable undo after rendering.  This
allows using `undo' in text input boxes.
(eww-setup-buffer): Disable undo before rendering (bug#57750).

* lisp/net/shr.el (shr-image-fetched): Inhibit undo tracking.

2 years agoIndirect Buffers manual improvement
Lars Ingebrigtsen [Tue, 13 Sep 2022 12:07:40 +0000 (14:07 +0200)]
Indirect Buffers manual improvement

* doc/emacs/buffers.texi (Indirect Buffers): There's no point in
mentioning both clone-indirect-buffer and
clone-indirect-buffer-other-window here since they do the pretty
much the same (bug#57753).

2 years ago; * test/src/comp-tests.el: Explain the last change.
Eli Zaretskii [Tue, 13 Sep 2022 12:21:54 +0000 (15:21 +0300)]
; * test/src/comp-tests.el: Explain the last change.

2 years agoAvoid double svg error reporting and segfaults
dickmao [Tue, 13 Sep 2022 11:57:44 +0000 (13:57 +0200)]
Avoid double svg error reporting and segfaults

* src/image.c (svg_load_image): Use g_error_free directly instead
of the helder g_clear_error (since we're only calling it with
non-nil values).
(svg_load_image): Avoid segfault and double reporting errors.
* test/manual/image-tests.el (image-tests-load-image/svg-too-big)
(image-tests-load-image/svg-invalid): Test it (bug#57755).

2 years ago; Fix last change in test/manual/image-tests.el
Stefan Kangas [Tue, 13 Sep 2022 09:06:11 +0000 (11:06 +0200)]
; Fix last change in test/manual/image-tests.el

* test/manual/image-tests.el (image-skip-unless):
(image-tests-image-metadata/gif): Fix last change.

2 years agoPrefer defvar-keymap in pixel-scroll-precision-mode-map
Stefan Kangas [Mon, 12 Sep 2022 15:03:26 +0000 (17:03 +0200)]
Prefer defvar-keymap in pixel-scroll-precision-mode-map

* lisp/pixel-scroll.el (pixel-scroll-precision-mode-map): Prefer
defvar-keymap.

2 years agoPrefer defvar-keymap in tab-line.el
Stefan Kangas [Mon, 12 Sep 2022 14:53:26 +0000 (16:53 +0200)]
Prefer defvar-keymap in tab-line.el

* lisp/tab-line.el (tab-line-tab-map, tab-line-add-map)
(tab-line-tab-close-map, tab-line-left-map, tab-line-right-map):
Prefer defvar-keymap.

2 years agoPrefer defvar-keymap in lisp/epa*.el
Stefan Kangas [Mon, 12 Sep 2022 14:47:53 +0000 (16:47 +0200)]
Prefer defvar-keymap in lisp/epa*.el

* lisp/epa-ks.el (epa-ks-search-mode-map):
* lisp/epa.el (epa-key-list-mode-map, epa-key-mode-map): Prefer
defvar-keymap.

2 years agoFix frames with explicit parent being unmapped after parent shuts down
Po Lu [Tue, 13 Sep 2022 06:28:54 +0000 (14:28 +0800)]
Fix frames with explicit parent being unmapped after parent shuts down

* src/xterm.c (handle_one_xevent): Delete leftover _XEMBED_INFO
property after parent shuts down.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Tue, 13 Sep 2022 04:30:41 +0000 (06:30 +0200)]
Merge from origin/emacs-28

86f0601392 ; * admin/notes/www: Fix typos.
2cdb9d03fd ; * admin/make-tarball.txt: Minor clarifications.

2 years ago; Merge from origin/emacs-28
Stefan Kangas [Tue, 13 Sep 2022 04:30:41 +0000 (06:30 +0200)]
; Merge from origin/emacs-28

The following commit was skipped:

f771f122d2 ; Bump Emacs version past 28.2

2 years agoMerge from origin/emacs-28
Stefan Kangas [Tue, 13 Sep 2022 04:30:40 +0000 (06:30 +0200)]
Merge from origin/emacs-28

739b5d0e52 Update HISTORY for Emacs 28.2

2 years ago; * admin/notes/www: Fix typos.
Stefan Kangas [Tue, 13 Sep 2022 02:53:06 +0000 (04:53 +0200)]
; * admin/notes/www: Fix typos.

2 years agoFix comp-tests.el problem after reconfiguring
Paul Eggert [Mon, 12 Sep 2022 20:31:36 +0000 (15:31 -0500)]
Fix comp-tests.el problem after reconfiguring

* test/src/comp-tests.el: Do not byte-compile, as the .elc
file would be machine-dependent (bug#51104).

2 years agoDocument the recently added branch commands (bug#50344)
Juri Linkov [Mon, 12 Sep 2022 19:12:50 +0000 (22:12 +0300)]
Document the recently added branch commands (bug#50344)

* doc/emacs/maintaining.texi (VC Directory Commands): Change the
prefix key from "B" to "b".  Replace vc-create-tag with vc-create-branch,
and vc-retrieve-tag with vc-switch-branch.
(Switching Branches): Mention vc-switch-branch bound to 'C-x v b s'.
(Creating Branches): Mention vc-create-branch bound to 'C-x v b c'.

* lisp/vc/vc-dir.el (vc-dir-mode-map): In branch keymap 'b' rebind
"c" from vc-create-tag to vc-create-branch, and "s" from
vc-retrieve-tag to vc-switch-branch.

2 years ago* lisp/vc/vc.el (vc-print-branch-log): Fix interactive spec.
Juri Linkov [Mon, 12 Sep 2022 18:41:17 +0000 (21:41 +0300)]
* lisp/vc/vc.el (vc-print-branch-log): Fix interactive spec.

For reading vc-read-revision in the interactive spec use the same 'backend'
and 'rootdir' as in the body of the same function.

2 years ago'C-x v b' prefix key is used for branch commands to create/switch/print branch
Juri Linkov [Mon, 12 Sep 2022 18:07:05 +0000 (21:07 +0300)]
'C-x v b' prefix key is used for branch commands to create/switch/print branch

* lisp/vc/vc.el (vc-create-branch): New command.
(vc-retrieve-tag): Add new optional arg 'branchp'.
(vc-switch-branch): New command (bug#50344).

* lisp/vc/vc-hooks.el (vc-prefix-map): Bind "b c" to vc-create-branch,
"b l" to vc-print-branch-log, "b s" to vc-switch-branch.  Remove obsolete
and suppressed "b" from vc-switch-backend.

* lisp/vc/vc-dir.el (vc-dir-mode-map): Rebind 'branch-map' from "B" to "b"
for consistency with 'vc-prefix-map'.

* lisp/vc/vc-git.el (vc-git-create-tag): For a new branch read
its start-point.  Ask a confirmation if modified files exist.

2 years ago; * etc/NEWS: Fix typo and wording of recently added entry.
Eli Zaretskii [Mon, 12 Sep 2022 17:02:59 +0000 (20:02 +0300)]
; * etc/NEWS: Fix typo and wording of recently added entry.

2 years ago; etc/NEWS: Fix typo.
Sean Whitton [Mon, 12 Sep 2022 15:28:17 +0000 (08:28 -0700)]
; etc/NEWS: Fix typo.

2 years ago; etc/NEWS: Update for last change.
Sean Whitton [Mon, 12 Sep 2022 15:08:16 +0000 (08:08 -0700)]
; etc/NEWS: Update for last change.

2 years agoAdd new C-x w prefix map
Sean Whitton [Mon, 12 Sep 2022 14:30:07 +0000 (07:30 -0700)]
Add new C-x w prefix map

* window.el (window-prefix-map): New map.
(ctl-x-map): Unbind split-root-window-below and
split-root-window-right.  Bind window-prefix-map to C-x w.

2 years agoSkip manual GIF metadata test on MS-Windows
Stefan Kangas [Mon, 12 Sep 2022 13:14:42 +0000 (15:14 +0200)]
Skip manual GIF metadata test on MS-Windows

* test/manual/image-tests.el
(image-skip-unless): Add new arg CONDITION.
(image-tests-image-metadata/gif): Skip test on MS-Windows when
using native image API.  (Bug#57691)

2 years agoDon't overwrite error message in `x' in package.el
Lars Ingebrigtsen [Mon, 12 Sep 2022 12:17:25 +0000 (14:17 +0200)]
Don't overwrite error message in `x' in package.el

* lisp/emacs-lisp/package.el (package-menu--perform-transaction):
Return whether there were errors.
(package-menu-execute): Don't overwrite the error message(s) with
a success message (bug#51201).

2 years agoRemove some XEmacs references in speedbar.el
Lars Ingebrigtsen [Mon, 12 Sep 2022 11:09:23 +0000 (13:09 +0200)]
Remove some XEmacs references in speedbar.el

* lisp/speedbar.el (speedbar-toggle-etags): Remove some references
to etags support being XEmacs specific (bug#51102).

2 years agoDocument :vert-only tool bar property
Lars Ingebrigtsen [Mon, 12 Sep 2022 10:57:34 +0000 (12:57 +0200)]
Document :vert-only tool bar property

* doc/lispref/keymaps.texi (Tool Bar): Document what :vert-only
does (bug#51049).  This is not what it was intended to do -- but
what it intended to do didn't really make that much sense either,
so perhaps the prop should just be renamed :image-only?

2 years agoRemove edebug props in edebug-remove-instrumentation
Arthur Miller [Mon, 12 Sep 2022 10:38:09 +0000 (12:38 +0200)]
Remove edebug props in edebug-remove-instrumentation

* lisp/emacs-lisp/edebug.el (edebug--strip-plist): New function
(bug#51026).
(edebug-remove-instrumentation): Use it to remove pros added while
running edebug.

2 years agoFix length issues in gnus-cloud-make-chunk
Lars Ingebrigtsen [Mon, 12 Sep 2022 10:23:52 +0000 (12:23 +0200)]
Fix length issues in gnus-cloud-make-chunk

* lisp/gnus/gnus-cloud.el (gnus-cloud-make-chunk): Make buffer
unibyte (bug#50988).

2 years ago; * admin/make-tarball.txt: Minor clarifications.
Stefan Kangas [Mon, 12 Sep 2022 10:15:01 +0000 (12:15 +0200)]
; * admin/make-tarball.txt: Minor clarifications.

2 years ago; Bump Emacs version past 28.2
Stefan Kangas [Mon, 12 Sep 2022 10:02:32 +0000 (12:02 +0200)]
; Bump Emacs version past 28.2

* README:
* configure.ac:
* nt/README.W32:
* msdos/sed2v2.inp:
* etc/NEWS: Bump Emacs version to 28.2.50.

2 years agoConsider key=val labels when renumbering
Arash Esbati [Mon, 12 Sep 2022 07:34:23 +0000 (09:34 +0200)]
Consider key=val labels when renumbering

* lisp/textmodes/reftex-global.el (reftex-translate): Recognize
key=val labels given in the optional or mandatory argument of
environments (AUCTeX bug#57720).

* test/lisp/textmodes/reftex-tests.el
(reftex-renumber-simple-labels): New Test.

2 years agoFix Tramp test
Michael Albinus [Mon, 12 Sep 2022 06:52:08 +0000 (08:52 +0200)]
Fix Tramp test

* lisp/net/tramp-compat.el (tramp-compat-rx):
Add `tramp-autoload' function property.

2 years agoFix focus restoration upon x_mouse_leave again
Po Lu [Mon, 12 Sep 2022 06:01:52 +0000 (14:01 +0800)]
Fix focus restoration upon x_mouse_leave again

* src/xterm.c (x_mouse_leave): Call xi_handle_focus_change after
changing the implicit focus.

2 years agoUpdate HISTORY for Emacs 28.2 emacs-28.2
Stefan Kangas [Mon, 12 Sep 2022 00:47:11 +0000 (02:47 +0200)]
Update HISTORY for Emacs 28.2

* etc/HISTORY: Update for the Emacs 28.2 release.

2 years ago* lisp/progmodes/xref.el: Bump the version.
Dmitry Gutov [Sun, 11 Sep 2022 21:45:12 +0000 (00:45 +0300)]
* lisp/progmodes/xref.el: Bump the version.

2 years agoRestrict replace-*-in-region to the bounds defined by caller
Kévin Le Gouguec [Sun, 11 Sep 2022 17:55:01 +0000 (19:55 +0200)]
Restrict replace-*-in-region to the bounds defined by caller

* lisp/subr.el (replace-string-in-region, replace-regexp-in-region):
Narrow to region before iterating over matches, instead of giving a
bound to the search functions.
* test/lisp/subr-tests.el (test-replace-string-in-region): Add
regression tests (bug#57733).

2 years agoDisable Tramp cache for relative file names
Michael Albinus [Sun, 11 Sep 2022 12:53:14 +0000 (14:53 +0200)]
Disable Tramp cache for relative file names

* lisp/net/tramp.el (tramp-file-name-unify):
Return `tramp-cache-undefined' if LOCALNAME is a relative file name.

* lisp/net/tramp-cache.el (tramp-get-file-property)
(tramp-set-file-property, tramp-file-property-p)
(tramp-flush-file-property, tramp-flush-file-upper-properties)
(tramp-flush-file-properties): Handle KEY being
`tramp-cache-undefined'.
(tramp-flush-file-function): Revert last change.

2 years agowhitespace: Redo BoB/EoB empty line highlighting
Richard Hansen [Tue, 28 Jun 2022 20:25:43 +0000 (16:25 -0400)]
whitespace: Redo BoB/EoB empty line highlighting

* lisp/whitespace.el (whitespace--empty-at-bob-matcher,
whitespace--empty-at-eob-matcher, whitespace--update-bob-eob,
whitespace-color-off, whitespace-color-on,
whitespace-empty-at-bob-regexp, whitespace-empty-at-eob-regexp,
whitespace-looking-back, whitespace-post-command-hook): Redo the
`empty' line highlighting logic to ensure that a buffer change causes
all affected `empty' lines to become (un)highlighted (bug#37467).
Also, for improved UX, don't highlight BoB empty lines at or below
point (not just when point is at 1), or EoB empty lines at or above
point (not just when point is `eobp').
(whitespace-bob-marker, whitespace-eob-marker): Clarify documentation.
* test/lisp/whitespace-tests.el (whitespace--with-test-buffer,
whitespace--fu, whitespace-tests--empty-bob,
whitespace-tests--empty-eob): Add tests.

2 years agowhitespace: Include empty final line in BoB empty match
Richard Hansen [Tue, 28 Jun 2022 19:05:04 +0000 (15:05 -0400)]
whitespace: Include empty final line in BoB empty match

* lisp/whitespace.el (whitespace-empty-at-bob-regexp): Include any
last line trailing whitespace in the BoB empty line match to ensure
that those characters get highlighted.

2 years agowhitespace: Reset `whitespace-buffer-changed' when refontifying
Richard Hansen [Wed, 22 Jun 2022 21:29:39 +0000 (17:29 -0400)]
whitespace: Reset `whitespace-buffer-changed' when refontifying

* lisp/whitespace.el (whitespace-post-command-hook): Add missing reset
of `whitespace-buffer-changed' back to nil between commands.

2 years ago; whitespace: Use `defvar-local' for buffer-local vars
Richard Hansen [Wed, 22 Jun 2022 23:02:42 +0000 (19:02 -0400)]
; whitespace: Use `defvar-local' for buffer-local vars

2 years ago; whitespace: Delete unused `whitespace-font-lock-refontify' var
Richard Hansen [Wed, 22 Jun 2022 22:06:49 +0000 (18:06 -0400)]
; whitespace: Delete unused `whitespace-font-lock-refontify' var

2 years agoert-x: New `ert-with-test-buffer-selected' convenience macro
Richard Hansen [Tue, 28 Jun 2022 05:10:48 +0000 (01:10 -0400)]
ert-x: New `ert-with-test-buffer-selected' convenience macro

* lisp/emacs-lisp/ert-x.el (ert-with-test-buffer-selected): New
convenience macro that extends `ert-with-test-buffer' by displaying
the test buffer in a temporary selected window.  This makes it easier
to simulate user input in the body via `execute-kbd-macro'.
* test/lisp/emacs-lisp/ert-x-tests.el
(ert-test-test-buffer-selected/*): Add tests.

2 years agoRevert "Add new command 'toggle-theme'"
Philip Kaludercic [Sun, 11 Sep 2022 11:28:38 +0000 (13:28 +0200)]
Revert "Add new command 'toggle-theme'"

This reverts commit f31b9d86a67f1b3fd70339f277dff52478890351.

2 years agoRevert "Add new user option 'custom-ensure-single-theme'"
Philip Kaludercic [Sun, 11 Sep 2022 11:28:36 +0000 (13:28 +0200)]
Revert "Add new user option 'custom-ensure-single-theme'"

This reverts commit b4dbf7184cd68ecd8d1a27fbc1407be0eae7e64c.

2 years ago; Use US spelling docstring
Philip Kaludercic [Sun, 11 Sep 2022 11:12:39 +0000 (13:12 +0200)]
; Use US spelling docstring

* lisp/vc/diff-mode.el (diff-add-log-use-relative-names): Update docstring.

2 years agoAdd new user option 'custom-ensure-single-theme'
Philip Kaludercic [Tue, 6 Sep 2022 19:04:08 +0000 (21:04 +0200)]
Add new user option 'custom-ensure-single-theme'

* etc/NEWS: Mention it.
* lisp/custom.el (custom-ensure-single-active-theme): Add it.
(load-theme): Use it.

2 years agoAdd new command 'toggle-theme'
Philip Kaludercic [Tue, 6 Sep 2022 18:53:35 +0000 (20:53 +0200)]
Add new command 'toggle-theme'

* doc/emacs/custom.texi (Custom Themes): Mention it.
* etc/themes/leuven-dark-theme.el (leuven-dark): Add dual theme.
* etc/themes/leuven-theme.el (leuven): Add dual theme.
* etc/themes/tango-dark-theme.el (tango-dark): Add dual theme.
* etc/themes/tango-theme.el (tango): Add dual theme.
* etc/themes/tsdh-dark-theme.el (tsdh-dark): Add dual theme.
* etc/themes/tsdh-light-theme.el (tsdh-light): Add dual theme.
* lisp/cus-theme.el (describe-theme-1): Say if a theme has a dual.
* lisp/custom.el (toggle-theme): Add new command.

2 years agoImprove some shell highlight doc strings
Miha Rihtaršič [Sun, 11 Sep 2022 10:59:02 +0000 (12:59 +0200)]
Improve some shell highlight doc strings

* lisp/shell.el (shell-highlight-undef-mode-restart): Rename function.
* lisp/shell.el (shell-comint-fl-enable):
(shell--highlight-undef-indirect)
* lisp/ielm.el (ielm-comint-fl-enable):
* lisp/comint.el: (comint--fl-fontify-region): Improve doc strings.

2 years agoMake it easier to clear the Motif drag window for debugging
Po Lu [Sun, 11 Sep 2022 08:50:16 +0000 (16:50 +0800)]
Make it easier to clear the Motif drag window for debugging

* src/xterm.c (xm_get_drag_window_1): Add comment explaining
side effect of x_special_window_exists_p.
(handle_one_xevent): Clear Motif drag window upon DestroyNotify.
In addition to debugging, it also reduces syncs necessary to
communicate via the Motif protocol after a defective/old client
sets the drag window without setting the disconnect mode.

2 years ago* lisp/vc/vc.el (vc-diff-patch-string): Fix arg in revert-buffer-function.
Juri Linkov [Sun, 11 Sep 2022 08:22:11 +0000 (11:22 +0300)]
* lisp/vc/vc.el (vc-diff-patch-string): Fix arg in revert-buffer-function.

2 years ago* lisp/vc/vc.el (vc-deduce-backend): Handle eshell-mode.
Sean Whitton [Sun, 11 Sep 2022 06:10:45 +0000 (23:10 -0700)]
* lisp/vc/vc.el (vc-deduce-backend): Handle eshell-mode.

2 years agoFix project-remember-projects-under when recursing
ookami [Sat, 10 Sep 2022 12:56:08 +0000 (14:56 +0200)]
Fix project-remember-projects-under when recursing

* lisp/progmodes/project.el (project-remember-projects-under):
Actually recurse into directories (bug#57714).

Copyright-paperwork-exempt: yes

2 years agoEnsure, that Tramp cache works over absolute file names
Michael Albinus [Sat, 10 Sep 2022 11:10:47 +0000 (13:10 +0200)]
Ensure, that Tramp cache works over absolute file names

* lisp/net/tramp.el (tramp-skeleton-directory-files)
(tramp-skeleton-directory-files-and-attributes)
(tramp-skeleton-set-file-modes-times-uid-gid)
(tramp-handle-add-name-to-file, tramp-handle-file-exists-p)
(tramp-handle-file-readable-p, tramp-handle-file-writable-p):
* lisp/net/tramp-adb.el (tramp-adb-handle-file-executable-p)
(tramp-adb-handle-file-exists-p)
(tramp-adb-handle-file-readable-p)
(tramp-adb-handle-file-writable-p)
* lisp/net/tramp-gvfs.el (tramp-gvfs-info, tramp-gvfs-handle-delete-file)
(tramp-gvfs-get-directory-attributes)
(tramp-gvfs-get-root-attributes)
(tramp-gvfs-handle-file-executable-p):
* lisp/net/tramp-sh.el (tramp-sh-handle-make-symbolic-link)
(tramp-sh-handle-file-exists-p)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-file-selinux-context)
(tramp-sh-handle-set-file-selinux-context)
(tramp-sh-handle-file-acl, tramp-sh-handle-file-executable-p)
(tramp-sh-handle-file-readable-p)
(tramp-sh-handle-file-directory-p)
(tramp-sh-handle-file-writable-p)
(tramp-sh-handle-file-ownership-preserved-p)
(tramp-sh-handle-add-name-to-file)
(tramp-sh-handle-copy-directory, tramp-sh-handle-delete-file)
(tramp-sh-handle-dired-compress-file):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-add-name-to-file)
(tramp-sudoedit-handle-delete-file)
(tramp-sudoedit-handle-file-acl)
(tramp-sudoedit-handle-file-executable-p)
(tramp-sudoedit-handle-file-exists-p)
(tramp-sudoedit-handle-file-readable-p)
(tramp-sudoedit-handle-file-selinux-context)
(tramp-sudoedit-handle-file-writable-p)
(tramp-sudoedit-handle-make-symbolic-link)
(tramp-sudoedit-handle-set-file-selinux-context):
Use `expand-file-name'.  (Bug#57572)

* lisp/net/tramp-cache.el (tramp-flush-file-function):
Expand `buffer-file-name'.  (Bug#57676)

* lisp/net/tramp.el (tramp-file-name-unify): Extend error message.

* lisp/net/tramp-sh.el (tramp-sh-handle-make-symbolic-link):
* lisp/net/tramp-smb.el (tramp-smb-handle-make-symbolic-link):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-make-symbolic-link):
Do not check remoteness of TARGET anymore.

2 years agoFix compliance with the XDND specification when dropping on a proxy
Po Lu [Sat, 10 Sep 2022 10:49:53 +0000 (18:49 +0800)]
Fix compliance with the XDND specification when dropping on a proxy

* src/xterm.c (x_dnd_send_enter, x_dnd_send_position)
(x_dnd_send_leave, x_dnd_send_drop, x_dnd_do_drop): New
parameter `toplevel'.  Use it as the window in sent client
messages.
(x_dnd_cancel_dnd_early, x_dnd_cleanup_drag_and_drop)
(x_dnd_process_quit, x_dnd_update_state, handle_one_xevent)
(x_connection_closed): Give the right toplevel to the client
message sending functions.

2 years ago; * lisp/minibuffer.el (format-prompt): Doc fix.
Eli Zaretskii [Sat, 10 Sep 2022 08:48:11 +0000 (11:48 +0300)]
; * lisp/minibuffer.el (format-prompt): Doc fix.

2 years agoMake wdired match dired with symlink permissions
Paul Eggert [Sat, 10 Sep 2022 06:20:31 +0000 (08:20 +0200)]
Make wdired match dired with symlink permissions

* lisp/wdired.el (wdired-do-perm-changes): Do not follow symlinks,
to be consistent with plain dired (bug#50189).

2 years agoMake `format-prompt' use `substitute-command-keys'
Lars Ingebrigtsen [Sat, 10 Sep 2022 06:13:21 +0000 (08:13 +0200)]
Make `format-prompt' use `substitute-command-keys'

* doc/lispref/minibuf.texi (Text from Minibuffer): Mention it.
* lisp/minibuffer.el (format-prompt): Run through
`substitute-command-keys' (bug#51040).

2 years agoFix diff-mode.el compilation warnings
Lars Ingebrigtsen [Sat, 10 Sep 2022 06:01:55 +0000 (08:01 +0200)]
Fix diff-mode.el compilation warnings

* lisp/vc/diff-mode.el (diff-auto-refine-mode): Suppress
byte-compile warnings.

2 years agoNew function substitute-quotes
Stefan Kangas [Sat, 10 Sep 2022 05:37:36 +0000 (07:37 +0200)]
New function substitute-quotes

* lisp/help.el (substitute-quotes): New function.  (Bug#51040)
* doc/lispref/help.texi (Keys in Documentation): Document
substitute-quotes.
* test/lisp/help-tests.el (help-tests-substitute-quotes): New test.

* lisp/cedet/srecode/srt-mode.el (srecode-macro-help):
* lisp/cus-theme.el (describe-theme-1):
* lisp/emacs-lisp/cl-extra.el (cl--describe-class):
* lisp/emacs-lisp/eieio-opt.el (eieio-help-constructor):
* lisp/emacs-lisp/package.el (describe-package-1):
* lisp/help-fns.el (help-fns--parent-mode, help-fns--var-risky)
(help-fns--var-file-local, help-fns--var-bufferlocal)
(describe-face):
* lisp/help.el (substitute-command-keys):
* lisp/progmodes/octave.el (octave-help): Use the new function
instead of 'substitute-command-keys'.

2 years agoDoc fixes for 'text-quoting-style'
Stefan Kangas [Sat, 10 Sep 2022 05:29:48 +0000 (07:29 +0200)]
Doc fixes for 'text-quoting-style'

* doc/lispref/help.texi (Keys in Documentation): Remove duplicate
entry for 'text-quoting-style'.  Document the function with the same
name instead.
* src/doc.c (Ftext_quoting_style): Doc fix: clarify the return values.
(syms_of_doc) <Vtext_quoting_style>: Doc fix: clarify that you should
not read the value of this variable directly; use Ftext_quoting_style
instead (bug#51040).

2 years agoMake a flymake.texi code example more resilient
Lars Ingebrigtsen [Sat, 10 Sep 2022 04:52:39 +0000 (06:52 +0200)]
Make a flymake.texi code example more resilient

* doc/misc/flymake.texi (An annotated example backend): Make the
example code resilient wrt. narrowed buffers (bug#51437).

2 years ago* src/w32image.c (w32_can_use_native_image_api): Fix comment.
Stefan Kangas [Sat, 10 Sep 2022 03:29:54 +0000 (05:29 +0200)]
* src/w32image.c (w32_can_use_native_image_api): Fix comment.

2 years agoSupport outline-minor-mode in emacs-authors-mode
Stefan Kangas [Sat, 10 Sep 2022 03:03:58 +0000 (05:03 +0200)]
Support outline-minor-mode in emacs-authors-mode

* lisp/textmodes/emacs-authors-mode.el (emacs-authors-mode):
Support and enable outline-minor-mode.

2 years ago; * src/alloc.c (check_pure_size): Fix last change.
Po Lu [Sat, 10 Sep 2022 01:39:14 +0000 (09:39 +0800)]
; * src/alloc.c (check_pure_size): Fix last change.

2 years agoFix several printfs for 32 bit systems
Po Lu [Sat, 10 Sep 2022 01:35:49 +0000 (09:35 +0800)]
Fix several printfs for 32 bit systems

* lib-src/emacsclient.c (main): Use right length modifier when
printing uintmax_t.
* src/alloc.c (check_pure_size): Use right length modifier when
printing ptrdiff_t.

2 years ago* lisp/subr.el (string-split): New alias for split-string.
Stefan Kangas [Fri, 9 Sep 2022 21:51:05 +0000 (23:51 +0200)]
* lisp/subr.el (string-split): New alias for split-string.

2 years agoSet vc-git-annotate-switches to "-w" in .dir-locals.el
Stefan Kangas [Fri, 9 Sep 2022 21:39:24 +0000 (23:39 +0200)]
Set vc-git-annotate-switches to "-w" in .dir-locals.el

* .dir-locals.el: Set vc-git-annotate-switches to "-w".
Ref: https://lists.gnu.org/r/emacs-devel/2022-09/msg00453.html

2 years agoAccept "-w" as safe value for vc-git-annotate-switches
Stefan Kangas [Fri, 9 Sep 2022 21:56:24 +0000 (23:56 +0200)]
Accept "-w" as safe value for vc-git-annotate-switches

* lisp/vc/vc-git.el
(vc-git-annotate-switches-safe-p): New predicate function.
(vc-git-annotate-switches): Use above new predicate function to
check if it's :safe.

2 years agoFix problem with Glib 2.73.2+ and SIGCHLD handler
Paul Eggert [Fri, 9 Sep 2022 20:22:16 +0000 (15:22 -0500)]
Fix problem with Glib 2.73.2+ and SIGCHLD handler

This code fix is by Stefan Monnier (Bug#57699).
* src/process.c (init_process_emacs) [HAVE_GLIB && !WINDOWSNT]:
Adjust to Glib 2.73.2 behavior change on Linux kernel 5.3+.

2 years ago; Fix doc strings in shell.el
Eli Zaretskii [Fri, 9 Sep 2022 19:10:00 +0000 (22:10 +0300)]
; Fix doc strings in shell.el

* lisp/shell.el (shell-highlight-undef-defined-face)
(shell-highlight-undef-remote-file-name-inhibit-cache)
(shell--highlight-undef-exec-cache): Fix wording and typos.

2 years agoInput indentation for M-x shell
Miha Rihtaršič [Fri, 9 Sep 2022 18:13:13 +0000 (20:13 +0200)]
Input indentation for M-x shell

* lisp/comint.el
(comint-indent-input-line):
(comint-indent-input-line-default):
(comint-indent-input-region):
(comint-indent-input-region-default): New functions that implement a
general mechanism for input indentation through an indirect buffer in
comint derived major modes.
* lisp/shell.el (shell-mode): Set up input indentation according to
sh-mode (bug#51940).

2 years agoHighlight non-existent commands in M-x shell
Miha Rihtaršič [Fri, 9 Sep 2022 18:12:26 +0000 (20:12 +0200)]
Highlight non-existent commands in M-x shell

* lisp/shell.el (shell-mode): Enable highlighting of non-existent
commands if requested.
(shell-highlight-undef-aliases):
(shell-highlight-undef-remote-file-name-inhibit-cache): New user
options.
(shell-highlight-undef-mode): New minor mode.
(shell-highlight-undef-defined-face):
(shell-highlight-undef-undefined-face):
(shell-highlight-undef-alias-face): New faces.
(shell-highlight-undef--exec-cache):
(shell-highlight-undef--face):
(shell-highlight-undef-keywords):
(shell-highlight-undef-regexp):
(shell-highlight-undef--executable-find):
(shell-highlight-undef-matcher):
(shell-highlight-undef--indirect):
(shell-highlight--setup):
(shell-highlight-undef-reset-mode): New functions and buffer local
variables (bug#51940).

2 years agoInput fontification for M-x ielm
Miha Rihtaršič [Fri, 9 Sep 2022 18:11:33 +0000 (20:11 +0200)]
Input fontification for M-x ielm

* lisp/ielm.el (ielm-comint-fl-enable): New user option to control
input fontification.
(ielm-indirect-setup-hook): New hook.
(inferior-emacs-lisp-mode): Set up and enable input fontification.

2 years agoInput fontification for M-x shell
Miha Rihtaršič [Fri, 9 Sep 2022 18:10:01 +0000 (20:10 +0200)]
Input fontification for M-x shell

* lisp/comint.el
(comint-indent-input-line):
(comint-indent-input-line-default):
(comint-indent-input-region):
(comint-indent-input-region-default): New functions that implement a
general mechanism for input indentation through an indirect buffer in
comint derived major modes.
* lisp/shell.el (shell-mode): Set up input indentation according to
sh-mode (bug#51940).
* lisp/comint.el
(comint-indent-input-line):
(comint-indent-input-line-default):
(comint-indent-input-region):
(comint-indent-input-region-default): New functions that implement a
general mechanism for input indentation through an indirect buffer in
comint derived major modes.
* lisp/shell.el (shell-mode): Set up input indentation according to
sh-mode (bug#51940).

2 years agoImplement a general input fontification mechanism for comint modes
Miha Rihtaršič [Fri, 9 Sep 2022 18:08:19 +0000 (20:08 +0200)]
Implement a general input fontification mechanism for comint modes

* lisp/comint.el
(comint-indent-input-line):
(comint-indent-input-line-default):
(comint-indent-input-region):
(comint-indent-input-region-default): New functions that implement a
general mechanism for input indentation through an indirect buffer in
comint derived major modes.
* lisp/shell.el (shell-mode): Set up input indentation according to
sh-mode (bug#51940).

2 years agoFix "warn-lambda-malformed-interactive-spec.el" even more
Lars Ingebrigtsen [Fri, 9 Sep 2022 17:43:28 +0000 (19:43 +0200)]
Fix "warn-lambda-malformed-interactive-spec.el" even more

* test/lisp/emacs-lisp/bytecomp-tests.el
("warn-lambda-malformed-interactive-spec.el"): Adjust test further.

2 years agoDon't bind `s' in the normal backtrace map
Lars Ingebrigtsen [Fri, 9 Sep 2022 17:29:21 +0000 (19:29 +0200)]
Don't bind `s' in the normal backtrace map

* lisp/emacs-lisp/backtrace.el (backtrace-mode-map): Don't bind
the "s" command, because it's meaningless outside modes that have
set the backtrace-goto-source-functions variable (and only edebug
does that) (bug#57674).
* lisp/emacs-lisp/edebug.el (edebug-pop-to-backtrace): Use it.
(edebug-backtrace-mode-map, edebug-backtrace-mode): New mode.

2 years agoUpdate a bytecomp test
Lars Ingebrigtsen [Fri, 9 Sep 2022 17:18:02 +0000 (19:18 +0200)]
Update a bytecomp test

* test/lisp/emacs-lisp/bytecomp-tests.el
("warn-lambda-malformed-interactive-spec.el"): Update test to code
change.

2 years agoFix typo in byte-compile-lambda warning
Lars Ingebrigtsen [Fri, 9 Sep 2022 17:16:01 +0000 (19:16 +0200)]
Fix typo in byte-compile-lambda warning

* lisp/emacs-lisp/bytecomp.el (byte-compile-lambda): Fix typo in
message (bug#57690).

2 years agoFix --without-x compilation warnings
Lars Ingebrigtsen [Fri, 9 Sep 2022 16:09:36 +0000 (18:09 +0200)]
Fix --without-x compilation warnings

* lisp/image/image-dired.el (clear-image-cache):
* lisp/image/image-dired-external.el (clear-image-cache): Fix
compilation warning (bug#57695).

2 years agoRevert "Fix tramp-loaddefs compilation"
Lars Ingebrigtsen [Fri, 9 Sep 2022 15:57:32 +0000 (17:57 +0200)]
Revert "Fix tramp-loaddefs compilation"

This reverts commit 43e9c8e9d28dcb659a43e58778e2745d1279051f.

The cookie seemed to go to lisp/loaddefs.el for a reason, but a bootstrap is needed.

2 years agoFix tramp-loaddefs compilation
Lars Ingebrigtsen [Fri, 9 Sep 2022 15:54:40 +0000 (17:54 +0200)]
Fix tramp-loaddefs compilation

* lisp/net/tramp-compat.el: Fix build by putting tramp-compat-rx
in the right loaddefs file.

2 years agoMake use of rx in Tramp backward compatoble
Michael Albinus [Fri, 9 Sep 2022 15:10:28 +0000 (17:10 +0200)]
Make use of rx in Tramp backward compatoble

* lisp/net/tramp-compat.el (tramp-compat-rx--runtime-params): New defvar.
(tramp-compat-rx--transform-items)
(tramp-compat-rx--transform-item, tramp-compat-rx--transform):
New defuns.  Suggested by Mattias Engdegård <mattiase@acm.org>.
(tramp-compat-rx): New defalias or defmacro.
(tramp-compat-string-replace, tramp-compat-string-search):
Use regexp-quote.

* lisp/net/tramp.el:
* lisp/net/tramp-adb.el:
* lisp/net/tramp-archive.el:
* lisp/net/tramp-cmds.el:
* lisp/net/tramp-crypt.el:
* lisp/net/tramp-fuse.el:
* lisp/net/tramp-gvfs.el:
* lisp/net/tramp-sh.el:
* lisp/net/tramp-smb.el:
* lisp/net/tramp-sudoedit.el: Use `tramp-compat-rx' where indicated.

* test/lisp/net/tramp-archive-tests.el:
* test/lisp/net/tramp-tests.el: Use `tramp-compat-rx' where indicated.

2 years agoFix SVG loading test for old librsvg 2.40.1
Stefan Kangas [Fri, 9 Sep 2022 12:19:32 +0000 (14:19 +0200)]
Fix SVG loading test for old librsvg 2.40.1

* test/manual/image-tests.el (image-tests-load-image/svg-invalid): Fix
test for old librsvg 2.40.1.  (Bug#57691)

2 years ago; Clean up recently added SVG test
Stefan Kangas [Fri, 9 Sep 2022 08:31:25 +0000 (10:31 +0200)]
; Clean up recently added SVG test

* test/manual/image-tests.el (image-tests-load-image/svg-invalid):
Clean up.

2 years agoDon't warn about some deleted variables in rst.el
Stefan Kangas [Tue, 16 Aug 2022 14:04:03 +0000 (16:04 +0200)]
Don't warn about some deleted variables in rst.el

* lisp/textmodes/rst.el (rst-level-face-max)
(rst-level-face-base-color, rst-level-face-base-light)
(rst-level-face-format-light, rst-level-face-step-light)
(rst-level-1-face, rst-level-2-face, rst-level-3-face)
(rst-level-4-face, rst-level-5-face, rst-level-6-face): Don't issue
obsoletion warnings for variables deleted in 24.3.

2 years agoDelete variable window-system-version obsolete since 24.3
Stefan Kangas [Sat, 9 Jul 2022 11:05:49 +0000 (13:05 +0200)]
Delete variable window-system-version obsolete since 24.3

* lisp/frame.el (window-system-version): Delete variable.
* src/dispnew.c (syms_of_display) <Vwindow_system_version>:
Delete DEFVAR, obsolete since 24.3.
(init_display_interactive, syms_of_display_for_pdumper):
* src/msdos.c (internal_terminal_init):
* src/nsterm.m (ns_term_init):
* src/pgtkfns.c (pgtk_display_info_for_name):
* src/w32fns.c (w32_display_info_for_name, Fx_open_connection):
* src/xfns.c (x_display_info_for_name, Fx_open_connection): Don't
set above deleted variable.
* admin/admin.el (set-version): Don't update above deleted
variable in msdos.c.
* lisp/textmodes/artist.el (artist-submit-bug-report): Don't use
above deleted variable.

2 years agoDelete many items obsolete since 24.3
Stefan Kangas [Sun, 10 Jul 2022 11:27:36 +0000 (13:27 +0200)]
Delete many items obsolete since 24.3

* lisp/allout.el (allout-exposure-change-hook)
(allout-structure-added-hook, allout-structure-deleted-hook)
(allout-structure-shifted-hook):
* lisp/arc-mode.el (archive-extract-hooks):
* lisp/buff-menu.el (Buffer-menu-buffer+size-width):
* lisp/calendar/timeclock.el (timeclock-modeline-display)
(timeclock-modeline-display, timeclock-update-modeline):
* lisp/cedet/semantic/db-el.el
(semanticdb-elisp-sym-function-arglist):
* lisp/cedet/semantic/db-file.el (semanticdb-save-database-hooks):
* lisp/cedet/semantic/edit.el (semantic-change-hooks)
(semantic-edits-new-change-hooks)
(semantic-edits-delete-change-hooks)
(semantic-edits-reparse-change-hooks):
* lisp/cedet/semantic/lex.el (semantic-lex-reset-hooks):
* lisp/comint.el (comint--unquote&expand-filename)
(comint-unquote-filename):
* lisp/custom.el (user-variable-p):
* lisp/dired.el (dired-shrink-to-fit, dired-pop-to-buffer)
(dired-sort-set-modeline):
* lisp/ebuff-menu.el (Electric-buffer-menu-mode):
* lisp/emacs-lisp/byte-run.el (macro-declaration-function):
* lisp/emacs-lisp/checkdoc.el (custom-print-functions)
(checkdoc-comment-style-hooks):
* lisp/emacs-lisp/cl-lib.el (custom-print-functions):
* lisp/emacs-lisp/edebug.el (gud-inhibit-global-bindings):
* lisp/erc/erc-dcc.el (erc-dcc-chat-filter-hook):
* lisp/eshell/esh-mode.el (eshell-status-in-modeline):
* lisp/eshell/eshell.el (eshell-add-to-window-buffer-names)
(eshell-remove-from-window-buffer-names):
* lisp/faces.el (set-face-underline-p, font-list-limit):
* lisp/files.el (automount-dir-prefix, toggle-read-only):
* lisp/filesets.el (filesets-cache-fill-content-hooks):
* lisp/frame.el (automatic-hscrolling):
* lisp/generic-x.el (javascript-generic-mode)
(javascript-generic-mode-hook):
* lisp/gnus/gnus-start.el (gnus-subscribe-newsgroup-hooks):
* lisp/gnus/nndiary.el (nndiary-request-create-group-hooks)
(nndiary-request-update-info-hooks)
(nndiary-request-accept-article-hooks):
* lisp/htmlfontify.el (hfy-post-html-hooks):
* lisp/international/mule-cmds.el
(inactivate-current-input-method-function)
(inactivate-input-method, input-method-inactivate-hook)
(ucs-insert):
* lisp/international/quail.el (quail-inactivate)
(quail-inactivate-hook):
* lisp/international/robin.el (robin-inactivate)
(robin-inactivate-hook):
* lisp/leim/quail/hangul.el (hangul-input-method-inactivate):
* lisp/leim/quail/uni-input.el (ucs-input-inactivate):
* lisp/mail/emacsbug.el (report-emacs-bug-info):
* lisp/mh-e/mh-e.el (mh-kill-folder-suppress-prompt-hooks):
* lisp/mpc.el (mpc-string-prefix-p):
* lisp/net/rcirc.el (rcirc-print-hooks, rcirc-sentinel-hooks)
(rcirc-receive-message-hooks, rcirc-activity-hooks):
* lisp/obsolete/crisp.el (crisp-mode-modeline-string):
* lisp/pcomplete.el (pcomplete-arg-quote-list)
(pcomplete-quote-argument):
* lisp/progmodes/cc-mode.el (c-prepare-bug-report-hooks):
* lisp/progmodes/python.el (python-info-ppss-context)
(python-info-ppss-context-type)
(python-info-ppss-comment-or-string-p, python-indent)
(python-guess-indent, python-buffer, python-preoutput-result)
(python-proc, python-send-receive, python-send-string)
(python-use-skeletons):
* lisp/progmodes/sh-script.el (sh-maybe-here-document):
* lisp/replace.el (query-replace-interactive):
* lisp/strokes.el (strokes-modeline-string):
* lisp/subr.el (redraw-modeline):
* lisp/term.el (term-default-fg-color, term-default-bg-color):
* lisp/textmodes/tex-mode.el (latex-string-prefix-p)
(tex-string-prefix-p):
* lisp/url/url-parse.el (url-recreate-url-attributes):
* lisp/vc/add-log.el (change-log-acknowledgement):
* lisp/vc/ediff-wind.el
(ediff-choose-window-setup-function-automatically):
* lisp/vc/pcvs-util.el (cvs-string-prefix-p):
* lisp/vc/vc.el (vc-string-prefix-p):
* lisp/window.el (display-buffer-function):
* lisp/winner.el (winner-mode-leave-hook): Remove many functions and
variables obsolete since 24.3.

* lisp/buff-menu.el (list-buffers--refresh):
* lisp/dired.el (dired-mode-map):
* lisp/files.el (abbreviate-file-name):
* lisp/generic-x.el (generic-default-modes):
* lisp/mh-e/mh-funcs.el (mh-kill-folder):
* lisp/progmodes/hideif.el (hide-ifdef-mode-submap):
* lisp/replace.el (query-replace-read-from):
* lisp/term.el (term):
* lisp/window.el (display-buffer): Don't use above deleted
functions and variables.

* src/marker.c (Fbuffer_has_markers_at): Delete DEFUN obsolete
since 24.3.
(syms_of_marker) <Sbuffer_has_markers_at>: Delete defsubr.
* lisp/subr.el (buffer-has-markers-at): Remove obsoletion
of above deleted DEFUN.
* etc/TODO: Doc fix; don't mention above deleted function.

* admin/cus-test.el (cus-test-get-options):
* lisp/pcomplete.el: Doc fixes; don't mention removed items.
; * etc/NEWS: List removed items.

2 years agoDisplay error in emacsclient if setsockopt failed
Stefan Kangas [Fri, 9 Sep 2022 09:19:21 +0000 (11:19 +0200)]
Display error in emacsclient if setsockopt failed

* lib-src/emacsclient.c (set_tcp_socket, set_socket_timeout): Display
an error message if setsockopt failed.

2 years agoRemove some redundant calls to x_ignore_errors_for_next_request
Po Lu [Fri, 9 Sep 2022 08:27:02 +0000 (16:27 +0800)]
Remove some redundant calls to x_ignore_errors_for_next_request

* src/xterm.c (x_dnd_do_unsupported_drop, x_set_frame_alpha):
Wrap some requests in x_ignore_errors_for_next_request instead
of calling it each time.

2 years agoRemove long-broken TESTRM interface
Po Lu [Fri, 9 Sep 2022 01:54:01 +0000 (09:54 +0800)]
Remove long-broken TESTRM interface

* src/xrdb.c: [TESTRM]:
(fatal, main): Delete functions and code block.  They don't work
and rely on XLIB_ILLEGAL_ACCESS.

2 years agoPrefer defvar-keymap in proced.el
Stefan Kangas [Fri, 9 Sep 2022 01:38:42 +0000 (03:38 +0200)]
Prefer defvar-keymap in proced.el

* lisp/proced.el (proced-mode-map): Prefer defvar-keymap.