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

157715 commits

Author SHA1 Message Date
Stefan Monnier
aee101af91 * lisp/vc/diff-mode.el (diff--font-lock-prettify): Fix diff-buffers case 2022-06-29 11:47:24 -04:00
Mattias Engdegård
e4df6203e2 More robust gnu pattern (bug#56249)
* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist):
Don't allow spaces in the file names, to avoid false matches.
Don't allow ad-hoc spaces preceding the program name either.
2022-06-29 17:28:24 +02:00
Mattias Engdegård
d462c8133b Complete transition to rx for compilation gnu pattern
* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist):
Change from a mixture of traditional regexp syntax and rx,
to make intentions clearer.
2022-06-29 17:28:24 +02:00
Mattias Engdegård
3447e79f24 * lisp/emacs-lisp/rx.el: Indent some rx constructs correctly.
This includes group-n, submatch-n, =, >=, ** and repeat, whose first 1
or 2 arguments are special.
2022-06-29 17:27:30 +02:00
Stefan Kangas
3bd232ab39 ; Manually sync ChangeLog and AUTHORS with emacs-28
* ChangeLog.3:
* etc/AUTHORS: Manually sync with emacs-28 to fix merge errors.
2022-06-29 16:13:51 +02:00
Stefan Kangas
995490d8c7 ; Merge from origin/emacs-28
The following commit was skipped:

f1de6c0e28 Bump Emacs version to 28.1.90
2022-06-29 15:34:22 +02:00
Stefan Kangas
8f4b2adb4d Merge from origin/emacs-28
6c26f089a7 Update ChangeLog and AUTHORS for 28.1.90 pretest

# Conflicts:
#	ChangeLog.3
#	etc/AUTHORS
2022-06-29 15:34:22 +02:00
Stefan Kangas
a4b95d3c34 ; Merge from origin/emacs-28
The following commit was skipped:

7f749e44db ; Auto-commit of loaddefs files.
2022-06-29 15:34:21 +02:00
Stefan Kangas
26e838e1df Merge from origin/emacs-28
bf137fdbd2 ; * admin/make-tarball.txt: Small clarification.
2022-06-29 15:34:21 +02:00
Stefan Kangas
6606c14d36 ; Merge from origin/emacs-28
The following commit was skipped:

