1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00
Commit graph

157742 commits

Author SHA1 Message Date
Mattias Engdegård
77e99dcacb ; * lisp/emacs-lisp/rx.el: Don't set indentation prop for repeat. 2022-06-30 15:19:15 +02:00
Mattias Engdegård
a68508c10b Don't say that macro-expansion error is a warning
* lisp/emacs-lisp/gv.el:
* lisp/emacs-lisp/macroexp.el (internal-macroexpand-for-load): Since
eager macro-expansion errors are no longer warnings, don't say so.
2022-06-30 15:08:02 +02:00
Stefan Kangas
f819882edc * lisp/eshell/em-term.el (eshell-visual-commands): Add vim. 2022-06-30 15:03:46 +02:00
Lars Ingebrigtsen
a6a92b8e4d Also add elisp-eval/byte-compile-buffer to lisp-interaction-mode
* lisp/progmodes/elisp-mode.el (lisp-interaction-mode-map): Also
add elisp-eval-buffer and elisp-byte-compile-buffer to this map.
2022-06-30 14:46:04 +02:00
Mattias Engdegård
00dbc5937d Don't change indentation rules for >= and =
* lisp/emacs-lisp/rx.el: `>=` and `=` are much more likely functions
than RX constructs and the indentation machinery currently has
no way to tell them apart.
Suggested by Michael Herdeegen.
2022-06-30 14:41:20 +02:00
Lars Ingebrigtsen
6f773186e3 Fix typo in previous elisp-byte-compile-buffer change
* lisp/progmodes/elisp-mode.el (elisp-byte-compile-buffer): Make
warnings point to the correct place.
2022-06-30 14:29:49 +02:00
Lars Ingebrigtsen
3015af515e Fix up warning links in elisp-byte-compile-buffer
* lisp/progmodes/elisp-mode.el (elisp-byte-compile-buffer): Make
warnings point to the correct place.
2022-06-30 14:29:12 +02:00
Stefan Kangas
b77d8617e7 ; * lisp/emacs-lisp/testcover.el: Remove duplicate provide. 2022-06-30 14:12:12 +02:00
Stefan Kangas
bf65073767 New hook save-place-after-find-file-hook
This is intended for use in Org mode, where we currently use advise.
* lisp/saveplace.el (save-place-after-find-file-hook): New hook.
(save-place-find-file-hook): Run new hook.
2022-06-30 14:07:15 +02:00
Lars Ingebrigtsen
80cf13a3d2 Make "eager macro-expansion" warning into an error
* doc/lispref/loading.texi (How Programs Do Loading): Update
documentation.