3d91d55432 Update Tramp version (don't merge with master)
2022-06-29 15:34:21 +02:00
Po Lu
d3492bcf30 Fix handling invalidated selection requests
* src/xselect.c (x_handle_selection_request): Correctly punt
when !dpyinfo.
2022-06-29 21:24:51 +08:00
Stefan Kangas
f1de6c0e28 Bump Emacs version to 28.1.90
* README:
* configure.ac:
* msdos/sed2v2.inp:
* nt/README.W32: Bump Emacs version to 28.1.90.
2022-06-29 15:21:26 +02:00
Stefan Kangas
6c26f089a7 Update ChangeLog and AUTHORS for 28.1.90 pretest
* ChangeLog.3:
* etc/AUTHORS: Update.
2022-06-29 15:19:55 +02:00
Po Lu
e83919f721 Fix some bugs found while testing drag-and-drop
* lisp/x-dnd.el (x-dnd-get-drop-width-height):
(x-dnd-get-drop-x-y): Fix doc string.
(x-dnd-handle-xdnd): Don't set update rect if
`dnd-indicate-insertion-point'.  Bug found testing with "JX
Application Framework".
2022-06-29 21:16:32 +08:00
Stefan Monnier
7a9353d444 (cl--generic-compiler): Revert last change
That change (introduced to circumvent an error now that `seq.el` is
preloaded) caused all dispatchers to be left uncompiled, which slows down
method dispatch very significantly.  Fix the problem in the old way,
i.e. by adding an explicit call to `cl--generic-prefill-dispatchers`.

* lisp/emacs-lisp/cl-generic.el (cl--generic-compiler): Revert last change.
Add (cl--generic-prefill-dispatchers 1 integer) instead to handle
the new dispatchers needed for `seq.el`.
(cl--generic-prefill-generalizer-sample): New function.
(cl--generic-get-dispatcher): Use it to signal an error giving precise
instructions for what to do if we're about the load the byte-compiler
during the preload.
(cl--generic-oclosure-generalizer): Rename from
`cl-generic--oclosure-generalizer` for consistency with all
other generalizers.
2022-06-29 08:58:13 -04:00
Stefan Kangas
7f749e44db ; Auto-commit of loaddefs files. 2022-06-29 14:20:24 +02:00
Po Lu
f70e852ea6 ; Fix build warnings
* lisp/x-dnd.el (x-begin-drag): Add missing declarations.
2022-06-29 20:16:44 +08:00
Po Lu
b7d3231e80 Update dnd-tests.el to make sure remote files are removed when Emacs quits
* test/lisp/dnd-tests.el (dnd-tests-begin-drag-files)
(dnd-tests-begin-file-drag): Test value of `kill-emacs-hook'.
2022-06-29 20:14:41 +08:00
Po Lu
d07063f69f Implement starting X Direct Save (XDS) drops
* doc/lispref/frames.texi (Drag and Drop): Document new function
`dnd-direct-save'.
* etc/NEWS: Likewise.

* lisp/dnd.el (dnd-direct-save-remote-files): New defcustom.
(dnd-begin-file-drag): Implement defucstom.
(dnd-begin-drag-files): Add kill-emacs-hook after saving remote
file.
(dnd-direct-save): New function.
* lisp/x-dnd.el (x-dnd-known-types): Fix coding style.
(x-dnd-handle-drag-n-drop-event): Handle local value with
self-originating DND events.
(x-dnd-xds-current-file, x-dnd-xds-source-frame): New defvars.
(x-dnd-handle-direct-save, x-dnd-do-direct-save): New functions.

* src/xfns.c (Fx_begin_drag): Allow any atom to be used as a DND
action.
* src/xselect.c (symbol_to_x_atom): Make public.
* src/xterm.c (x_dnd_note_self_drop): Include selection local
value.
(x_ignore_errors_for_next_request): Don't assume x_error_message
is set.
* src/xterm.h: Update prototypes.
2022-06-29 20:14:41 +08:00
Stefan Kangas
bf137fdbd2 ; * admin/make-tarball.txt: Small clarification. 2022-06-29 14:08:31 +02:00
Stefan Kangas
3c0b18facd Make two text-property-search tests easier to read
* test/lisp/emacs-lisp/text-property-search-tests.el
(text-property-search-forward/point-at-beginning)
(text-property-search-backward/point-at-end): Rewrite to make tests
easier to read.
2022-06-29 13:54:51 +02:00
Stefan Kangas
f9d35afea3 Minor cleanup in dired-x-bind-find-file
* lisp/dired-x.el (dired-x-bind-find-file): Use 'format-message'
and 'keymap-set'.
2022-06-29 13:54:51 +02:00
Lars Ingebrigtsen
4d41bb7847 Improve the eval-defun doc string
* lisp/progmodes/elisp-mode.el (eval-defun): Document what the
command actually does w.r.t. finding a form to evaluate
(bug#47747).
2022-06-29 13:05:46 +02:00
Lars Ingebrigtsen
446d5b14a9 Ensure that In-Reply-To is saved in drafts in Message
* lisp/gnus/message.el (message-hidden-headers): Hide In-Reply-To
now that we pre-generate it.
(message-setup-1): Pre-generate In-Reply-To so that it'll be saved
in drafts (bug#47639).
2022-06-29 13:00:25 +02:00
Tom Gillespie
9c9e34e9b6 test/lisp/progmodes/python-tests.el: add test for nav end of block
Add test for python-nav-end-of-block to prevent regression of bug#56271.
2022-06-29 12:13:34 +02:00
Tom Gillespie
bf1dbdd87b lisp/progmodes/python.el (python-nav-end-of-block): prevent infinite loop
lisp/progmodes/python.el (python-nav-end-of-block): Fix a bad
assumption that python-nav-end-of-statement always makes forward
progress by testing that it actually does. If this check is not made
then it is possible for python-nav-end-of-block to enter an infinite
loop. (bug#56271)
2022-06-29 12:13:28 +02:00
Lars Ingebrigtsen
e73dbcf26d Fix compilation-mode parsing of file names in Gradle errors
* lisp/progmodes/compile.el
(compilation-error-regexp-alist-alist): Fix parsing of file names
in Gradle output (bug#56249).
2022-06-29 11:53:16 +02:00
Michael Albinus
3d91d55432 Update Tramp version (don't merge with master)
* doc/misc/trampver.texi:
* lisp/net/trampver.el: Change version to "2.5.3".
2022-06-29 11:08:44 +02:00
Po Lu
0ebad14f20 * lisp/pgtk-dnd.el (pgtk-dnd-use-offix-drop): Remove extra variable. 2022-06-29 16:00:09 +08:00
Po Lu
60af986f38 Clean up failable requests in more places
* lisp/term/haiku-win.el (haiku-get-numeric-enum): Fix build.

* src/xterm.c (x_clean_failable_requests): Avoid redundant
memcpy if first == last.
(x_ignore_errors_for_next_request): Fix check for last request.
(x_check_errors, x_had_errors_p): Clean up failable requests
here.
2022-06-29 15:09:17 +08:00
Po Lu
7fa37d7a14 Handle be:actions field in Haiku DND messages
* lisp/term/haiku-win.el (haiku-get-numeric-enum): New function.
(haiku-numeric-enum): New macro.
(haiku-select-encode-xstring, haiku-select-encode-utf-8-string):
Replace hard-coded numeric enumerators.
(haiku-parse-drag-actions): New function.
(haiku-drag-and-drop): Use action returned by that function.
(x-begin-drag): Replace hard-coded enumerator.
2022-06-29 06:05:42 +00:00
Gerd Möllmann
9c2b1d37e7 Ensure correct toggle menu item display
* lisp/menu-bar.el (menu-bar-make-toggle-command): Call
force-mode-line-update. (Bug#56155)
2022-06-29 07:53:35 +02:00
Stefan Kangas
a0d7caf865 Merge from origin/emacs-28
2eba8cad20 Tramp shall not trap unrelated D-Bus errors
a8e72eb0e2 ; * etc/NEWS: Fix file name quotations.
091b22cb12 Fix hash table function return values in manual

# Conflicts:
#	etc/NEWS
2022-06-29 06:31:15 +02:00
Po Lu
0e6516a1f0 Fix reported problem with drag-and-drop inside VirtualBox
* lisp/x-dnd.el (x-dnd-handle-old-kde, x-dnd-handle-offix)
(x-dnd-handle-motif): Select window before handling drop, like
on Xdnd.
(x-dnd-convert-to-offix, x-dnd-do-offix-drop)
(x-dnd-handle-unsupported-drop): Accept local selection data and
use that instead.

* src/keyboard.c (kbd_buffer_get_event): Call unsupported drop
function with local selection data as 8th arg.
* src/xselect.c (x_get_local_selection): Accept new arg
`local_value'.  All callers changed.
(Fx_get_local_selection): New function.
(syms_of_xselect): Update defsubrs.

* src/xterm.c (x_dnd_lose_ownership): New function.
(x_dnd_begin_drag_and_drop): Unless new variable is true, disown
XdndSelection after returning.  This supposedly makes
drag-and-drop from guest to host work in VirtualBox without
causing pointer motion to become choppy afterwards.
(syms_of_xterm): New variable `x_dnd_preserve_selection_data'
and update doc string of `x-dnd-unsupported-drop-function'.

* test/lisp/dnd-tests.el (dnd-tests-begin-text-drag)
(dnd-tests-begin-file-drag, dnd-tests-begin-drag-files): Set new
variable to nil during tests.
2022-06-29 10:24:14 +08:00
Lars Ingebrigtsen
9705609c0e Fix typo in previous maintaining.texi change
* doc/emacs/maintaining.texi (Looking Up Identifiers): Fix typo.
2022-06-28 22:04:42 +02:00
Juri Linkov
b10a6fd5bb * lisp/isearch.el (isearch-delete-char): Improve fix for bug#52248.
When reaching the top of the stack where isearch-other-end is nil,
still close unnecessary overlays for the previous position.
(isearch-close-unnecessary-overlays): Rename arg BEG for consistency.
2022-06-28 20:20:21 +03:00
Visuwesh
7580f3f487 trouble.texi (Long Lines): Fix typo.
* doc/emacs/trouble.texi (Long Lines): Fix typo (bug#56283).
2022-06-28 17:41:32 +02:00
Lars Ingebrigtsen
fb0d95984b Put the obsoletion earlier in the *Help* buffer
* lisp/help-fns.el (help-fns--obsolete): Remove indentation and fill.
(help-fns--var-obsolete): Ditto.
(describe-function-1): Output the obsoletion info first since it's
vital information.
(describe-variable): Ditto (bug#56251).
2022-06-28 15:22:13 +02:00
Lars Ingebrigtsen
c23a49d256 Improve sxhash-equal documentation
* doc/lispref/hash.texi (Defining Hash): Explain more about what
sxhash-equal is for and what the caveats are.
* src/fns.c (Fsxhash_eql, Fsxhash_equal): Clarify doc string.
2022-06-28 14:58:20 +02:00
Lars Ingebrigtsen
98c9105f05 Allow using define-short-documentation-group without loading shortdoc
* lisp/emacs-lisp/shortdoc.el (define-short-documentation-group):
Allow using without loading shortdoc.el (bug#56260).
2022-06-28 14:43:03 +02:00
Michael Albinus
2eba8cad20 Tramp shall not trap unrelated D-Bus errors
* lisp/net/tramp-gvfs.el (tramp-gvfs-dbus-event-vector): Declare.
(tramp-gvfs-file-name-handler): Let-bind it.
(tramp-gvfs-dbus-event-vector): Fix docstring.
(tramp-gvfs-maybe-open-connection): Do not set it globally.  (Bug#56162)
2022-06-28 14:41:45 +02:00
Michael Albinus
a8e72eb0e2 ; * etc/NEWS: Fix file name quotations. 2022-06-28 14:40:52 +02:00
Eli Zaretskii
1dfd8a10af Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2022-06-28 15:38:39 +03:00
Eli Zaretskii
9151cc9386 ; Fix documentation of 'rename-visited-file'
* etc/NEWS: Move to proper place and mark as documented.

* doc/emacs/files.texi (Save Commands): Fix typo.
2022-06-28 15:37:55 +03:00
Lars Ingebrigtsen
55c5def19b Clarify Looking Up Identifiers in the manual
* doc/emacs/maintaining.texi (Looking Up Identifiers): Clarify the
text about C-M-, (bug#56261).
2022-06-28 14:33:23 +02:00
Zachary Kanfer
772b189143 Add new command `rename-visited-file'
* doc/emacs/files.texi (Save Commands): Document it.

* lisp/files.el (rename-visited-file): New command (bug#56229).
2022-06-28 14:15:47 +02:00
Jim Meyering
0b62ad2f3a Fix configure.ac quoting of AC_CHECK_LIB's 2nd arg
Running an autoconf-head-generated configure, would fail like this:
  /emacs/configure: line 18002: syntax error near unexpected token `;;'
  /emacs/configure: line 18002: `  ;;'
That is due to under-quoting of AC_CHECK_LIB's second argument, which led to
the comma in an embedded string being interpreted as paramater-delimiting.
* configure.ac: Quote the second arg of each AC_CHECK_LIB invocation.
(Bug#56272)

Copyright-paperwork-exempt: yes
2022-06-28 14:27:55 +03:00
Po Lu
f5293b3364 Adjust x-clipboard-yank for recent selection ownership changes
* lisp/term/x-win.el (x-clipboard-yank): Don't own CLIPBOARD
inside kill-new.
2022-06-28 18:25:50 +08:00
Po Lu
baec3c4974 Clean up Fx_begin_drag
* src/xfns.c (Fx_begin_drag): Use FOR_EACH_TAIL instead of
iterating manually.
2022-06-28 15:32:06 +08:00
Po Lu
748e6c1e80 Automatically detect cyclic lists in some Haiku functions
* src/haikuselect.c (haiku_lisp_to_message): Use FOR_EACH_TAIL
to iterate over message data.
2022-06-28 07:30:02 +00:00