* lisp/emacs-lisp/macroexp.el:
(internal-macroexpand-for-load): We've been warning about eager
macro expansion for many years, so finally change that into an
error (bug#18154).
2022-06-30 13:18:15 +02:00
Lars Ingebrigtsen
a9ebd21304 Do NEWS tagging 2022-06-30 12:50:45 +02:00
Lars Ingebrigtsen
2f0ed2280e Add find-function-setup-keys bindings for find-library commands
* lisp/emacs-lisp/find-func.el (find-function-setup-keys): Add `L'
bindings for the find-library family of commands (bug#51240).
2022-06-30 12:49:40 +02:00
Lars Ingebrigtsen
274fcfa850 Restore temp-buffer-resize-mode behaviour wrt. [back] buttons
* lisp/help.el (help--window-setup): If temp-buffer-resize-mode, do
the window setup after adding [back] buttons (bug#56306).
2022-06-30 12:35:55 +02:00
Lars Ingebrigtsen
528fb3e087 Fix typo in previous server.el change
* lisp/server.el (server-process-filter): Fix typo in previous change.
2022-06-30 12:13:03 +02:00
Michael Shields
3933ece030 Don't ignore emacsclient's --frame-parameters option when -t
* lisp/server.el (server-process-filter): Add part of patch that
was mistakenly missed when the patch was applied (bug#24147).
This also fixes bug#56309.
2022-06-30 12:10:45 +02:00
Lars Ingebrigtsen
7b9d755b81 Add new commands to elisp mode for eval/compilation
* lisp/progmodes/elisp-mode.el (emacs-lisp-mode-map): Add new
keystrokes.
(elisp-eval-buffer, elisp-byte-compile-file)
(elisp-byte-compile-buffer): New commands.
2022-06-30 12:00:49 +02:00
Mike Kupfer
931bb26bb2 Clarify `version-control' in the Emacs manual
* doc/emacs/files.texi (Backup Names): Rephrase for greater
clarity (bug#56291).
2022-06-30 11:21:12 +02:00
Lars Ingebrigtsen
c59b8dfefa Recognize Gradle error messages in compile-mode
* lisp/progmodes/compile.el
(compilation-error-regexp-alist-alist): Recognize Gradle errors
(bug#56249).
2022-06-30 11:04:15 +02:00
Lars Ingebrigtsen
febefd6adb Add provide to testcover
* lisp/emacs-lisp/testcover.el (testcover): Provide (bug#55388).
2022-06-30 10:58:14 +02:00
Lars Ingebrigtsen
8c200afe46 Regenerated ldefs-boot.el 2022-06-30 10:47:44 +02:00
Lars Ingebrigtsen
371c4f642a Add new commands to zoom emojis
* lisp/international/emoji.el (emoji-zoom-map)
(emoji-zoom-increase, emoji-zoom-decrease): New commands.

* lisp/international/mule-cmds.el (ctl-x-map): Bind them.
2022-06-30 10:47:44 +02:00
Po Lu
ebd980bc7e Disable unrelated drag-and-drop protocols during XDS drop
* doc/lispref/frames.texi (Drag and Drop): Document variables
used to control drag-and-drop protocols.
* lisp/x-dnd.el (x-dnd-do-direct-save): Disable irrelevant DND
protocols.

* src/xterm.c (x_dnd_get_target_window_1):
(x_dnd_get_target_window):
(handle_one_xevent): Respect new variable.
(syms_of_xterm): New variable `x-dnd-disable-motif-protocol'.
2022-06-30 16:41:58 +08:00
Po Lu
25887d634f Improve compliance with the XDS and XDND protocols
* lisp/select.el (xselect-convert-to-text-uri-list): Return a
type of `text/uri-list' instead of STRING or C_STRING.

* lisp/x-dnd.el (x-dnd-xds-performed): New defvar.
(x-dnd-handle-direct-save): Set it to t and handle URIs with
hostnames correctly. Also return errors correctly.
(x-dnd-handle-octet-stream): New function.
(x-dnd-do-direct-save): Handle application/octet-stream, check
results.
2022-06-30 14:15:50 +08:00
Thomas Fitzsimmons
76e4179774 EUDC: Use "Surname" instead of "Name" in prompts
* lisp/net/eudc-vars.el (eudc-user-attribute-names-alist): Add
name/"Surname" association.
* lisp/net/eudc.el (eudc-get-email): Prompt for surname.
* lisp/net/eudc.el (eudc-get-phone): Likewise.
2022-06-29 21:54:26 -04:00
Po Lu
e161b5fa3c Fix preservation of the original value of PRIMARY after dropping on xterm
* src/xselect.c (x_own_selection): New arg `dnd_data'.  Record
it.
(x_get_local_selection, x_handle_selection_request)
(x_convert_selection): Convert the DND data instead if the
situation warrants.
(Fx_own_selection_internal, Fx_get_selection_internal)
(Fx_get_local_selection): Update calls to x_get_local_selection.

* src/xterm.c (x_dnd_do_unsupported_drop): If obtaining
selection ownership failed, return.  Record DND value and
preserve the current value of PRIMARY, if it exists.

* src/xterm.h: Update prototypes.
2022-06-30 09:46:41 +08:00
Thomas Fitzsimmons
d7dc8c5fe4 EUDC: Prevent field overlap when query form is reset
* lisp/net/eudc.el (eudc-query-form): Delete all overlays before
erasing buffer.  Remove widget-after-change from
after-change-functions.
2022-06-29 21:37:57 -04:00
Eli Zaretskii
fb3d582e7b Fix hscrolling of :align-to when display-line-numbers is in effect
* src/dispextern.h (struct it): Rename 'tab_offset' member to
'stretch_adjust'.
* src/xdisp.c (gui_produce_glyphs, produce_stretch_glyph)
(display_line): All users of 'tab_offset' changed.
(produce_stretch_glyph): Fix calculation of ':align-to' when
line numbers are displayed and the window is hscrolled.
(calc_pixel_width_or_height): Fix calculation of width of 'space'
display property when 'display-line-numbers' is turned on, but the
line number was not yet produced for the current glyph row.
(Bug#56176)
2022-06-29 20:15:36 +03:00
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